This commit is contained in:
曹辉 2023-04-26 15:51:49 +08:00
parent 0a51200ac2
commit 26b2bef4c7
4 changed files with 22 additions and 6 deletions

View File

@ -93,7 +93,7 @@
this.$refs.uToast.show({ this.$refs.uToast.show({
title: '您未购买', title: '您未购买',
type: 'error', type: 'error',
duration: '1000' duration: '2000'
}) })
} }
}, },

View File

@ -98,7 +98,7 @@
this.$refs.uToast.show({ this.$refs.uToast.show({
title: '您未购买', title: '您未购买',
type: 'error', type: 'error',
duration: '1000' duration: '2000'
}) })
}, },
//视频播放 //视频播放

View File

@ -19,7 +19,7 @@
<view class="Introduce"> <view class="Introduce">
{{item.itemDirectoryIntroduce}} {{item.itemDirectoryIntroduce}}
</view> </view>
<view class="play" v-if="!item.trainingOrderStatus"> <view class="play" v-if="!item.trainingOrderStatus" @tap='novideo'>
开始播放 开始播放
</view> </view>
<view class="" v-if="item.trainingOrderStatus=='PAY'"> <view class="" v-if="item.trainingOrderStatus=='PAY'">
@ -47,6 +47,7 @@
:initial-time='videoitem.watchTime'></video> :initial-time='videoitem.watchTime'></video>
</view> </view>
</u-popup> </u-popup>
<u-toast ref="uToast" />
</view> </view>
</template> </template>
<script> <script>
@ -116,6 +117,13 @@
this.list = res.data this.list = res.data
}) })
}, },
novideo() {
this.$refs.uToast.show({
title: '您未购买',
type: 'error',
duration: '2000'
})
},
//点击tabs //点击tabs
change(index) { change(index) {
this.tabcurrent = index; this.tabcurrent = index;

View File

@ -191,9 +191,17 @@
}, },
//跳转图文学习 //跳转图文学习
goImglearning(item) { goImglearning(item) {
if (item.trainingOrderDetailsBuy == 'BUY') {
uni.navigateTo({ uni.navigateTo({
url: `/pages/Imglearning/Imglearning?trainingItemId=${item.id}` url: `/pages/Imglearning/Imglearning?trainingItemId=${item.id}`
}) })
} else {
this.$refs.uToast.show({
title: '您未购买',
type: 'error',
duration: '2000'
})
}
}, },
//跳转视频学习详情 //跳转视频学习详情
goVideolearning(item) { goVideolearning(item) {