Commit 3963f9e9 by chenwq

我的门店,重置参数,样式

1 parent 42ab8980
......@@ -46,156 +46,8 @@ Component({
loading: true,
scrollTop: 0,
isAsk: false,
// totalObj: {
// scene1Total: '72536',
// scene0Total: '76400',
// scene3Total: '15486',
// total: '164422'
// },
// 1精品升级(太阳膜),3众筹,0会员权益)
merchantList: [],
// 服务商-多4s店-全部
// allMerchantList: [{
// yearMonth: '2023-08',
// curMonthTotalData: {
// scene1Total: '5986',
// scene0Total: '76400',
// scene3Total: '11000',
// total: '19567'
// },
// merchantDataList: [{
// merchantId: 44211638,
// merchantName: '四川申蓉汇亚汽车贸易有限公司',
// productCodes: ['PC009'],
// curMonthTotalData: {
// scene1Total: '5026',
// scene0Total: '11000',
// scene3Total: '2581',
// total: '18607'
// },
// lastMonthTotalData: {
// scene1Total: '51122',
// scene0Total: '2355',
// scene3Total: '65400',
// total: '0'
// }
// }, {
// merchantId: 44211638,
// merchantName: '四川港宏新通汽车销售服务有限公司',
// productCodes: ['PC003', 'PC005', 'PC006', 'PC007', 'PC009'],
// curMonthTotalData: {
// scene1Total: '960',
// scene0Total: '0',
// scene3Total: '0',
// total: '960'
// },
// lastMonthTotalData: {
// scene1Total: '123223',
// scene0Total: '0',
// scene3Total: '0',
// total: '0'
// }
// }]
// }],
// 指定场景
// otherMerchantList: [{
// yearMonth: '2023-08',
// curMonthTotalData: {
// totalCustomer: '22',
// total: '133862000',
// notUpgradeCount: '22',
// bizTotal: '960523',
// custUnitPrice: '1523',
// upgradeCount: '66',
// activityTotal: '25',
// orderTotal: '22',
// upgradeRate: '65',
// productCode: 'pc001'
// },
// merchantDataList: [{
// merchantId: 111,
// merchantName: '广西弘泽汽车销售服务有限公司',
// bizTotal: '39000',
// curDayTotalData: {
// totalCustomer: '177',
// total: '',
// notUpgradeCount: '199',
// bizTotal: '18228',
// custUnitPrice: '559',
// upgradeCount: '177',
// activityTotal: '',
// orderTotal: '',
// upgradeRate: '89',
// productCode: ''
// },
// curMonthTotalData: [{
// totalCustomer: '2000',
// total: '',
// notUpgradeCount: '199',
// bizTotal: '258228',
// custUnitPrice: '559',
// upgradeCount: '2000',
// activityTotal: '1',
// orderTotal: '22',
// upgradeRate: '12',
// productCode: '',
// productName: '数字化美容'
// }, {
// totalCustomer: '2000',
// total: '',
// notUpgradeCount: '199',
// bizTotal: '258228',
// custUnitPrice: '559',
// upgradeCount: '2000',
// activityTotal: '3',
// orderTotal: '50',
// upgradeRate: '12',
// productCode: '',
// productName: '座椅通风'
// }, {
// totalCustomer: '2000',
// total: '',
// notUpgradeCount: '199',
// bizTotal: '258228',
// custUnitPrice: '559',
// upgradeCount: '2000',
// activityTotal: '1',
// orderTotal: '22',
// upgradeRate: '12',
// productCode: '',
// productName: 'AR导航'
// }]
// }, {
// merchantId: 222,
// merchantName: '益阳佳烨丰田汽车销售服务有限公司啦啦啦啦',
// bizTotal: '19000',
// curDayTotalData: {
// totalCustomer: '',
// total: '',
// notUpgradeCount: '199',
// bizTotal: '18228',
// custUnitPrice: '559',
// upgradeCount: '2000',
// activityTotal: '',
// orderTotal: '',
// upgradeRate: '89',
// productCode: ''
// },
// curMonthTotalData: [{
// totalCustomer: '',
// total: '',
// notUpgradeCount: '199',
// bizTotal: '258228',
// custUnitPrice: '559',
// upgradeCount: '2000',
// activityTotal: '1',
// orderTotal: '22',
// upgradeRate: '5',
// productCode: '',
// productName: 'AR导航'
// }]
// }]
// }]
},
/**
......@@ -206,7 +58,11 @@ Component({
if (isReset) {
this.setData({
['pageCof.startYearMonth']: '',
['pageCof.endYearMonth']: ''
['pageCof.endYearMonth']: '',
isEnd: false,
loading: true,
scrollTop: 0,
isAsk: false
})
}
this.getTotal()
......@@ -242,8 +98,6 @@ Component({
} else if (startTime && endTime) {
_currentDate = new Date(endTime.replace(/-/g, '/'))
_endMonthDate = new Date(endTime.replace(/-/g, '/'))
console.log(_currentDate, '_currentDate---')
console.log(_endMonthDate, '_endMonthDate---')
}
_endMonthDate.setMonth(_currentDate.getMonth() - monthInterval)
let _startMonthDate = new Date(isReset ? _currentDate : _endMonthDate)
......@@ -257,7 +111,6 @@ Component({
})
},
getMerchantList(isReset = false) {
console.log('getMerchantList---')
let { userInfo } = wx.$storage.get()
let { searchForm, merchantList, isAsk, isEnd } = this.data
if (isAsk || isEnd) {
......@@ -278,7 +131,6 @@ Component({
wx.$api.showLoading('加载中...')
const paiName = searchForm.sceneType ? 'getQuerySceneList' : 'getAllSceneList'
outputValueApi[paiName](params).then(res => {
console.log(res, 'res---')
this.setData({
merchantList: isReset ? (res || []) : merchantList.concat(res || [])
})
......
......@@ -80,7 +80,6 @@ Component({
this.setData({
curInfo: curInfo
})
console.log(curInfo)
}
},
dealData() {
......@@ -94,7 +93,6 @@ Component({
},
jump(e) {
let { info } = e.currentTarget.dataset
console.log(info)
wx.$router.go('packagesList.newSummary', info)
},
}
......
......@@ -73,7 +73,6 @@ Component({
},
jump(e) {
let { info } = e.currentTarget.dataset
console.log(info)
wx.$router.go('packagesList.newSummary', info)
},
switchChange() {
......
......@@ -14,6 +14,10 @@
color: #323436;
padding: 0 24rpx;
.top-name {
max-width: calc(100% - 92rpx);
}
.tips {
width: 84rpx;
height: 28rpx;
......
......@@ -2,7 +2,7 @@
<wxs src="/pages/tab/outputValue/index.wxs" module="filter" />
<view class="service-total">
<view class="top">
{{serviceName}}
<view class="top-name text-hide">{{serviceName}}</view>
<view class="tips">服务商</view>
</view>
<view class="box">
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!