Commit ac664dfb by 前端

fixed

1 parent b0fccb57
......@@ -2,6 +2,6 @@
<mask show="{{loading}}"></mask>
<navigation-bar navStyle="background-color: rgba(0,0,0,0)">门店助手</navigation-bar>
<box loginType="{{loginType}}" disabled="{{disabled}}" id="box" />
<agree show="{{loginType == 2}}" text="30天内免登陆" value="{{autoLogin}}" bindchange="changeAgree" />
<agree show="{{loginType == 2}}" text="7天内免登陆" value="{{autoLogin}}" bindchange="changeAgree" />
<type-list loginType="{{loginType}}" />
</view>
\ No newline at end of file
......@@ -233,6 +233,7 @@ Component({
ActivityApi[apiName](params).then(res => {
this.setData({
outputData: {
triggered: false,
...this.data.outputData,
...res
}
......
......@@ -30,7 +30,7 @@
.output-num {
font-weight: 600;
font-size: 40rpx;
font-size: 30rpx;
color: #1B233D;
line-height: 48rpx;
._unit {
......
......@@ -66,6 +66,7 @@ Page({
const sfaffList = res || []
this.setData({
sfaffList,
triggered: false,
tabelTh
})
console.log(this.data)
......
......@@ -98,8 +98,8 @@ Page({
apiName = 'merchantsOutputReport',
params = {
merchantIds: [merchantId],
startTime: timeValue + ' 00:00:00',
endTime: this.getNextMonth(timeValue) + ' 00:00:00',
startTime: new Date(timeValue).format('yyyy-MM')+'-01' + ' 00:00:00',
endTime: new Date(this.getNextMonth(timeValue)).format('yyyy-MM')+'-01' + ' 00:00:00',
}
}
}
......@@ -107,7 +107,8 @@ Page({
dataT[type][timeType]()
ActivityApi[apiName](params).then(res => {
const list = res.employeeOutputList || res.staffList
const staffList = list.length?list.splice(0,3):new Array(3).fill(1)
const arr = new Array(3).fill(1)
const staffList = list.length?Object.assign(arr,list.splice(0,3)):arr
const billboard = staffList.map((item,idx)=>{
return {
sort: idx+1,
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!