Commit cba915a3 by kyle

Merge branch '20221201' into dev

parents 1b9806a5 013fe8df
......@@ -322,7 +322,7 @@
onReady(){
this.videoContext = uni.createVideoContext('myVideo');
},
destroyed() {
onUnload(){
if(this.timer){
clearInterval(this.timer)
}
......
......@@ -78,14 +78,23 @@
return {
queryDate:`${new Date().getFullYear()}-${new Date().getMonth() + 1}`,
maxDate:`${new Date().getFullYear()}-${new Date().getMonth() + 1}`,
userId:'1',
coursesCountInfos:{},
userId:uni.getStorageSync('cffp_userId'),
coursesCountInfos: {
shareFrequencyMonth:0,
integralMonth:0,
shareSectionMonth:0,
shareFrequencyCount:0,
integralCount:0,
shareSectionCount:0
},
userShareCourses:[]
}
},
methods: {
bindDateChange: function(e) {
this.queryDate = e.detail.value
this.queryDate = e.detail.value;
this.userShareCount();
this.userShareQuery();
},
userShareCount(){
const params = {
......@@ -95,7 +104,17 @@
api.userShareCount(params).then(res=>{
console.log(res)
if(res['success']){
this.coursesCountInfos = res['data'];
this.coursesCountInfos = res['data'] ? res['data'] : this.coursesCountInfos;
}else{
this.coursesCountInfos = {
shareFrequencyMonth:0,
integralMonth:0,
shareSectionMonth:0,
shareFrequencyCount:0,
integralCount:0,
shareSectionCount:0
};
console.log(this.coursesCountInfos)
}
})
},
......@@ -109,6 +128,8 @@
console.log(res)
if(res['success']){
this.userShareCourses = res['data']['userShareCourses'];
}else{
this.userShareCourses = [];
}
})
},
......
<template>
<view class="container">
<view class="statusBox">
<view class="successBox" v-if="orderStatus==='1'">
<view class="successBox" v-if="orderStatus=='1'">
<i class="iconfont icon-dengdai"></i>
<text class="statusText">订单支付成功</text>
<text @click="viewDetail()" class="viewOrder">查看订单 ></text>
</view>
<view class="failBox" v-if="orderStatus!=='1'">
<view class="failBox" v-if="orderStatus!='1'">
<text style="color:#F04604"><i class="iconfont icon-guanbi"></i>订单支付失败</text>
<view class="optionBox">
<text @click="cancelOrder()">取消订单</text>
......@@ -66,6 +66,7 @@
this.orderId = options.orderId;
this.orderStatus = options.orderStatus;
this.fileId = options.fileId;
console.log(this.orderStatus)
}
}
</script>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment