|
@@ -4,7 +4,8 @@
|
|
|
<!-- 用户信息 -->
|
|
<!-- 用户信息 -->
|
|
|
<view class="uerInfo mar_t16 flex_r">
|
|
<view class="uerInfo mar_t16 flex_r">
|
|
|
<view class="user_img">
|
|
<view class="user_img">
|
|
|
- <image @click="upheadimg" class="image" :src="userinfo.head_pic"></image>
|
|
|
|
|
|
|
+ <image v-if="!userinfo.head_pic" class="image" src="@/static/my/head.png" @click="login"></image>
|
|
|
|
|
+ <image v-else @click="upheadimg" class="image" :src="userinfo.head_pic"></image>
|
|
|
<view class="coupon_info flex_r flex_ac" @tap="goToAutonym" v-if="isShiMing">
|
|
<view class="coupon_info flex_r flex_ac" @tap="goToAutonym" v-if="isShiMing">
|
|
|
完成实名认证,享受更多权益
|
|
完成实名认证,享受更多权益
|
|
|
<image src="/static/my/f_close.png" mode="widthFix" class="close_icon" @tap.stop="closeAuto" />
|
|
<image src="/static/my/f_close.png" mode="widthFix" class="close_icon" @tap.stop="closeAuto" />
|
|
@@ -26,14 +27,14 @@
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
|
<view class="user_option flex_r flex_ac flex_je">
|
|
<view class="user_option flex_r flex_ac flex_je">
|
|
|
- <navigator class="flex_c flex_ac" @tap="getImgPage" hover-class="none">
|
|
|
|
|
|
|
+ <navigator class="flex_c flex_ac" @tap="getImgPage" hover-class="none" v-if="localInfo.level_id>1">
|
|
|
<image class="fun_img" src="/static/my/f_img_code.png"></image>
|
|
<image class="fun_img" src="/static/my/f_img_code.png"></image>
|
|
|
<view class="fun_text">分享海报</view>
|
|
<view class="fun_text">分享海报</view>
|
|
|
</navigator>
|
|
</navigator>
|
|
|
</view>
|
|
</view>
|
|
|
</block>
|
|
</block>
|
|
|
<block v-else>
|
|
<block v-else>
|
|
|
- <view class="user_con flex_c flex_jb" @click="login">
|
|
|
|
|
|
|
+ <view class="user_con flex_c flex_as flex_jc" @click="login">
|
|
|
<view class="user_name flex_r flex_ae ellipsis">点此处登录</view>
|
|
<view class="user_name flex_r flex_ae ellipsis">点此处登录</view>
|
|
|
</view>
|
|
</view>
|
|
|
</block>
|
|
</block>
|
|
@@ -70,57 +71,28 @@
|
|
|
<view class="fun_title">数智生活</view>
|
|
<view class="fun_title">数智生活</view>
|
|
|
<view class="fun_con mar_t50 flex_r flex_ac">
|
|
<view class="fun_con mar_t50 flex_r flex_ac">
|
|
|
<navigator class="fun_list flex_c flex_ac" url="/pagesB/my/myWallet" hover-class="none">
|
|
<navigator class="fun_list flex_c flex_ac" url="/pagesB/my/myWallet" hover-class="none">
|
|
|
- <image class="fun_img" src="/static/my918/9.png"></image>
|
|
|
|
|
|
|
+ <image class="fun_img" src="/static/my/9.png"></image>
|
|
|
<view class="fun_text">我的财富</view>
|
|
<view class="fun_text">我的财富</view>
|
|
|
</navigator>
|
|
</navigator>
|
|
|
<navigator class="fun_list flex_c flex_ac" url="/pagesB/orderingfood/orderlist" hover-class="none">
|
|
<navigator class="fun_list flex_c flex_ac" url="/pagesB/orderingfood/orderlist" hover-class="none">
|
|
|
- <image class="fun_img" src="/static/my918/10.png"></image>
|
|
|
|
|
|
|
+ <image class="fun_img" src="/static/my/10.png"></image>
|
|
|
<view class="fun_text">历史订单</view>
|
|
<view class="fun_text">历史订单</view>
|
|
|
</navigator>
|
|
</navigator>
|
|
|
<navigator class="fun_list flex_c flex_ac" @click="activation" hover-class="none">
|
|
<navigator class="fun_list flex_c flex_ac" @click="activation" hover-class="none">
|
|
|
- <image class="fun_img" src="/static/my918/11.png"></image>
|
|
|
|
|
|
|
+ <image class="fun_img" src="/static/my/11.png"></image>
|
|
|
<view class="fun_text">激活升级</view>
|
|
<view class="fun_text">激活升级</view>
|
|
|
</navigator>
|
|
</navigator>
|
|
|
<navigator v-if="localInfo.level_id>1" class="fun_list flex_c flex_ac" url="/pagesB/orderingfood/group" hover-class="none">
|
|
<navigator v-if="localInfo.level_id>1" class="fun_list flex_c flex_ac" url="/pagesB/orderingfood/group" hover-class="none">
|
|
|
- <image class="fun_img" src="/static/my918/12.png"></image>
|
|
|
|
|
|
|
+ <image class="fun_img" src="/static/my/12.png"></image>
|
|
|
<view class="fun_text">我的用户</view>
|
|
<view class="fun_text">我的用户</view>
|
|
|
</navigator>
|
|
</navigator>
|
|
|
<navigator class="fun_list flex_c flex_ac" url="/pages/account/giveAsPresent" hover-class="none">
|
|
<navigator class="fun_list flex_c flex_ac" url="/pages/account/giveAsPresent" hover-class="none">
|
|
|
- <image class="fun_img" src="/static/my918/13.png"></image>
|
|
|
|
|
|
|
+ <image class="fun_img" src="/static/my/13.png"></image>
|
|
|
<view class="fun_text">赠送</view>
|
|
<view class="fun_text">赠送</view>
|
|
|
</navigator>
|
|
</navigator>
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
|
<view class="fun mar_t30">
|
|
<view class="fun mar_t30">
|
|
|
- <!-- <view class="fun_title">数智云店</view> -->
|
|
|
|
|
- <!-- <view class="fun_con mar_t50 flex_r flex_ac">
|
|
|
|
|
- <navigator class="fun_list flex_c flex_ac" url="/pages/account/wealth" hover-class="none">
|
|
|
|
|
- <image class="fun_img" src="/static/my/wealth.png"></image>
|
|
|
|
|
- <view class="fun_text">财富</view>
|
|
|
|
|
- </navigator>
|
|
|
|
|
- <navigator class="fun_list flex_c flex_ac" url="/pages/account/consignment" hover-class="none">
|
|
|
|
|
- <image class="fun_img" src="/static/my/consign.png"></image>
|
|
|
|
|
- <view class="fun_text">寄卖</view>
|
|
|
|
|
- </navigator>
|
|
|
|
|
- </view> -->
|
|
|
|
|
- <!-- <view class="fun_con mar_t50 flex_r flex_ac">
|
|
|
|
|
- <navigator class="fun_list flex_c flex_ac" url="/pages/account/conversion" hover-class="none">
|
|
|
|
|
- <image class="fun_img" src="/static/my/10.png"></image>
|
|
|
|
|
- <view class="fun_text">转化</view>
|
|
|
|
|
- </navigator>
|
|
|
|
|
- <navigator class="fun_list flex_c flex_ac" @tap="getToCash" hover-class="none">
|
|
|
|
|
- <image class="fun_img" src="/static/my/13.png"></image>
|
|
|
|
|
- <view class="fun_text">提现</view>
|
|
|
|
|
- </navigator>
|
|
|
|
|
- <navigator class="fun_list flex_c flex_ac" url="/pages/accountDetails/running" hover-class="none">
|
|
|
|
|
- <image class="fun_img" src="/static/my/fund.png"></image>
|
|
|
|
|
- <view class="fun_text">云宝明细</view>
|
|
|
|
|
- </navigator>
|
|
|
|
|
- <navigator class="fun_list flex_c flex_ac" url="/pages/accountDetails/withdraw" hover-class="none">
|
|
|
|
|
- <image class="fun_img" src="/static/my/withdraw.png"></image>
|
|
|
|
|
- <view class="fun_text">提现明细</view>
|
|
|
|
|
- </navigator>
|
|
|
|
|
- </view> -->
|
|
|
|
|
<view class="fun_title flex_r flex_ac flex_jb">
|
|
<view class="fun_title flex_r flex_ac flex_jb">
|
|
|
<view>云店订单</view>
|
|
<view>云店订单</view>
|
|
|
<view class="moarbtn" @click="goto('/pages/szw-order-list/index')">
|
|
<view class="moarbtn" @click="goto('/pages/szw-order-list/index')">
|
|
@@ -226,12 +198,8 @@ export default {
|
|
|
};
|
|
};
|
|
|
},
|
|
},
|
|
|
onLoad(options) {
|
|
onLoad(options) {
|
|
|
- //推荐人ID
|
|
|
|
|
- if (options.invite) {
|
|
|
|
|
- app.globalData.agentId = options.invite;
|
|
|
|
|
- this.invited = options.invite;
|
|
|
|
|
- uni.setStorageSync("inviteCode", options.invite)
|
|
|
|
|
- }
|
|
|
|
|
|
|
+ //推荐人邀请码|受邀码
|
|
|
|
|
+ this.invited = uni.getStorageSync("inviteCode") || "XHCYGNZM"
|
|
|
this.closeAuto(); //关闭实名功能
|
|
this.closeAuto(); //关闭实名功能
|
|
|
},
|
|
},
|
|
|
onShow() {
|
|
onShow() {
|
|
@@ -239,7 +207,6 @@ export default {
|
|
|
else {
|
|
else {
|
|
|
this.getuserInfo();
|
|
this.getuserInfo();
|
|
|
this.getchayou(); //获取茶友
|
|
this.getchayou(); //获取茶友
|
|
|
- this.getLU(); //数智生活信息
|
|
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
methods: {
|
|
methods: {
|
|
@@ -297,7 +264,7 @@ export default {
|
|
|
else this.isShiMing = false;
|
|
else this.isShiMing = false;
|
|
|
this.userinfo = res;
|
|
this.userinfo = res;
|
|
|
} else this.login();
|
|
} else this.login();
|
|
|
- this.getLU(); //数智生活信息
|
|
|
|
|
|
|
+ this.localInfo = await uni.Luserfun()
|
|
|
},
|
|
},
|
|
|
// 跳转到实名页面
|
|
// 跳转到实名页面
|
|
|
goToAutonym() {
|
|
goToAutonym() {
|
|
@@ -379,24 +346,16 @@ export default {
|
|
|
}
|
|
}
|
|
|
});
|
|
});
|
|
|
},
|
|
},
|
|
|
- async getLU() {
|
|
|
|
|
- this.localInfo = await uni.Luserfun()
|
|
|
|
|
- },
|
|
|
|
|
activation() {
|
|
activation() {
|
|
|
this.$refs.activation.open()
|
|
this.$refs.activation.open()
|
|
|
},
|
|
},
|
|
|
typeto(va) {
|
|
typeto(va) {
|
|
|
switch (va) {
|
|
switch (va) {
|
|
|
- case 1:
|
|
|
|
|
- return "VIP";
|
|
|
|
|
- case 2:
|
|
|
|
|
- return "群主";
|
|
|
|
|
- case 3:
|
|
|
|
|
- return "合伙人";
|
|
|
|
|
- case 4:
|
|
|
|
|
- return "联合创始人";
|
|
|
|
|
- case 5:
|
|
|
|
|
- return "联合发起人";
|
|
|
|
|
|
|
+ case 1: return "消费商";
|
|
|
|
|
+ case 2: return "推广大使";
|
|
|
|
|
+ case 3: return "合伙人";
|
|
|
|
|
+ case 4: return "联合创始人";
|
|
|
|
|
+ case 5: return "联合发起人";
|
|
|
default:
|
|
default:
|
|
|
return ""
|
|
return ""
|
|
|
}
|
|
}
|