stat.js
466 Bytes
// pages/tab/stat/stat.js
import outputApi from '~/api/outputApi/index'
Component({
/**
* 页面的初始数据
*/
lifetimes: {
attached() {const {
merchantId
} = wx.$storage.get('userInfo')
outputApi.portraitView({merchantId}).then(res=>{
res.produceValueTotal = res.produceValueTotal/100
res.todayProduceValueTotal = res.todayProduceValueTotal/100
this.setData({viewCustomerPortrait:res})
})
}
},
})