|
|
|
|
@ -4,9 +4,9 @@
|
|
|
|
|
<!-- 基本信息 -->
|
|
|
|
|
<g-panel-card-info
|
|
|
|
|
:info="{
|
|
|
|
|
avatar: userinfo.avatar,
|
|
|
|
|
title: userinfo.name,
|
|
|
|
|
num: userinfo.tel,
|
|
|
|
|
avatar: userInfo.avatar,
|
|
|
|
|
title: userInfo.name,
|
|
|
|
|
num: userInfo.tel,
|
|
|
|
|
isHaveOrder: isHaveOrder,
|
|
|
|
|
}"
|
|
|
|
|
@clickCard="goPage('/root/person/info')"
|
|
|
|
|
@ -17,7 +17,7 @@
|
|
|
|
|
<view v-if="isHaveOrder" class="g_pt_12 g_pb_12 g_flex_row_between" style="border-bottom: 1px solid #f5f5f5">
|
|
|
|
|
<view class="g_fs_16 g_c_3 g_fw_600 g_flex_none g_pl_16">我的发单账号</view>
|
|
|
|
|
<view class="g_flex_row_end g_flex_1 g_pr_16" hover-class="thover" @click="goPage('/root/person/myOrder')">
|
|
|
|
|
<view class="g_fs_16 g_c_6">{{ userinfo.agencyName }}</view>
|
|
|
|
|
<view class="g_fs_16 g_c_6">{{ userInfo.agencyName }}</view>
|
|
|
|
|
<view class="g_ml_6 g_flex_column_center">
|
|
|
|
|
<i class="iconfont icon-gengduo11 g_c_c"></i>
|
|
|
|
|
</view>
|
|
|
|
|
@ -25,7 +25,7 @@
|
|
|
|
|
</view>
|
|
|
|
|
<view class="g_flex_row_center">
|
|
|
|
|
<view
|
|
|
|
|
v-for="(item, index) in userinfo.num"
|
|
|
|
|
v-for="(item, index) in userInfo.num"
|
|
|
|
|
:key="index"
|
|
|
|
|
@click="handleClickNum(item, index)"
|
|
|
|
|
hover-class="g_bg_e"
|
|
|
|
|
@ -97,20 +97,22 @@
|
|
|
|
|
</view> -->
|
|
|
|
|
</view>
|
|
|
|
|
<i class="iconfont icon-gengduo11 g_c_c"></i>
|
|
|
|
|
<!-- <view class="g_flex_row_end g_fs_16"> {{ userinfo.agencyName }} </view> -->
|
|
|
|
|
<!-- <view class="g_flex_row_end g_fs_16"> {{ userInfo.agencyName }} </view> -->
|
|
|
|
|
</view>
|
|
|
|
|
</view>
|
|
|
|
|
<!-- <g-panel-form-item :list="[{ icon: 'icon-my_setup', label: '创建发单号', result: '', path: '/root/person/order', tip: 'createOrder', pRow: 12 }]" @clickItem="handleClickItem" /> -->
|
|
|
|
|
|
|
|
|
|
<view class="g_mt_10">
|
|
|
|
|
<view class="g_mt_10" v-if="userInfo.admin">
|
|
|
|
|
<g-panel-form-item
|
|
|
|
|
:list="[{
|
|
|
|
|
icon: 'icon-wodetuandui',
|
|
|
|
|
label: '团队管理',
|
|
|
|
|
result: '',
|
|
|
|
|
path: '/root/person/teamManage',
|
|
|
|
|
pRow: 12,
|
|
|
|
|
}]"
|
|
|
|
|
:list="[
|
|
|
|
|
{
|
|
|
|
|
icon: 'icon-wodetuandui',
|
|
|
|
|
label: '团队管理',
|
|
|
|
|
result: '',
|
|
|
|
|
path: '/root/person/teamManage',
|
|
|
|
|
pRow: 12,
|
|
|
|
|
},
|
|
|
|
|
]"
|
|
|
|
|
@clickItem="handleClickItem"
|
|
|
|
|
/>
|
|
|
|
|
</view>
|
|
|
|
|
@ -197,7 +199,7 @@ export default {
|
|
|
|
|
path: "/root/bind/search?active=1",
|
|
|
|
|
},
|
|
|
|
|
],
|
|
|
|
|
userinfo: {
|
|
|
|
|
userInfo: {
|
|
|
|
|
all: {},
|
|
|
|
|
avatar: "",
|
|
|
|
|
name: "请登录",
|
|
|
|
|
@ -252,11 +254,11 @@ export default {
|
|
|
|
|
that.waitNum_ups = 0;
|
|
|
|
|
that.pageSpeed = 1;
|
|
|
|
|
that.isLogin = false;
|
|
|
|
|
that.userinfo.avatar = that.G.store().localBaseImg + "fadanzhushou.png";
|
|
|
|
|
that.userinfo.name = "请登录";
|
|
|
|
|
that.userinfo.tel = "-";
|
|
|
|
|
that.userinfo.agencyName = "";
|
|
|
|
|
that.userinfo.teamType = 0;
|
|
|
|
|
that.userInfo.avatar = that.G.store().localBaseImg + "fadanzhushou.png";
|
|
|
|
|
that.userInfo.name = "请登录";
|
|
|
|
|
that.userInfo.tel = "-";
|
|
|
|
|
that.userInfo.agencyName = "";
|
|
|
|
|
that.userInfo.teamType = 0;
|
|
|
|
|
that.speed = 0;
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
@ -302,7 +304,7 @@ export default {
|
|
|
|
|
pRow: 12,
|
|
|
|
|
},
|
|
|
|
|
];
|
|
|
|
|
if (uni.getStorageSync("apply-supplierAccount") == 1) {
|
|
|
|
|
// if (uni.getStorageSync("apply-supplierAccount") == 1) {
|
|
|
|
|
// 有
|
|
|
|
|
that.isHaveOrder = true;
|
|
|
|
|
if (that.isCreator) {
|
|
|
|
|
@ -326,19 +328,17 @@ export default {
|
|
|
|
|
},
|
|
|
|
|
];
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
// }
|
|
|
|
|
let userInfo = uni.getStorageSync("apply-userinfo");
|
|
|
|
|
that.isLogin = true;
|
|
|
|
|
that.userInfo = { ...userInfo };
|
|
|
|
|
console.log(that.userInfo,'that.userInfo');
|
|
|
|
|
that.userInfo.avatar = uni.getStorageSync("apply-avatar");
|
|
|
|
|
that.userInfo.name = userInfo.userName || userInfo.aliasName;
|
|
|
|
|
that.userInfo.tel = uni.getStorageSync("apply-tel");
|
|
|
|
|
|
|
|
|
|
that.userinfo.agencyName = userInfo.agencyName;
|
|
|
|
|
that.userinfo.user = userInfo.user;
|
|
|
|
|
|
|
|
|
|
that.userinfo.avatar = uni.getStorageSync("apply-avatar");
|
|
|
|
|
that.userinfo.name = userInfo.userName || userInfo.aliasName;
|
|
|
|
|
that.userinfo.tel = uni.getStorageSync("apply-tel");
|
|
|
|
|
|
|
|
|
|
if (that.userinfo.num[0].name == "-") {
|
|
|
|
|
that.userinfo.num = [
|
|
|
|
|
if (that.userInfo.num[0].name == "-") {
|
|
|
|
|
that.userInfo.num = [
|
|
|
|
|
{
|
|
|
|
|
name: "-",
|
|
|
|
|
num: "-",
|
|
|
|
|
@ -346,11 +346,11 @@ export default {
|
|
|
|
|
];
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
that.userinfo.agencyName = userInfo.agencyName;
|
|
|
|
|
that.userinfo.teamType = userInfo.teamType;
|
|
|
|
|
that.getWaitNum();
|
|
|
|
|
that.checkInvite();
|
|
|
|
|
that.getTeamList();
|
|
|
|
|
that.userInfo.agencyName = userInfo.agencyName;
|
|
|
|
|
that.userInfo.teamType = userInfo.teamType;
|
|
|
|
|
// that.getWaitNum();
|
|
|
|
|
// that.checkInvite();
|
|
|
|
|
// that.getTeamList();
|
|
|
|
|
|
|
|
|
|
if (uni.getStorageSync("watch_invite")) {
|
|
|
|
|
if (uni.getStorageSync("watch_invite") == 1) {
|
|
|
|
|
@ -390,16 +390,16 @@ export default {
|
|
|
|
|
type: 2,
|
|
|
|
|
},
|
|
|
|
|
(res) => {
|
|
|
|
|
if (res.total > 0) {
|
|
|
|
|
uni.setTabBarBadge({
|
|
|
|
|
index: 2,
|
|
|
|
|
text: String(res.total),
|
|
|
|
|
});
|
|
|
|
|
} else {
|
|
|
|
|
uni.removeTabBarBadge({
|
|
|
|
|
index: 2,
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
// if (res.total > 0) {
|
|
|
|
|
// uni.setTabBarBadge({
|
|
|
|
|
// index: 2,
|
|
|
|
|
// text: String(res.total),
|
|
|
|
|
// });
|
|
|
|
|
// } else {
|
|
|
|
|
// uni.removeTabBarBadge({
|
|
|
|
|
// index: 2,
|
|
|
|
|
// });
|
|
|
|
|
// }
|
|
|
|
|
that.waitNum_ups = res.total;
|
|
|
|
|
that.getDetail();
|
|
|
|
|
}
|
|
|
|
|
@ -420,7 +420,7 @@ export default {
|
|
|
|
|
that.pageSpeed = 1;
|
|
|
|
|
if (uni.getStorageSync("apply-supplierAccount") == 1) {
|
|
|
|
|
// 有
|
|
|
|
|
that.userinfo.num = [
|
|
|
|
|
that.userInfo.num = [
|
|
|
|
|
{
|
|
|
|
|
name: "全部职位",
|
|
|
|
|
num: res.jobNum,
|
|
|
|
|
@ -442,7 +442,7 @@ export default {
|
|
|
|
|
];
|
|
|
|
|
} else {
|
|
|
|
|
// 无
|
|
|
|
|
that.userinfo.num = [
|
|
|
|
|
that.userInfo.num = [
|
|
|
|
|
{
|
|
|
|
|
name: "关注",
|
|
|
|
|
num: res.upNum,
|
|
|
|
|
@ -521,7 +521,7 @@ export default {
|
|
|
|
|
that.G.Get(that.api.user_getTeamList, {}, (res) => {
|
|
|
|
|
console.log("res", res);
|
|
|
|
|
res.forEach((item) => {
|
|
|
|
|
if (item.id == that.userinfo.user.agencyId) {
|
|
|
|
|
if (item.id == that.userInfo.user.agencyId) {
|
|
|
|
|
item.checked = true;
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
|