|
@@ -1,18 +1,18 @@
|
|
|
<template>
|
|
|
<view class="bg">
|
|
|
<view class="video">
|
|
|
- <view class="video-item">
|
|
|
+ <view v-for="(item, index) in list" :key="index" class="video-item">
|
|
|
<image
|
|
|
class="video-item-left"
|
|
|
mode="widthFix"
|
|
|
- src="https://ct.zzxcx.net/ctjk/mp-wx/courseCatalog/video_poster.png"
|
|
|
+ :src="item.videoCover"
|
|
|
></image>
|
|
|
<view class="video-item-right">
|
|
|
- <view>福州 | 华威夜间模拟灯光全套 (东南V5)</view>
|
|
|
+ <view style="width: 100%">{{ item.videoName }}</view>
|
|
|
<view class="video-item-right-icon">学习中</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
- <view class="video-item">
|
|
|
+ <!-- <view class="video-item">
|
|
|
<image
|
|
|
class="video-item-left"
|
|
|
mode="widthFix"
|
|
@@ -33,40 +33,75 @@
|
|
|
<view>福州 | 华威夜间模拟灯光全套 (东南V5)</view>
|
|
|
<view class="video-item-right-icon">学习中</view>
|
|
|
</view>
|
|
|
- </view>
|
|
|
+ </view> -->
|
|
|
</view>
|
|
|
<view class="pay">
|
|
|
- <view class="pay-text">
|
|
|
- <text>立即支付 ¥35.00</text>
|
|
|
+ <view @click="buyRoadCourse" class="pay-text">
|
|
|
+ <text>立即支付 ¥{{ price/100 }}</text>
|
|
|
</view>
|
|
|
<image
|
|
|
style="width: 100%"
|
|
|
mode="widthFix"
|
|
|
src="https://ct.zzxcx.net/ctjk/mp-wx/courseCatalog/payBg.png"
|
|
|
></image>
|
|
|
- <!-- <image mode="widthFix" src="https://ct.zzxcx.net/ctjk/mp-wx/courseCatalog/alreadyPay.png"></image> -->
|
|
|
+ <!-- <image mode="widthFix" src="https://ct.zzxcx.net/ctjk/mp-wx/courseCatalog/alreadyPay.png"></image> -->
|
|
|
</view>
|
|
|
<view class="advantage">
|
|
|
<view class="advantage-title"> 实拍优势</view>
|
|
|
- <view class="advantage-img">
|
|
|
- <image mode="widthFix" src="https://ct.zzxcx.net/ctjk/mp-wx/courseCatalog/advantage.png"></image>
|
|
|
-
|
|
|
+ <view class="advantage-img">
|
|
|
+ <image
|
|
|
+ mode="widthFix"
|
|
|
+ src="https://ct.zzxcx.net/ctjk/mp-wx/courseCatalog/advantage.png"
|
|
|
+ ></image>
|
|
|
</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
+import api from '@/api'
|
|
|
export default {
|
|
|
data() {
|
|
|
- return {};
|
|
|
+ return {
|
|
|
+ query: {
|
|
|
+ price: 0,
|
|
|
+ },
|
|
|
+ };
|
|
|
+ },
|
|
|
+ methods: {
|
|
|
+ buyRoadCourse() {
|
|
|
+ let systemInfo = wx.getSystemInfoSync()
|
|
|
+ api.buy.studentWxXcxPrepareOrder({
|
|
|
+ examId:this.examId,
|
|
|
+ foreType:2,
|
|
|
+ phoneType:systemInfo.platform=='ios'?1:2
|
|
|
+
|
|
|
+ }).then(res=>{
|
|
|
+ wx.requestPayment(res.data)
|
|
|
+
|
|
|
+ })
|
|
|
+
|
|
|
+ }
|
|
|
},
|
|
|
props: {
|
|
|
list: {
|
|
|
type: Array,
|
|
|
- default: []
|
|
|
+ default: [],
|
|
|
},
|
|
|
+ price: {
|
|
|
+ type: Number,
|
|
|
+ default: 0,
|
|
|
+ },
|
|
|
+ examId:{
|
|
|
+ type: Number,
|
|
|
+ default: 0,
|
|
|
+
|
|
|
+ }
|
|
|
+ },
|
|
|
+ onLoad(query) {
|
|
|
+ this.query = query;
|
|
|
},
|
|
|
+ computed: {},
|
|
|
};
|
|
|
</script>
|
|
|
|