diff --git a/App.vue b/App.vue index 21ce195..0948067 100644 --- a/App.vue +++ b/App.vue @@ -1,220 +1,217 @@ \ No newline at end of file +/* #endif */ + diff --git a/manifest.json b/manifest.json index add9dfc..599fb67 100644 --- a/manifest.json +++ b/manifest.json @@ -10,8 +10,8 @@ "sizes": "分辨率,192x192", "src": "图片路径" }], - "versionName": "1.0.36", - "versionCode": 1036, + "versionName": "1.0.39", + "versionCode": 1039, "app-plus": { "nvueCompiler": "weex", "compatible": { diff --git a/pages/bookShop/orderLCont.vue b/pages/bookShop/orderLCont.vue index bdab518..de50514 100644 --- a/pages/bookShop/orderLCont.vue +++ b/pages/bookShop/orderLCont.vue @@ -1,5 +1,8 @@ @@ -481,6 +499,68 @@ import { mapState } from "vuex"; export default { data() { return { + A: { + orderId: 15316, + orderSn: "20241209141541253186600376645070", + userId: 13487, + userName: null, + statusNum: null, + shippingUser: null, + userPhone: "18834844847", + province: null, + city: null, + district: null, + address: null, + come: 2, + paymentMethod: "3", + orderMoney: 39, + districtMoney: 0, + realMoney: 39, + shippingMoney: null, + shippingCompName: null, + shippingSn: null, + jfDeduction: 0, + createTime: "2024-12-09 14:15:41", + shippingTime: null, + orderStatus: "0", + successTime: null, + couponId: null, + couponName: null, + delFlag: 0, + products: null, + productList: null, + buyType: null, + orderType: "point", + expNo: null, + isSend: null, + vipBuyConfigId: 0, + addressId: null, + remark: null, + orderCode: null, + paymentDate: null, + productId: "21", + recordId: null, + timestamp: null, + user: null, + expressList: null, + addressModified: 0, + consigneeVo: null, + appName: null, + bookBuyConfigEntity: { + priceTypeId: 21, + type: "point", + qudao: "IOS", + realMoney: "45", + money: "39", + givejf: "0", + month: null, + description: "", + effective: 0, + startTime: null, + endTime: null, + }, + vipBuyConfigEntity: null, + }, iconList: [ { text: "联系客服", @@ -562,11 +642,11 @@ export default { }, methods: { - gotoWorkOrder(){ - uni.navigateTo({ - url:`/pages/user/workOrder?name=order` - }) - }, + gotoWorkOrder() { + uni.navigateTo({ + url: `/pages/user/workOrder?name=order`, + }); + }, async goBuyJie(data) { console.log("index at line 532:", data); if (data.text == "继续付款") { @@ -911,28 +991,29 @@ export default { orderTabCLi(e) { this.orderListTab = e; }, - async getCouponDetail(id){ - await this.$http - .request({ - url: "common/coupon/getCouponHistoryInfo", - method: "POST", // POST、GET、PUT、DELETE,具体说明查看官方文档 - data: { - id - }, - header: { - //默认 无 说明:请求头 - "Content-Type": "application/json", - }, - }) - .then(async (res) => { - if(res.code != 0) return this.$commonJS.showToast(res.errMsg); - this.orderContet.couponAmount = res.couponHistory.couponEntity.couponAmount - - }).catch(e => { - console.log(e); - this.$commonJS.showToast(e.errMsg); - }) - }, + async getCouponDetail(id) { + await this.$http + .request({ + url: "common/coupon/getCouponHistoryInfo", + method: "POST", // POST、GET、PUT、DELETE,具体说明查看官方文档 + data: { + id, + }, + header: { + //默认 无 说明:请求头 + "Content-Type": "application/json", + }, + }) + .then(async (res) => { + if (res.code != 0) return this.$commonJS.showToast(res.errMsg); + this.orderContet.couponAmount = + res.couponHistory.couponEntity.couponAmount; + }) + .catch((e) => { + console.log(e); + this.$commonJS.showToast(e.errMsg); + }); + }, // 获取订单详情 async getOrderList() { console.log("this.orderType", this.orderType); @@ -955,10 +1036,10 @@ export default { this.orderContet = res.data.buyOrder; this.goodsList = res.data.productInfo; this.consigneeShow = true; - // 存在优惠券信息,就查询优惠券集体金额 - if(this.orderContet.couponId && this.orderContet.couponId != null){ - await this.getCouponDetail(this.orderContet.couponId) - } + // 存在优惠券信息,就查询优惠券集体金额 + if (this.orderContet.couponId && this.orderContet.couponId != null) { + await this.getCouponDetail(this.orderContet.couponId); + } if ( this.orderContet.orderStatus == 2 && this.sheetList.length > 0 && @@ -980,7 +1061,10 @@ export default { color: "#fff", }); } - if (this.orderContet.orderStatus == 0 && this.orderContet.paymentMethod != 3) { + if ( + this.orderContet.orderStatus == 0 && + this.orderContet.paymentMethod != 3 + ) { this.customButton.push({ width: "160rpx", text: "继续付款", @@ -1128,10 +1212,10 @@ export default { // 苹果充值 console.log("苹果二次支付"); uni.showModal({ - content:'apple内购订单不支持继续支付,请重新发起支付申请并完成支付', - confirmText:'好的', - showCancel:false - }) + content: "apple内购订单不支持继续支付,请重新发起支付申请并完成支付", + confirmText: "好的", + showCancel: false, + }); } }, @@ -1140,19 +1224,18 @@ export default { console.log("data at line 1277:订单详情参数", data); if (data.delFlag == -1) { this.$commonJS.showToast("商品已下架"); - }else if(data.goodsType == '05'){ - if(data.courseIds && data.courseIds.length > 0){ - uni.navigateTo({ - url: `/pages/course/courseDetail?id=${data.courseIds[0].courseId}`, - }); - }else{ - uni.showToast({ - title: "课程数据出错", - icon: "none" - }); - } - - } else { + } else if (data.goodsType == "05") { + if (data.courseIds && data.courseIds.length > 0) { + uni.navigateTo({ + url: `/pages/course/courseDetail?id=${data.courseIds[0].courseId}`, + }); + } else { + uni.showToast({ + title: "课程数据出错", + icon: "none", + }); + } + } else { uni.navigateTo({ // url: '../bookShop/commodityDetail?id=' + item.id url: `/pages/goods/index/index?navTitle=''&title=''&id=${id}`, diff --git a/pages/bookShop/orderList.vue b/pages/bookShop/orderList.vue index 48c18a9..49f8a5a 100644 --- a/pages/bookShop/orderList.vue +++ b/pages/bookShop/orderList.vue @@ -219,12 +219,18 @@ font-weight: 700; "> + + {{ slotProps.row.bookBuyConfigEntity.realMoney }} + + {{ slotProps.row.realMoney || slotProps.row.realMoney == 0 ? slotProps.row.realMoney : "" - }} + }} + + diff --git a/pages/component/commonComponents/video/index.vue b/pages/component/commonComponents/video/index.vue index e8ab36c..2c81919 100644 --- a/pages/component/commonComponents/video/index.vue +++ b/pages/component/commonComponents/video/index.vue @@ -281,7 +281,7 @@ }, // 存储本地播放时间 recordTime(data) { - console.log('recordTime', data.time); + // console.log('recordTime', data.time); this.currentTime = data.time; var list = []; diff --git a/pages/course/chapterDetailAndorid.vue b/pages/course/chapterDetailAndorid.vue index b24acfa..466312e 100644 --- a/pages/course/chapterDetailAndorid.vue +++ b/pages/course/chapterDetailAndorid.vue @@ -150,7 +150,11 @@ - + + + + + @@ -187,6 +191,7 @@ }, data() { return { + isClick:true, classList:[], // 进行中的小班 isInClass:false, // 是否加入了班级 showEditBlank: false, @@ -349,6 +354,7 @@ uni.stopPullDownRefresh(); }, onShow() { + this.isClick=true; // #endif this.getClassList() }, @@ -382,7 +388,8 @@ // console.log('this.answerForm++++', this.answerForm); } // 赋值给编辑器 - this.onEditorReady() + this.onEditorReady() + this.isClick=true this.showEditBlank = true }, gotoClass(item){ @@ -499,7 +506,9 @@ } this.answerForm.display = e.detail.value }, - async onSubmit() { + async onSubmit() { if(!this.isClick){ + return false + } debounce(async () => { let data = await this.getHtml(); var _data = data.html.replace(/<.*?>/g, "") @@ -535,6 +544,7 @@ } console.log('提交的data', data1); + this.isClick=false; $http.request({ url: _url, method: "POST", @@ -550,6 +560,7 @@ }) this.fileList1 = [] setTimeout(() => { + this.isClick=true; this.getMyQuestAnswer(this.curriculumData.id) this.closePup() // this.pPage = 0 @@ -558,6 +569,7 @@ // this.getZuoyeList() }, 200) }).catch(e => { + this.isClick=true; uni.showToast({ title: '操作失败', icon: 'error'