Commit 363bb01f by 张立顺

fixbug

1 parent e4e03ee8
...@@ -103,11 +103,10 @@ Component({ ...@@ -103,11 +103,10 @@ Component({
let that = this let that = this
let { serviceMerchantId, type, warReportList, messageList } = this.data let { serviceMerchantId, type, warReportList, messageList } = this.data
let list = type[typeName]['list'] let list = type[typeName]['list']
// console.log('list', this.data[list]) // console.log('list', this.data[list])
// return // return
let params = { let params = {
serviceMerchantId: '44211459', serviceMerchantId: serviceMerchantId,
...type[typeName] ...type[typeName]
} }
// console.log(Math.ceil(2.8)) // console.log(Math.ceil(2.8))
......
...@@ -141,15 +141,15 @@ Component({ ...@@ -141,15 +141,15 @@ Component({
outputApi outputApi
.partnerMerchantTotal({ merchantId: userInfo.merchantId }) .partnerMerchantTotal({ merchantId: userInfo.merchantId })
.then(result => { .then(result => {
// debugger debugger
// console.log('result', result) console.log('result', result)
let { dataList, yqMerchantIds } = result let { dataList, yqMerchantIds } = result
const list = yqMerchantIds.reduce((list, item, index) => { const list = yqMerchantIds.reduce((list, item, index) => {
let obj = {} let obj = {}
obj.totalMoney = dataList[index]?.totalMoney || 0 obj.totalMoney = dataList[index]?.totalMoney || 0
obj.totalOrder = dataList[index]?.totalOrder || 0 obj.totalOrder = dataList[index]?.totalOrder || 0
obj.merchantName = dataList[index].merchantName obj.merchantName = dataList[index]?.merchantName
obj.merchantId = item obj.merchantId = item
obj.startInd = obj.startInd =
dataList[index]?.sceneList.findIndex(item => { dataList[index]?.sceneList.findIndex(item => {
......
...@@ -18,6 +18,7 @@ Component({ ...@@ -18,6 +18,7 @@ Component({
*/ */
methods: { methods: {
nav() { nav() {
// debugger
wx.$router.go('pages.index') wx.$router.go('pages.index')
} }
} }
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!