Commit f899d130 by 姜雷

修改的区域选择方式

parent 11febdd1
......@@ -29,7 +29,7 @@ App({
},
globalData: {
userInfo: initUserinfo(),
token: '',
token: 'system:login:token:a1d0c6e83f027327d8461063f4ac58a61572833345204',
userRoles: [],
},
getToken: function () {
......@@ -39,6 +39,10 @@ App({
this.globalData.token = '';
this.globalData.userInfo = initUserinfo();
this.globalData.userRoles = [];
try {
wx.setStorageSync('token', '');
}
catch (error) { }
},
});
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYXBwLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiYXBwLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7O0FBYUEsSUFBTSxZQUFZLEdBQUcsY0FBTSxPQUFBLENBQUM7SUFDMUIsU0FBUyxFQUFFLEVBQUU7SUFDYixPQUFPLEVBQUUsRUFBRTtJQUNYLFFBQVEsRUFBRSxFQUFFO0lBQ1osRUFBRSxFQUFFLENBQUM7SUFDTCxhQUFhLEVBQUUsQ0FBQztJQUNoQixhQUFhLEVBQUUsQ0FBQztJQUNoQixhQUFhLEVBQUUsRUFBRTtJQUNqQixZQUFZLEVBQUUsRUFBRTtJQUNoQixVQUFVLEVBQUUsQ0FBQztJQUNiLElBQUksRUFBRSxFQUFFO0lBQ1IsU0FBUyxFQUFFLENBQUM7SUFDWixXQUFXLEVBQUUsRUFBRTtJQUNmLEtBQUssRUFBRSxFQUFFO0lBQ1QsUUFBUSxFQUFFLEVBQUU7Q0FDYixDQUFDLEVBZnlCLENBZXpCLENBQUM7QUFDSCxHQUFHLENBQVM7SUFDVixRQUFRO1FBQ04sT0FBTyxDQUFDLEdBQUcsQ0FBQyxhQUFhLENBQUMsQ0FBQztRQUMzQixJQUFJLENBQUM7WUFDSCxJQUFJLEtBQUssR0FBRyxFQUFFLENBQUMsY0FBYyxDQUFDLE9BQU8sQ0FBQyxDQUFDO1lBQ3ZDLEVBQUUsQ0FBQyxDQ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G4gIGNvbW1lbnQ6ICcnLFxuICBjcmVhdGVBdDogJycsXG4gIGlkOiAwLFxuICBpc09wZW5PcGVyTG9nOiAwLFxuICBpc1NldFBhc3N3b3JkOiAwLFxuICBsYXN0TG9naW5EYXRlOiAnJyxcbiAgbG9naW5BY2NvdW50OiAnJyxcbiAgbG9naW5Db3VudDogMCxcbiAgbmFtZTogJycsXG4gIG9wZXJhdGVJZDogMCxcbiAgb3BlcmF0ZU5hbWU6ICcnLFxuICBzdGF0ZTogJycsXG4gIHVwZGF0ZUF0OiAnJyxcbn0pO1xuQXBwPElNeUFwcD4oe1xuICBvbkxhdW5jaCgpIHtcbiAgICBjb25zb2xlLmxvZygnaW4gb25MYXVuY2gnKTtcbiAgICB0cnkge1xuICAgICAgbGV0IHRva2VuID0gd3guZ2V0U3RvcmFnZVN5bmMoJ3Rva2VuJyk7XG4gICAgICBpZiAodG9rZW4pIHtcbiAgICAgICAgdGhpcy5nbG9iYWxEYXRhLnRva2VuID0gdG9rZW47XG4gICAgICB9XG4gICAgfSBjYXRjaCAoZXJyb3IpIHt9XG4gIH0sXG4gIGdsb2JhbERhdGE6IHtcbiAgICB1c2VySW5mbzogaW5pdFVzZXJpbmZvKCksXG4gICAgdG9rZW46ICcnLFxuICAgIHVzZXJSb2xlczogW10sXG4gIH0sXG4gIGdldFRva2VuKCkge1xuICAgIHJldHVybiB0aGlzLmdsb2JhbERhdGEudG9rZW47XG4gIH0sXG4gIHJlc2V0VXNlcmluZm8oKSB7XG4gICAgdGhpcy5nbG9iYWxEYXRhLnRva2VuID0gJyc7XG4gICAgdGhpcy5nbG9iYWxEYXRhLnVzZXJJbmZvID0gaW5pdFVzZXJpbmZvKCk7XG4gICAgdGhpcy5nbG9iYWxEYXRhLnVzZXJSb2xlcyA9IFtdO1xuICB9LFxufSk7XG4iXX0=
\ No newline at end of file
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYXBwLmpzIiwic291cmNlUm9vdCI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XG4gIGxvZ2luQWNjb3VudDogJycsXG4gIGxvZ2luQ291bnQ6IDAsXG4gIG5hbWU6ICcnLFxuICBvcGVyYXRlSWQ6IDAsXG4gIG9wZXJhdGVOYW1lOiAnJyxcbiAgc3RhdGU6ICcnLFxuICB1cGRhdGVBdDogJycsXG59KTtcbkFwcDxJTXlBcHA+KHtcbiAgb25MYXVuY2goKSB7XG4gICAgY29uc29sZS5sb2coJ2luIG9uTGF1bmNoJyk7XG4gICAgdHJ5IHtcbiAgICAgIGxldCB0b2tlbiA9IHd4LmdldFN0b3JhZ2VTeW5jKCd0b2tlbicpO1xuICAgICAgaWYgKHRva2VuKSB7XG4gICAgICAgIHRoaXMuZ2xvYmFsRGF0YS50b2tlbiA9IHRva2VuO1xuICAgICAgfVxuICAgIH0gY2F0Y2ggKGVycm9yKSB7fVxuICB9LFxuICBnbG9iYWxEYXRhOiB7XG4gICAgdXNlckluZm86IGluaXRVc2VyaW5mbygpLFxuICAgIHRva2VuOiAnc3lzdGVtOmxvZ2luOnRva2VuOmExZDBjNmU4M2YwMjczMjdkODQ2MTA2M2Y0YWM1OGE2MTU3MjgzMzM0NTIwNCcsXG4gICAgdXNlclJvbGVzOiBbXSxcbiAgfSxcbiAgZ2V0VG9rZW4oKSB7XG4gICAgcmV0dXJuIHRoaXMuZ2xvYmFsRGF0YS50b2tlbjtcbiAgfSxcbiAgcmVzZXRVc2VyaW5mbygpIHtcbiAgICB0aGlzLmdsb2JhbERhdGEudG9rZW4gPSAnJztcbiAgICB0aGlzLmdsb2JhbERhdGEudXNlckluZm8gPSBpbml0VXNlcmluZm8oKTtcbiAgICB0aGlzLmdsb2JhbERhdGEudXNlclJvbGVzID0gW107XG4gICAgdHJ5IHtcbiAgICAgIHd4LnNldFN0b3JhZ2VTeW5jKCd0b2tlbicsICcnKTtcbiAgICB9IGNhdGNoIChlcnJvcikge31cbiAgfSxcbn0pO1xuIl19
\ No newline at end of file
......@@ -39,7 +39,7 @@ App<IMyApp>({
},
globalData: {
userInfo: initUserinfo(),
token: '',
token: 'system:login:token:a1d0c6e83f027327d8461063f4ac58a61572833345204',
userRoles: [],
},
getToken() {
......@@ -49,5 +49,8 @@ App<IMyApp>({
this.globalData.token = '';
this.globalData.userInfo = initUserinfo();
this.globalData.userRoles = [];
try {
wx.setStorageSync('token', '');
} catch (error) {}
},
});
<!--custom-tab-bar/index.wxml-->
<!-- custom-tab-bar/index.wxml -->
<cover-view class="custom-tab-bar">
<cover-view wx:for="{{listData}}" wx:key="index" class="custom-tab-bar-item {{checked === index?'checked':''}}" data-index="{{index}}" data-path="{{item.pagePath}}" bindtap="clickHandle">
<cover-image class="custom-tab-bar-icon" src="{{checked === index ? item.selectedIconPath : item.iconPath}}"></cover-image>
{{item.text}}
<cover-view>{{item.text}}</cover-view>
</cover-view>
</cover-view>
\ No newline at end of file
......@@ -2,6 +2,8 @@
.custom-tab-bar {
position: fixed;
padding-bottom: constant(safe-area-inset-bottom);
padding-bottom: env(safe-area-inset-bottom);
bottom: 0;
width: 100%;
height: 96rpx;
......
"use strict";
Component({
properties: {
placeholder: {
type: String,
value: '请选择',
},
range: {
type: Array,
value: [],
observer: function (newVal) {
this.setData({ filterList: newVal });
},
},
rangeKey: {
type: String,
value: 'key',
},
value: {
type: String,
value: '',
observer: function (newVal) {
this.setData({ selected: newVal });
},
},
},
data: {
showPickerView: false,
selected: '',
selectedIndex: '',
filterList: [],
},
methods: {
inputClickHandle: function () {
this.setData({
showPickerView: !this.data.showPickerView,
});
},
innerClickHandle: function (e) {
return false;
},
maskClickHandle: function (e) {
this.setData({
showPickerView: false,
});
return false;
},
inputHandle: function (e) {
var _this = this;
var value = e.detail.value;
console.log(e, value);
var filterList = [];
if (value) {
filterList = this.data.range.filter(function (item) {
return item[_this.data.rangeKey].includes(value);
});
}
else {
filterList = this.data.range;
}
this.setData({
filterList: filterList,
});
},
bindPickerChange: function () {
var value = this.data.selected;
this.setData({
showPickerView: false,
});
this.triggerEvent('change', { value: value }, {});
},
selectedHandle: function (e) {
var value = e.currentTarget.dataset.value;
console.log(e, value);
if (this.data.selectedIndex === value) {
this.setData({
selected: '',
selectedIndex: '',
});
}
else {
this.setData({
selected: this.data.range[value].id,
selectedIndex: value,
});
}
},
},
});
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiQXJlYVNlbGVjdC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIkFyZWFTZWxlY3QudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUNBLFNBQVMsQ0FBQztJQUNSLFVBQVUsRUFBRTtRQUNWLFdBQVcsRUFBRTtZQUNYLElBQUksRUFBRSxNQUFNO1lBQ1osS0FBSyxFQUFFLEtBQUs7U0FDYjtRQUNELEtBQUssRUFBRTtZQUNMLElBQUksRUFBRSxLQUFLO1lBQ1gsS0FBSyxFQUFFLEVBQUU7WUFDVCxRQUFRLFlBQUMsTUFBTTtnQkFDYixJQUFJLENBQUMsT0FBTyxDQUFDLEVBQUUsVUFBVSxFQUFFLE1BQU0sRUFBRSxDQUFDLENBQUM7WUFDdkMsQ0FBQztTQUNGO1FBQ0QsUUFBUSxFQUFFO1lBQ1IsSUFBSSxFQUFFLE1BQU07WUFDWixLQUFLLEVBQUUsS0FBSztTQUNiO1FBQ0QsS0FBSyxFQUFFO1lBQ0wsSUFBSSxFQUFFLE1BQU07WUFDWixLQUFLLEVBQUUsRUFBRTtZQUNULFFBQVEsWUFBQyxNQUFNO2dCQUNiLElBQUksQ0FBQyxPQUFPLENBQUMsRUFBRSxRQUFRLEVBQUUsTUFBTSxFQUFFLENBQUMsQ0FBQztZQUNyQyxDQUFDO1NBQ0Y7S0FDRjtJQUNELElBQUksRUFBRTtRQUNKLGNBQWMsRUFBRSxLQUFLO1FBQ3JCLFFBQVEsRUFBRSxFQUFFO1FBQ1osYUFBYSxFQUFFLEVBQUU7UUFDakIsVUFBVSxFQUFFLEVBQUU7S0FDZjtJQUNELE9BQU8sR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0RGF0YSh7XG4gICAgICAgICAgc2VsZWN0ZWQ6IHRoaXMuZGF0YS5yYW5nZVt2YWx1ZV0uaWQsXG4gICAgICAgICAgc2VsZWN0ZWRJbmRleDogdmFsdWUsXG4gICAgICAgIH0pO1xuICAgICAgfVxuICAgIH0sXG4gIH0sXG59KTtcbiJdfQ==
\ No newline at end of file
{
"component": true,
"usingComponents": {}
}
\ No newline at end of file
// pages/components/AreaSelect/AreaSelect.js
Component({
properties: {
placeholder: {
type: String,
value: '请选择',
},
range: {
type: Array,
value: [],
observer(newVal) {
this.setData({ filterList: newVal });
},
},
rangeKey: {
type: String,
value: 'key',
},
value: {
type: String,
value: '',
observer(newVal) {
this.setData({ selected: newVal });
},
},
},
data: {
showPickerView: false,
selected: '',
selectedIndex: '',
filterList: [],
},
methods: {
inputClickHandle() {
this.setData!({
showPickerView: !this.data.showPickerView,
});
},
innerClickHandle(e) {
return false;
},
maskClickHandle(e) {
this.setData({
showPickerView: false,
});
return false;
},
inputHandle(e) {
const { value } = e.detail;
console.log(e, value);
let filterList = [];
if (value) {
filterList = this.data.range.filter(item =>
item[this.data.rangeKey].includes(value),
);
} else {
filterList = this.data.range;
}
this.setData({
filterList,
});
},
bindPickerChange() {
let value = this.data.selected;
this.setData!({
showPickerView: false,
});
this.triggerEvent('change', { value }, {});
},
selectedHandle(e) {
const { value } = e.currentTarget.dataset;
console.log(e, value);
if (this.data.selectedIndex === value) {
this.setData({
selected: '',
selectedIndex: '',
});
} else {
this.setData({
selected: this.data.range[value].id,
selectedIndex: value,
});
}
},
},
});
<!-- pages/components/AreaSelect/AreaSelect.wxml -->
<!-- pages/components/Select/Select.wxml -->
<view class="areaselect-input">
<!-- <picker class="areaselect-picker" mode="{{mode}}" bindchange="bindPickerChange" value="{{selected}}" range="{{range}}" range-key="{{rangeKey}}" fields="{{fields}}"> -->
<!-- </picker> -->
<view class="areaselect-picker" bindtap="inputClickHandle">
<view wx:if="{{selected}}" class="select-value">{{range[selectedIndex][rangeKey]}}</view>
<view wx:else class="select-placeholder">{{placeholder}}</view>
<image class="select-icon" src="../../../images/btn_xiala@2x.png" mode="aspectFill" />
</view>
<view class="areaselect-pickView {{showPickerView?'show':''}}" bindtap="maskClickHandle">
<view class="areaselect-pickBox {{showPickerView?'show':''}}" catchtap="innerClickHandle">
<view wx:if="{{showPickerView}}" class="areaselect-pickFilter">
<input class="areaselect-pickInput" type="text" bindconfirm="inputHandle" />
<view class="areaselect-pickBtn" bindtap="bindPickerChange">确认</view>
</view>
<view class="areaselect-list">
<view wx:for="{{filterList}}" class="areaselect-listItem {{selectedIndex === index?'selected':''}}" wx:key="{{item.id}}" data-value="{{index}}" bindtap="selectedHandle">
{{item[rangeKey]}}
</view>
</view>
</view>
</view>
</view>
\ No newline at end of file
/* pages/components/AreaSelect/AreaSelect.wxss */
.areaselect-input {
box-sizing: border-box;
width: 100%;
position: relative;
border: 1rpx solid #f8f8f8;
background-color: #f8f8f8;
padding: 0 40rpx;
border-radius: 96rpx;
height: 96rpx;
line-height: 96rpx;
font-size: 28rpx;
}
.areaselect-input:hover,
.areaselect-input:focus {
border-color: #6895fe;
}
.select-placeholder {
color: #999;
}
.select-value {
color: #333;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
width: 85%;
}
.select-icon {
position: absolute;
width: 44rpx;
height: 44rpx;
right: 40rpx;
top: 26rpx;
}
.areaselect-pickView {
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
width: 0;
height: 0;
background-color: rgba(0, 0, 0, 0.41);
z-index: 100;
}
.areaselect-pickView.show {
width: 100%;
height: 100%;
}
.areaselect-pickBox {
position: absolute;
box-sizing: border-box;
padding-bottom: constant(safe-area-inset-bottom);
padding-bottom: env(safe-area-inset-bottom);
bottom: 0;
background-color: #fff;
width: 100%;
height: 0;
transition: height 0.28s;
border-radius: 40rpx 40rpx 0 0;
display: flex;
flex-direction: column;
}
.areaselect-pickBox.show {
height: 70%;
}
.areaselect-pickFilter {
display: flex;
padding: 40rpx 40rpx 0;
}
.areaselect-pickInput {
flex: 1;
}
.areaselect-pickBtn {
color: #6895fe;
margin-left: 20rpx;
}
.areaselect-list {
flex: 1;
padding: 40rpx 0;
overflow-y: auto;
}
.areaselect-listItem {
line-height: 100rpx;
font-size: 28rpx;
color: #333;
padding: 0 80rpx;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.areaselect-listItem.selected {
background-color: #f0f5ff;
}
/* pages/components/Select/Select.wxss */
.select-input {
box-sizing: border-box;
width: 100%;
position: relative;
border: 1rpx solid #f8f8f8;
background-color: #f8f8f8;
......@@ -18,6 +20,10 @@
}
.select-value {
color: #333;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
width: 85%;
}
.select-icon {
position: absolute;
......
......@@ -7,11 +7,6 @@ Component({
attached: function () {
console.log('in show ', this.data.fetched);
!this.data.fetched && this.fetchRechargeData();
if (typeof this.getTabBar === 'function' && this.getTabBar()) {
this.getTabBar().setData({
selected: 0,
});
}
},
},
data: {
......@@ -170,4 +165,4 @@ Component({
},
},
});
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaG9tZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImhvbWUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7QUFBQSx5Q0FBa0Q7QUFDbEQseUNBQThDO0FBRzlDLFNBQVMsQ0FBQztJQUNSLFNBQVMsRUFBRTtRQUNULFFBQVE7WUFDTixPQUFPLENBQUMsR0FBRyxDQUFDLFVBQVUsRUFBRSxJQUFJLENBQUMsSUFBSSxDQUFDLE9BQU8sQ0FBQyxDQUFDO1lBQzNDLENBQUMsSUFBSSxDQUFDLElBQUksQ0FBQyxPQUFPLElBQUksSUFBSSxDQUFDLGlCQUFpQixFQUFFLENBQUM7WUFDL0MsRUFBRSxDQUFDLENBQUMsT0FBTyxJQUFJLENBQUMsU0FBUyxLQUFLLFVBQVUsSUFBSSxJQUFJL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gICAgcmVjaGFyZ2VDb3VudDoge1xuICAgICAgdGl0bGU6ICflhYXlgLzmgLvnrJTmlbAnLFxuICAgICAgbnVtYmVyVHlwZTogJycsXG4gICAgICBjb3VudDogMCxcbiAgICB9LFxuICAgIG9ubGluZVJlY2hhcmdlRGF0YToge1xuICAgICAgdGl0bGU6ICfnur/kuIrlhYXlgLwnLFxuICAgICAgbnVtYmVyVHlwZTogJzEnLFxuICAgICAgY291bnQ6IDAsXG4gICAgICBwcmljZTogMCxcbiAgICB9LFxuICAgIG9mZmxpbmVSZWNoYXJnZURhdGE6IHtcbiAgICAgIHRpdGxlOiAn57q/5LiL5YWF5YC8JyxcbiAgICAgIG51bWJlclR5cGU6ICcxJyxcbiAgICAgIGNvdW50OiAwLFxuICAgICAgcHJpY2U6IDAsXG4gICAgfSxcbiAgICBjb21zdW1lckRhdGE6IHtcbiAgICAgIHRpdGxlOiAn5raI6LS55oC76aKdJyxcbiAgICAgIG51bWJlclR5cGU6ICdwcmljZScsXG4gICAgICBjb3VudDogMCxcbiAgICB9LFxuICAgIGNvbXN1bWVyQ291bnQ6IHtcbiAgICAgIHRpdGxlOiAn5raI6LS55oC756yU5pWwJyxcbiAgICAgIG51bWJlclR5cGU6ICcnLFxuICAgICAgY291bnQ6IDAsXG4gICAgfSxcbiAgICByZWZ1bmREYXRhOiB7XG4gICAgICB0aXRsZTogJ+mAgOasvuaAu+minScsXG4gICAgICBudW1iZXJUeXBlOiAncHJpY2UnLFxuICAgICAgY291bnQ6IDAsXG4gICAgfSxcbiAgICByZWZ1bmRDb3VudDoge1xuICAgICAgdGl0bGU6ICfpgIDmrL7mgLvnrJTmlbAnLFxuICAgICAgbnVtYmVyVHlwZTogJycsXG4gICAgICBjb3VudDogMCxcbiAgICB9LFxuICAgIHRlc3REYXRhOiB7XG4gICAgICB0aXRsZTogJ+WFheWAvOaAu+minScsXG4gICAgICBudW1iZXJUeXBlOiAncHJpY2UnLFxuICAgICAgY291bnQ6IDAsXG4gICAgfSx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gNCk7XG4gICAgICB9XG4gICAgICB3eC5zaG93TG9hZGluZyh7IHRpdGxlOiAnJyB9KTtcblxuICAgICAgbGV0IHJlY2hhcmdlRGF0YUZldGNoID0gc3RhdGlzdGljc0ZldGNoKHtcbiAgICAgICAgdXJsOiAnL2RjeHkvcmVwb3J0SW5mby9xdWVyeVJlY2hhcmdlT3JkZXJMaXN0VjInLFxuICAgICAgICBtZXRob2Q6ICdQT1NUJyxcbiAgICAgICAgZGF0YTogZW50aXR5LFxuICAgICAgfSkudGhlbihyZXMgPT4ge1xuICAgICAgICBjb25zdCBkYXRhID0gcmVzLnJlY2hhcmdlT3JkZXJDb3VudFZvO1xuICAgICAgICBpZiAoZGF0YSkge1xuICAgICAgICAgIGNvbnN0IHtcbiAgICAgICAgICAgIHJlY2hhcmdlTWVuLFxuICAgICAgICAgICAgcmVjaGFyZ2VNb25leSxcbiAgICAgICAgICAgIHJlZnVuZENvdW50LFxuICAgICAgICAgICAgcmVmdW5kTW9uZXksXG4gICAgICAgICAgICBvZmZsaW5lUmVjaGFyZ2VNZW4sXG4gICAgICAgICAgICBvZmZsaW5lUmVjaGFyZ2VNb25leSxcbiAgICAgICAgICAgIG9ubGluZVJlY2hhcmdlTWVuLFxuICAgICAgICAgICAgb25saW5lUmVjaGFyZ2VNb25leSxcbiAgICAgICAgICB9ID0gZGF0YTtcbiAgICAgICAgICB0aGlzLnNldERhdGEoe1xuICAgICAgICAgICAgJ3JlY2hhcmdlRGF0YS5jb3VudCc6IHJlY2hhcmdlTW9uZXksXG4gICAgICAgICAgICAncmVjaGFyZ2VDb3VudC5jb3VudCc6IHJlY2hhcmdlTWVuLFxuICAgICAgICAgICAgJ3JlZnVuZERhdGEuY291bnQnOiByZWZ1bmRNb25leSxcbiAgICAgICAgICAgICdyZWZ1bmRDb3VudC5jb3VudCc6IHJlZnVuZENvdW50LFxuICAgICAgICAgICAgJ29ubGluZVJlY2hhcmdlRGF0YS5wcmljZSc6IG9ubGluZVJlY2hhcmdlT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AgICAgICAgY29uc29sZS5sb2cocmVzKTtcbiAgICAgICAgdGhpcy5zZXREYXRhKHtcbiAgICAgICAgICBzZXJ2aWNlTGlzdDogZGF0YS5tYXAoaXRlbSA9PiAoe1xuICAgICAgICAgICAgc2VydmljZUlkOiBpdGVtLnNlcnZpY2VJZCxcbiAgICAgICAgICAgIHRpdGxlOiBpdGVtLnNlcnZpY2VOYW1lLFxuICAgICAgICAgICAgbnVtYmVyVHlwZTogJzEnLFxuICAgICAgICAgICAgY291bnQ6IGl0ZW0ucGF5TWVuLFxuICAgICAgICAgICAgcHJpY2U6IGl0ZW0ucGF5YWJsZU1vbmV5LFxuICAgICAgICAgIH0pKSxcbiAgICAgICAgICAnY29tc3VtZXJEYXRhLmNvdW50JzpcbiAgICAgICAgICAgIGNvbnN1bWVDb3VudFZvICYmIGNvbnN1bWVDb3VudFZvLnBheWFibGVNb25leVxuICAgICAgICAgICAgICA/IGNvbnN1bWVDb3VudFZvLnBheWFibGVNb25leVxuICAgICAgICAgICAgICA6IDAsXG4gICAgICAgICAgJ2NvbXN1bWVyQ291bnQuY291bnQnOlxuICAgICAgICAgICAgY29uc3VtZUNvdW50Vm8gJiYgY29uc3VtZUNvdW50Vm8ucGF5TWVuID8gY29uc3VtZUNvdW50Vm8ucGF5TWVuIDogMCxcbiAgICAgICAgfSk7XG4gICAgICB9KTtcbiAgICAgIFByb21pc2UuYWxsKFtjb25zdW1lRGF0YUZldGNoLCByZWNoYXJnZURhdGFGZXRjaF0pXG4gICAgICAgIC50aGVuKCgpID0+IHtcbiAgICAgICAgICB3eC5oaWRlTG9hZGluZygpO1xuICAgICAgICB9KVxuICAgICAgICAuY2F0Y2goKGVycjogd3guR2VuZXJhbENhbGxiYWNrUmVzdWx0KSA9PiB7XG4gICAgICAgICAgd3guaGlkZUxvYWRpbmcoKTtcbiAgICAgICAgICB3eC5zaG93VG9hc3Qoe1xuICAgICAgICAgICAgdGl0bGU6IGVyci5lcnJNc2csXG4gICAgICAgICAgICBp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sXG4gICAgZmV0Y2hlZDogZmFsc2UsXG4gICAgc2VydmljZUxpc3Q6IFtdLFxuICAgIHJlY2hhcmdlRGF0YToge1xuICAgICAgdGl0bGU6ICflhYXlgLzmgLvpop0nLFxuICAgICAgbnVtYmVyVHlwZTogJ3ByaWNlJyxcbiAgICAgIGNvdW50OiAwLFxuICAgIH0sXG4gICAgcmVjaGFyZ2VDb3VudDoge1xuICAgICAgdGl0bGU6ICflhYXlgLzmgLvnrJTmlbAnLFxuICAgICAgbnVtYmVyVHlwZTogJycsXG4gICAgICBjb3VudDogMCxcbiAgICB9LFxuICAgIG9ubGluZVJlY2hhcmdlRGF0YToge1xuICAgICAgdGl0bGU6ICfnur/kuIrlhYXlgLwnLFxuICAgICAgbnVtYmVyVHlwZTogJzEnLFxuICAgICAgY291bnQ6IDAsXG4gICAgICBwcmljZTogMCxcbiAgICB9LFxuICAgIG9mZmxpbmVSZWNoYXJnZURhdGE6IHtcbiAgICAgIHRpdGxlOiAn57q/5LiL5YWF5YC8JyxcbiAgICAgIG51bWJlclR5cGU6ICcxJyxcbiAgICAgIGNvdW50OiAwLFxuICAgICAgcHJpY2U6IDAsXG4gICAgfSxcbiAgICBjb21zdW1lckRhdGE6IHtcbiAgICAgIHRpdGxlOiAn5raI6LS55oC76aKdJyxcbiAgICAgIG51bWJlclR5cGU6ICdwcmljZScsXG4gICAgICBjb3VudDogMCxcbiAgICB9LFxuICAgIGNvbXN1bWVyQ291bnQ6IHtcbiAgICAgIHRpdGxlOiAn5raI6LS55oC756yU5pWwJyxcbiAgICAgIG51bWJlclR5cGU6ICcnLFxuICAgICAgY291bnQ6IDAsXG4gICAgfSxcbiAgICByZWZ1bmREYXRhOiB7XG4gICAgICB0aXRsZTogJ+mAgOasvuaAu+minScsXG4gICAgICBudW1iZXJUeXBlOiAncHJpY2UnLFxuICAgICAgY291bnQ6IDAsXG4gICAgfSxcbiAgICByZWZ1bmRDb3VudDoge1xuICAgICAgdGl0bGU6ICfpgIDmrL7mg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RlO1xuICAgICAgfSBlbHNlIGlmICh0aW1lVHlwZSA9PT0gMSkge1xuICAgICAgICBlbnRpdHkubW9udGggPSBkYXRlLnNsaWNlKDAsIDcpO1xuICAgICAgfSBlbHNlIGlmICh0aW1lVHlwZSA9PT0gMikge1xuICAgICAgICBlbnRpdHkueWVhciA9IGRhdGUuc2xpY2UoMCwgNCk7XG4gICAgICB9XG4gICAgICB3eC5zaG93TG9hZGluZyh7IHRpdGxlOiAnJyB9KTtcblxuICAgICAgbGV0IHJlY2hhcmdlRGF0YUZldGNoID0gc3RhdGlzdGljc0ZldGNoKHtcbiAgICAgICAgdXJsOiAnL2RjeHkvcmVwb3J0SW5mby9xdWVyeVJlY2hhcmdlT3JkZXJMaXN0VjInLFxuICAgICAgICBtZXRob2Q6ICdQT1NUJyxcbiAgICAgICAgZGF0YTogZW50aXR5LFxuICAgICAgfSkudGhlbihyZXMgPT4ge1xuICAgICAgICBjb25zdCBkYXRhID0gcmVzLnJlY2hhcmdlT3JkZXJDb3VudFZvO1xuICAgICAgICBpZiAoZGF0YSkge1xuICAgICAgICAgIGNvbnN0IHtcbiAgICAgICAgICAgIHJlY2hhcmdlTWVuLFxuICAgICAgICAgICAgcmVjaGFyZ2VNb25leSxcbiAgICAgICAgICAgIHJlZnVuZENvdW50LFxuICAgICAgICAgICAgcmVmdW5kTW9uZXksXG4gICAgICAgICAgICBvZmZsaW5lUmVjaGFyZ2VNZW4sXG4gICAgICAgICAgICBvZmZsaW5lUmVjaGFyZ2VNb25leSxcbiAgICAgICAgICAgIG9ubGluZVJlY2hhcmdlTWVuLFxuICAgICAgICAgICAgb25saW5lUmVjaGFyZ2VNb25leSxcbiAgICAgICAgICB9ID0gZGF0YTtcbiAgICAgICAgICB0aGlzLnNldERhdGEoe1xuICAgICAgICAgICAgJ3JlY2hhcmdlRGF0YS5jb3VudCc6IHJlY2hhcmdlTW9uZXksXG4gICAgICAgICAgICAncmVjaGFyZ2VDb3VudC5jb3VudCc6IHJlY2hhcmdlTWVuLFxuICAgICAgICAgICAgJ3JlZnVuZERhdGEuY291bnQnOiByZWZ1bmRNb25leSxcbiAgICAgICAgICAgICdyZWZ1bmRDb3VudC5jb3VudCc6IHJlZnVuZENvdW50LFxuICAgICAgICAgICAgJ29ubGluZVJlY2hhcmdlRGF0YS5wcmljZSc6IG9ubGluZVJlY2hhcmdlTW9uZXksXG4gICAgICAgICAgICAnb25saW5lUmVjaGFyZ2VEYXRhLmNvdW50Jzogb25saW5lUmVjaGFyZ2VNZW4sXG4gICAgICAgICAgICAnb2ZmbGluZVJlY2hhcmdlRGF0YS5wcmljZSc6IG9mZmxpbmVSZWNoYXJnZU1vbmV5LFxuICAgICAgICAgICAgJ29mZmxpbmVSZWNoYXJnZURhdGEuY291bnQnOiBvZmZsaW5lUmVjaGFyZ2VNZW4sXG4gICAgICAgICAgfSk7XG4gICAgICAgIH0gZWxzZSB7XG4gICAgICAgICAgdGhpcy5zZXREYXRhKHtcbiAgICAgICAgICAgICdyZWNoYXJnZURhdGEuY291bnQnOiAwLFxuICAgICAgICAgICAgJ3JlY2hhcmdlQ291bnQuY291bnQnOiAwLFxuICAgICAgICAgICAgJ3JlZnVuZERhdGEuY291bnQnOiAwLFxuICAgICAgICAgICAgJ3JlZnVuZENvdW50LmNvdW50JzogMCxcbiAgICAgICAgICAgICdvbmxpbmVSZWNoYXJnZURhdGEucHJpY2UnOiAwLFxuICAgICAgICAgICAgJ29ubGluZVJlY2hhcmdlRGF0YS5jb3VudCc6IDAsXG4gICAgICAgICAgICAnb2ZmbGluZVJlY2hhcmdlRGF0YS5wcmljZSc6IDAsXG4gICAgICAgICAgICAnb2ZmbGluZVJlY2hhcmdlRGF0YS5jb3VudCc6IDAsXG4gICAgICAgICAgfSk7XG4gICAgICAgIH1cbiAgICAgIH0pO1xuICAgICAgbGV0IGNvbnN1bWVEYXRhRmV0Y2ggPSBzdGF0aXN0aWNzRmV0Y2goe1xuICAgICAgICB1cmw6ICcvZGN4eS9yZXBvcnRJbmZvL3F1ZXJ5Q29uc3VtZU9yZGVyTGlzdCcsXG4gICAgICAgIG1ldGhvZDogJ1BPU1QnLFxuICAgICAgICBkYXRhOiBlbnRpdHksXG4gICAgICB9KS50aGVuKHJlcyA9PiB7XG4gICAgICAgIGNvbnN0IHsgY29uc3VtZUNvdW50Vm8sIGRhdGEgfSA9IHJlcztcbiAgICAgICAgY29uc29sZS5sb2cocmVzKTtcbiAgICAgICAgdGhpcy5zZXREYXRhKHtcbiAgICAgICAgICBzZXJ2aWNlTGlzdDogZGF0YS5tYXAoaXRlbSA9PiAoe1xuICAgICAgICAgICAgc2VydmljZUlkOiBpdGVtLnNlcnZpY2VJZCxcbiAgICAgICAgICAgIHRpdGxlOiBpdGVtLnNlcnZpY2VOYW1lLFxuICAgICAgICAgICAgbnVtYmVyVHlwZTogJzEnLFxuICAgICAgICAgICAgY291bnQ6IGl0ZW0ucGF5TWVuLFxuICAgICAgICAgICAgcHJpY2U6IGl0ZW0ucGF5YWJsZU1vbmV5LFxuICAgICAgICAgIH0pKSxcbiAgICAgICAgICAnY29tc3VtZXJEYXRhLmNvdW50JzpcbiAgICAgICAgICAgIGNvbnN1bWVDb3VudFZvICYmIGNvbnN1bWVDb3VudFZvLnBheWFibGVNb25leVxuICAgICAgICAgICAgICA/IGNvbnN1bWVDb3VudFZvLnBheWFibGVNb25leVxuICAgICAgICAgICAgICA6IDAsXG4gICAgICAgICAgJ2NvbXN1bWVyQ291bnQuY291bnQnOlxuICAgICAgICAgICAgY29uc3VtZUNvdW50Vm8gJiYgY29uc3VtZUNvdW50Vm8ucGF5TWVuID8gY29uc3VtZUNvdW50Vm8ucGF5TWVuIDogMCxcbiAgICAgICAgfSk7XG4gICAgICB9KTtcbiAgICAgIFByb21pc2UuYWxsKFtjb25zdW1lRGF0YUZldGNoLCByZWNoYXJnZURhdGFGZXRjaF0pXG4gICAgICAgIC50aGVuKCgpID0+IHtcbiAgICAgICAgICB3eC5oaWRlTG9hZGluZygpO1xuICAgICAgICB9KVxuICAgICAgICAuY2F0Y2goKGVycjogd3guR2VuZXJhbENhbGxiYWNrUmVzdWx0KSA9PiB7XG4gICAgICAgICAgd3guaGlkZUxvYWRpbmcoKTtcbiAgICAgICAgICB3eC5zaG93VG9hc3Qoe1xuICAgICAgICAgICAgdGl0bGU6IGVyci5lcnJNc2csXG4gICAgICAgICAgICBpY29uOiAnbm9uZScsXG4gICAgICAgICAgfSk7XG4gICAgICAgICAgY29uc29sZS5sb2coZXJyKTtcbiAgICAgICAgfSk7XG4gICAgfSxcbiAgfSxcbn0pO1xuIl19
\ No newline at end of file
......@@ -7,11 +7,6 @@ Component({
attached() {
console.log('in show ', this.data.fetched);
!this.data.fetched && this.fetchRechargeData();
if (typeof this.getTabBar === 'function' && this.getTabBar()) {
this.getTabBar().setData({
selected: 0,
});
}
},
},
/**
......
......@@ -74,11 +74,36 @@ Page({
});
},
areaChangeHandle: function (val) {
var _this = this;
console.log('areaChangeHandle', val);
var value = val.detail.value;
this.fetchList({ areaId: [value] });
this.setData({
areaId: value,
}, function () {
if (value) {
_this.fetchList({ areaId: [value] });
}
else {
_this.fetchList();
}
});
},
monthChangeHandle: function (val) {
console.log('monthChangeHandle', val);
var value = val.detail.value;
this.fetchList({ month: value });
this.setData({
month: value,
});
},
fetchList: function (entity) {
if (this.data.areaId) {
if (entity && entity.areaId) {
}
else
entity = __assign({}, entity, { areaId: [this.data.areaId] });
}
console.log(this.data.areaId, entity);
this.fetchRechargeData(entity);
this.fetchConsumeData(entity);
this.fetchServiceTypeList(entity);
......@@ -87,8 +112,6 @@ Page({
fetchConsumeData: function (entity) {
var _this = this;
var reqBody = __assign({ month: this.data.month }, entity);
if (this.data.areaId)
reqBody.areaId = this.data.areaId;
fetch_1.statisticsFetch({
url: '/dcxy/reportInfo/dailyConsumeCount',
method: 'POST',
......@@ -126,8 +149,6 @@ Page({
fetchRechargeData: function (entity) {
var _this = this;
var reqBody = __assign({ month: this.data.month }, entity);
if (this.data.areaId)
reqBody.areaId = this.data.areaId;
fetch_1.statisticsFetch({
url: '/dcxy/reportInfo/queryRechargeListDaily',
method: 'POST',
......@@ -167,8 +188,6 @@ Page({
fetchServiceTypeList: function (entity) {
var _this = this;
var reqBody = __assign({ month: this.data.month }, entity);
if (this.data.areaId)
reqBody.areaId = this.data.areaId;
fetch_1.statisticsFetch({
url: '/dcxy/reportInfo/serviceConsume',
method: 'POST',
......@@ -187,8 +206,6 @@ Page({
fetchPayTypeList: function (entity) {
var _this = this;
var reqBody = __assign({ month: this.data.month }, entity);
if (this.data.areaId)
reqBody.areaId = this.data.areaId;
fetch_1.statisticsFetch({
url: '/dcxy/reportInfo/payTypeConsume',
method: 'POST',
......@@ -219,4 +236,4 @@ Page({
});
},
});
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibW9udGhPcGVyYXRvci5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIm1vbnRoT3BlcmF0b3IudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7OztBQUFBLHlDQUE2RDtBQUM3RCx5Q0FBOEM7QUFFOUMsSUFBSSxDQUFDO0lBQ0gsTUFBTTtRQUNKLElBQUksQ0FBQyxRQUFRLEVBQUUsQ0FBQztRQUNoQixJQUFJLENBQUMsYUFBYSxFQUFFLENBQUM7SUFDdkIsQ0FBQztJQUNELElBQUksRUFBRTtRQUNKLFFBQVEsRUFBRSxFQUFFO1FBQ1osS0FBSyxFQUFFLEVBQUU7UUFDVCxNQUFNLEVBQUUsQ0FBQztRQUNULFlBQVksRUFBRTtZQUNaLEtBQUssRUFBRSxNQUFNO1lBQ2IsVUFBVSxFQUFFLE9BQU87WUFDbkIsS0FBSyxFQUFFLENBQUM7U0FDVDtRQUNELGFBQWEsRUFBRTtZQUNiLEtBQUssRUFBRSxNQUFNO1lBQ2IsVUFBVSxFQUFFLEVBQUU7WUFDZCxLQUFLLEVBQUUsQ0FBQztTQUNUO1FBQ0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ICAgICAgICAgIHBheU1lbjogMCxcbiAgICAgICAgICAgIHBheWFibGVNb25leTogMCxcbiAgICAgICAgICB9KVxuICAgICAgICAgIC5tYXAoKHYsIGlkeCkgPT4gKHsgLi4udiwgZGF5czogaWR4ICsgMSB9KSk7XG5cbiAgICAgICAgbGV0IGNvbnN1bWVQcmljZSA9IDA7XG4gICAgICAgIGxldCBjb25zdW1lQ291bnQgPSAwO1xuICAgICAgICBpZiAocmVzLmRhdGEgJiYgcmVzLmRhdGEubGVuZ3RoKSB7XG4gICAgICAgICAgbGV0IG9MaXN0ID0gcmVzLmRhdGE7XG4gICAgICAgICAgZm9yIChsZXQgaW5kZXggPSAwOyBpbmRleCA8IG9MaXN0Lmxlbmd0aDsgaW5kZXgrKykge1xuICAgICAgICAgICAgY29uc3QgZWxlbWVudCA9IG9MaXN0W2luZGV4XTtcbiAgICAgICAgICAgIGNvbnN1bWVQcmljZSArPSBlbGVtZW50LnBheWFibGVNb25leTtcbiAgICAgICAgICAgIGNvbnN1bWVDb3VudCArPSBlbGVtZW50LnBheU1lbjtcbiAgICAgICAgICAgIGxldCBkYXlzSW5kZXggPSBlbGVtZW50LmNyZWF0ZURhdGUuc2xpY2UoLTIpO1xuICAgICAgICAgICAgZGF5TGlzdFtkYXlzSW5kZXhdID0ge1xuICAgICAgICAgICAgICAuLi5kYXlMaXN0W2RheXNJbmRleF0sXG4gICAgICAgICAgICAgIHBheU1lbjogZWxlbWVudC5wYXlNZW4sXG4gICAgICAgICAgICAgIHBheWFibGVNb25leTogZWxlbWVudC5wYXlhYmxlTW9uZXksXG4gICAgICAgICAgICB9O1xuICAgICAgICAgIH1cbiAgICAgICAgfVxuICAgICAgICB0aGlzLnNldERhdGEhKHtcbiAgICAgICAgICBjb25zdW1lTGlzdDogZGF5TGlzdCxcbiAgICAgICAgICAnY29uc3VtZURhdGEuY291bnQnOiBjb25zdW1lUHJpY2UsXG4gICAgICAgICAgJ2NvbnN1bWVDb3VudC5jb3VudCc6IGNvbnN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QgPSByZXMuZGF0YTtcbiAgICAgICAgICBmb3IgKGxldCBpbmRleCA9IDA7IGluZGV4IDwgb0xpc3QubGVuZ3RoOyBpbmRleCsrKSB7XG4gICAgICAgICAgICBjb25zdCBlbGVtZW50ID0gb0xpc3RbaW5kZXhdO1xuICAgICAgICAgICAgcmVjaGFyZ2VQcmljZSArPSBlbGVtZW50LnJlY2hhcmdlTW9uZXk7XG4gICAgICAgICAgICByZWNoYXJnZUNvdW50ICs9IGVsZW1lbnQucmVjaGFyZ2VNZW47XG4gICAgICAgICAgICBsZXQgZGF5c0luZGV4ID0gZWxlbWVudC5jb21wbGV0ZUF0LnNsaWNlKC0yKTtcbiAgICAgICAgICAgIGRheUxpc3RbZGF5c0luZGV4XSA9IHtcbiAgICAgICAgICAgICAgLi4uZGF5TGlzdFtkYXlzSW5kZXhdLFxuICAgICAgICAgICAgICByZWNoYXJnZU1vbmV5OiBlbGVtZW50LnJlY2hhcmdlTW9uZXksXG4gICAgICAgICAgICAgIHJlY2hhcmdlTWVuOiBlbGVtZW50LnJlY2hhcmdlTWVuLFxuICAgICAgICAgICAgICByZWZ1bmRDb3VudDogZWxlbWVudC5yZWZ1bmRDb3VudCxcbiAgICAgICAgICAgICAgcmVmdW5kTW9uZXk6IGVsZW1lbnQucmVmdW5kTW9uZXksXG4gICAgICAgICAgICB9O1xuICAgICAgICAgIH1cbiAgICAgICAgfVxuICAgICAgICB0aGlzLnNldERhdGEhKHtcbiAgICAgICAgICByZWNoYXJnZUFuZFJlZnVuZExpc3Q6IGRheUxpc3QsXG4gICAgICAgICAgJ3JlY2hhcmdlRGF0YS5jb3VudCc6IHJlY2hhcmdlUHJpY2UsXG4gICAgICAgICAgJ3JlY2hhcmdlQ291bnQuY291bnQnOiByZWNoYXJnZUNvdW50LFxuICAgICAgICB9KTtcbiAgICAgIH0pXG4gICAgICAuY2F0Y2goZXJyID0+IHtcbiAgICAgICAgY29uc29sZS5sb2coZXJyKTtcbiAgICAgIH0pO1xuICB9LF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b2cocmVzKTtcbiAgICAgICAgaWYgKHJlcy5kYXRhKSB7XG4gICAgICAgICAgY29uc3Qga2V5TWFwID0ge1xuICAgICAgICAgICAgYWltaTogJ+iJvuexs+ixhicsXG4gICAgICAgICAgICBiZWFuOiAn5raI6LS56LGGJyxcbiAgICAgICAgICAgIGRpc2NvdW50OiAn5LyY5oOg6YeR6aKdJyxcbiAgICAgICAgICAgIG9ubGluZTogJ+e6v+S4iuaUr+S7mCcsXG4gICAgICAgICAgfTtcbiAgICAgICAgICBsZXQgZGF0YUxpc3QgPSBPYmplY3Qua2V5cyhyZXMuZGF0YSkubWFwKGtleSA9PiAoe1xuICAgICAgICAgICAga2V5LFxuICAgICAgICAgICAgYTogJzEnLFxuICAgICAgICAgICAgbmFtZToga2V5TWFwW2tleV0sXG4gICAgICAgICAgICBjb3VudDogcmVzLmRhdGFba2V5XSxcbiAgICAgICAgICB9KSk7XG4gICAgICAgICAgdGhpcy5zZXREYXRhISh7XG4gICAgICAgICAgICBwYXlUeXBlTGlzdDogZGF0YUxpc3QsXG4gICAgICAgICAgfSk7XG4gICAgICAgIH1cbiAgICAgIH0pXG4gICAgICAuY2F0Y2goZXJyID0+IHtcbiAgICAgICAgY29uc29sZS5sb2coZXJyKTtcbiAgICAgIH0pO1xuICB9LFxufSk7XG4iXX0=
\ No newline at end of file
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibW9udGhPcGVyYXRvci5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIm1vbnRoT3BlcmF0b3IudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7OztBQUFBLHlDQUE2RDtBQUM3RCx5Q0FBOEM7QUFFOUMsSUFBSSxDQUFDO0lBQ0gsTUFBTTtRQUNKLElBQUksQ0FBQyxRQUFRLEVBQUUsQ0FBQztRQUNoQixJQUFJLENBQUMsYUFBYSxFQUFFLENBQUM7SUFDdkIsQ0FBQzt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S5tb250aCxcbiAgICAgIC4uLmVudGl0eSxcbiAgICB9O1xuICAgIHN0YXRpc3RpY3NGZXRjaCh7XG4gICAgICB1cmw6ICcvZGN4eS9yZXBvcnRJbmZvL2RhaWx5Q29uc3VtZUNvdW50JyxcbiAgICAgIG1ldGhvZDogJ1BPU1QnLFxuICAgICAgZGF0YTogcmVxQm9keSxcbiAgICB9KVxuICAgICAgLnRoZW4ocmVzID0+IHtcbiAgICAgICAgbGV0IGRheUxpc3QgPSBuZXcgQXJyYXkoMzEpXG4gICAgICAgICAgLmZpbGwoe1xuICAgICAgICAgICAgcGF5TWVuOiAwLFxuICAgICAgICAgICAgcGF5YWJsZU1vbmV5OiAwLFxuICAgICAgICAgIH0pXG4gICAgICAgICAgLm1hcCgodiwgaWR4KSA9PiAoeyAuLi52LCBkYXlzOiBpZHggKyAxIH0pKTtcblxuICAgICAgICBsZXQgY29uc3VtZVByaWNlID0gMDtcbiAgICAgICAgbGV0IGNvbnN1bWVDb3VudCA9IDA7XG4gICAgICAgIGlmIChyZXMuZGF0YSAmJiByZXMuZGF0YS5sZW5ndGgpIHtcbiAgICAgICAgICBsZXQgb0xpc3QgPSByZXMuZGF0YTtcbiAgICAgICAgICBmb3IgKGxldCBpbmRleCA9IDA7IGluZGV4IDwgb0xpc3QubGVuZ3RoOyBpbmRleCsrKSB7XG4gICAgICAgICAgICBjb25zdCBlbGVtZW50ID0gb0xpc3RbaW5kZXhdO1xuICAgICAgICAgICAgY29uc3VtZVByaWNlICs9IGVsZW1lbnQucGF5YWJsZU1vbmV5O1xuICAgICAgICAgICAgY29uc3VtZUNvdW50ICs9IGVsZW1lbnQucGF5TWVuO1xuICAgICAgICAgICAgbGV0IGRheXNJbmRleCA9IGVsZW1lbnQuY3JlYXRlRGF0ZS5zbGljZSgtMik7XG4gICAgICAgICAgICBkYXlMaXN0W2RheXNJbmRleF0gPSB7XG4gICAgICAgICAgICAgIC4uLmRheUxpc3RbZGF5c0luZGV4XSxcbiAgICAgICAgICAgICAgcGF5TWVuOiBlbGVtZW50LnBheU1lbixcbiAgICAgICAgICAgICAgcGF5YWJsZU1vbmV5OiBlbGVtZW50LnBheWFibGVNb25leSxcbiAgICAgICAgICAgIH07XG4gICAgICAgICAgfVxuICAgICAgICB9XG4gICAgICAgIHRoaXMuc2V0RGF0YSEoe1xuICAgICAgICAgIGNvbnN1bWVMaXN0OiBkYXlMaXN0LFxuICAgICAgICAgICdjb25zdW1lRGF0YS5jb3VudCc6IGNvbnN1bWVQcmljZSxcbiAgICAgICAgICAnY29uc3VtZUNvdW50LmNvdW50JzogY29uc3VtZUNvdW50LFxuICAgICAgICB9KTtcbiAgICAgIH0pXG4gICAgICAuY2F0Y2goZXJyID0+IHtcbiAgICAgICAgY29uc29sZS5sb2coZXJyKTtcbiAgICAgIH0pO1xuICB9LFxuICBmZXRjaFJlY2hhcmdlRGF0YShlbnRpdHk/OiB7IGFyZWFJZD86IG51bWJlcjsgbW9udGg/OiBzdHJpbmcgfSkge1xuICAgIGxldCByZXFCb2R5ID0ge1xuICAgICAgbW9udGg6IHRoaXMuZGF0YS5tb250aCxcbiAgICAgIC4uLmVudGl0eSxcbiAgICB9O1xuICAgIHN0YXRpc3RpY3NGZXRjaCh7XG4gICAgICB1cmw6ICcvZGN4eS9yZXBvcnRJbmZvL3F1ZXJ5UmVjaGFyZ2VMaXN0RGFpbHknLFxuICAgICAgbWV0aG9kOiAnUE9TVCcsXG4gICAgICBkYXRhOiByZXFCb2R5LFxuICAgIH0pXG4gICAgICAudGhlbihyZXMgPT4ge1xuICAgICAgICBsZXQgZGF5TGlzdCA9IG5ldyBBcnJheSgzMSlcbiAgICAgICAgICAuZmlsbCh7XG4gICAgICAgICAgICByZWNoYXJnZU1vbmV5OiAwLFxuICAgICAgICAgICAgcmVjaGFyZ2VNZW46IDAsXG4gICAgICAgICAgICByZWZ1bmRDb3VudDogMCxcbiAgICAgICAgICAgIHJlZnVuZE1vbmV5OiAwLFxuICAgICAgICAgIH0pXG4gICAgICAgICAgLm1hcCgodiwgaWR4KSA9PiAoeyAuLi52LCBkYXlzOiBpZHggKyAxIH0pKTtcbiAgICAgICAgbGV0IHJlY2hhcmdlUHJpY2UgPSAwO1xuICAgICAgICBsZXQgcmVjaGFyZ2VDb3VudCA9IDA7XG4gICAgICAgIGlmIChyZXMuZGF0YSAmJiByZXMuZGF0YS5sZW5ndGgpIHtcbiAgICAgICAgICBsZXQgb0xpc3QgPSByZXMuZGF0YTtcbiAgICAgICAgICBmb3IgKGxldCBpbmRleCA9IDA7IGluZGV4IDwgb0xpc3QubGVuZ3RoOyBpbmRleCsrKSB7XG4gICAgICAgICAgICBjb25zdCBlbGVtZW50ID0gb0xpc3RbaW5kZXhdO1xuICAgICAgICAgICAgcmVjaGFyZ2VQcmljZSArPSBlbGVtZW50LnJlY2hhcmdlTW9uZXk7XG4gICAgICAgICAgICByZWNoYXJnZUNvdW50ICs9IGVsZW1lbnQucmVjaGFyZ2VNZW47XG4gICAgICAgICAgICBsZXQgZGF5c0luZGV4ID0gZWxlbWVudC5jb21wbGV0ZUF0LnNsaWNlKC0yKTtcbiAgICAgICAgICAgIGRheUxpc3RbZGF5c0luZGV4XSA9IHtcbiAgICAgICAgICAgICAgLi4uZGF5TGlzdFtkYXlzSW5kZXhdLFxuICAgICAgICAgICAgICByZWNoYXJnZU1vbmV5OiBlbGVtZW50LnJlY2hhcmdlTW9uZXksXG4gICAgICAgICAgICAgIHJlY2hhcmdlTWVuOiBlbGVtZW50LnJlY2hhcmdlTWVuLFxuICAgICAgICAgICAgICByZWZ1bmRDb3VudDogZWxlbWVudC5yZWZ1bmRDb3VudCxcbiAgICAgICAgICAgICAgcmVmdW5kTW9uZXk6IGVsZW1lbnQucmVmdW5kTW9uZXksXG4gICAgICAgICAgICB9O1xuICAgICAgICAgIH1cbiAgICAgICAgfVxuICAgICAgICB0aGlzLnNldERhdGEhKHtcbiAgICAgICAgICByZWNoYXJnZUFuZFJlZnVuZExpc3Q6IGRheUxpc3QsXG4gICA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XFCb2R5LFxuICAgIH0pXG4gICAgICAudGhlbihyZXMgPT4ge1xuICAgICAgICBjb25zb2xlLmxvZyhyZXMpO1xuICAgICAgICBpZiAocmVzLmRhdGEpIHtcbiAgICAgICAgICBjb25zdCBrZXlNYXAgPSB7XG4gICAgICAgICAgICBhaW1pOiAn6Im+57Gz6LGGJyxcbiAgICAgICAgICAgIGJlYW46ICfmtojotLnosYYnLFxuICAgICAgICAgICAgZGlzY291bnQ6ICfkvJjmg6Dph5Hpop0nLFxuICAgICAgICAgICAgb25saW5lOiAn57q/5LiK5pSv5LuYJyxcbiAgICAgICAgICB9O1xuICAgICAgICAgIGxldCBkYXRhTGlzdCA9IE9iamVjdC5rZXlzKHJlcy5kYXRhKS5tYXAoa2V5ID0+ICh7XG4gICAgICAgICAgICBrZXksXG4gICAgICAgICAgICBhOiAnMScsXG4gICAgICAgICAgICBuYW1lOiBrZXlNYXBba2V5XSxcbiAgICAgICAgICAgIGNvdW50OiByZXMuZGF0YVtrZXldLFxuICAgICAgICAgIH0pKTtcbiAgICAgICAgICB0aGlzLnNldERhdGEhKHtcbiAgICAgICAgICAgIHBheVR5cGVMaXN0OiBkYXRhTGlzdCxcbiAgICAgICAgICB9KTtcbiAgICAgICAgfVxuICAgICAgfSlcbiAgICAgIC5jYXRjaChlcnIgPT4ge1xuICAgICAgICBjb25zb2xlLmxvZyhlcnIpO1xuICAgICAgfSk7XG4gIH0sXG59KTtcbiJdfQ==
\ No newline at end of file
......@@ -2,6 +2,7 @@
"navigationBarTitleText": "月度运营分析",
"usingComponents": {
"c-select": "../components/Select/Select",
"area-select": "../components/AreaSelect/AreaSelect",
"recharge-chart": "../components/RechargeChart/RechargeChart",
"refund-chart": "../components/RefundChart/RefundChart",
"consume-chart": "../components/ConsumeChart/ConsumeChart",
......
......@@ -64,9 +64,33 @@ Page({
areaChangeHandle(val) {
console.log('areaChangeHandle', val);
const { value } = val.detail;
this.fetchList({ areaId: [value] });
this.setData!(
{
areaId: value,
},
() => {
if (value) {
this.fetchList({ areaId: [value] });
} else {
this.fetchList();
}
},
);
},
monthChangeHandle(val) {
console.log('monthChangeHandle', val);
const { value } = val.detail;
this.fetchList({ month: value });
this.setData!({
month: value,
});
},
fetchList(entity?: { areaId?: number; month?: string }) {
if (this.data.areaId) {
if (entity && entity.areaId) {
} else entity = { ...entity, areaId: [this.data.areaId] };
}
console.log(this.data.areaId, entity);
this.fetchRechargeData(entity);
this.fetchConsumeData(entity);
this.fetchServiceTypeList(entity);
......@@ -77,7 +101,6 @@ Page({
month: this.data.month,
...entity,
};
if (this.data.areaId) reqBody.areaId = this.data.areaId;
statisticsFetch({
url: '/dcxy/reportInfo/dailyConsumeCount',
method: 'POST',
......@@ -122,7 +145,6 @@ Page({
month: this.data.month,
...entity,
};
if (this.data.areaId) reqBody.areaId = this.data.areaId;
statisticsFetch({
url: '/dcxy/reportInfo/queryRechargeListDaily',
method: 'POST',
......@@ -170,7 +192,6 @@ Page({
month: this.data.month,
...entity,
};
if (this.data.areaId) reqBody.areaId = this.data.areaId;
statisticsFetch({
url: '/dcxy/reportInfo/serviceConsume',
method: 'POST',
......@@ -191,7 +212,6 @@ Page({
month: this.data.month,
...entity,
};
if (this.data.areaId) reqBody.areaId = this.data.areaId;
statisticsFetch({
url: '/dcxy/reportInfo/payTypeConsume',
method: 'POST',
......
......@@ -2,10 +2,10 @@
<view class="monthOperator">
<view class="monthOperator-filter">
<view class="monthOperator-area">
<c-select mode="selector" range="{{areaList}}" range-key="{{'areaName'}}" bindchange="areaChangeHandle" placeholder="所属区域选择" />
<area-select range="{{areaList}}" range-key="{{'areaName'}}" bindchange="areaChangeHandle" placeholder="所属区域选择" />
</view>
<view class="monthOperator-time">
<c-select mode="date" fields="month" value="{{month}}" bindchange="bindPickerChange" />
<c-select mode="date" fields="month" value="{{month}}" bindchange="monthChangeHandle" />
</view>
</view>
<view class="monthOperator-block">
......
......@@ -5,10 +5,11 @@
justify-content: space-between;
}
.monthOperator-area {
flex: 1;
width: 400rpx;
}
.monthOperator-time {
width: 250rpx;
min-width: 250rpx;
margin-left: 20rpx;
}
.monthOperator-block {
......@@ -55,6 +56,6 @@
width: 660rpx;
height: 350rpx;
}
.monthOperator-canvas.autoheight{
.monthOperator-canvas.autoheight {
height: auto;
}
\ No newline at end of file
}
......@@ -2,15 +2,6 @@
Object.defineProperty(exports, "__esModule", { value: true });
var app = getApp();
Component({
pageLifetimes: {
show: function () {
if (typeof this.getTabBar === 'function' && this.getTabBar()) {
this.getTabBar().setData({
selected: 1,
});
}
},
},
lifetimes: {
attached: function () {
console.log(app.globalData.userInfo);
......@@ -31,7 +22,7 @@ Component({
{
name: '用户增长分析',
icon: '../../../images/btn_yonghu@2x.png',
url: '/pages/monthOperator/monthOperator',
url: '/pages/userGrowth/userGrowth',
reLaunch: false,
},
{
......@@ -41,25 +32,15 @@ Component({
reLaunch: false,
},
{
name: '服务费缴纳',
icon: '../../../images/btn_jiaona@2x.png',
url: '',
reLaunch: false,
},
{
name: '账户提现',
icon: '../../../images/btn_tixian@2x.png',
url: '',
reLaunch: false,
},
{
name: '退出登录',
icon: '../../../images/btn_Sign out@2x.png',
url: '/pages/index/index',
reLaunch: true,
},
{},
{},
],
account: 0,
},
});
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicmVwb3J0LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsicmVwb3J0LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7O0FBR0EsSUFBTSxHQUFHLEdBQUcsTUFBTSxFQUFVLENBQUM7QUFDN0IsU0FBUyxDQUFDO0lBQ1IsYUFBYSxFQUFFO1FBQ2IsSUFBSTtZQUNGLEVBQUUsQ0FBQyxDQUFDLE9BQU8sSUFBSSxDQUFDLFNBQVMsS0FBSyxVQUFVLElBQUksSUFBSSxDQUFDLFNBQVMsRUFBRSxDQUFDLENBQUMsQ0FBQztnQkFDN0QsSUFBSSxDQUFDLFNBQVMsRUFBRS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bvlvZUnLFxuICAgICAgICBpY29uOiAnLi4vLi4vLi4vaW1hZ2VzL2J0bl9TaWduIG91dEAyeC5wbmcnLFxuICAgICAgICB1cmw6ICcvcGFnZXMvaW5kZXgvaW5kZXgnLFxuICAgICAgICByZUxhdW5jaDogdHJ1ZSxcbiAgICAgIH0sXG4gICAgICB7fSxcbiAgICAgIHt9LFxuICAgIF0sXG4gICAgYWNjb3VudDogMCxcbiAgfSxcbn0pO1xuIl19
\ No newline at end of file
......@@ -3,15 +3,6 @@ import { IMyApp } from '../../app';
// miniprogram/pages/report/report.js
const app = getApp<IMyApp>();
Component({
pageLifetimes: {
show() {
if (typeof this.getTabBar === 'function' && this.getTabBar()) {
this.getTabBar().setData({
selected: 1,
});
}
},
},
lifetimes: {
attached() {
console.log(app.globalData.userInfo);
......@@ -35,7 +26,7 @@ Component({
{
name: '用户增长分析',
icon: '../../../images/btn_yonghu@2x.png',
url: '/pages/monthOperator/monthOperator',
url: '/pages/userGrowth/userGrowth',
reLaunch: false,
},
{
......@@ -44,24 +35,26 @@ Component({
url: '/pages/feedback/feedback',
reLaunch: false,
},
{
name: '服务费缴纳',
icon: '../../../images/btn_jiaona@2x.png',
url: '',
reLaunch: false,
},
{
name: '账户提现',
icon: '../../../images/btn_tixian@2x.png',
url: '',
reLaunch: false,
},
// {
// name: '服务费缴纳',
// icon: '../../../images/btn_jiaona@2x.png',
// url: '',
// reLaunch: false,
// },
// {
// name: '账户提现',
// icon: '../../../images/btn_tixian@2x.png',
// url: '',
// reLaunch: false,
// },
{
name: '退出登录',
icon: '../../../images/btn_Sign out@2x.png',
url: '/pages/index/index',
reLaunch: true,
},
{},
{},
],
account: 0,
},
......
......@@ -13,7 +13,7 @@
<view class="report-header-userImg">
</view>
</view>
<view class="report-header-account">
<!-- <view class="report-header-account">
<view class="report-header-accountItem">
<view class="report-header-accountItemTitle">账户余额</view>
<view class="report-header-accountItemValue">10000</view>
......@@ -26,7 +26,7 @@
<view class="report-header-accountItemTitle">代缴服务费</view>
<view class="report-header-accountItemValue">10000</view>
</view>
</view>
</view> -->
<view class="report-header-bottom"></view>
</view>
<view class="report-nav">
......
......@@ -53,13 +53,20 @@ Page({
});
},
fetchList: function (entity) {
if (this.data.areaId) {
if (entity && entity.areaId) {
}
else
entity = __assign({}, entity, { areaId: this.data.areaId });
}
this.fetchUserData(entity);
},
fetchUserData: function (entity) {
var _this = this;
var reqBody = __assign({ year: this.data.month.slice(0, 4), isAdmin: 1 }, entity);
if (this.data.areaId)
reqBody.areaId = this.data.areaId;
var monthString = entity && entity.monthString ? entity.monthString : this.data.month;
var _a = monthString.split('-'), year = _a[0], month = _a[1];
var reqBody = __assign({ year: year,
month: month, isAdmin: 1 }, entity);
fetch_1.statisticsFetch({
url: '/dcxy/reportInfo/queryReportList',
data: reqBody,
......@@ -76,7 +83,7 @@ Page({
var oList = dayVos;
for (var index = 0; index < oList.length; index++) {
var element = oList[index];
var daysIndex = element.completeAt.slice(-2);
var daysIndex = element.days.slice(-2);
dayList[daysIndex] = __assign({}, dayList[daysIndex], { count: element.count });
}
}
......@@ -91,6 +98,28 @@ Page({
console.log(err);
});
},
areaChangeHandle: function () { },
areaChangeHandle: function (val) {
var _this = this;
console.log('areaChangeHandle', val);
var value = val.detail.value;
this.setData({
areaId: value,
}, function () {
if (value) {
_this.fetchList({ areaId: value });
}
else {
_this.fetchList();
}
});
},
monthChangeHandle: function (val) {
console.log('monthChangeHandle', val);
var value = val.detail.value;
this.fetchList({ monthString: value });
this.setData({
month: value,
});
},
});
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidXNlckdyb3d0aC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbInVzZXJHcm93dGgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7OztBQUFBLHlDQUE2RDtBQUM3RCx5Q0FBOEM7QUFHOUMsSUFBSSxDQUFDO0lBQ0gsTUFBTTtRQUNKL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zEpXG4gICAgICAgICAgLmZpbGwoe1xuICAgICAgICAgICAgY291bnQ6IDAsXG4gICAgICAgICAgfSlcbiAgICAgICAgICAubWFwKCh2LCBpZHgpID0+ICh7IC4uLnYsIGRheXM6IGlkeCArIDEgfSkpO1xuXG4gICAgICAgIGlmIChkYXlWb3MgJiYgZGF5Vm9zLmxlbmd0aCkge1xuICAgICAgICAgIGxldCBvTGlzdCA9IGRheVZvcztcbiAgICAgICAgICBmb3IgKGxldCBpbmRleCA9IDA7IGluZGV4IDwgb0xpc3QubGVuZ3RoOyBpbmRleCsrKSB7XG4gICAgICAgICAgICBjb25zdCBlbGVtZW50ID0gb0xpc3RbaW5kZXhdO1xuICAgICAgICAgICAgbGV0IGRheXNJbmRleCA9IGVsZW1lbnQuY29tcGxldGVBdC5zbGljZSgtMik7XG4gICAgICAgICAgICBkYXlMaXN0W2RheXNJbmRleF0gPSB7XG4gICAgICAgICAgICAgIC4uLmRheUxpc3RbZGF5c0luZGV4XSxcbiAgICAgICAgICAgICAgY291bnQ6IGVsZW1lbnQuY291bnQsXG4gICAgICAgICAgICB9O1xuICAgICAgICAgIH1cbiAgICAgICAgfVxuICAgICAgICBjb25zb2xlLmxvZygnZGF5TGlzdDonLCBkYXlMaXN0KTtcbiAgICAgICAgdGhpcy5zZXREYXRhISh7XG4gICAgICAgICAgZ3Jvd3RoTGlzdDogZGF5TGlzdCxcbiAgICAgICAgICBjdXN0b21lckNvdW50OiBjdXN0b21lckNvdW50ID8gY3VzdG9tZXJDb3VudCA6IDAsXG4gICAgICAgICAgYWN0aXZlQ291bnQ6IGFjdGl2ZUNvdW50ID8gYWN0aXZlQ291bnQgOiAwLFxuICAgICAgICB9KTtcbiAgICAgIH0pXG4gICAgICAuY2F0Y2goZXJyID0+IHtcbiAgICAgICAgY29uc29sZS5sb2coZXJyKTtcbiAgICAgIH0pO1xuICB9LFxuICBhcmVhQ2hhbmdlSGFuZGxlKCkge30sXG59KTtcbiJdfQ==
\ No newline at end of file
//# s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sLmRldGFpbDtcbiAgICB0aGlzLmZldGNoTGlzdCh7IG1vbnRoU3RyaW5nOiB2YWx1ZSB9KTtcbiAgICB0aGlzLnNldERhdGEhKHtcbiAgICAgIG1vbnRoOiB2YWx1ZSxcbiAgICB9KTtcbiAgfSxcbn0pO1xuIl19
\ No newline at end of file
......@@ -3,6 +3,7 @@
"usingComponents": {
"user-grouth-chart": "../components/UserGrouthChart/UserGrouthChart",
"user-activity-chart": "../components/UserActivityChart/UserActivityChart",
"area-select": "../components/AreaSelect/AreaSelect",
"c-select": "../components/Select/Select"
}
}
......@@ -44,16 +44,23 @@ Page({
console.log(err);
});
},
fetchList(entity?: { areaId?: number; month?: string }) {
fetchList(entity?: { areaId?: number; monthString?: string }) {
if (this.data.areaId) {
if (entity && entity.areaId) {
} else entity = { ...entity, areaId: this.data.areaId };
}
this.fetchUserData(entity);
},
fetchUserData(entity) {
let monthString =
entity && entity.monthString ? entity.monthString : this.data.month;
const [year, month] = monthString.split('-');
let reqBody = {
year: this.data.month.slice(0, 4),
year,
month,
isAdmin: 1,
...entity,
};
if (this.data.areaId) reqBody.areaId = this.data.areaId;
statisticsFetch({
url: '/dcxy/reportInfo/queryReportList',
data: reqBody,
......@@ -71,7 +78,7 @@ Page({
let oList = dayVos;
for (let index = 0; index < oList.length; index++) {
const element = oList[index];
let daysIndex = element.completeAt.slice(-2);
let daysIndex = element.days.slice(-2);
dayList[daysIndex] = {
...dayList[daysIndex],
count: element.count,
......@@ -89,5 +96,28 @@ Page({
console.log(err);
});
},
areaChangeHandle() {},
areaChangeHandle(val) {
console.log('areaChangeHandle', val);
const { value } = val.detail;
this.setData!(
{
areaId: value,
},
() => {
if (value) {
this.fetchList({ areaId: value });
} else {
this.fetchList();
}
},
);
},
monthChangeHandle(val) {
console.log('monthChangeHandle', val);
const { value } = val.detail;
this.fetchList({ monthString: value });
this.setData!({
month: value,
});
},
});
......@@ -16,10 +16,10 @@
</view>
<view class="userGrowth-filter">
<view class="userGrowth-area">
<c-select mode="selector" range="{{areaList}}" range-key="{{'areaName'}}" bindchange="areaChangeHandle" placeholder="所属区域选择" />
<area-select range="{{areaList}}" range-key="{{'areaName'}}" bindchange="areaChangeHandle" placeholder="所属区域选择" />
</view>
<view class="userGrowth-time">
<c-select mode="date" fields="month" value="{{month}}" bindchange="bindPickerChange" />
<c-select mode="date" fields="month" value="{{month}}" bindchange="monthChangeHandle" />
</view>
</view>
<view class="userGrowth-block">
......
......@@ -20,7 +20,7 @@
justify-content: space-between;
}
.userGrowth-area {
flex: 1;
width: 400rpx;
}
.userGrowth-time {
width: 250rpx;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment