diff --git a/api/user.js b/api/user.js index c39a2bb..f41c93f 100644 --- a/api/user.js +++ b/api/user.js @@ -833,3 +833,11 @@ export function getWhellList() { export function getWhellAction() { return request.get('wheel/create', {}, {noAuth: true}) } +/** + * 积分赠送 + * @param object data + * + */ +export function integralGive() { + return request.post('user/integral/give', {}, {noAuth: true}) +} diff --git a/components/pay/index.vue b/components/pay/index.vue index 96027ed..38c86ae 100644 --- a/components/pay/index.vue +++ b/components/pay/index.vue @@ -59,8 +59,6 @@ this.num = this.randomArray([1,2,3,4,5,6,7,8,9,11]); this.num.splice(9, 0, 10); this.num.splice(11, 0, 12); - console.log(this.num); - console.log(this.key_words); }, methods:{ // 数组混淆 diff --git a/components/treasureBox/index.vue b/components/treasureBox/index.vue index fe31354..7f0274a 100644 --- a/components/treasureBox/index.vue +++ b/components/treasureBox/index.vue @@ -16,16 +16,25 @@ - + 恭喜您获得 {{drawInfo.text}}积分 - 开心收下 - 继续开盲盒 + 开心收下 + 继续开盲盒 + + + + 很遗憾,差一点就中奖了 + 期待您下次再来 + 我知道了 + + + @@ -47,10 +56,11 @@ blindShow:false, integral:'', list:[], + blind:true, drawInfo:{ img:'', text:'', - + wheel:0, } } }, @@ -59,11 +69,13 @@ methods: { confirm(){ this.popShow = false; + this.blind=false; this.close(); }, async openBox(){ await setSignIntegral().then(res=>{ this.drawInfo.text = res.data.integral; + this.drawInfo.wheel=res.data.wheel; this.gifShow=true; setTimeout(()=>{ this.gifShow=false; @@ -75,6 +87,9 @@ }); }, + goBlind(){ + this.blindShow=true; + }, close(){ this.$emit('closeTreasureBox') } diff --git a/pages/store/settled/index.vue b/pages/store/settled/index.vue index 8565a80..e3a1468 100644 --- a/pages/store/settled/index.vue +++ b/pages/store/settled/index.vue @@ -479,12 +479,12 @@ }, validateBtn() { let { - shopName,mer_classification,classification,businessAddress,businessAddressDetail,EnterpriseType,EnterpriseName,EnterpriseJoinName,EnterprisePhone,EnterpriseId,EnterpriseRooter,userName,userPhone,userId,userPhoto,isVeteran,isVeteranPhoto,isFlagshipStore,isFlagshipStorePhoto,mer_type,mer_storeType + shopName,mer_classification,businessAddress,businessAddressDetail,EnterpriseType,EnterpriseName,EnterpriseJoinName,EnterprisePhone,EnterpriseId,EnterpriseRooter,userName,userPhone,userId,userPhoto,isVeteran,isVeteranPhoto,isFlagshipStore,isFlagshipStorePhoto,mer_type,mer_storeType } = this.shopInfo; - if (shopName&&mer_classification&&classification&&businessAddress&&businessAddressDetail&&EnterpriseType&&EnterpriseName&&EnterpriseJoinName&&EnterprisePhone&&EnterpriseId&&EnterpriseRooter&&userName&&userPhone&&userId&&userPhoto&&mer_type&&mer_storeType ) { + if (shopName&&mer_classification&&businessAddress&&businessAddressDetail&&EnterpriseType&&EnterpriseName&&EnterpriseJoinName&&EnterprisePhone&&EnterpriseId&&EnterpriseRooter&&userName&&userPhone&&userId&&userPhoto&&mer_type&&mer_storeType ) { if(isVeteran&&!isVeteranPhoto){ return }else if (isFlagshipStore&&!isFlagshipStorePhoto){ @@ -494,7 +494,6 @@ phone: userPhone, mer_name:shopName, name:userName, - merchant_category_id:classification,//hjb 这里应该是设置反了 mer_type_id:mer_type,//hjb 这里应该是设置反了 com:{ name:EnterpriseName, diff --git a/pages/store/settled/step3.vue b/pages/store/settled/step3.vue index 70cbe4b..b4473bc 100644 --- a/pages/store/settled/step3.vue +++ b/pages/store/settled/step3.vue @@ -106,11 +106,11 @@ - + diff --git a/pages/user/index.vue b/pages/user/index.vue index c9a2c5d..b182bd4 100644 --- a/pages/user/index.vue +++ b/pages/user/index.vue @@ -79,10 +79,10 @@ 关注店铺 - + {{userInfo.total_visit_product || 0}} 浏览记录 @@ -765,7 +765,7 @@ import { setTimeout } from 'timers'; margin: 30rpx 20rpx 0; color: #fff; .num-item { - width: 25%; + width: 33%; text-align: center; .num { font-size: 42rpx; diff --git a/pages/users/user_integral/index.vue b/pages/users/user_integral/index.vue index 69413ea..871560e 100644 --- a/pages/users/user_integral/index.vue +++ b/pages/users/user_integral/index.vue @@ -47,19 +47,19 @@ 姓名 - + 手机号 - + 身份证 - + 积分 - + 确认赠送 @@ -82,7 +82,7 @@