Commit acb83a1c authored by 罗超's avatar 罗超

修改分享样式

parent 27c06926
...@@ -9,7 +9,7 @@ export default { ...@@ -9,7 +9,7 @@ export default {
}, },
onLaunch: function () { onLaunch: function () {
console.log('App Launch') console.log('App Launch')
this.$utils.setAttatchParameter() this.$utils.setAttatchParameter(this)
this.init(); this.init();
this.formatPlat(); this.formatPlat();
}, },
...@@ -68,8 +68,8 @@ export default { ...@@ -68,8 +68,8 @@ export default {
createBy: u.pid, createBy: u.pid,
EmLoginMobile: u.moblie, EmLoginMobile: u.moblie,
contactNumber: u.moblie, contactNumber: u.moblie,
salesBaseInfo: u.salesBaseInfo, salesBaseInfo: u.erpBaseInfo?u.erpBaseInfo:u.salesBaseInfo,
pid:u.pid, pid:u.erpBaseInfo?u.erpBaseInfo.employeeId:u.pid,
erpBaseInfo: u.erpBaseInfo, erpBaseInfo: u.erpBaseInfo,
count: 0, count: 0,
customerType: 1, //直客,2-同行 customerType: 1, //直客,2-同行
...@@ -78,7 +78,7 @@ export default { ...@@ -78,7 +78,7 @@ export default {
uni.setStorageSync('b2b_user', user) uni.setStorageSync('b2b_user', user)
this.user = user this.user = user
uni.setStorageSync("lastLogin",new Date().getTime()) uni.setStorageSync("lastLogin",new Date().getTime())
this.$utils.setAttatchParameter() this.$utils.setAttatchParameter(this)
}) })
}, },
init() { init() {
......
...@@ -243,7 +243,7 @@ ...@@ -243,7 +243,7 @@
uni.setStorageSync('b2b_user', user) uni.setStorageSync('b2b_user', user)
this.$emit("changeuserinfo"); this.$emit("changeuserinfo");
uni.setStorageSync("lastLogin",new Date().getTime()) uni.setStorageSync("lastLogin",new Date().getTime())
this.$utils.setAttatchParameter() this.$utils.setAttatchParameter(this)
},e=>{ },e=>{
uni.showToast({ uni.showToast({
title:'用户登录失败', title:'用户登录失败',
......
...@@ -104,8 +104,8 @@ ...@@ -104,8 +104,8 @@
createBy: u.pid, createBy: u.pid,
EmLoginMobile: u.moblie, EmLoginMobile: u.moblie,
contactNumber: u.moblie, contactNumber: u.moblie,
salesBaseInfo: u.salesBaseInfo, salesBaseInfo: u.erpBaseInfo?u.erpBaseInfo:u.salesBaseInfo,
pid:u.pid, pid:u.erpBaseInfo?u.erpBaseInfo.employeeId:u.pid,
erpBaseInfo: u.erpBaseInfo, erpBaseInfo: u.erpBaseInfo,
count: 0, count: 0,
customerType: 1, //直客,2-同行 customerType: 1, //直客,2-同行
...@@ -114,7 +114,7 @@ ...@@ -114,7 +114,7 @@
uni.setStorageSync('b2b_user', user) uni.setStorageSync('b2b_user', user)
this.user = user this.user = user
uni.setStorageSync("lastLogin",new Date().getTime()) uni.setStorageSync("lastLogin",new Date().getTime())
this.$utils.setAttatchParameter() this.$utils.setAttatchParameter(this)
uni.hideLoading() uni.hideLoading()
}) })
}, },
......
...@@ -49,7 +49,13 @@ ...@@ -49,7 +49,13 @@
<u-icon name="pen_" size="24" class="q-ml-sm" custom-prefix="tffont" color="#121212"></u-icon> <u-icon name="pen_" size="24" class="q-ml-sm" custom-prefix="tffont" color="#121212"></u-icon>
</view> </view>
<view style="font-size:12px; margin-top:3px;"> <view style="font-size:12px; margin-top:3px;">
<template v-if="b2b_user_info&&b2b_user_info.customerName&&b2b_user_info.customerName!=''"> <template v-if='b2b_user_info.erpBaseInfo'>
<view class="empolyee-tag row items-center">
<text style="padding: 6rpx;" class="text-center">{{ b2b_user_info.erpBaseInfo.branchName }}</text>
<text class="text-center" style="padding:6rpx;color:#fff;background-color: #B99846;">{{b2b_user_info.erpBaseInfo.emName}}</text>
</view>
</template>
<template v-else-if="b2b_user_info&&b2b_user_info.customerName&&b2b_user_info.customerName!=''">
{{b2b_user_info.customerName}} {{b2b_user_info.customerName}}
</template> </template>
...@@ -948,6 +954,16 @@ ...@@ -948,6 +954,16 @@
align-items: center; align-items: center;
justify-content: space-between; justify-content: space-between;
} }
.empolyee-tag{
border-radius: 7rpx;
background-color: #100000;
font-size: 22rpx;
font-weight: 400;
color: #f1f2f4;
overflow: hidden;
padding: 0;
line-height: 1;
}
.componyStatusBox .renzhen { .componyStatusBox .renzhen {
height: 15px; height: 15px;
......
...@@ -170,14 +170,14 @@ function formatDates(date, fmt) { ...@@ -170,14 +170,14 @@ function formatDates(date, fmt) {
function padLeftZero(str) { function padLeftZero(str) {
return ('00' + str).substr(str.length); return ('00' + str).substr(str.length);
} }
function setAttatchParameter(){ function setAttatchParameter(vm){
this.$uiConfig.DIRECT_PARAMETER = '' vm.$uiConfig.DIRECT_PARAMETER = ''
if(uni.getStorageSync('b2b_user')){ if(uni.getStorageSync('b2b_user')){
const {salesBaseInfo, erpBaseInfo} = uni.getStorageSync('b2b_user') const {salesBaseInfo, erpBaseInfo} = uni.getStorageSync('b2b_user')
if(erpBaseInfo && erpBaseInfo.employeeId){ if(erpBaseInfo && erpBaseInfo.employeeId){
this.$uiConfig.DIRECT_PARAMETER = '&direct_user_id='+erpBaseInfo.employeeId vm.$uiConfig.DIRECT_PARAMETER = '&direct_user_id='+erpBaseInfo.employeeId
}else if(salesBaseInfo && salesBaseInfo.employeeId){ }else if(salesBaseInfo && salesBaseInfo.employeeId){
this.$uiConfig.DIRECT_PARAMETER = '&direct_user_id='+salesBaseInfo.employeeId vm.$uiConfig.DIRECT_PARAMETER = '&direct_user_id='+salesBaseInfo.employeeId
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment