Commit ac664dfb by 前端

fixed

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