|
@@ -8,14 +8,10 @@
|
|
|
</div>
|
|
</div>
|
|
|
<div class="button-wrap">
|
|
<div class="button-wrap">
|
|
|
<!-- #ifdef H5 -->
|
|
<!-- #ifdef H5 -->
|
|
|
- <button class="button-com" @click="showPopup">申请会员</button>
|
|
|
|
|
|
|
+ <button class="button-com">申请会员</button>
|
|
|
<!-- #endif -->
|
|
<!-- #endif -->
|
|
|
<!-- #ifdef MP-WEIXIN -->
|
|
<!-- #ifdef MP-WEIXIN -->
|
|
|
- <button
|
|
|
|
|
- class="button-com mini-btn"
|
|
|
|
|
- open-type="getUserInfo"
|
|
|
|
|
- @getuserinfo="getWxAvatar"
|
|
|
|
|
- >申请会员</button>
|
|
|
|
|
|
|
+ <button class="button-com mini-btn">申请会员</button>
|
|
|
<!-- #endif -->
|
|
<!-- #endif -->
|
|
|
</div>
|
|
</div>
|
|
|
</template>
|
|
</template>
|
|
@@ -29,7 +25,7 @@
|
|
|
<div class="user-level-img">
|
|
<div class="user-level-img">
|
|
|
<block v-if="!$util.isEmpty(shopUser)">
|
|
<block v-if="!$util.isEmpty(shopUser)">
|
|
|
<appVipModule
|
|
<appVipModule
|
|
|
- v-if="shopUser.member > 0"
|
|
|
|
|
|
|
+ v-if="shopUser.member > 0 && mobile != '' && subscribe == 1"
|
|
|
class="level-img"
|
|
class="level-img"
|
|
|
:text="`VIP${shopUser.member}`"
|
|
:text="`VIP${shopUser.member}`"
|
|
|
/>
|
|
/>
|
|
@@ -71,13 +67,7 @@
|
|
|
<div class="my-surplus">{{ shopUser.userAsset.balance || 0.00 }}</div>
|
|
<div class="my-surplus">{{ shopUser.userAsset.balance || 0.00 }}</div>
|
|
|
</div>
|
|
</div>
|
|
|
<div class="surplus-right">
|
|
<div class="surplus-right">
|
|
|
- <button
|
|
|
|
|
- class="button-com"
|
|
|
|
|
- v-if="shopUser.subscribe == 0 || !shopUser.mobile"
|
|
|
|
|
- @click="showPopup"
|
|
|
|
|
- >申请会员</button>
|
|
|
|
|
- <!-- <button class="button-com" v-if="shopUser.isFull != 1" @click="showPopup">申请会员</button> -->
|
|
|
|
|
- <!-- <button class="button-com mini-btn" open-type="getUserInfo" v-if="loginInfo.isFull != 1" @getuserinfo="getWxAvatar">申请会员</button> -->
|
|
|
|
|
|
|
+ <button class="button-com" v-if="subscribe == 0 || mobile == ''" @click="showPopup">申请会员</button>
|
|
|
<!--<button class="button-com" @click="pageToFn({url: '/pages/pay/index',query: {pageStatus: 'recharge'}})">充值</button>-->
|
|
<!--<button class="button-com" @click="pageToFn({url: '/pages/pay/index',query: {pageStatus: 'recharge'}})">充值</button>-->
|
|
|
<button
|
|
<button
|
|
|
class="button-com red"
|
|
class="button-com red"
|
|
@@ -137,6 +127,8 @@
|
|
|
:info="wxInfo"
|
|
:info="wxInfo"
|
|
|
:merchantInfo="merchantInfo"
|
|
:merchantInfo="merchantInfo"
|
|
|
:isPublic="isPublic"
|
|
:isPublic="isPublic"
|
|
|
|
|
+ :subscribe.sync="subscribe"
|
|
|
|
|
+ :mobile.sync="mobile"
|
|
|
@hide="hidePopup"
|
|
@hide="hidePopup"
|
|
|
/>
|
|
/>
|
|
|
<!-- 登录弹窗 -->
|
|
<!-- 登录弹窗 -->
|
|
@@ -180,9 +172,15 @@ export default {
|
|
|
stepIndex: 0,
|
|
stepIndex: 0,
|
|
|
wxInfo: {},
|
|
wxInfo: {},
|
|
|
loginShow: false,
|
|
loginShow: false,
|
|
|
- merchantInfo: {}
|
|
|
|
|
|
|
+ merchantInfo: {},
|
|
|
|
|
+ mobile: "",
|
|
|
|
|
+ subscribe: 0
|
|
|
};
|
|
};
|
|
|
},
|
|
},
|
|
|
|
|
+ watch: {
|
|
|
|
|
+ mobile(newVal, oldVal) {
|
|
|
|
|
+ }
|
|
|
|
|
+ },
|
|
|
computed: {
|
|
computed: {
|
|
|
...mapGetters({ shopUser: "getShopUser" }),
|
|
...mapGetters({ shopUser: "getShopUser" }),
|
|
|
// #ifdef MP-WEIXIN
|
|
// #ifdef MP-WEIXIN
|
|
@@ -208,10 +206,10 @@ export default {
|
|
|
methods: {
|
|
methods: {
|
|
|
init() {
|
|
init() {
|
|
|
getShopUser().then(res => {
|
|
getShopUser().then(res => {
|
|
|
- console.log("aaaaaaa");
|
|
|
|
|
- console.log(res.mobile, res.subscribe);
|
|
|
|
|
if (this.option.scan == 1) {
|
|
if (this.option.scan == 1) {
|
|
|
//没有注册手机号或关注公众号的
|
|
//没有注册手机号或关注公众号的
|
|
|
|
|
+ this.mobile = res.mobile;
|
|
|
|
|
+ this.subscribe = res.subscribe;
|
|
|
if (this.$util.isEmpty(res.mobile) || res.subscribe == 0) {
|
|
if (this.$util.isEmpty(res.mobile) || res.subscribe == 0) {
|
|
|
this.isPublic = true;
|
|
this.isPublic = true;
|
|
|
this.popupShow = true;
|
|
this.popupShow = true;
|