修改已存在的问题

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 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;"
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"
mode=""></image>
<view style="font-weight: 400;font-size: 25rpx;color: #333333;text-align: left;">
@@ -17,6 +17,9 @@
</template>
<script>
import {
returnIsSafari
} from '@/utils/app.js'
export default {
props: {
list: {
@@ -30,6 +33,49 @@
}
},
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) {
console.log(item,'dubyg2')
const time = 100;
// #ifdef H5
if (returnIsSafari()) {

View File

@@ -66,15 +66,14 @@
我的积分
</view>
</view> -->
<!-- <view v-if="isShowMoneyPay" class="statistics-box-item"
@click="goNav('/me/yaoqing/ymg-yaoqing-tixian')">
<view v-if="isiosExamine" class="statistics-box-item" @click="goNav('/me/yaoqing/ymg-yaoqing-tixian')">
<view class="statistics-box-item-btn">
我的红包
</view>
<view class="statistics-box-item-top">
{{userInfo.amount || '0.00'}}
</view>
</view> -->
</view>
</view>
</view>
<!-- <view v-if="isVips == '是' && isWxIosPay == true" class="vip flex align-center justify-center">
@@ -108,25 +107,25 @@
mode=""></image>
<view style="font-weight: bold;font-size: 36rpx;color: #FFFFFF;">
{{formatNumber(moneyNum)}}
</view>
</view>
<view
@tap="goNav('/me/yaoqing/redPack-mingxi?moneyType=2&viewType=2')"
<view @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;">
金币明细
</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 style="margin-top: 40rpx;">观看历史</view>
<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"
style="width: 188rpx;height: 247rpx;border-radius:21rpx 21rpx 21rpx 21rpx" mode=""></image>
<view style="font-weight: 400;font-size: 25rpx;color: #333333;">
{{item.title}}
{{item.title.substr(0,8)}}
</view>
<view style="font-weight: 400;font-size: 21rpx;color: #999999;">
看到{{item.courseDetailsName}}
@@ -305,7 +304,9 @@
import ttMsg from '../../components/ttMsg/ttMsg.vue'
import httpsRequest from '../../common/httpRequest.js'
import otherXuanfu from '@/components/other-xuafu.vue'
import {
returnIsSafari
} from '@/utils/app.js'
export default {
components: {
@@ -346,6 +347,7 @@
isWxIosPay: true, //微信下是否显示支付功能
userInfo: {},
isShowMoneyPay: true,
isiosExamine: false, // 我的金币审核
}
},
onLoad() {
@@ -426,6 +428,12 @@
const sysInfo = uni.getSystemInfoSync();
let isIos = sysInfo.platform === 'ios'
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() {
let data = {
@@ -519,7 +559,6 @@
}
this.$Request.getT('/app/courseCollect/selectByUserId', data).then(res => {
if (res.code === 0) {
console.log(res,'debug')
let arr = []
res.data.records.forEach((ele, index) => {
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="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_title flex">
<view class="u-font-28 text-bold title"