|
@@ -1,26 +1,29 @@
|
|
|
<template>
|
|
<template>
|
|
|
<view class="container">
|
|
<view class="container">
|
|
|
- <view class="content" :style="isShiMing ? 'padding-top:30rpx;' : ''">
|
|
|
|
|
|
|
+ <view
|
|
|
|
|
+ class="content"
|
|
|
|
|
+ :style="userinfo.is_authentication == 1 ? 'padding-top:30rpx;' : ''"
|
|
|
|
|
+ >
|
|
|
<!-- 用户信息 -->
|
|
<!-- 用户信息 -->
|
|
|
<view class="uerInfo mar_t16 flex_r">
|
|
<view class="uerInfo mar_t16 flex_r">
|
|
|
<view class="user_img">
|
|
<view class="user_img">
|
|
|
<image
|
|
<image
|
|
|
class="image"
|
|
class="image"
|
|
|
:src="
|
|
:src="
|
|
|
- userInfo && userInfo.headimgurl != ''
|
|
|
|
|
- ? userInfo.headimgurl
|
|
|
|
|
|
|
+ userinfo && userinfo.head_pic != ''
|
|
|
|
|
+ ? userinfo.head_pic
|
|
|
: 'https://tea.soowin.com/mnt/image/m_avar.jpg'
|
|
: 'https://tea.soowin.com/mnt/image/m_avar.jpg'
|
|
|
"
|
|
"
|
|
|
mode=""
|
|
mode=""
|
|
|
></image>
|
|
></image>
|
|
|
<view
|
|
<view
|
|
|
class="coupon_info flex_r flex_ac"
|
|
class="coupon_info flex_r flex_ac"
|
|
|
- v-if="!isShiMing"
|
|
|
|
|
|
|
+ v-if="isShiMing"
|
|
|
@tap="goToAutonym"
|
|
@tap="goToAutonym"
|
|
|
>
|
|
>
|
|
|
完成实名认证,享受更多权益
|
|
完成实名认证,享受更多权益
|
|
|
<image
|
|
<image
|
|
|
- src="/static/f_close.png"
|
|
|
|
|
|
|
+ src="/static/my/f_close.png"
|
|
|
mode="widthFix"
|
|
mode="widthFix"
|
|
|
class="close_icon"
|
|
class="close_icon"
|
|
|
@tap.stop="closeAuto"
|
|
@tap.stop="closeAuto"
|
|
@@ -28,12 +31,14 @@
|
|
|
<view class="sj_icon"></view>
|
|
<view class="sj_icon"></view>
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
|
- <block v-if="userInfo && userInfo != ''">
|
|
|
|
|
|
|
+ <block v-if="userinfo && userinfo != ''">
|
|
|
<view class="user_con flex_c">
|
|
<view class="user_con flex_c">
|
|
|
<view class="user_name flex_r flex_ae ellipsis"
|
|
<view class="user_name flex_r flex_ae ellipsis"
|
|
|
- >{{ userInfo.weiXinNiceName
|
|
|
|
|
|
|
+ >{{ userinfo.nickname
|
|
|
}}<text
|
|
}}<text
|
|
|
- >({{ userInfo.identifyFlag == 0 ? "未实名" : "已实名" }})</text
|
|
|
|
|
|
|
+ >({{
|
|
|
|
|
+ userinfo.is_authentication == 0 ? "未实名" : "已实名"
|
|
|
|
|
+ }})</text
|
|
|
></view
|
|
></view
|
|
|
>
|
|
>
|
|
|
<view class="flex_r flex_ac">
|
|
<view class="flex_r flex_ac">
|
|
@@ -42,15 +47,15 @@
|
|
|
class="level_img"
|
|
class="level_img"
|
|
|
src="/static/my/huangguan.png"
|
|
src="/static/my/huangguan.png"
|
|
|
mode=""
|
|
mode=""
|
|
|
- ></image>
|
|
|
|
|
- <view class="level_text">{{ userInfo.leve }}</view>
|
|
|
|
|
|
|
+ ></image>
|
|
|
|
|
+ <view class="level_text">{{ userinfo.level_name }}</view>
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
|
<view class="user_account flex_r flex_ac mar_t10">
|
|
<view class="user_account flex_r flex_ac mar_t10">
|
|
|
- <view class="account">账号:{{ userInfo.userAccount }}</view>
|
|
|
|
|
|
|
+ <view class="account">账号:{{ userinfo.mobile }}</view>
|
|
|
<view
|
|
<view
|
|
|
class="copy_account flex_r flex_ac flex_jc"
|
|
class="copy_account flex_r flex_ac flex_jc"
|
|
|
- @tap="copyText(userInfo.userAccount)"
|
|
|
|
|
|
|
+ @tap="copyText(userinfo.mobile)"
|
|
|
>复制</view
|
|
>复制</view
|
|
|
>
|
|
>
|
|
|
</view>
|
|
</view>
|
|
@@ -82,7 +87,7 @@
|
|
|
<view class="acc_info">
|
|
<view class="acc_info">
|
|
|
<view class="acc_head flex_r flex_ac flex_jb">
|
|
<view class="acc_head flex_r flex_ac flex_jb">
|
|
|
<view class="acc_price"
|
|
<view class="acc_price"
|
|
|
- >账号余额¥<text>{{ userInfoAccount.commission }}</text></view
|
|
|
|
|
|
|
+ >账号余额¥<text>{{ userinfo.user_money }}</text></view
|
|
|
>
|
|
>
|
|
|
<view class="C flex_r flex_ac">
|
|
<view class="C flex_r flex_ac">
|
|
|
<navigator
|
|
<navigator
|
|
@@ -99,11 +104,11 @@
|
|
|
<view class="info_con flex_r flex_jb">
|
|
<view class="info_con flex_r flex_jb">
|
|
|
<view class="info_list flex_c flex_jb">
|
|
<view class="info_list flex_c flex_jb">
|
|
|
<view class="list_name">昨日收益(元)</view>
|
|
<view class="list_name">昨日收益(元)</view>
|
|
|
- <view class="list_text">{{ userInfoAccount.yesterdayProfit }}</view>
|
|
|
|
|
|
|
+ <view class="list_text">{{ userinfo.yesterdayProfit || 0 }}</view>
|
|
|
</view>
|
|
</view>
|
|
|
<view class="info_list flex_c flex_jb" @tap="getToAccMoney">
|
|
<view class="info_list flex_c flex_jb" @tap="getToAccMoney">
|
|
|
- <view class="list_name">拼团金</view>
|
|
|
|
|
- <view class="list_text">{{ userInfoAccount.accountMoney }}</view>
|
|
|
|
|
|
|
+ <view class="list_name">积分</view>
|
|
|
|
|
+ <view class="list_text">{{ userinfo.integral || 0 }}</view>
|
|
|
</view>
|
|
</view>
|
|
|
<!-- <view class="info_list flex_c flex_jb" @tap="getToBean">
|
|
<!-- <view class="info_list flex_c flex_jb" @tap="getToBean">
|
|
|
<view class="list_name">拼豆</view>
|
|
<view class="list_name">拼豆</view>
|
|
@@ -111,7 +116,7 @@
|
|
|
</view> -->
|
|
</view> -->
|
|
|
<view class="info_list flex_c flex_jb" @tap="getToTeaList">
|
|
<view class="info_list flex_c flex_jb" @tap="getToTeaList">
|
|
|
<view class="list_name">茶友(人)</view>
|
|
<view class="list_name">茶友(人)</view>
|
|
|
- <view class="list_text">{{ userInfoAccount.teaFriends }}</view>
|
|
|
|
|
|
|
+ <view class="list_text">{{ userinfo.friends || 0 }}</view>
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
|
<view class="acc_hint mar_t50" @tap="SetHint"
|
|
<view class="acc_hint mar_t50" @tap="SetHint"
|
|
@@ -403,7 +408,7 @@ export default {
|
|
|
isShiMing: true,
|
|
isShiMing: true,
|
|
|
agentName: "", // 缘起
|
|
agentName: "", // 缘起
|
|
|
user_id: undefined,
|
|
user_id: undefined,
|
|
|
- userinfo:undefined, // 获取用户信息
|
|
|
|
|
|
|
+ userinfo: undefined, // 获取用户信息
|
|
|
};
|
|
};
|
|
|
},
|
|
},
|
|
|
onLoad: function (options) {
|
|
onLoad: function (options) {
|
|
@@ -421,28 +426,28 @@ export default {
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
onShow: function () {
|
|
onShow: function () {
|
|
|
- this.userinfo = uni.getStorageSync("userinfo")
|
|
|
|
|
- let token = uni.getStorageSync('token');
|
|
|
|
|
|
|
+ this.userinfo = uni.getStorageSync("userinfo");
|
|
|
|
|
+ let token = uni.getStorageSync("token");
|
|
|
if (!token) {
|
|
if (!token) {
|
|
|
this.login();
|
|
this.login();
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
methods: {
|
|
methods: {
|
|
|
- login(){
|
|
|
|
|
|
|
+ login() {
|
|
|
// #ifdef MP-WEIXIN
|
|
// #ifdef MP-WEIXIN
|
|
|
wx.login({
|
|
wx.login({
|
|
|
- success (res) {
|
|
|
|
|
|
|
+ success(res) {
|
|
|
if (res.code) {
|
|
if (res.code) {
|
|
|
- post("appletLogin",{ code: res.code }).then(res => {
|
|
|
|
|
|
|
+ post("appletLogin", { code: res.code }).then((res) => {
|
|
|
console.log(res);
|
|
console.log(res);
|
|
|
- })
|
|
|
|
|
|
|
+ });
|
|
|
}
|
|
}
|
|
|
- }
|
|
|
|
|
- })
|
|
|
|
|
|
|
+ },
|
|
|
|
|
+ });
|
|
|
// #endif
|
|
// #endif
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
// #ifdef H5 || APP-PLUS
|
|
// #ifdef H5 || APP-PLUS
|
|
|
- this.goto("/pages/my/login")
|
|
|
|
|
|
|
+ this.goto("/pages/my/login");
|
|
|
// #endif
|
|
// #endif
|
|
|
},
|
|
},
|
|
|
|
|
|
|
@@ -472,27 +477,14 @@ export default {
|
|
|
},
|
|
},
|
|
|
// 跳转到实名页面
|
|
// 跳转到实名页面
|
|
|
goToAutonym() {
|
|
goToAutonym() {
|
|
|
- let that = this;
|
|
|
|
|
- const info = reqApi.identifyUserPayment();
|
|
|
|
|
- if (info) {
|
|
|
|
|
- info.then((res) => {
|
|
|
|
|
- if (res.data.status == 200) {
|
|
|
|
|
- uni.navigateTo({
|
|
|
|
|
- url: "/pages/autonym-submit/index",
|
|
|
|
|
- });
|
|
|
|
|
- } else if (res.data.status == 999) {
|
|
|
|
|
- uni.navigateTo({
|
|
|
|
|
- url: "/pages/autonym-pay/index",
|
|
|
|
|
- });
|
|
|
|
|
- } else {
|
|
|
|
|
- appEv.errTip(res.data.msg);
|
|
|
|
|
- }
|
|
|
|
|
- });
|
|
|
|
|
- }
|
|
|
|
|
|
|
+ console.log("qqqqqqqqq");
|
|
|
|
|
+ uni.navigateTo({
|
|
|
|
|
+ url: "/pages/autoym-submit/index",
|
|
|
|
|
+ });
|
|
|
},
|
|
},
|
|
|
// 关闭实名信息
|
|
// 关闭实名信息
|
|
|
- closeAuto: function () {
|
|
|
|
|
- this.isShiMing = true;
|
|
|
|
|
|
|
+ closeAuto() {
|
|
|
|
|
+ this.isShiMing = false;
|
|
|
},
|
|
},
|
|
|
// 未开放提示信息
|
|
// 未开放提示信息
|
|
|
SetHint: function () {
|
|
SetHint: function () {
|
|
@@ -500,71 +492,71 @@ export default {
|
|
|
},
|
|
},
|
|
|
|
|
|
|
|
//是否实名
|
|
//是否实名
|
|
|
- async isrealName(){
|
|
|
|
|
|
|
+ async isrealName() {
|
|
|
let n = await u_post("ShuZiTeaYW/userInfo/realName");
|
|
let n = await u_post("ShuZiTeaYW/userInfo/realName");
|
|
|
- return n.status == 200
|
|
|
|
|
|
|
+ return n.status == 200;
|
|
|
},
|
|
},
|
|
|
// 跳转到分享页面
|
|
// 跳转到分享页面
|
|
|
getImgPage: function () {
|
|
getImgPage: function () {
|
|
|
let that = this;
|
|
let that = this;
|
|
|
- if(this.isrealName()){
|
|
|
|
|
- uni.navigateTo({
|
|
|
|
|
- url: "/pages/invi-img/index",
|
|
|
|
|
- });
|
|
|
|
|
- } else {
|
|
|
|
|
- appEv.errTips("您还未实名");
|
|
|
|
|
- const infor = reqApi.identifyUserPayment();
|
|
|
|
|
- if (infor) {
|
|
|
|
|
- infor.then((rea) => {
|
|
|
|
|
- if (rea.data.status == 200) {
|
|
|
|
|
- uni.navigateTo({
|
|
|
|
|
- url: "/pages/autonym-submit/index",
|
|
|
|
|
- });
|
|
|
|
|
- } else if (rea.data.status == 999) {
|
|
|
|
|
- uni.navigateTo({
|
|
|
|
|
- url: "/pages/autonym-pay/index",
|
|
|
|
|
- });
|
|
|
|
|
- } else {
|
|
|
|
|
- appEv.errTip(rea.data.msg);
|
|
|
|
|
- }
|
|
|
|
|
|
|
+ if (this.isrealName()) {
|
|
|
|
|
+ uni.navigateTo({
|
|
|
|
|
+ url: "/pages/invi-img/index",
|
|
|
|
|
+ });
|
|
|
|
|
+ } else {
|
|
|
|
|
+ appEv.errTips("您还未实名");
|
|
|
|
|
+ const infor = reqApi.identifyUserPayment();
|
|
|
|
|
+ if (infor) {
|
|
|
|
|
+ infor.then((rea) => {
|
|
|
|
|
+ if (rea.data.status == 200) {
|
|
|
|
|
+ uni.navigateTo({
|
|
|
|
|
+ url: "/pages/autonym-submit/index",
|
|
|
|
|
+ });
|
|
|
|
|
+ } else if (rea.data.status == 999) {
|
|
|
|
|
+ uni.navigateTo({
|
|
|
|
|
+ url: "/pages/autonym-pay/index",
|
|
|
});
|
|
});
|
|
|
|
|
+ } else {
|
|
|
|
|
+ appEv.errTip(rea.data.msg);
|
|
|
}
|
|
}
|
|
|
- }
|
|
|
|
|
|
|
+ });
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
},
|
|
},
|
|
|
// 跳转到提现页面
|
|
// 跳转到提现页面
|
|
|
getToCash: function () {
|
|
getToCash: function () {
|
|
|
let that = this;
|
|
let that = this;
|
|
|
- if(this.isrealName()){
|
|
|
|
|
- uni.navigateTo({
|
|
|
|
|
- url: "/pages/cash/index",
|
|
|
|
|
- });
|
|
|
|
|
- } else {
|
|
|
|
|
- appEv.errTips("您还未实名");
|
|
|
|
|
- const infor = reqApi.identifyUserPayment();
|
|
|
|
|
- if (infor) {
|
|
|
|
|
- infor.then((rea) => {
|
|
|
|
|
- if (rea.data.status == 200) {
|
|
|
|
|
- uni.navigateTo({
|
|
|
|
|
- url: "/pages/autonym-submit/index",
|
|
|
|
|
- });
|
|
|
|
|
- } else if (rea.data.status == 999) {
|
|
|
|
|
- uni.navigateTo({
|
|
|
|
|
- url: "/pages/autonym-pay/index",
|
|
|
|
|
- });
|
|
|
|
|
- } else {
|
|
|
|
|
- appEv.errTip(rea.data.msg);
|
|
|
|
|
- }
|
|
|
|
|
|
|
+ if (this.isrealName()) {
|
|
|
|
|
+ uni.navigateTo({
|
|
|
|
|
+ url: "/pages/cash/index",
|
|
|
|
|
+ });
|
|
|
|
|
+ } else {
|
|
|
|
|
+ appEv.errTips("您还未实名");
|
|
|
|
|
+ const infor = reqApi.identifyUserPayment();
|
|
|
|
|
+ if (infor) {
|
|
|
|
|
+ infor.then((rea) => {
|
|
|
|
|
+ if (rea.data.status == 200) {
|
|
|
|
|
+ uni.navigateTo({
|
|
|
|
|
+ url: "/pages/autonym-submit/index",
|
|
|
});
|
|
});
|
|
|
|
|
+ } else if (rea.data.status == 999) {
|
|
|
|
|
+ uni.navigateTo({
|
|
|
|
|
+ url: "/pages/autonym-pay/index",
|
|
|
|
|
+ });
|
|
|
|
|
+ } else {
|
|
|
|
|
+ appEv.errTip(rea.data.msg);
|
|
|
}
|
|
}
|
|
|
- }
|
|
|
|
|
|
|
+ });
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
},
|
|
},
|
|
|
// 复制账号
|
|
// 复制账号
|
|
|
copyText(e) {
|
|
copyText(e) {
|
|
|
- uniCopy({
|
|
|
|
|
- content: e,
|
|
|
|
|
- success: (res) => {},
|
|
|
|
|
- error: (e) => {},
|
|
|
|
|
- });
|
|
|
|
|
|
|
+ uniCopy({
|
|
|
|
|
+ content: e,
|
|
|
|
|
+ success: (res) => {},
|
|
|
|
|
+ error: (e) => {},
|
|
|
|
|
+ });
|
|
|
},
|
|
},
|
|
|
// 跳转到用户设置页面
|
|
// 跳转到用户设置页面
|
|
|
getToSetting: function () {
|
|
getToSetting: function () {
|