修改已存在的问题

This commit is contained in:
duan
2024-12-31 13:28:27 +08:00
parent 32d10cc470
commit 48f83a14cb
4 changed files with 101 additions and 15 deletions

View File

@@ -2,7 +2,7 @@
<view> <view>
<view class="df" style=" justify-content: space-around;flex-wrap: wrap; margin-top: 10rpx;"> <view class="df" style=" justify-content: space-around;flex-wrap: wrap; margin-top: 10rpx;">
<view style="border-radius:21rpx 21rpx 21rpx 21rpx;width: 33%;text-align: center;margin-top: 20rpx;padding:0 26rpx;" <view style="border-radius:21rpx 21rpx 21rpx 21rpx;width: 33%;text-align: center;margin-top: 20rpx;padding:0 26rpx;"
class="liststyle" v-for="item in $props.list" :key="item"> class="liststyle" v-for="item in $props.list" :key="item" @tap="seVideo(item)">
<image :src="item.titleImg" style="width: 188rpx;height: 247rpx;border-radius:21rpx 21rpx 21rpx 21rpx" <image :src="item.titleImg" style="width: 188rpx;height: 247rpx;border-radius:21rpx 21rpx 21rpx 21rpx"
mode=""></image> mode=""></image>
<view style="font-weight: 400;font-size: 25rpx;color: #333333;text-align: left;"> <view style="font-weight: 400;font-size: 25rpx;color: #333333;text-align: left;">
@@ -17,6 +17,9 @@
</template> </template>
<script> <script>
import {
returnIsSafari
} from '@/utils/app.js'
export default { export default {
props: { props: {
list: { list: {
@@ -30,6 +33,49 @@
} }
}, },
methods: { methods: {
pageScrollTo(time = 100) {
uni.pageScrollTo({
scrollTop: this.scrollTop - 50,
duration: time,
complete() {
}
})
},
//查看视频
seVideo(item) {
console.log(item,'dubyg2')
const time = 100;
// #ifdef H5
if (returnIsSafari()) {
this.pageScrollTo(time)
setTimeout(() => {
uni.navigateTo({
url: '/me/detail/detail?id=' + item.courseId + '&courseDetailsId=' + item
.courseDetailsId +
'&tt_album_id=' + item.dyCourseId + '&tt_episode_id=' + item
.dyEpisodeId
})
}, time)
} else {
uni.navigateTo({
url: '/me/detail/detail?id=' + item.courseId + '&courseDetailsId=' + item.courseDetailsId +
'&tt_album_id=' + item.dyCourseId + '&tt_episode_id=' + item
.dyEpisodeId
})
}
// #endif
// #ifndef H5
uni.navigateTo({
url: '/me/detail/detail?id=' + item.courseId + '&courseDetailsId=' + item.courseDetailsId +
'&tt_album_id=' + item.dyCourseId + '&tt_episode_id=' + item
.dyEpisodeId
})
// #endif
},
} }
} }

View File

