|
@@ -40,9 +40,9 @@
|
|
|
<view class="user_level flex_r mar_t10">
|
|
<view class="user_level flex_r mar_t10">
|
|
|
<image
|
|
<image
|
|
|
class="level_img"
|
|
class="level_img"
|
|
|
- src="/static/huangguan.png"
|
|
|
|
|
|
|
+ src="/static/my/huangguan.png"
|
|
|
mode=""
|
|
mode=""
|
|
|
- ></image>
|
|
|
|
|
|
|
+ ></image>
|
|
|
<view class="level_text">{{ userInfo.leve }}</view>
|
|
<view class="level_text">{{ userInfo.leve }}</view>
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
@@ -131,7 +131,11 @@
|
|
|
url="/pages/top-up/index"
|
|
url="/pages/top-up/index"
|
|
|
hover-class="none"
|
|
hover-class="none"
|
|
|
>
|
|
>
|
|
|
- <image class="fun_img" src="/static/my/recharge.png" mode=""></image>
|
|
|
|
|
|
|
+ <image
|
|
|
|
|
+ class="fun_img"
|
|
|
|
|
+ src="/static/my/recharge.png"
|
|
|
|
|
+ mode=""
|
|
|
|
|
+ ></image>
|
|
|
<view class="fun_text">充值</view>
|
|
<view class="fun_text">充值</view>
|
|
|
</navigator>
|
|
</navigator>
|
|
|
<navigator
|
|
<navigator
|
|
@@ -180,7 +184,11 @@
|
|
|
url="/pages/group-list/index"
|
|
url="/pages/group-list/index"
|
|
|
hover-class="none"
|
|
hover-class="none"
|
|
|
>
|
|
>
|
|
|
- <image class="fun_img" src="/static/my/my_pintuan.png" mode=""></image>
|
|
|
|
|
|
|
+ <image
|
|
|
|
|
+ class="fun_img"
|
|
|
|
|
+ src="/static/my/my_pintuan.png"
|
|
|
|
|
+ mode=""
|
|
|
|
|
+ ></image>
|
|
|
<view class="fun_text">发起拼团</view>
|
|
<view class="fun_text">发起拼团</view>
|
|
|
</navigator>
|
|
</navigator>
|
|
|
<navigator
|
|
<navigator
|
|
@@ -225,7 +233,11 @@
|
|
|
url="/pages/withdraw-list/index"
|
|
url="/pages/withdraw-list/index"
|
|
|
hover-class="none"
|
|
hover-class="none"
|
|
|
>
|
|
>
|
|
|
- <image class="fun_img" src="/static/my/withdraw.png" mode=""></image>
|
|
|
|
|
|
|
+ <image
|
|
|
|
|
+ class="fun_img"
|
|
|
|
|
+ src="/static/my/withdraw.png"
|
|
|
|
|
+ mode=""
|
|
|
|
|
+ ></image>
|
|
|
<view class="fun_text">提现明细</view>
|
|
<view class="fun_text">提现明细</view>
|
|
|
</navigator>
|
|
</navigator>
|
|
|
<navigator
|
|
<navigator
|
|
@@ -241,7 +253,11 @@
|
|
|
url="/pages/sign-list/index"
|
|
url="/pages/sign-list/index"
|
|
|
hover-class="none"
|
|
hover-class="none"
|
|
|
>
|
|
>
|
|
|
- <image class="fun_img" src="/static/my/inte-list.png" mode=""></image>
|
|
|
|
|
|
|
+ <image
|
|
|
|
|
+ class="fun_img"
|
|
|
|
|
+ src="/static/my/inte-list.png"
|
|
|
|
|
+ mode=""
|
|
|
|
|
+ ></image>
|
|
|
<view class="fun_text">积分明细</view>
|
|
<view class="fun_text">积分明细</view>
|
|
|
</navigator>
|
|
</navigator>
|
|
|
</view>
|
|
</view>
|
|
@@ -287,7 +303,11 @@
|
|
|
url="/pages/szw-order-list/index?status=5"
|
|
url="/pages/szw-order-list/index?status=5"
|
|
|
hover-class="none"
|
|
hover-class="none"
|
|
|
>
|
|
>
|
|
|
- <image class="fun_img" src="/static/my/evaluate.png" mode=""></image>
|
|
|
|
|
|
|
+ <image
|
|
|
|
|
+ class="fun_img"
|
|
|
|
|
+ src="/static/my/evaluate.png"
|
|
|
|
|
+ mode=""
|
|
|
|
|
+ ></image>
|
|
|
<view class="fun_text">待评价</view>
|
|
<view class="fun_text">待评价</view>
|
|
|
</navigator>
|
|
</navigator>
|
|
|
<navigator
|
|
<navigator
|
|
@@ -316,7 +336,11 @@
|
|
|
url="/pages/notice/index"
|
|
url="/pages/notice/index"
|
|
|
hover-class="none"
|
|
hover-class="none"
|
|
|
>
|
|
>
|
|
|
- <image class="fun_img" src="/static/my/feedback.png" mode=""></image>
|
|
|
|
|
|
|
+ <image
|
|
|
|
|
+ class="fun_img"
|
|
|
|
|
+ src="/static/my/feedback.png"
|
|
|
|
|
+ mode=""
|
|
|
|
|
+ ></image>
|
|
|
<view class="fun_text">用户须知</view>
|
|
<view class="fun_text">用户须知</view>
|
|
|
</navigator>
|
|
</navigator>
|
|
|
<navigator
|
|
<navigator
|
|
@@ -332,7 +356,11 @@
|
|
|
open-type="contact"
|
|
open-type="contact"
|
|
|
style="background: #fff; border: 0; line-height: 1; padding: 0"
|
|
style="background: #fff; border: 0; line-height: 1; padding: 0"
|
|
|
>
|
|
>
|
|
|
- <image class="fun_img" src="/static/my/service.png" mode=""></image>
|
|
|
|
|
|
|
+ <image
|
|
|
|
|
+ class="fun_img"
|
|
|
|
|
+ src="/static/my/service.png"
|
|
|
|
|
+ mode=""
|
|
|
|
|
+ ></image>
|
|
|
<view class="fun_text">在线客服</view>
|
|
<view class="fun_text">在线客服</view>
|
|
|
</button>
|
|
</button>
|
|
|
</view>
|
|
</view>
|
|
@@ -360,8 +388,8 @@ let app = getApp();
|
|
|
var appEv = app.$vm.$options;
|
|
var appEv = app.$vm.$options;
|
|
|
// import { ReqApi } from "@/utils/reqTools.js";
|
|
// import { ReqApi } from "@/utils/reqTools.js";
|
|
|
import authorizeModule from "@/components/authorize-module/index";
|
|
import authorizeModule from "@/components/authorize-module/index";
|
|
|
-// import uniCopy from "@/js_sdk/xb-copy/uni-copy.js";
|
|
|
|
|
-import { get, post } from "@/request/api.js";
|
|
|
|
|
|
|
+import uniCopy from "../../utils/copy";
|
|
|
|
|
+import { get, post, u_post } from "@/request/api.js";
|
|
|
export default {
|
|
export default {
|
|
|
components: {
|
|
components: {
|
|
|
authorizeModule,
|
|
authorizeModule,
|
|
@@ -375,6 +403,7 @@ export default {
|
|
|
customerServiceWeiXin: "", // 客服微信
|
|
customerServiceWeiXin: "", // 客服微信
|
|
|
isShiMing: true,
|
|
isShiMing: true,
|
|
|
agentName: "", // 缘起
|
|
agentName: "", // 缘起
|
|
|
|
|
+ user_id: undefined,
|
|
|
};
|
|
};
|
|
|
},
|
|
},
|
|
|
onLoad: function (options) {
|
|
onLoad: function (options) {
|
|
@@ -397,13 +426,13 @@ export default {
|
|
|
app.globalData.systemUserInfo && app.globalData.systemUserInfo.userId
|
|
app.globalData.systemUserInfo && app.globalData.systemUserInfo.userId
|
|
|
? app.globalData.systemUserInfo.userId
|
|
? app.globalData.systemUserInfo.userId
|
|
|
: "";
|
|
: "";
|
|
|
|
|
+
|
|
|
if (!userId || userId == "" || userId == undefined) {
|
|
if (!userId || userId == "" || userId == undefined) {
|
|
|
// #ifdef MP-WEIXIN
|
|
// #ifdef MP-WEIXIN
|
|
|
that.showAuth = true;
|
|
that.showAuth = true;
|
|
|
appEv.authorizeUserInfo((res) => {
|
|
appEv.authorizeUserInfo((res) => {
|
|
|
if (res) {
|
|
if (res) {
|
|
|
that.shopInfo = app.globalData.shopInfo;
|
|
that.shopInfo = app.globalData.shopInfo;
|
|
|
-
|
|
|
|
|
that.showAuth = false;
|
|
that.showAuth = false;
|
|
|
that.loadData();
|
|
that.loadData();
|
|
|
}
|
|
}
|
|
@@ -419,24 +448,25 @@ export default {
|
|
|
});
|
|
});
|
|
|
// #endif
|
|
// #endif
|
|
|
} else {
|
|
} else {
|
|
|
|
|
+ console.log(userId, "我是获取到的ID");
|
|
|
|
|
+ this.user_id = userId;
|
|
|
this.loadData();
|
|
this.loadData();
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
methods: {
|
|
methods: {
|
|
|
// 获取用户信息
|
|
// 获取用户信息
|
|
|
- loadData: function () {
|
|
|
|
|
- let that = this;
|
|
|
|
|
- const info = reqApi.getMyIndex();
|
|
|
|
|
- if (info) {
|
|
|
|
|
- info.then((res) => {
|
|
|
|
|
- if (res.data.status == 200) {
|
|
|
|
|
- that.userInfo = res.data.userInfo;
|
|
|
|
|
- that.userInfoAccount = res.data.userInfoAccount;
|
|
|
|
|
- that.customerServiceWeiXin = res.data.customerServiceWeiXin;
|
|
|
|
|
- that.isShiMing = res.data.userInfo.identifyFlag == 0 ? false : true;
|
|
|
|
|
- }
|
|
|
|
|
- });
|
|
|
|
|
- }
|
|
|
|
|
|
|
+ loadData() {
|
|
|
|
|
+ u_post("ShuZiTeaYW/my/index", {
|
|
|
|
|
+ userId: this.user_id,
|
|
|
|
|
+ }).then((res) => {
|
|
|
|
|
+ if (res.status == 200) {
|
|
|
|
|
+ this.userInfo = res.userInfo;
|
|
|
|
|
+ this.userInfoAccount = res.userInfoAccount;
|
|
|
|
|
+ this.customerServiceWeiXin = res.customerServiceWeiXin;
|
|
|
|
|
+ this.isShiMing = res.userInfo.identifyFlag == 0 ? false : true;
|
|
|
|
|
+ // this.BannerImg = res.list;
|
|
|
|
|
+ }
|
|
|
|
|
+ });
|
|
|
},
|
|
},
|
|
|
//授权并登录
|
|
//授权并登录
|
|
|
onAuthSuccess: function () {
|
|
onAuthSuccess: function () {
|
|
@@ -449,7 +479,7 @@ export default {
|
|
|
});
|
|
});
|
|
|
},
|
|
},
|
|
|
// 跳转到实名页面
|
|
// 跳转到实名页面
|
|
|
- goToAutonym: function () {
|
|
|
|
|
|
|
+ goToAutonym() {
|
|
|
let that = this;
|
|
let that = this;
|
|
|
const info = reqApi.identifyUserPayment();
|
|
const info = reqApi.identifyUserPayment();
|
|
|
if (info) {
|
|
if (info) {
|
|
@@ -542,12 +572,12 @@ export default {
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
// 复制账号
|
|
// 复制账号
|
|
|
- copyText: function (e) {
|
|
|
|
|
- // uniCopy({
|
|
|
|
|
- // content: e,
|
|
|
|
|
- // success: (res) => {},
|
|
|
|
|
- // error: (e) => {},
|
|
|
|
|
- // });
|
|
|
|
|
|
|
+ copyText(e) {
|
|
|
|
|
+ uniCopy({
|
|
|
|
|
+ content: e,
|
|
|
|
|
+ success: (res) => {},
|
|
|
|
|
+ error: (e) => {},
|
|
|
|
|
+ });
|
|
|
},
|
|
},
|
|
|
// 跳转到用户设置页面
|
|
// 跳转到用户设置页面
|
|
|
getToSetting: function () {
|
|
getToSetting: function () {
|