From 027d00edc48bd3f4ec475cbbb554b0159b502f94 Mon Sep 17 00:00:00 2001 From: chen <2659004835@qq.com> Date: Fri, 12 Aug 2022 18:14:13 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AF=B9=E6=8E=A5=E4=B8=8D=E7=9F=A5=E6=83=85?= =?UTF-8?q?=E7=9A=84=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- App.vue | 2 +- components/custom-coupon.vue | 16 ++-- components/status-navs/custom-status-nav.vue | 14 ++- jsFile/public-api.js | 2 +- jsFile/requst.js | 7 +- manifest.json | 2 +- pages.json | 9 ++ pages/login/login.vue | 2 +- pages/tabbar/course/course.vue | 8 +- pages/tabbar/my/my.vue | 6 +- pages/tabbar/pagehome/pagehome.vue | 18 +++- pages/tabbar/video/video.vue | 6 +- pagesA/my-address/my-address.vue | 2 +- pagesA/my-coupon/my-coupon.vue | 10 +- pagesA/my-course/my-course.vue | 2 +- pagesA/my-order/my-order.vue | 2 + pagesA/my-video/my-video.vue | 1 + pagesB/buy-now/buy-now.vue | 7 ++ pagesB/confirm-order/confirm-order.vue | 2 + pagesB/course-detail/course-detail.vue | 74 +++++++++------ pagesB/order-detail/order-detail.vue | 2 + pagesB/shop-detail/shop-detail.vue | 15 +++ pagesB/upload-video/upload-video.vue | 96 ++++++++++++++++++++ store/modules/moduleA.js | 9 +- 24 files changed, 255 insertions(+), 59 deletions(-) create mode 100644 pagesB/upload-video/upload-video.vue diff --git a/App.vue b/App.vue index 86f79f0..6e8a4fa 100644 --- a/App.vue +++ b/App.vue @@ -5,7 +5,7 @@ projectname:'', // 项目名称 lat:'', // 公司地址维度 lng:'' ,// 公司地址经度 - hostapi:'https://chuanwujia.scdxtc.cn' // 域名配置 + hostapi:'https://chuanwujia.com' // 域名配置 }, // 优先于show方法 onLaunch: ()=> { diff --git a/components/custom-coupon.vue b/components/custom-coupon.vue index 1f82ecf..19b6f7e 100644 --- a/components/custom-coupon.vue +++ b/components/custom-coupon.vue @@ -27,6 +27,7 @@ + 暂无可用优惠券 @@ -82,7 +83,8 @@ }, // 查询是否选中 checkChoose(){ - let exitIndex = this.dataList.findIndex(item=>item.coupon_id==this.couponId); + console.log(this.couponId,666666); + let exitIndex = this.dataList.findIndex(item=>item.id==this.couponId); if(exitIndex!=-1){ this.dataList[exitIndex].ifcheck = true; this.setCoupon(true,exitIndex); @@ -90,11 +92,13 @@ }, // 存储优惠券的值 setCoupon(flag,index){ - this.couponIndex = index; - this.dataList[index].ifcheck = flag; - this.couponPrice = flag?this.dataList[index].amount:0;//选中优惠券金额 - this.couponId = flag?this.dataList[index].coupon_id:'';//选中优惠券id - this.couponCount = flag?1:0;//选中优惠券数量 + if(this.dataList.length){ + this.couponIndex = index; + this.dataList[index].ifcheck = flag; + this.couponPrice = flag?this.dataList[index].amount:0;//选中优惠券金额 + this.couponId = flag?this.dataList[index].id:'';//选中优惠券id + this.couponCount = flag?1:0;//选中优惠券数量 + } }, // 选择优惠券 chooseCoupon(id,index){ diff --git a/components/status-navs/custom-status-nav.vue b/components/status-navs/custom-status-nav.vue index 154bb10..72458b4 100644 --- a/components/status-navs/custom-status-nav.vue +++ b/components/status-navs/custom-status-nav.vue @@ -38,6 +38,7 @@