From d800bbd81e726c5811f11b6bdca8c1e0f99f2919 Mon Sep 17 00:00:00 2001 From: Enzo <1284707383@qq.com> Date: Sat, 9 Oct 2021 18:15:08 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=80=E7=B3=BB=E5=88=97=E4=BC=98=E5=8C=96?= =?UTF-8?q?=E3=80=81=E9=A6=96=E9=A1=B5=E5=85=AC=E5=91=8A=E8=BD=AE=E6=92=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- manifest.json | 6 + pages/business/order/list.vue | 9 +- pages/index/activity/confirm.vue | 98 +++-- pages/index/index/index.vue | 12 +- pages/order/cashier/cashier.vue | 413 +++++++++--------- pages/order/confirm/confirm.vue | 69 +-- pages/order/pointconfirm/confirm.vue | 77 ++-- pages/user/my/center.vue | 2 - .../u-column-notice/u-column-notice.vue | 410 +++++++++-------- .../components/u-notice-bar/u-notice-bar.vue | 2 +- 10 files changed, 572 insertions(+), 526 deletions(-) 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 @@ --> - - + + -