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({
title: '您未购买',
type: 'error',
duration: '1000'
duration: '2000'
})
}
},

View File

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

View File

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

View File

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