|
|
@@ -21,7 +21,10 @@
|
|
|
</template>
|
|
|
<template v-else>
|
|
|
<template v-if="mobile != '' && subscribe == 1">
|
|
|
- <appVipModule class="level-img" :vipImgUrl="`${constant.imgUrl}/retail/interest/grade/member.png`" />
|
|
|
+ <appVipModule
|
|
|
+ class="level-img"
|
|
|
+ :vipImgUrl="`${constant.imgUrl}/retail/interest/grade/member.png`"
|
|
|
+ />
|
|
|
</template>
|
|
|
<template v-else>
|
|
|
<div class="nomal-text">普通客户</div>
|
|
|
@@ -113,7 +116,6 @@
|
|
|
</tui-list-cell>
|
|
|
</tui-list-view>
|
|
|
</div>
|
|
|
- <!-- 登录弹窗 -->
|
|
|
<login-popup
|
|
|
:show="popupShow"
|
|
|
:info="wxInfo"
|
|
|
@@ -123,17 +125,13 @@
|
|
|
:mobile.sync="mobile"
|
|
|
@hide="hidePopup"
|
|
|
/>
|
|
|
- <!-- 登录弹窗 -->
|
|
|
<app-trademark />
|
|
|
- <!-- <app-footer :activeIndex="3" /> -->
|
|
|
- <!-- login -->
|
|
|
<go-login :show.sync="loginShow" />
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
import { mapGetters } from "vuex";
|
|
|
-// import AppFooter from '@/components/app-footer'
|
|
|
import TuiListView from "@/components/plugin/list-view";
|
|
|
import TuiListCell from "@/components/plugin/list-cell";
|
|
|
import LoginPopup from "@/pages/home/components/login-popup";
|
|
|
@@ -141,14 +139,11 @@ import AppTrademark from "@/components/module/app-trademark";
|
|
|
import GoLogin from "@/pages/home/components/go-login.vue";
|
|
|
import AppVipModule from "@/components/module/app-vip";
|
|
|
import { getMiniAppUrl, isWxBrowser } from "@/utils/common";
|
|
|
-// api
|
|
|
import { getMerchantInfo } from "@/api/common";
|
|
|
import { getShopUser } from "@/utils/auth";
|
|
|
-// import { getWxInfo, getWxPhone } from '@/api/mini'
|
|
|
export default {
|
|
|
name: "user",
|
|
|
components: {
|
|
|
- // AppFooter
|
|
|
TuiListView,
|
|
|
TuiListCell,
|
|
|
LoginPopup,
|
|
|
@@ -211,7 +206,6 @@ export default {
|
|
|
this.merchantInfo = res.data;
|
|
|
});
|
|
|
},
|
|
|
- // pageTo
|
|
|
pageToFn(item) {
|
|
|
if (this.$util.isLogin()) {
|
|
|
this.$util.pageTo(item);
|
|
|
@@ -220,13 +214,8 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
showPopup() {
|
|
|
- // this.popupShow = true
|
|
|
// #ifdef H5
|
|
|
this.pageTo("/pages/user/register");
|
|
|
- // if (isWxBrowser()) {
|
|
|
- // location.href = `${this.$constant.hostUrl}/auth/prepare?url=${encodeURIComponent(getMiniAppUrl(this.option, true))}`
|
|
|
- // }
|
|
|
- // this.$util.getCheckLogin()
|
|
|
// #endif
|
|
|
// #ifdef MP-WEIXIN
|
|
|
this.popupShow = true;
|
|
|
@@ -239,7 +228,6 @@ export default {
|
|
|
return false;
|
|
|
uni.clearStorageSync();
|
|
|
// #ifdef H5
|
|
|
- // location.reload()
|
|
|
this.$util.pageTo({
|
|
|
url: "/pages/home/index",
|
|
|
type: 4
|
|
|
@@ -252,24 +240,6 @@ export default {
|
|
|
});
|
|
|
// #endif
|
|
|
}
|
|
|
- // 获取微信信息
|
|
|
- // getWxAvatar() {
|
|
|
- // uni.getUserInfo({
|
|
|
- // provider: 'weixin',
|
|
|
- // success: res => {
|
|
|
- // console.log('res', res)
|
|
|
- // // this.popupShow = true
|
|
|
- // getWxInfo({ iv: res.iv, encryptedData: res.encryptedData }).then(subRes => {
|
|
|
- // console.log('用户信息', subRes)
|
|
|
- // this.wxInfo = subRes.data
|
|
|
- // this.popupShow = true
|
|
|
- // })
|
|
|
- // },
|
|
|
- // fail: () => {
|
|
|
- // // this.loading = false
|
|
|
- // }
|
|
|
- // })
|
|
|
- // }
|
|
|
}
|
|
|
};
|
|
|
</script>
|