Commit 4be5492b by 前端

fixed

1 parent d1545d35
......@@ -47,13 +47,11 @@
.input {
display: flex;
align-items: center;
margin-top: 33rpx;
margin-top: 20rpx;
border-bottom: 1rpx solid #E3E3E6;
padding: 24rpx 0;
height: 64rpx;
position: relative;
&:last-child {
margin-top: 13rpx;
}
input {
flex: 1;
......
......@@ -52,7 +52,7 @@ const findSubordinateListByPage = (userInfo)=> {
/**设置登录信息 */
const setLoginInfo = async (userInfo, sessionId) => {
if (!userInfo) {
wx.$api.showToast('账户错误')
wx.$api.showToast('请使用商户账号登陆')
return
}
setUserInfo(userInfo)
......
......@@ -111,7 +111,7 @@ Component({
hanldBlur(e) {
const empName = e.detail.value;
const sfaffList = this.data.sfaffList.filter(item => {
const employeeName = item.transferName || item.employeeName
const employeeName = item.transferName || item.employeeName || item.shareName
return employeeName ? employeeName.includes(empName) : item
})
this.filterStaff = sfaffList
......@@ -180,6 +180,16 @@ Component({
})
return arr
},
shareName: (item) => {
let arr = []
item.shareImageUrl&&item.shareImageUrl.forEach((val, index) => {
arr.push({
avatarUrl: val,
transferName: item.shareName[index]
})
})
return arr
},
conversionRate: (item, k) => {
const arr = this.data.downType == 'equity' ? item[k]&&item[k].map(item => accMul(item, 100)) : item[k]
return arr
......
......@@ -335,6 +335,9 @@ Component({
if (startTime) this.data.type == 1 ? params.startDate = startTime : params.startTime = startTime + ' 00:00:00'
if (endTime) this.data.type == 1 ? params.endDate = endTime : params.endTime = endTime + ' 23:59:59'
ActivityApi[methods[this.data.type]](params).then(res => {
// res.forEach(item=>{
// item.abscissaValue = item.abscissaValue.substring(5)
// })
this.setData({
lineData: res
})
......
......@@ -15,6 +15,9 @@
overflow: hidden;
top: 0;
left: 0;
image {
height: 100%;
}
}
.active-type{
position: absolute;
......
......@@ -6,7 +6,7 @@
头像
</glsx-image>
<view class="info">
<view class="name">{{userInfo.name}}</view>
<view class="name">{{userInfo.merchantName}}</view>
<view class="id">{{userInfo.phone}}</view>
</view>
<view class="logot">
......
......@@ -120,7 +120,7 @@
}
},
"setting": {
"urlCheck": false
"urlCheck": true
},
"projectname": "store-assistant-assemble"
}
\ No newline at end of file
......@@ -31,7 +31,6 @@ let index = 2
// console.log(accountInfo.miniProgram.envVersion);
// 对比一下appkey
// console.log();
if (systemInfo.platform != 'devtools') {
// 判断预发布的appid 是强制锁定为4(预发布的地址)
if (accountInfo.miniProgram.appId == preReleaseAppId) {
index = 4
......@@ -50,7 +49,6 @@ if (systemInfo.platform != 'devtools') {
break
}
}
}
const secretKey = {
ip: {},
......@@ -112,7 +110,7 @@ const domain = {
dev: {
dj: 'https://dj.dev.glsx.com.cn',
scrm: 'https://scrm.dev.glsx.com.cn',
merchant: "http://rop-merchant.dev.glsx.com.cn",
merchant: "https://rop-merchant.dev.glsx.com.cn",
},
uat: {
dj: 'https://dj.test.glsx.com.cn',
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!