@@ -649,6 +649,7 @@
}, },
//查看视频 //查看视频
seVideo(item) { seVideo(item) {
console.log(item,'dubyg2')
const time = 100; const time = 100;
// #ifdef H5 // #ifdef H5
if (returnIsSafari()) { if (returnIsSafari()) {

View File

@@ -8,7 +8,7 @@
style="background-color: #f5f1f1;padding: 20rpx; display: flex;align-items: center;justify-content: space-between;" style="background-color: #f5f1f1;padding: 20rpx; display: flex;align-items: center;justify-content: space-between;"
class=""> class="">
<image src="../../static/logo.png" style="width: 170rpx;height: 51rpx;z-index: 999;" mode=""></image> <image src="../../static/logo.png" style="width: 170rpx;height: 51rpx;z-index: 999;" mode=""></image>
<!-- <view class=""> <!-- <view class="">
<image src="../../static/dwbimgs/one.png" style="width: 46rpx;height: 46rpx;z-index: 999;" mode=""> <image src="../../static/dwbimgs/one.png" style="width: 46rpx;height: 46rpx;z-index: 999;" mode="">
</image> </image>
<image src="../../static/dwbimgs/two.png" style="width: 46rpx;height: 46rpx;z-index: 999;" mode=""> <image src="../../static/dwbimgs/two.png" style="width: 46rpx;height: 46rpx;z-index: 999;" mode="">
@@ -66,15 +66,14 @@
我的积分 我的积分
</view> </view>
</view> --> </view> -->
<!-- <view v-if="isShowMoneyPay" class="statistics-box-item" <view v-if="isiosExamine" class="statistics-box-item" @click="goNav('/me/yaoqing/ymg-yaoqing-tixian')">
@click="goNav('/me/yaoqing/ymg-yaoqing-tixian')">
<view class="statistics-box-item-btn"> <view class="statistics-box-item-btn">
我的红包 我的红包
</view> </view>
<view class="statistics-box-item-top"> <view class="statistics-box-item-top">
{{userInfo.amount || '0.00'}} {{userInfo.amount || '0.00'}}
</view> </view>
</view> --> </view>
</view> </view>
</view> </view>
<!-- <view v-if="isVips == '是' && isWxIosPay == true" class="vip flex align-center justify-center"> <!-- <view v-if="isVips == '是' && isWxIosPay == true" class="vip flex align-center justify-center">
@@ -108,25 +107,25 @@
mode=""></image> mode=""></image>
<view style="font-weight: bold;font-size: 36rpx;color: #FFFFFF;"> <view style="font-weight: bold;font-size: 36rpx;color: #FFFFFF;">
{{formatNumber(moneyNum)}} {{formatNumber(moneyNum)}}
</view> </view>
</view> </view>
<view <view @tap="goNav('/me/yaoqing/redPack-mingxi?moneyType=2&viewType=2')"
@tap="goNav('/me/yaoqing/redPack-mingxi?moneyType=2&viewType=2')"
style="font-weight: bold;font-size: 25rpx;color: #977641;width: 160rpx;text-align:center;line-height: 50rpx;background: linear-gradient( 90deg, #FEE7BC 0%, #FDCC89 100%);border-radius: 46rpx 46rpx 46rpx 46rpx;"> style="font-weight: bold;font-size: 25rpx;color: #977641;width: 160rpx;text-align:center;line-height: 50rpx;background: linear-gradient( 90deg, #FEE7BC 0%, #FDCC89 100%);border-radius: 46rpx 46rpx 46rpx 46rpx;">
金币明细 金币明细
</view> </view>
<view style="position: absolute;background-color: #fff;width: 40rpx;height: 40rpx;transform: rotate(45deg);bottom: -10rpx;left: 48%;background-color: #f2b5b5;"> <view
style="position: absolute;background-color: #fff;width: 40rpx;height: 40rpx;transform: rotate(45deg);bottom: -10rpx;left: 48%;background-color: #f2b5b5;">
</view> </view>
</view> </view>
<view style="margin-top: 40rpx;">观看历史</view> <view style="margin-top: 40rpx;">观看历史</view>
<view class="df" style=" justify-content: space-between;margin-top: 28rpx;"> <view class="df" style=" justify-content: space-between;margin-top: 28rpx;">
<view style="border-radius:21rpx 21rpx 21rpx 21rpx" v-for="item in list" :key="item"> <view style="border-radius:21rpx 21rpx 21rpx 21rpx" v-for="item in list" :key="item"
@tap="seVideo(item)">
<image :src="item.titleImg" <image :src="item.titleImg"
style="width: 188rpx;height: 247rpx;border-radius:21rpx 21rpx 21rpx 21rpx" mode=""></image> style="width: 188rpx;height: 247rpx;border-radius:21rpx 21rpx 21rpx 21rpx" mode=""></image>
<view style="font-weight: 400;font-size: 25rpx;color: #333333;"> <view style="font-weight: 400;font-size: 25rpx;color: #333333;">
{{item.title}} {{item.title.substr(0,8)}}
</view> </view>
<view style="font-weight: 400;font-size: 21rpx;color: #999999;"> <view style="font-weight: 400;font-size: 21rpx;color: #999999;">
看到{{item.courseDetailsName}} 看到{{item.courseDetailsName}}
@@ -305,7 +304,9 @@
import ttMsg from '../../components/ttMsg/ttMsg.vue' import ttMsg from '../../components/ttMsg/ttMsg.vue'
import httpsRequest from '../../common/httpRequest.js' import httpsRequest from '../../common/httpRequest.js'
import otherXuanfu from '@/components/other-xuafu.vue' import otherXuanfu from '@/components/other-xuafu.vue'
import {
returnIsSafari
} from '@/utils/app.js'
export default { export default {
components: { components: {
@@ -346,6 +347,7 @@
isWxIosPay: true, //微信下是否显示支付功能 isWxIosPay: true, //微信下是否显示支付功能
userInfo: {}, userInfo: {},
isShowMoneyPay: true, isShowMoneyPay: true,
isiosExamine: false, // 我的金币审核
} }
}, },
onLoad() { onLoad() {
@@ -426,6 +428,12 @@
const sysInfo = uni.getSystemInfoSync(); const sysInfo = uni.getSystemInfoSync();
let isIos = sysInfo.platform === 'ios' let isIos = sysInfo.platform === 'ios'
this.isShowMoneyPay = !(res.data.value === '1' && isIos) this.isShowMoneyPay = !(res.data.value === '1' && isIos)
if (res.data.value == 1) {
// debug
this.isiosExamine = true
}else{
this.isiosExamine = false
}
} }
}); });
}, },
@@ -480,6 +488,38 @@
} }
}, },
pageScrollTo(time = 100) {
uni.pageScrollTo({
scrollTop: this.scrollTop - 50,
duration: time,
complete() {
}
})
},
//查看视频
seVideo(item) {
const time = 100;
// #ifdef H5
if (returnIsSafari()) {
this.pageScrollTo(time)
setTimeout(() => {
uni.navigateTo({
url: '/me/detail/detail?id=' + item.courseId + '&courseDetailsId=' + item
.courseDetailsId +
'&tt_album_id=' + item.dyCourseId + '&tt_episode_id=' + item
.dyEpisodeId
})
}, time)
} else {
uni.navigateTo({
url: '/me/detail/detail?id=' + item.courseId + '&courseDetailsId=' + item.courseDetailsId +
'&tt_album_id=' + item.dyCourseId + '&tt_episode_id=' + item
.dyEpisodeId
})
}
},
//获取我喜欢的数量 //获取我喜欢的数量
getMyLoveNum() { getMyLoveNum() {
let data = { let data = {
@@ -519,7 +559,6 @@
} }
this.$Request.getT('/app/courseCollect/selectByUserId', data).then(res => { this.$Request.getT('/app/courseCollect/selectByUserId', data).then(res => {
if (res.code === 0) { if (res.code === 0) {
console.log(res,'debug')
let arr = [] let arr = []
res.data.records.forEach((ele, index) => { res.data.records.forEach((ele, index) => {
if (index < 3) { if (index < 3) {

View File

@@ -67,7 +67,7 @@
<view class="content margin-lr padding bg-white u-relative" v-if="list.length"> <view class="content margin-lr padding bg-white u-relative" v-if="list.length">
<view class="cell flex justify-between" v-for="(item,index) in list" :key="index" <view class="cell flex justify-between" v-for="(item,index) in list" :key="index"
v-if="(item.buttonUrl=='/me/yaoqing/ymf-yaoqing-home'&&isShowMoneyPay)||item.buttonUrl!='/me/yaoqing/ymf-yaoqing-home'&&item.title!='观看视频奖励'"> v-if="(item.buttonUrl=='/me/yaoqing/ymf-yaoqing-home'&&isShowMoneyPay)||item.buttonUrl!='/me/yaoqing/ymf-yaoqing-home'">
<view class="cell_left flex"> <view class="cell_left flex">
<view class="cell_title flex"> <view class="cell_title flex">
<view class="u-font-28 text-bold title" <view class="u-font-28 text-bold title"