diff --git a/manifest.json b/manifest.json index 694577e..1ac35bf 100644 --- a/manifest.json +++ b/manifest.json @@ -124,6 +124,12 @@ }, "usingComponents" : true, "permission" : {} + // "plugins" : { + // "live-player-plugin" : { + // "version" : "1.3.2", //最新直播组件版本号 + // "provider" : "wx2b03c6e691cd7370" //直播appid + // } + // } }, "mp-alipay" : { "usingComponents" : true diff --git a/pages/business/order/list.vue b/pages/business/order/list.vue index bb974e7..03f456c 100644 --- a/pages/business/order/list.vue +++ b/pages/business/order/list.vue @@ -20,15 +20,16 @@ {{ item.items[0].item_name }} - {{ item.payment.amount }}件;{{ item.items[0].item_meta.specs_text }} - ¥{{ item.payment.amount_yuan }} + {{ item.count }}件;{{ item.items[0].item_meta.specs_text }} + + ¥{{ item.items[0].unit_price }} 发货 {{ item.status_text }} - 删除订单 + 取消订单 @@ -213,7 +214,7 @@ removeOrder(order_no, parentIndex, childIndex){ uni.showModal({ title: '温馨提示', - content: '确定删除该订单吗?', + content: '确定取消该订单吗?', success: result => { if(result.confirm){ this.$http.post({ diff --git a/pages/index/activity/confirm.vue b/pages/index/activity/confirm.vue index c11ac47..1a37dd6 100644 --- a/pages/index/activity/confirm.vue +++ b/pages/index/activity/confirm.vue @@ -22,7 +22,8 @@ return { name: '', phone: '', - activity_id: 0 + activity_id: 0, + clickContinue: true } }, onLoad(e){ @@ -31,53 +32,60 @@ }, methods: { confirm(){ - if(!this.name || !this.phone) return this.$msg('请将信息补充完整'); - - this.$http - .post({ - api: 'api/activity/apply', - data: { - activity_id: this.activity_id, - name: this.name, - phone: this.phone - }, - header: { - Authorization: this.$cookieStorage.get('user_token') - }, - }) - .then(res => { - if (res.data.code == 200) { - if (res.data.status) { - this.$msg('报名成功').then(() => { - this.$toBack(); - }) - } else { - wx.showModal({ - content: res.data.message || '人数爆满,请稍后重试!', - showCancel: false, + if(this.clickContinue == true) { + this.clickContinue = false; + if(!this.name || !this.phone) return this.$msg('请将信息补充完整'); + + this.$http + .post({ + api: 'api/activity/apply', + data: { + activity_id: this.activity_id, + name: this.name, + phone: this.phone + }, + header: { + Authorization: this.$cookieStorage.get('user_token') + }, + }) + .then(res => { + if (res.data.code == 200) { + if (res.data.status) { + this.clickContinue = true; + this.$msg('报名成功').then(() => { + this.$toBack(); + }) + } else { + this.clickContinue = true; + wx.showModal({ + content: res.data.message || '人数爆满,请稍后重试!', + showCancel: false, + success: (res) => { + this.$toBack(); + } + }); + } + } else { + this.clickContinue = true; + wx.showModal({ + content: res.data.message || '人数爆满,请稍后重试!', + showCancel: false, success: (res) => { this.$toBack(); } - }); - } - } else { - wx.showModal({ - content: res.data.message || '人数爆满,请稍后重试!', - showCancel: false, - success: (res) => { - this.$toBack(); - } - }); - } - wx.hideLoading(); - }) - .catch(() => { - wx.hideLoading(); - wx.showModal({ - content: '请求失败', - showCancel: false - }); - }); + }); + } + wx.hideLoading(); + }) + .catch(() => { + this.clickContinue = true; + wx.hideLoading(); + wx.showModal({ + content: '请求失败', + showCancel: false + }); + }); + } } } } diff --git a/pages/index/index/index.vue b/pages/index/index/index.vue index c91919c..ce0b255 100644 --- a/pages/index/index/index.vue +++ b/pages/index/index/index.vue @@ -28,8 +28,9 @@ 今日头条 - - {{ item.title }} + + + @@ -73,7 +74,7 @@ - + 直播间 @@ -268,6 +269,11 @@ }, // 方法,需要将小程序的方法都放到这个里面 methods: { + goLive() { + wx.navigateTo({ + url: `plugin-private://wx2b03c6e691cd7370/pages/live-player-plugin?room_id=1` + }) + }, getAlertAd(){ this.$http.get({ api: '/api/ad' diff --git a/pages/order/cashier/cashier.vue b/pages/order/cashier/cashier.vue index ab0a1c7..487d289 100644 --- a/pages/order/cashier/cashier.vue +++ b/pages/order/cashier/cashier.vue @@ -20,15 +20,18 @@ --> - - + + -