Commit 4be5492b by 前端

fixed

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