diff --git a/App.vue b/App.vue index 5f01694..3f24c58 100644 --- a/App.vue +++ b/App.vue @@ -8,8 +8,8 @@ wxSilentLoginURL: config.baseUrl + "/lpkcustomer/wxSilentLogin", sid: "", token: "", - isNewUser: "", //是否新人 0 否 1 是 - isPurchase: "", //是否购买过 0 否 1 是 + isNewUser: "", //是否新人 0 否 1 是 邀请新人助力 + isPurchase: "", //是否购买过 1否 0是 首页新人礼包弹框 navInfo: { } diff --git a/pages/bind/bind_cloudCard.vue b/pages/bind/bind_cloudCard.vue index 9c01296..76d6184 100644 --- a/pages/bind/bind_cloudCard.vue +++ b/pages/bind/bind_cloudCard.vue @@ -6,7 +6,7 @@ :end-change-height="page.endHeight"> - diff --git a/pages/home/myCellar.vue b/pages/home/myCellar.vue index beebe52..f1b970b 100644 --- a/pages/home/myCellar.vue +++ b/pages/home/myCellar.vue @@ -401,7 +401,7 @@ created() { // console.log("==========", getApp().globalData.isNewUser); - if (getApp().globalData.isNewUser == '1') + if (getApp().globalData.isPurchase == '1') this.showModal = true }, onShow() { @@ -433,9 +433,9 @@ this.transferInfo.remarks = event.target.value }, shareGift() { - - if (this.shareSid && getApp().globalData.isNewUser) { - + // 邀请新人 助力礼包 isNewUser==1 可以助力 + if (this.shareSid && getApp().globalData.isNewUser=='1') { + } }, @@ -604,7 +604,8 @@ _this.$api.createNewUserBagOrder(params).then((resp) => { // console.log("resp", resp); - this.$pay(resp) + _this.$pay(resp) + _this.showModal2 = false }).catch(e => {}) @@ -619,7 +620,7 @@ this.showModal3 = false }, onShareAppMessage: function(res) { - + let _this = this const promise = new Promise(resolve => { // 模拟网络请求 @@ -671,7 +672,7 @@ title: '汇融惠享-云菜窖', // ② path: '/pages/login/login?data=' + value, - imageUrl: 'https://supervise.yxtsoft.com/lpk/image/shareAffeection.png', //自定义图片路径,显示图片长宽比是 5:4。 + imageUrl: 'https://supervise.yxtsoft.com/lpk/image/share_transfer.png', //自定义图片路径,显示图片长宽比是 5:4。 }) diff --git a/pages/home/myHome.vue b/pages/home/myHome.vue index 04bb376..9cc944d 100644 --- a/pages/home/myHome.vue +++ b/pages/home/myHome.vue @@ -257,7 +257,7 @@ title: '汇融惠享-云菜窖', // ② path: '/pages/login/login?data=' + value, - imageUrl: 'https://supervise.yxtsoft.com/lpk/image/shareAffeection.png', //自定义图片路径,显示图片长宽比是 5:4。 + imageUrl: 'https://supervise.yxtsoft.com/lpk/image/share_invite.png', //自定义图片路径,显示图片长宽比是 5:4。 success: function(res) { console.log('aaaa', "分享成功") },