|
@@ -5,9 +5,10 @@
|
|
|
<view class="header_inside">
|
|
<view class="header_inside">
|
|
|
<image :src="ghsInfo.avatar"></image>
|
|
<image :src="ghsInfo.avatar"></image>
|
|
|
<view class="shop_info">
|
|
<view class="shop_info">
|
|
|
|
|
+
|
|
|
<view class="shop_title" @click="pageTo({url:'/pagesPurchase/level?id='+ghsInfo.id})">
|
|
<view class="shop_title" @click="pageTo({url:'/pagesPurchase/level?id='+ghsInfo.id})">
|
|
|
{{ghsInfo.name}}
|
|
{{ghsInfo.name}}
|
|
|
- <text class="level">{{ghsInfo.giveLevelName}}</text>
|
|
|
|
|
|
|
+ <text class="level">{{ghsInfo.giveLevelName||'大众会员'}}</text>
|
|
|
</view>
|
|
</view>
|
|
|
|
|
|
|
|
<view v-if="ghsInfo.hasRechargeHb && ghsInfo.hasRechargeHb ==1" class="shop_intro" @tap="recharge(ghsInfo)">
|
|
<view v-if="ghsInfo.hasRechargeHb && ghsInfo.hasRechargeHb ==1" class="shop_intro" @tap="recharge(ghsInfo)">
|
|
@@ -97,31 +98,26 @@
|
|
|
</view>
|
|
</view>
|
|
|
</template>
|
|
</template>
|
|
|
</modal-module>
|
|
</modal-module>
|
|
|
- <modal-module
|
|
|
|
|
- :show="true"
|
|
|
|
|
-
|
|
|
|
|
- :title="'aaaa'"
|
|
|
|
|
- color="#333"
|
|
|
|
|
- :size="32"
|
|
|
|
|
- padding="30rpx 30rpx"
|
|
|
|
|
- >
|
|
|
|
|
|
|
|
|
|
|
|
+ <modal-module :show="showInvite" color="#333" :size="32" padding="60rpx 30rpx" width="94%" :button="[]">
|
|
|
<template slot="customContent">
|
|
<template slot="customContent">
|
|
|
- <view class="select-cmd_bx">
|
|
|
|
|
- <view class="num_bx">
|
|
|
|
|
- aaaa
|
|
|
|
|
|
|
+ <view>
|
|
|
|
|
+ <view style="margin-bottom:60rpx;margin-top:20rpx;font-size:30rpx;">邀新人下单,您得30元红包,新人得100元红包</view>
|
|
|
|
|
+ <view>
|
|
|
|
|
+ <button style="padding-left:85rpx;padding-right:85rpx;" class="admin-button-com default big" @click="closeInvite()">取消</button>
|
|
|
|
|
+ <button style="padding-left:150rpx;padding-right:150rpx;margin-left:30rpx;" class="admin-button-com blue big" @click="closeInvite()" open-type="share">邀请</button>
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
|
</template>
|
|
</template>
|
|
|
-
|
|
|
|
|
</modal-module>
|
|
</modal-module>
|
|
|
|
|
+
|
|
|
<FooterCart :price="allPrice" :count="allCount" @confirm="confirmSelectEvent" ></FooterCart>
|
|
<FooterCart :price="allPrice" :count="allCount" @confirm="confirmSelectEvent" ></FooterCart>
|
|
|
<wangCg :show.sync="notOpenShop" @bthClick="toPage"></wangCg>
|
|
<wangCg :show.sync="notOpenShop" @bthClick="toPage"></wangCg>
|
|
|
<sel-popup :show="popupShow" :info="infoData" @close="hidePopup" />
|
|
<sel-popup :show="popupShow" :info="infoData" @close="hidePopup" />
|
|
|
|
|
|
|
|
<app-activily-coupon
|
|
<app-activily-coupon
|
|
|
- :show.sync="isNewMan"
|
|
|
|
|
- :info="newUserGift"
|
|
|
|
|
|
|
+ :show.sync="isNewCustom"
|
|
|
|
|
+ :info="newCustomGift"
|
|
|
:ghsId="ghsId"
|
|
:ghsId="ghsId"
|
|
|
/>
|
|
/>
|
|
|
|
|
|
|
@@ -191,9 +187,10 @@ export default {
|
|
|
xjData:{},
|
|
xjData:{},
|
|
|
xjDataInfo:{},
|
|
xjDataInfo:{},
|
|
|
shareDiscount:1,
|
|
shareDiscount:1,
|
|
|
- isNewMan:false,
|
|
|
|
|
ghsId:0,
|
|
ghsId:0,
|
|
|
- newUserGift:{amount:100,miniCost:500,validTime:'2021-12-05'}
|
|
|
|
|
|
|
+ newCustomGift:{amount:100,miniCost:500,validTime:'2021-12-05'},
|
|
|
|
|
+ isNewCustom:false,
|
|
|
|
|
+ showInvite:false
|
|
|
};
|
|
};
|
|
|
},
|
|
},
|
|
|
onPullDownRefresh() {
|
|
onPullDownRefresh() {
|
|
@@ -293,17 +290,11 @@ export default {
|
|
|
|
|
|
|
|
},
|
|
},
|
|
|
methods: {
|
|
methods: {
|
|
|
|
|
+ closeInvite(){
|
|
|
|
|
+ this.showInvite = false
|
|
|
|
|
+ },
|
|
|
invite(){
|
|
invite(){
|
|
|
- uni.showModal({
|
|
|
|
|
- title: '提示',
|
|
|
|
|
- content: '邀新人下单您得30元红包,新人得100元红包',
|
|
|
|
|
- confirmText:'去邀请',
|
|
|
|
|
- success: function (res) {
|
|
|
|
|
- if (res.confirm) {
|
|
|
|
|
-
|
|
|
|
|
- }
|
|
|
|
|
- }
|
|
|
|
|
- })
|
|
|
|
|
|
|
+ this.showInvite = true
|
|
|
},
|
|
},
|
|
|
recharge(item){
|
|
recharge(item){
|
|
|
this.$util.pageTo({url:'/pagesStore/me/recharge',query:{ghsId:item.id}})
|
|
this.$util.pageTo({url:'/pagesStore/me/recharge',query:{ghsId:item.id}})
|
|
@@ -371,6 +362,12 @@ export default {
|
|
|
this.createShareDiscount()
|
|
this.createShareDiscount()
|
|
|
uni.setNavigationBarTitle({title: this.ghsInfo.name})
|
|
uni.setNavigationBarTitle({title: this.ghsInfo.name})
|
|
|
this.option.id = res.data.id;
|
|
this.option.id = res.data.id;
|
|
|
|
|
+ //不是新人或者已经下过单的不再显示新人红包
|
|
|
|
|
+ if(res.hasCg > 0 || res.new == 0){
|
|
|
|
|
+ this.isNewCustom = false
|
|
|
|
|
+ }else{
|
|
|
|
|
+ this.isNewCustom = true
|
|
|
|
|
+ }
|
|
|
}).catch(err => {})
|
|
}).catch(err => {})
|
|
|
} else {
|
|
} else {
|
|
|
this.ghsId = this.option.id
|
|
this.ghsId = this.option.id
|
|
@@ -381,9 +378,13 @@ export default {
|
|
|
this.shopId = res.data.shopId
|
|
this.shopId = res.data.shopId
|
|
|
this.visitMall(this.option.id)
|
|
this.visitMall(this.option.id)
|
|
|
this.createShareDiscount()
|
|
this.createShareDiscount()
|
|
|
- uni.setNavigationBarTitle({
|
|
|
|
|
- title: this.ghsInfo.name
|
|
|
|
|
- })
|
|
|
|
|
|
|
+ uni.setNavigationBarTitle({title: this.ghsInfo.name})
|
|
|
|
|
+ //不是新人或者已经下过单的不再显示新人红包
|
|
|
|
|
+ if(res.hasCg > 0 || res.new == 0){
|
|
|
|
|
+ this.isNewCustom = false
|
|
|
|
|
+ }else{
|
|
|
|
|
+ this.isNewCustom = true
|
|
|
|
|
+ }
|
|
|
}).catch(err => {})
|
|
}).catch(err => {})
|
|
|
}
|
|
}
|
|
|
|
|
|
|
@@ -787,6 +788,4 @@ export default {
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
-</style>
|
|
|
|
|
|
|
+</style>
|