Commit 756ce1b0 by 姜雷

Merge branch 'test'

parents a66ccfc6 60d79da4
...@@ -6,7 +6,8 @@ ...@@ -6,7 +6,8 @@
"pages/feedback/feedback", "pages/feedback/feedback",
"pages/monthOperator/monthOperator", "pages/monthOperator/monthOperator",
"pages/homeAndReport/homeAndReport", "pages/homeAndReport/homeAndReport",
"pages/userGrowth/userGrowth" "pages/userGrowth/userGrowth",
"pages/areaSelect/areaSelect"
], ],
"window": { "window": {
"backgroundTextStyle": "light", "backgroundTextStyle": "light",
......
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var fetch_1 = require("../../api/fetch");
Page({
data: {
selected: '',
selectedIndex: '',
areaList: [],
filterList: [],
methodName: '',
},
onLoad: function (options) {
console.log(options);
var methodName = options.methodName, value = options.value;
this.fetchAreaList();
this.setData({
methodName: methodName,
selected: value,
});
},
onShow: function () { },
fetchAreaList: function () {
var _this = this;
fetch_1.baseFetch({
url: '/dcxy/baseArea/queryAll',
})
.then(function (res) {
if (res.data) {
_this.setData({
areaList: res.data,
filterList: res.data,
});
if (_this.data.selected) {
var index = res.data.findIndex(function (item) { return item.id == _this.data.selected; });
console.log(_this.data.selected, index);
if (index > -1) {
_this.setData({
selectedIndex: index,
});
}
}
}
else {
_this.setData({
areaList: [],
filterList: [],
});
}
})
.catch(function (err) {
console.log(err);
});
},
inputHandle: function (e) {
var value = e.detail.value;
console.log(e, value);
var filterList = [];
if (value) {
filterList = this.data.areaList.filter(function (item) {
return item['areaName'].includes(value);
});
}
else {
filterList = this.data.areaList;
}
this.setData({
filterList: filterList,
});
},
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.filterList[value].id,
selectedIndex: value,
});
}
},
bindPickerChange: function () {
var value = this.data.selected;
var pages = getCurrentPages();
var prevPage = pages[pages.length - 2];
var entity = {};
if (value) {
entity = {
id: value,
name: this.data.filterList[this.data.selectedIndex].areaName,
};
}
else {
entity = { id: '', name: '' };
}
if (this.data.methodName && prevPage[this.data.methodName]) {
prevPage[this.data.methodName](entity);
}
wx.navigateBack({ delta: 1 });
},
});
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYXJlYVNlbGVjdC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImFyZWFTZWxlY3QudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7QUFBQSx5Q0FBNEM7QUFHNUMsSUFBSSxDQUFDO0lBSUgsSUFBSSxFQUFFO1FBQ0osUUFBUSxFQUFFLEVBQUU7UUFDWixhQUFhLEVBQUUsRUFBRTtRQUNqQixRQUFRLEVBQUUsRUFBRTtRQUNaLFVBQVUsRUFBRSxFQUFFO1FBQ2QsVUFBVSxFQUFFLEVBQUU7S0FDZjtJQUtELE1BQU0sRUFBRSxVQUFTLE9BQU87UUFDdEIsT0FBTyxDQUFDLEdBQUcsQ0FBQyxPQUFPLENBQUMsQ0FBQztRQUNiLElBQUEsK0JBQVUsRUFBRSxxQkFBSyxDQUFhO1FBQ3RDLElBQUksQ0FBQyxhQUFhLEVBQUUsQ0FBQztRQUNyQixJQUFJLENBQUMsT0FBUSxDQUFDO1lBQ1osVUFBVSxZQUFBO1lBQ1YsUUFBUSxFQUFFLEtBQUs7U0FDaEIsQ0FBQyxDQUFDO0lBQ0wsQ0FBQztJQUlELE1BQU0sRUFBRSxjQUFZLENBQUM7SUFDckIsYUFBYTtRQUFiLGlCQStCQztRQTlCQyxpQkFBUyxDQUFDO1lBQ1IsR0FBRyxFQUFFLHlCQUF5QjtTQUMvQixDQUFDO2FBQ0MsSUFBSSxDQUFDLFVBQUEsR0FBRztZQUNQLEVBQUUsQ0FBQyxDQUFDLEdBQUcsQ0FBQyxJQUFJLENBQUMsQ0FBQyxDQUFDO2dCQUNiLEtBQUksQ0FBQyxPQUFRLENBQUM7b0JBQ1osUUFBUSxFQUF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tcbiAgICAgICAgICAgIGFyZWFMaXN0OiByZXMuZGF0YSxcbiAgICAgICAgICAgIGZpbHRlckxpc3Q6IHJlcy5kYXRhLFxuICAgICAgICAgIH0pO1xuICAgICAgICAgIGlmICh0aGlzLmRhdGEuc2VsZWN0ZWQpIHtcbiAgICAgICAgICAgIGxldCBpbmRleCA9IHJlcy5kYXRhLmZpbmRJbmRleChcbiAgICAgICAgICAgICAgaXRlbSA9PiBpdGVtLmlkID09IHRoaXMuZGF0YS5zZWxlY3RlZCxcbiAgICAgICAgICAgICk7XG4gICAgICAgICAgICBjb25zb2xlLmxvZyh0aGlzLmRhdGEuc2VsZWN0ZWQsaW5kZXgpXG4gICAgICAgICAgICBpZiAoaW5kZXggPiAtMSkge1xuICAgICAgICAgICAgICB0aGlzLnNldERhdGEoe1xuICAgICAgICAgICAgICAgIHNlbGVjdGVkSW5kZXg6IGluZGV4LFxuICAgICAgICAgICAgICB9KTtcbiAgICAgICAgICAgIH1cbiAgICAgICAgICB9XG4gICAgICAgIH0gZWxzZSB7XG4gICAgICAgICAgdGhpcy5zZXREYXRhISh7XG4gICAgICAgICAgICBhcmVhTGlzdDogW10sXG4gICAgICAgICAgICBmaWx0ZXJMaXN0OiBbXSxcbiAgICAgICAgICB9KTtcbiAgICAgICAgfVxuICAgICAgfSlcbiAgICAgIC5jYXRjaChlcnIgPT4ge1xuICAgICAgICBjb25zb2xlLmxvZyhlcnIpO1xuICAgICAgfSk7XG4gIH0sXG4gIGlucHV0SGFuZGxlKGUpIHtcbiAgICBjb25zdCB7IHZhbHVlIH0gPSBlLmRldGFpbDtcbiAgICBjb25zb2xlLmxvZyhlLCB2YWx1ZSk7XG4gICAgbGV0IGZpbHRlckxpc3QgPSBbXTtcbiAgICBpZiAodmFsdWUpIHtcbiAgICAgIGZpbHRlckxpc3QgPSB0aGlzLmRhdGEuYXJlYUxpc3QuZmlsdGVyKGl0ZW0gPT5cbiAgICAgICAgaXRlbVsnYXJlYU5hbWUnXS5pbmNsd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gIGlmICh2YWx1ZSkge1xuICAgICAgZW50aXR5ID0ge1xuICAgICAgICBpZDogdmFsdWUsXG4gICAgICAgIG5hbWU6IHRoaXMuZGF0YS5maWx0ZXJMaXN0W3RoaXMuZGF0YS5zZWxlY3RlZEluZGV4XS5hcmVhTmFtZSxcbiAgICAgIH07XG4gICAgfSBlbHNlIHtcbiAgICAgIGVudGl0eSA9IHsgaWQ6ICcnLCBuYW1lOiAnJyB9O1xuICAgIH1cbiAgICBpZiAodGhpcy5kYXRhLm1ldGhvZE5hbWUgJiYgcHJldlBhZ2VbdGhpcy5kYXRhLm1ldGhvZE5hbWVdKSB7XG4gICAgICBwcmV2UGFnZVt0aGlzLmRhdGEubWV0aG9kTmFtZV0oZW50aXR5KTtcbiAgICB9XG4gICAgd3gubmF2aWdhdGVCYWNrKHsgZGVsdGE6IDEgfSk7XG4gIH0sXG59KTtcbiJdfQ==
\ No newline at end of file
{
"navigationBarTitleText": "区域选择",
"usingComponents": {}
}
\ No newline at end of file
import { baseFetch } from '../../api/fetch';
// miniprogram/pages/areaSelect/areaSelect.js
Page({
/**
* 页面的初始数据
*/
data: {
selected: '',
selectedIndex: '',
areaList: [],
filterList: [],
methodName: '',
},
/**
* 生命周期函数--监听页面加载
*/
onLoad: function(options) {
console.log(options);
const { methodName, value } = options;
this.fetchAreaList();
this.setData!({
methodName,
selected: value,
});
},
/**
* 生命周期函数--监听页面显示
*/
onShow: function() {},
fetchAreaList() {
baseFetch({
url: '/dcxy/baseArea/queryAll',
})
.then(res => {
if (res.data) {
this.setData!({
areaList: res.data,
filterList: res.data,
});
if (this.data.selected) {
let index = res.data.findIndex(
item => item.id == this.data.selected,
);
console.log(this.data.selected,index)
if (index > -1) {
this.setData({
selectedIndex: index,
});
}
}
} else {
this.setData!({
areaList: [],
filterList: [],
});
}
})
.catch(err => {
console.log(err);
});
},
inputHandle(e) {
const { value } = e.detail;
console.log(e, value);
let filterList = [];
if (value) {
filterList = this.data.areaList.filter(item =>
item['areaName'].includes(value),
);
} else {
filterList = this.data.areaList;
}
this.setData({
filterList,
});
},
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.filterList[value].id,
selectedIndex: value,
});
}
},
bindPickerChange() {
let value = this.data.selected;
// this.setData!({
// showPickerView: false,
// });
// this.triggerEvent('change', { value }, {});
var pages = getCurrentPages();
var prevPage = pages[pages.length - 2]; //上一个页面
let entity = {};
if (value) {
entity = {
id: value,
name: this.data.filterList[this.data.selectedIndex].areaName,
};
} else {
entity = { id: '', name: '' };
}
if (this.data.methodName && prevPage[this.data.methodName]) {
prevPage[this.data.methodName](entity);
}
wx.navigateBack({ delta: 1 });
},
});
<!-- miniprogram/pages/areaSelect/areaSelect.wxml -->
<view class="areaselect-pickBox">
<view 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.areaName}}
</view>
</view>
</view>
\ No newline at end of file
/* miniprogram/pages/areaSelect/areaSelect.wxss */
page {
height: 100%;
}
.areaselect-pickBox {
box-sizing: border-box;
padding-bottom: constant(safe-area-inset-bottom);
padding-bottom: env(safe-area-inset-bottom);
background-color: #fff;
width: 100%;
height: 100%;
display: flex;
flex-direction: column;
}
.areaselect-pickFilter {
display: flex;
padding: 40rpx 40rpx 0;
align-items: center;
}
.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;
}
...@@ -20,9 +20,25 @@ Component({ ...@@ -20,9 +20,25 @@ Component({
type: String, type: String,
value: '', value: '',
observer: function (newVal) { observer: function (newVal) {
console.log(newVal);
this.setData({ selected: newVal }); this.setData({ selected: newVal });
}, },
}, },
mode: {
type: String,
value: 'selector',
},
methodName: {
type: String,
value: '',
},
showText: {
type: String,
value: '',
observer: function (val) {
console.log('in showText', val);
},
},
}, },
data: { data: {
showPickerView: false, showPickerView: false,
...@@ -32,9 +48,16 @@ Component({ ...@@ -32,9 +48,16 @@ Component({
}, },
methods: { methods: {
inputClickHandle: function () { inputClickHandle: function () {
if (this.data.mode === 'page') {
wx.navigateTo({
url: "/pages/areaSelect/areaSelect?methodName=" + this.data.methodName + "&value=" + this.data.value,
});
}
else {
this.setData({ this.setData({
showPickerView: !this.data.showPickerView, showPickerView: !this.data.showPickerView,
}); });
}
}, },
innerClickHandle: function (e) { innerClickHandle: function (e) {
return false; return false;
...@@ -87,4 +110,4 @@ Component({ ...@@ -87,4 +110,4 @@ Component({
}, },
}, },
}); });
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiQXJlYVNlbGVjdC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIkFyZWFTZWxlY3QudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUNBLFNBQVMsQ0FBQztJQUNSLFVBQVUsRUFBRTtRQUNWLFdBQVcsRUFBRTtZQUNYLElBQUksRUFBRSxNQUFNO1lBQ1osS0FBSyxFQUFFLEtBQUs7U0FDYjtRQUNELEtBQUssRUFBRTtZQUNMLElBQUksRUFBRSxLQUFLO1lBQ1gsS0FBSyxFQUFFLEVBQUU7WUFDVCxRQUFRLFlBQUMsTUFBTTtnQkFDYixJQUFJLENBQUMsT0FBTyxDQUFDLEVBQUUsVUFBVSxFQUFFLE1BQU0sRUFBRSxDQUFDLENBQUM7WUF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Q==
\ No newline at end of file \ No newline at end of file
...@@ -20,9 +20,25 @@ Component({ ...@@ -20,9 +20,25 @@ Component({
type: String, type: String,
value: '', value: '',
observer(newVal) { observer(newVal) {
console.log(newVal);
this.setData({ selected: newVal }); this.setData({ selected: newVal });
}, },
}, },
mode: {
type: String,
value: 'selector',
},
methodName: {
type: String,
value: '',
},
showText: {
type: String,
value: '',
observer(val) {
console.log('in showText', val);
},
},
}, },
data: { data: {
showPickerView: false, showPickerView: false,
...@@ -32,9 +48,15 @@ Component({ ...@@ -32,9 +48,15 @@ Component({
}, },
methods: { methods: {
inputClickHandle() { inputClickHandle() {
if (this.data.mode === 'page') {
wx.navigateTo({
url: `/pages/areaSelect/areaSelect?methodName=${this.data.methodName}&value=${this.data.value}`,
});
} else {
this.setData!({ this.setData!({
showPickerView: !this.data.showPickerView, showPickerView: !this.data.showPickerView,
}); });
}
}, },
innerClickHandle(e) { innerClickHandle(e) {
return false; return false;
......
...@@ -4,7 +4,8 @@ ...@@ -4,7 +4,8 @@
<!-- <picker class="areaselect-picker" mode="{{mode}}" bindchange="bindPickerChange" value="{{selected}}" range="{{range}}" range-key="{{rangeKey}}" fields="{{fields}}"> --> <!-- <picker class="areaselect-picker" mode="{{mode}}" bindchange="bindPickerChange" value="{{selected}}" range="{{range}}" range-key="{{rangeKey}}" fields="{{fields}}"> -->
<!-- </picker> --> <!-- </picker> -->
<view class="areaselect-picker" bindtap="inputClickHandle"> <view class="areaselect-picker" bindtap="inputClickHandle">
<view wx:if="{{selected}}" class="select-value">{{range[selectedIndex][rangeKey]}}</view> <view wx:if="{{mode === 'page' && selected}}" class="select-value">{{showText}}</view>
<view wx:elif="{{selected}}" class="select-value">{{range[selectedIndex][rangeKey]}}</view>
<view wx:else class="select-placeholder">{{placeholder}}</view> <view wx:else class="select-placeholder">{{placeholder}}</view>
<image class="select-icon" src="../../../images/btn_xiala@2x.png" mode="aspectFill" /> <image class="select-icon" src="../../../images/btn_xiala@2x.png" mode="aspectFill" />
</view> </view>
......
...@@ -12,18 +12,20 @@ Page({ ...@@ -12,18 +12,20 @@ Page({
list1: [], list1: [],
list2: [], list2: [],
areaList: [], areaList: [],
list: [],
pageNum: [null, 0, 0],
}, },
initData: function () { initData: function () {
this.fetchList(1); this.fetchList(1);
this.fetchList(2); this.fetchList(2);
}, },
toggleList: function (e) { toggleList: function (e) {
var _this = this;
var tabindex = e.currentTarget.dataset.tabindex; var tabindex = e.currentTarget.dataset.tabindex;
if (tabindex !== this.data.tabIndex) { if (tabindex !== this.data.tabIndex) {
this.setData({ this.setData({ tabIndex: tabindex }, function () {
tabIndex: tabindex, _this.fetchList(tabindex);
}); });
this.fetchList(tabindex);
} }
}, },
fetchList: function (state) { fetchList: function (state) {
...@@ -43,8 +45,15 @@ Page({ ...@@ -43,8 +45,15 @@ Page({
.then(function (res) { .then(function (res) {
wx.hideLoading(); wx.hideLoading();
var list = res.data; var list = res.data;
var viewList = list.slice(0, 10);
if (state === _this.data.tabIndex) {
_this.setData({
list: viewList,
});
}
_this.setData((_a = {}, _this.setData((_a = {},
_a['list' + state] = list, _a['list' + state] = list,
_a["pageNum[" + state + "]"] = 0,
_a)); _a));
var _a; var _a;
}) })
...@@ -90,5 +99,24 @@ Page({ ...@@ -90,5 +99,24 @@ Page({
console.log(err); console.log(err);
}); });
}, },
getMoreListItem: function () {
var state = this.data.tabIndex;
var index = this.data.pageNum[state] + 1;
var max = Math.ceil(this.data['list' + state].length / 10);
console.log('in getMoreListItem', index, max);
if (index >= max) {
wx.showToast({
title: '没有更多数据',
icon: 'none',
});
}
else {
this.setData((_a = {},
_a["pageNum[" + state + "]"] = index,
_a.list = this.data.list.concat(this.data['list' + state].slice(index * 10, (index + 1) * 10)),
_a));
}
var _a;
},
}); });
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZmVlZGJhY2suanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJmZWVkYmFjay50cyJdLCJuYW1lcyI6W10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4gICAgICAuY2F0Y2goZXJyID0+IHtcbiAgICAgICAgY29uc29sZS5sb2coZXJyKTtcbiAgICAgICAgd3guc2hvd1RvYXN0KHtcbiAgICAgICAgICB0aXRsZTogZXJyLmVyck1zZyxcbiAgICAgICAgICBpY29uOiAnbm9uZScsXG4gICAgICAgIH0pO1xuICAgICAgfSk7XG4gIH0sXG4gIGJpbmRQaWNrZXJDaGFuZ2UoZSkge1xuICAgIGNvbnNvbGUubG9nKGUpO1xuICAgIGNvbnN0IHsgdmFsdWUgfSA9IGUuZGV0YWlsO1xuICAgIHRoaXMuc2V0RGF0YSEoXG4gICAgICB7XG4gICAgICAgIGFyZWFJZDogdmFsdWUsXG4gICAgICB9LFxuICAgICAgKCkgPT4ge1xuICAgICAgICB0aGlzLmluaXREYXRhKCk7XG4gICAgICB9LFxuICAgICk7XG4gIH0sXG4gIHJlZnJlc2hIYW5kbGUoZSkge1xuICAgIHRoaXMuZmV0Y2hMaXN0KCk7XG4gIH0sXG4gIGZldGNoQXJlYUxpc3QoKSB7XG4gICAgYmFzZUZldGNoKHtcbiAgICAgIHVybDogJy9kY3h5L2Jhc2VBcmVhL3F1ZXJ5QWxsJyxcbiAgICB9KVxuICAgICAgLnRoZW4ocmVzID0+IHtcbiAgICAgICAgaWYgKHJlcy5kYXRhKSB7XG4gICAgICAgICAgdGhpcy5zZXREYXRhISh7XG4gICAgICAgICAgICBhcmVhTGlzdDogcmVzLmRhdGEsXG4gICAgICAgICAgfSk7XG4gICAgICAgIH0gZWxzZSB7XG4gICAgICAgICAgdGhpcy5zZXREYXRhISh7XG4gICAgICAgICAgICBhcmVhTGlzdDogW10sXG4gICAgICAgICAgfSk7XG4gICAgICAgIH1cbiAgICAgIH0pXG4gICAgICAuY2F0Y2goZXJyID0+IHtcbiAgICAgICAgY29uc29sZS5sb2coZXJyKTtcbiAgICAgIH0pO1xuICB9LFxufSk7XG4iXX0= //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlI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cbiAgICAgIHd4LnNob3dUb2FzdCh7XG4gICAgICAgIHRpdGxlOiAn5rKh5pyJ5pu05aSa5pWw5o2uJyxcbiAgICAgICAgaWNvbjogJ25vbmUnLFxuICAgICAgfSk7XG4gICAgfSBlbHNlIHtcbiAgICAgIHRoaXMuc2V0RGF0YSh7XG4gICAgICAgIFtgcGFnZU51bVske3N0YXRlfV1gXTogaW5kZXgsXG4gICAgICAgIGxpc3Q6IFtcbiAgICAgICAgICAuLi50aGlzLmRhdGEubGlzdCxcbiAgICAgICAgICAuLi50aGlzLmRhdGFbJ2xpc3QnICsgc3RhdGVdLnNsaWNlKGluZGV4ICogMTAsIChpbmRleCArIDEpICogMTApLFxuICAgICAgICBdLFxuICAgICAgfSk7XG4gICAgfVxuICB9LFxufSk7XG4iXX0=
\ No newline at end of file \ No newline at end of file
...@@ -15,6 +15,8 @@ Page({ ...@@ -15,6 +15,8 @@ Page({
list1: [], list1: [],
list2: [], list2: [],
areaList: [], areaList: [],
list: [],
pageNum: [null, 0, 0],
}, },
initData() { initData() {
this.fetchList(1); this.fetchList(1);
...@@ -23,10 +25,9 @@ Page({ ...@@ -23,10 +25,9 @@ Page({
toggleList(e) { toggleList(e) {
const { tabindex } = e.currentTarget.dataset; const { tabindex } = e.currentTarget.dataset;
if (tabindex !== this.data.tabIndex) { if (tabindex !== this.data.tabIndex) {
this.setData!({ this.setData!({ tabIndex: tabindex }, () => {
tabIndex: tabindex,
});
this.fetchList(tabindex); this.fetchList(tabindex);
});
} }
}, },
fetchList(state?: number) { fetchList(state?: number) {
...@@ -44,8 +45,15 @@ Page({ ...@@ -44,8 +45,15 @@ Page({
.then(res => { .then(res => {
wx.hideLoading(); wx.hideLoading();
const list = res.data; const list = res.data;
let viewList = list.slice(0, 10);
if (state === this.data.tabIndex) {
this.setData!({
list: viewList,
});
}
this.setData!({ this.setData!({
['list' + state]: list, ['list' + state]: list,
[`pageNum[${state}]`]: 0,
}); });
}) })
.catch(err => { .catch(err => {
...@@ -90,4 +98,24 @@ Page({ ...@@ -90,4 +98,24 @@ Page({
console.log(err); console.log(err);
}); });
}, },
getMoreListItem() {
let state = this.data.tabIndex;
let index = this.data.pageNum[state] + 1;
let max = Math.ceil(this.data['list' + state].length / 10);
console.log('in getMoreListItem', index, max);
if (index >= max) {
wx.showToast({
title: '没有更多数据',
icon: 'none',
});
} else {
this.setData({
[`pageNum[${state}]`]: index,
list: [
...this.data.list,
...this.data['list' + state].slice(index * 10, (index + 1) * 10),
],
});
}
},
}); });
...@@ -13,10 +13,10 @@ ...@@ -13,10 +13,10 @@
<text class="feedback-tabCount">{{list2.length}}</text> <text class="feedback-tabCount">{{list2.length}}</text>
</view> </view>
</view> </view>
<view wx:if="{{tabIndex===1}}" class="feedback-list"> <scroll-view wx:if="{{tabIndex===1}}" class="feedback-list" scroll-y bindscrolltolower="getMoreListItem">
<feedback-item wx:for="{{list1}}" wx:key="{{item.id}}" feedback-data="{{item}}" bind:refresh="refreshHandle" /> <feedback-item wx:for="{{list}}" wx:key="{{item.id}}" feedback-data="{{item}}" bind:refresh="refreshHandle" />
</view> </scroll-view>
<view wx:elif="{{tabIndex===2}}" class="feedback-list"> <scroll-view wx:elif="{{tabIndex===2}}" class="feedback-list" scroll-y bindscrolltolower="getMoreListItem">
<feedback-item wx:for="{{list2}}" wx:key="{{item.id}}" feedback-data="{{item}}" bind:refresh="refreshHandle" /> <feedback-item wx:for="{{list}}" wx:key="{{item.id}}" feedback-data="{{item}}" bind:refresh="refreshHandle" />
</view> </scroll-view>
</view> </view>
\ No newline at end of file
...@@ -13,12 +13,11 @@ var util_1 = require("../../utils/util"); ...@@ -13,12 +13,11 @@ var util_1 = require("../../utils/util");
Page({ Page({
onLoad: function () { onLoad: function () {
this.initData(); this.initData();
this.fetchAreaList();
}, },
data: { data: {
areaList: [],
month: '', month: '',
areaId: 0, areaId: '',
areaName: '',
rechargeData: { rechargeData: {
title: '充值总额', title: '充值总额',
numberType: 'price', numberType: 'price',
...@@ -52,36 +51,16 @@ Page({ ...@@ -52,36 +51,16 @@ Page({
_this.fetchList(); _this.fetchList();
}); });
}, },
fetchAreaList: function () {
var _this = this;
fetch_1.baseFetch({
url: '/dcxy/baseArea/queryAll',
})
.then(function (res) {
if (res.data) {
_this.setData({
areaList: res.data,
});
}
else {
_this.setData({
areaList: [],
});
}
})
.catch(function (err) {
console.log(err);
});
},
areaChangeHandle: function (val) { areaChangeHandle: function (val) {
var _this = this; var _this = this;
console.log('areaChangeHandle', val); console.log('areaChangeHandle', val);
var value = val.detail.value; var id = val.id, name = val.name;
this.setData({ this.setData({
areaId: value, areaId: id,
areaName: name,
}, function () { }, function () {
if (value) { if (id) {
_this.fetchList({ areaId: [value] }); _this.fetchList({ areaId: [id] });
} }
else { else {
_this.fetchList(); _this.fetchList();
...@@ -189,7 +168,7 @@ Page({ ...@@ -189,7 +168,7 @@ Page({
var _this = this; var _this = this;
var reqBody = __assign({ month: this.data.month }, entity); var reqBody = __assign({ month: this.data.month }, entity);
fetch_1.statisticsFetch({ fetch_1.statisticsFetch({
url: '/dcxy/reportInfo/serviceConsume', url: '/dcxy/reportInfo/queryConsumeOrderList',
method: 'POST', method: 'POST',
data: reqBody, data: reqBody,
}) })
...@@ -236,4 +215,4 @@ Page({ ...@@ -236,4 +215,4 @@ Page({
}); });
}, },
}); });
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibW9udGhPcGVyYXRvci5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIm1vbnRoT3BlcmF0b3IudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7OztBQUFBLHlDQUE2RDtBQUM3RCx5Q0FBOEM7QUFFOUMsSUFBSSxDQUFDO0lBQ0gsTUFBTTtRQUNKLElBQUksQ0FBQyxRQUFRLEVBQUUsQ0FBQztRQUNoQixJQUFJLENBQUMsYUFBYSxFQUFFLENBQUM7SUFDdkIsQ0FBQztJQUNELElBQUksRUF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ICAgIC4uLmVudGl0eSxcbiAgICB9O1xuICAgIHN0YXRpc3RpY3NGZXRjaCh7XG4gICAgICB1cmw6ICcvZGN4eS9yZXBvcnRJbmZvL2RhaWx5Q29uc3VtZUNvdW50JyxcbiAgICAgIG1ldGhvZDogJ1BPU1QnLFxuICAgICAgZGF0YTogcmVxQm9keSxcbiAgICB9KVxuICAgICAgLnRoZW4ocmVzID0+IHtcbiAgICAgICAgbGV0IGRheUxpc3QgPSBuZXcgQXJyYXkoMzEpXG4gICAgICAgICAgLmZpbGwoe1xuICAgICAgICAgICAgcGF5TWVuOiAwLFxuICAgICAgICAgICAgcGF5YWJsZU1vbmV5OiAwLFxuICAgICAgICAgIH0pXG4gICAgICAgICAgLm1hcCgodiwgaWR4KSA9PiAoeyAuLi52LCBkYXlzOiBpZHggKyAxIH0pKTtcblxuICAgICAgICBsZXQgY29uc3VtZVByaWNlID0gMDtcbiAgICAgICAgbGV0IGNvbnN1bWVDb3VudCA9IDA7XG4gICAgICAgIGlmIChyZXMuZGF0YSAmJiByZXMuZGF0YS5sZW5ndGgpIHtcbiAgICAgICAgICBsZXQgb0xpc3QgPSByZXMuZGF0YTtcbiAgICAgICAgICBmb3IgKGxldCBpbmRleCA9IDA7IGluZGV4IDwgb0xpc3QubGVuZ3RoOyBpbmRleCsrKSB7XG4gICAgICAgICAgICBjb25zdCBlbGVtZW50ID0gb0xpc3RbaW5kZXhdO1xuICAgICAgICAgICAgY29uc3VtZVByaWNlICs9IGVsZW1lbnQucGF5YWJsZU1vbmV5O1xuICAgICAgICAgICAgY29uc3VtZUNvdW50ICs9IGVsZW1lbnQucGF5TWVuO1xuICAgICAgICAgICAgbGV0IGRheXNJbmRleCA9IGVsZW1lbnQuY3JlYXRlRGF0ZS5zbGljZSgtMik7XG4gICAgICAgICAgICBkYXlMaXN0W2RheXNJbmRleF0gPSB7XG4gICAgICAgICAgICAgIC4uLmRheUxpc3RbZGF5c0luZGV4XSxcbiAgICAgICAgICAgICAgcGF5TWVuOiBlbGVtZW50LnBheU1lbixcbiAgICAgICAgICAgICAgcGF5YWJsZU1vbmV5OiBlbGVtZW50LnBheWFibGVNb25leSxcbiAgICAgICAgICAgIH07XG4gICAgICAgICAgfVxuICAgICAgICB9XG4gICAgICAgIHRoaXMuc2V0RGF0YSEoe1xuICAgICAgICAgIGNvbnN1bWVMaXN0OiBkYXlMaXN0LFxuICAgICAgICAgICdjb25zdW1lRGF0YS5jb3VudCc6IGNvbnN1bWVQcmljZSxcbiAgICAgICAgICAnY29uc3VtZUNvdW50LmNvdW50JzogY29uc3VtZUNvdW50LFxuICAgICAgICB9KTtcbiAgICAgIH0pXG4gICAgICAuY2F0Y2goZXJyID0+IHtcbiAgICAgICAgY29uc29sZS5sb2coZXJyKTtcbiAgICAgIH0pO1xuICB9LFxuICBmZXRjaFJlY2hhcmdlRGF0YShlbnRpdHk/OiB7IGFyZWFJZD86IG51bWJlcjsgbW9udGg/OiBzdHJpbmcgfSkge1xuICAgIGxldCByZXFCb2R5ID0ge1xuICAgICAgbW9udGg6IHRoaXMuZGF0YS5tb250aCxcbiAgICAgIC4uLmVudGl0eSxcbiAgICB9O1xuICAgIHN0YXRpc3RpY3NGZXRjaCh7XG4gICAgICB1cmw6ICcvZGN4eS9yZXBvcnRJbmZvL3F1ZXJ5UmVjaGFyZ2VMaXN0RGFpbHknLFxuICAgICAgbWV0aG9kOiAnUE9TVCcsXG4gICAgICBkYXRhOiByZXFCb2R5LFxuICAgIH0pXG4gICAgICAudGhlbihyZXMgPT4ge1xuICAgICAgICBsZXQgZGF5TGlzdCA9IG5ldyBBcnJheSgzMSlcbiAgICAgICAgICAuZmlsbCh7XG4gICAgICAgICAgICByZWNoYXJnZU1vbmV5OiAwLFxuICAgICAgICAgICAgcmVjaGFyZ2VNZW46IDAsXG4gICAgICAgICAgICByZWZ1bmRDb3VudDogMCxcbiAgICAgICAgICAgIHJlZnVuZE1vbmV5OiAwLFxuICAgICAgICAgIH0pXG4gICAgICAgICAgLm1hcCgodiwgaWR4KSA9PiAoeyAuLi52LCBkYXlzOiBpZHggKyAxIH0pKTtcbiAgICAgICAgbGV0IHJlY2hhcmdlUHJpY2UgPSAwO1xuICAgICAgICBsZXQgcmVjaGFyZ2VDb3VudCA9IDA7XG4gICAgICAgIGlmIChyZXMuZGF0YSAmJiByZXMuZGF0YS5sZW5ndGgpIHtcbiAgICAgICAgICBsZXQgb0xpc3QgPSByZXMuZGF0YTtcbiAgICAgICAgICBmb3IgKGxldCBpbmRleCA9IDA7IGluZGV4IDwgb0xpc3QubGVuZ3RoOyBpbmRleCsrKSB7XG4gICAgICAgICAgICBjb25zdCBlbGVtZW50ID0gb0xpc3RbaW5kZXhdO1xuICAgICAgICAgICAgcmVjaGFyZ2VQcmljZSArPSBlbGVtZW50LnJlY2hhcmdlTW9uZXk7XG4gICAgICAgICAgICByZWNoYXJnZUNvdW50ICs9IGVsZW1lbnQucmVjaGFyZ2VNZW47XG4gICAgICAgICAgICBsZXQgZGF5c0luZGV4ID0gZWxlbWVudC5jb21wbGV0ZUF0LnNsaWNlKC0yKTtcbiAgICAgICAgICAgIGRheUxpc3RbZGF5c0luZGV4XSA9IHtcbiAgICAgICAgICAgICAgLi4uZGF5TGlzdFtkYXlzSW5kZXhdLFxuICAgICAgICAgICAgICByZWNoYXJnZU1vbmV5OiBlbGVtZW50LnJlY2hhcmdlTW9uZXksXG4gICAgICAgICAgICAgIHJlY2hhcmdlTWVuOiBlbGVtZW50LnJlY2hhcmdlTWVuLFxuICAgICAgICAgICAgICByZWZ1bmRDb3VudDogZWxlbWVudC5yZWZ1bmRDb3VudCxcbiAgICAgICAgICAgICAgcmVmdW5kTW9uZXk6IGVsZW1lbnQucmVmdW5kTW9uZXksXG4gICAgICAgICAgICB9O1xuICAgICAgICAgIH1cbiAgICAgICAgfVxuICAgICAgICB0aGlzLnNldERhdGEhKHtcbiAgICAgICAgICByZWNoYXJnZUFuZFJlZnVuZExpc3Q6IGRheUxpc3QsXG4gICAgICAgICAgJ3JlY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gIH0pXG4gICAgICAudGhlbihyZXMgPT4ge1xuICAgICAgICBjb25zb2xlLmxvZyhyZXMpO1xuICAgICAgICBpZiAocmVzLmRhdGEpIHtcbiAgICAgICAgICBjb25zdCBrZXlNYXAgPSB7XG4gICAgICAgICAgICBhaW1pOiAn6Im+57Gz6LGGJyxcbiAgICAgICAgICAgIGJlYW46ICfmtojotLnosYYnLFxuICAgICAgICAgICAgZGlzY291bnQ6ICfkvJjmg6Dph5Hpop0nLFxuICAgICAgICAgICAgb25saW5lOiAn57q/5LiK5pSv5LuYJyxcbiAgICAgICAgICB9O1xuICAgICAgICAgIGxldCBkYXRhTGlzdCA9IE9iamVjdC5rZXlzKHJlcy5kYXRhKS5tYXAoa2V5ID0+ICh7XG4gICAgICAgICAgICBrZXksXG4gICAgICAgICAgICBhOiAnMScsXG4gICAgICAgICAgICBuYW1lOiBrZXlNYXBba2V5XSxcbiAgICAgICAgICAgIGNvdW50OiByZXMuZGF0YVtrZXldLFxuICAgICAgICAgIH0pKTtcbiAgICAgICAgICB0aGlzLnNldERhdGEhKHtcbiAgICAgICAgICAgIHBheVR5cGVMaXN0OiBkYXRhTGlzdCxcbiAgICAgICAgICB9KTtcbiAgICAgICAgfVxuICAgICAgfSlcbiAgICAgIC5jYXRjaChlcnIgPT4ge1xuICAgICAgICBjb25zb2xlLmxvZyhlcnIpO1xuICAgICAgfSk7XG4gIH0sXG59KTtcbiJdfQ== //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibW9udGhPcGVyYXRvci5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIm1vbnRoT3BlcmF0b3IudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7OztBQUFBLHlDQUFrRDtBQUNsRCx5Q0FBOEM7QUFFOUMsSUFBSSxDQUFDO0lBQ0gsTUFBTTtRQUNKLElBQUksQ0FBQyxRQUFRLEVBQUUsQ0FBQztJQUNsQix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gICAgICBtb250aDogdGhpcy5kYXRhLm1vbnRoLFxuICAgICAgLi4uZW50aXR5LFxuICAgIH07XG4gICAgc3RhdGlzdGljc0ZldGNoKHtcbiAgICAgIHVybDogJy9kY3h5L3JlcG9ydEluZm8vZGFpbHlDb25zdW1lQ291bnQnLFxuICAgICAgbWV0aG9kOiAnUE9TVCcsXG4gICAgICBkYXRhOiByZXFCb2R5LFxuICAgIH0pXG4gICAgICAudGhlbihyZXMgPT4ge1xuICAgICAgICBsZXQgZGF5TGlzdCA9IG5ldyBBcnJheSgzMSlcbiAgICAgICAgICAuZmlsbCh7XG4gICAgICAgICAgICBwYXlNZW46IDAsXG4gICAgICAgICAgICBwYXlhYmxlTW9uZXk6IDAsXG4gICAgICAgICAgfSlcbiAgICAgICAgICAubWFwKCh2LCBpZHgpID0+ICh7IC4uLnYsIGRheXM6IGlkeCArIDEgfSkpO1xuXG4gICAgICAgIGxldCBjb25zdW1lUHJpY2UgPSAwO1xuICAgICAgICBsZXQgY29uc3VtZUNvdW50ID0gMDtcbiAgICAgICAgaWYgKHJlcy5kYXRhICYmIHJlcy5kYXRhLmxlbmd0aCkge1xuICAgICAgICAgIGxldCBvTGlzdCA9IHJlcy5kYXRhO1xuICAgICAgICAgIGZvciAobGV0IGluZGV4ID0gMDsgaW5kZXggPCBvTGlzdC5sZW5ndGg7IGluZGV4KyspIHtcbiAgICAgICAgICAgIGNvbnN0IGVsZW1lbnQgPSBvTGlzdFtpbmRleF07XG4gICAgICAgICAgICBjb25zdW1lUHJpY2UgKz0gZWxlbWVudC5wYXlhYmxlTW9uZXk7XG4gICAgICAgICAgICBjb25zdW1lQ291bnQgKz0gZWxlbWVudC5wYXlNZW47XG4gICAgICAgICAgICBsZXQgZGF5c0luZGV4ID0gZWxlbWVudC5jcmVhdGVEYXRlLnNsaWNlKC0yKTtcbiAgICAgICAgICAgIGRheUxpc3RbZGF5c0luZGV4XSA9IHtcbiAgICAgICAgICAgICAgLi4uZGF5TGlzdFtkYXlzSW5kZXhdLFxuICAgICAgICAgICAgICBwYXlNZW46IGVsZW1lbnQucGF5TWVuLFxuICAgICAgICAgICAgICBwYXlhYmxlTW9uZXk6IGVsZW1lbnQucGF5YWJsZU1vbmV5LFxuICAgICAgICAgICAgfTtcbiAgICAgICAgICB9XG4gICAgICAgIH1cbiAgICAgICAgdGhpcy5zZXREYXRhISh7XG4gICAgICAgICAgY29uc3VtZUxpc3Q6IGRheUxpc3QsXG4gICAgICAgICAgJ2NvbnN1bWVEYXRhLmNvdW50JzogY29uc3VtZVByaWNlLFxuICAgICAgICAgICdjb25zdW1lQ291bnQuY291bnQnOiBjb25zdW1lQ291bnQsXG4gICAgICAgIH0pO1xuICAgICAgfSlcbiAgICAgIC5jYXRjaChlcnIgPT4ge1xuICAgICAgICBjb25zb2xlLmxvZyhlcnIpO1xuICAgICAgfSk7XG4gIH0sXG4gIGZldGNoUmVjaGFyZ2VEYXRhKGVudGl0eT86IHsgYXJlYUlkPzogbnVtYmVyOyBtb250aD86IHN0cmluZyB9KSB7XG4gICAgbGV0IHJlcUJvZHkgPSB7XG4gICAgICBtb250aDogdGhpcy5kYXRhLm1vbnRoLFxuICAgICAgLi4uZW50aXR5LFxuICAgIH07XG4gICAgc3RhdGlzdGljc0ZldGNoKHtcbiAgICAgIHVybDogJy9kY3h5L3JlcG9ydEluZm8vcXVlcnlSZWNoYXJnZUxpc3REYWlseScsXG4gICAgICBtZXRob2Q6ICdQT1NUJyxcbiAgICAgIGRhdGE6IHJlcUJvZHksXG4gICAgfSlcbiAgICAgIC50aGVuKHJlcyA9PiB7XG4gICAgICAgIGxldCBkYXlMaXN0ID0gbmV3IEFycmF5KDMxKVxuICAgICAgICAgIC5maWxsKHtcbiAgICAgICAgICAgIHJlY2hhcmdlTW9uZXk6IDAsXG4gICAgICAgICAgICByZWNoYXJnZU1lbjogMCxcbiAgICAgICAgICAgIHJlZnVuZENvdW50OiAwLFxuICAgICAgICAgICAgcmVmdW5kTW9uZXk6IDAsXG4gICAgICAgICAgfSlcbiAgICAgICAgICAubWFwKCh2LCBpZHgpID0+ICh7IC4uLnYsIGRheXM6IGlkeCArIDEgfSkpO1xuICAgICAgICBsZXQgcmVjaGFyZ2VQcmljZSA9IDA7XG4gICAgICAgIGxldCByZWNoYXJnZUNvdW50ID0gMDtcbiAgICAgICAgaWYgKHJlcy5kYXRhICYmIHJlcy5kYXRhLmxlbmd0aCkge1xuICAgICAgICAgIGxldCBvTGlzdCA9IHJlcy5kYXRhO1xuICAgICAgICAgIGZvciAobGV0IGluZGV4ID0gMDsgaW5kZXggPCBvTGlzdC5sZW5ndGg7IGluZGV4KyspIHtcbiAgICAgICAgICAgIGNvbnN0IGVsZW1lbnQgPSBvTGlzdFtpbmRleF07XG4gICAgICAgICAgICByZWNoYXJnZVByaWNlICs9IGVsZW1lbnQucmVjaGFyZ2VNb25leTtcbiAgICAgICAgICAgIHJlY2hhcmdlQ291bnQgKz0gZWxlbWVudC5yZWNoYXJnZU1lbjtcbiAgICAgICAgICAgIGxldCBkYXlzSW5kZXggPSBlbGVtZW50LmNvbXBsZXRlQXQuc2xpY2UoLTIpO1xuICAgICAgICAgICAgZGF5TGlzdFtkYXlzSW5kZXhdID0ge1xuICAgICAgICAgICAgICAuLi5kYXlMaXN0W2RheXNJbmRleF0sXG4gICAgICAgICAgICAgIHJlY2hhcmdlTW9uZXk6IGVsZW1lbnQucmVjaGFyZ2VNb25leSxcbiAgICAgICAgICAgICAgcmVjaGFyZ2VNZW46IGVsZW1lbnQucmVjaGFyZ2VNZW4sXG4gICAgICAgICAgICAgIHJlZnVuZENvdW50OiBlbGVtZW50LnJlZnVuZENvdW50LFxuICAgICAgICAgICAgICByZWZ1bmRNb25leTogZWxlbWVudC5yZWZ1bmRNb25leSxcbiAgICAgICAgICAgIH07XG4gICAgICAgICAgfVxuICAgICAgICB9XG4gICAgICAgIHRoaXMuc2V0RGF0YSEoe1xuICAgICAgICAgIHJlY2hhcmdlQW5kUmVmdW5kTGlzdDogZGF5TGlz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G4gICAgICBkYXRhOiByZXFCb2R5LFxuICAgIH0pXG4gICAgICAudGhlbihyZXMgPT4ge1xuICAgICAgICBjb25zb2xlLmxvZyhyZXMpO1xuICAgICAgICBpZiAocmVzLmRhdGEpIHtcbiAgICAgICAgICBjb25zdCBrZXlNYXAgPSB7XG4gICAgICAgICAgICBhaW1pOiAn6Im+57Gz6LGGJyxcbiAgICAgICAgICAgIGJlYW46ICfmtojotLnosYYnLFxuICAgICAgICAgICAgZGlzY291bnQ6ICfkvJjmg6Dph5Hpop0nLFxuICAgICAgICAgICAgb25saW5lOiAn57q/5LiK5pSv5LuYJyxcbiAgICAgICAgICB9O1xuICAgICAgICAgIGxldCBkYXRhTGlzdCA9IE9iamVjdC5rZXlzKHJlcy5kYXRhKS5tYXAoa2V5ID0+ICh7XG4gICAgICAgICAgICBrZXksXG4gICAgICAgICAgICBhOiAnMScsXG4gICAgICAgICAgICBuYW1lOiBrZXlNYXBba2V5XSxcbiAgICAgICAgICAgIGNvdW50OiByZXMuZGF0YVtrZXldLFxuICAgICAgICAgIH0pKTtcbiAgICAgICAgICB0aGlzLnNldERhdGEhKHtcbiAgICAgICAgICAgIHBheVR5cGVMaXN0OiBkYXRhTGlzdCxcbiAgICAgICAgICB9KTtcbiAgICAgICAgfVxuICAgICAgfSlcbiAgICAgIC5jYXRjaChlcnIgPT4ge1xuICAgICAgICBjb25zb2xlLmxvZyhlcnIpO1xuICAgICAgfSk7XG4gIH0sXG59KTtcbiJdfQ==
\ No newline at end of file \ No newline at end of file
import { baseFetch, statisticsFetch } from '../../api/fetch'; import { statisticsFetch } from '../../api/fetch';
import { formatTime } from '../../utils/util'; import { formatTime } from '../../utils/util';
Page({ Page({
onLoad() { onLoad() {
this.initData(); this.initData();
this.fetchAreaList();
}, },
data: { data: {
areaList: [],
month: '', month: '',
areaId: 0, areaId: '',
areaName: '',
rechargeData: { rechargeData: {
title: '充值总额', title: '充值总额',
numberType: 'price', numberType: 'price',
...@@ -42,35 +41,17 @@ Page({ ...@@ -42,35 +41,17 @@ Page({
this.fetchList(); this.fetchList();
}); });
}, },
fetchAreaList() {
baseFetch({
url: '/dcxy/baseArea/queryAll',
})
.then(res => {
if (res.data) {
this.setData!({
areaList: res.data,
});
} else {
this.setData!({
areaList: [],
});
}
})
.catch(err => {
console.log(err);
});
},
areaChangeHandle(val) { areaChangeHandle(val) {
console.log('areaChangeHandle', val); console.log('areaChangeHandle', val);
const { value } = val.detail; const { id, name } = val;
this.setData!( this.setData!(
{ {
areaId: value, areaId: id,
areaName: name,
}, },
() => { () => {
if (value) { if (id) {
this.fetchList({ areaId: [value] }); this.fetchList({ areaId: [id] });
} else { } else {
this.fetchList(); this.fetchList();
} }
...@@ -193,7 +174,7 @@ Page({ ...@@ -193,7 +174,7 @@ Page({
...entity, ...entity,
}; };
statisticsFetch({ statisticsFetch({
url: '/dcxy/reportInfo/serviceConsume', url: '/dcxy/reportInfo/queryConsumeOrderList',
method: 'POST', method: 'POST',
data: reqBody, data: reqBody,
}) })
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
<view class="monthOperator"> <view class="monthOperator">
<view class="monthOperator-filter"> <view class="monthOperator-filter">
<view class="monthOperator-area"> <view class="monthOperator-area">
<area-select range="{{areaList}}" range-key="{{'areaName'}}" bindchange="areaChangeHandle" placeholder="所属区域选择" /> <area-select mode="page" bindchange="areaChangeHandle" methodName="areaChangeHandle" value="{{areaId}}" showText="{{areaName}}" placeholder="所属区域选择" />
</view> </view>
<view class="monthOperator-time"> <view class="monthOperator-time">
<c-select mode="date" fields="month" value="{{month}}" bindchange="monthChangeHandle" /> <c-select mode="date" fields="month" value="{{month}}" bindchange="monthChangeHandle" />
......
...@@ -17,7 +17,8 @@ Page({ ...@@ -17,7 +17,8 @@ Page({
}, },
data: { data: {
month: '', month: '',
areaId: 0, areaId: '',
areaName: '',
areaList: [], areaList: [],
growthList: [], growthList: [],
customerCount: 0, customerCount: 0,
...@@ -101,12 +102,13 @@ Page({ ...@@ -101,12 +102,13 @@ Page({
areaChangeHandle: function (val) { areaChangeHandle: function (val) {
var _this = this; var _this = this;
console.log('areaChangeHandle', val); console.log('areaChangeHandle', val);
var value = val.detail.value; var id = val.id, name = val.name;
this.setData({ this.setData({
areaId: value, areaId: id,
areaName: name,
}, function () { }, function () {
if (value) { if (id) {
_this.fetchList({ areaId: value }); _this.fetchList({ areaId: id });
} }
else { else {
_this.fetchList(); _this.fetchList();
...@@ -122,4 +124,4 @@ Page({ ...@@ -122,4 +124,4 @@ Page({
}); });
}, },
}); });
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidXNlckdyb3d0aC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbInVzZXJHcm93dGgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7OztBQUFBLHlDQUE2RDtBQUM3RCx5Q0FBOEM7QUFHOUMsSUFBSSxDQUFDO0lBQ0gsTUFBTTtRQUNKLElBQUksQ0FBQyxRQUFRLEVBQUUsQ0FBQztRQUNoQixJQUFJLENBQUMsYUFBYSxFQUFFLENBQUM7SUFDdkIsQ0FBQztJQUlELElBQUksRUFBRTtRQUNKLEtBQUssRUFBRSxFQUFFO1FBQ1QsTUFBTSxFQUFFLENBQUM7UUFDVCxRQUFRLEVBQUUsRUFBRTtRQUNaLFVBQVUsRUFBRSxFQUFFO1FBQ2QsYUFBYSxFQUFFLENBQUM7UUFDaEIsV0FBVyxFQUFFLENBQUM7S0FDZjtJQUNELFFBQVE7UUFBUixpQkFNQztRQUxDLElBQUksSUFBSSxHQUFHLGlCQUFVLENBQUMsSUFBSSxJQUFJLEVBQUUsQ0FBQyxDQUFDO1FBQ2xDLE9BQU8sQ0FBQyxHQUFHLENBQUMsSUFBSSxDQUFDLENBQUM7UUFDbEIsSUFBSSxDQUFDLE9BQVEsQ0FBQyxFQUFFLEtBQUssRUFBRSxJQUFJLENBQUMsS0FBSyxDQUFDLENBQ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ICAgICAgbGV0IG9MaXN0ID0gZGF5Vm9zO1xuICAgICAgICAgIGZvciAobGV0IGluZGV4ID0gMDsgaW5kZXggPCBvTGlzdC5sZW5ndGg7IGluZGV4KyspIHtcbiAgICAgICAgICAgIGNvbnN0IGVsZW1lbnQgPSBvTGlzdFtpbmRleF07XG4gICAgICAgICAgICBsZXQgZGF5c0luZGV4ID0gZWxlbWVudC5kYXlzLnNsaWNlKC0yKTtcbiAgICAgICAgICAgIGRheUxpc3RbZGF5c0luZGV4XSA9IHtcbiAgICAgICAgICAgICAgLi4uZGF5TGlzdFtkYXlzSW5kZXhdLFxuICAgICAgICAgICAgICBjb3VudDogZWxlbWVudC5jb3VudCxcbiAgICAgICAgICAgIH07XG4gICAgICAgICAgfVxuICAgICAgICB9XG4gICAgICAgIGNvbnNvbGUubG9nKCdkYXlMaXN0OicsIGRheUxpc3QpO1xuICAgICAgICB0aGlzLnNldERhdGEhKHtcbiAgICAgICAgICBncm93dGhMaXN0OiBkYXlMaXN0LFxuICAgICAgICAgIGN1c3RvbWVyQ291bnQ6IGN1c3RvbWVyQ291bnQgPyBjdXN0b21lckNvdW50IDogMCxcbiAgICAgICAgICBhY3RpdmVDb3VudDogYWN0aXZlQ291bnQgPyBhY3RpdmVDb3VudCA6IDAsXG4gICAgICAgIH0pO1xuICAgICAgfSlcbiAgICAgIC5jYXRjaChlcnIgPT4ge1xuICAgICAgICBjb25zb2xlLmxvZyhlcnIpO1xuICAgICAgfSk7XG4gIH0sXG4gIGFyZWFDaGFuZ2VIYW5kbGUodmFsKSB7XG4gICAgY29uc29sZS5sb2coJ2FyZWFDaGFuZ2VIYW5kbGUnLCB2YWwpO1xuICAgIGNvbnN0IHsgdmFsdWUgfSA9IHZhbC5kZXRhaWw7XG4gICAgdGhpcy5zZXREYXRhIShcbiAgICAgIHtcbiAgICAgICAgYXJlYUlkOiB2YWx1ZSxcbiAgICAgIH0sXG4gICAgICAoKSA9PiB7XG4gICAgICAgIGlmICh2YWx1ZSkge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N0aXZlQ291bnQgfSA9IHJlcy5kYXRhO1xuICAgICAgICBsZXQgZGF5TGlzdCA9IG5ldyBBcnJheSgzMSlcbiAgICAgICAgICAuZmlsbCh7XG4gICAgICAgICAgICBjb3VudDogMCxcbiAgICAgICAgICB9KVxuICAgICAgICAgIC5tYXAoKHYsIGlkeCkgPT4gKHsgLi4udiwgZGF5czogaWR4ICsgMSB9KSk7XG5cbiAgICAgICAgaWYgKGRheVZvcyAmJiBkYXlWb3MubGVuZ3RoKSB7XG4gICAgICAgICAgbGV0IG9MaXN0ID0gZGF5Vm9zO1xuICAgICAgICAgIGZvciAobGV0IGluZGV4ID0gMDsgaW5kZXggPCBvTGlzdC5sZW5ndGg7IGluZGV4KyspIHtcbiAgICAgICAgICAgIGNvbnN0IGVsZW1lbnQgPSBvTGlzdFtpbmRleF07XG4gICAgICAgICAgICBsZXQgZGF5c0luZGV4ID0gZWxlbWVudC5kYXlzLnNsaWNlKC0yKTtcbiAgICAgICAgICAgIGRheUxpc3RbZGF5c0luZGV4XSA9IHtcbiAgICAgICAgICAgICAgLi4uZGF5TGlzdFtkYXlzSW5kZXhdLFxuICAgICAgICAgICAgICBjb3VudDogZWxlbWVudC5jb3VudCxcbiAgICAgICAgICAgIH07XG4gICAgICAgICAgfVxuICAgICAgICB9XG4gICAgICAgIGNvbnNvbGUubG9nKCdkYXlMaXN0OicsIGRheUxpc3QpO1xuICAgICAgICB0aGlzLnNldERhdGEhKHtcbiAgICAgICAgICBncm93dGhMaXN0OiBkYXlMaXN0LFxuICAgICAgICAgIGN1c3RvbWVyQ291bnQ6IGN1c3RvbWVyQ291bnQgPyBjdXN0b21lckNvdW50IDogMCxcbiAgICAgICAgICBhY3RpdmVDb3VudDogYWN0aXZlQ291bnQgPyBhY3RpdmVDb3VudCA6IDAsXG4gICAgICAgIH0pO1xuICAgICAgfSlcbiAgICAgIC5jYXRjaChlcnIgPT4ge1xuICAgICAgICBjb25zb2xlLmxvZyhlcnIpO1xuICAgICAgfSk7XG4gIH0sXG4gIGFyZWFDaGFuZ2VIYW5kbGUodmFsKSB7XG4gICAgY29uc29sZS5sb2coJ2FyZWFDaGFuZ2VIYW5kbGUnLCB2YWwpO1xuICAgIGNvbnN0IHsgaWQsIG5hbWUgfSA9IHZhbDtcbiAgICB0aGlzLnNldERhdGEhKFxuICAgICAge1xuICAgICAgICBhcmVhSWQ6IGlkLFxuICAgICAgICBhcmVhTmFtZTogbmFtZSxcbiAgICAgIH0sXG4gICAgICAoKSA9PiB7XG4gICAgICAgIGlmIChpZCkge1xuICAgICAgICAgIHRoaXMuZmV0Y2hMaXN0KHsgYXJlYUlkOiBpZCB9KTtcbiAgICAgICAgfSBlbHNlIHtcbiAgICAgICAgICB0aGlzLmZldGNoTGlzdCgpO1xuICAgICAgICB9XG4gICAgICB9LFxuICAgICk7XG4gIH0sXG4gIG1vbnRoQ2hhbmdlSGFuZGxlKHZhbCkge1xuICAgIGNvbnNvbGUubG9nKCdtb250aENoYW5nZUhhbmRsZScsIHZhbCk7XG4gICAgY29uc3QgeyB2YWx1ZSB9ID0gdmFsLmRldGFpbDtcbiAgICB0aGlzLmZldGNoTGlzdCh7IG1vbnRoU3RyaW5nOiB2YWx1ZSB9KTtcbiAgICB0aGlzLnNldERhdGEhKHtcbiAgICAgIG1vbnRoOiB2YWx1ZSxcbiAgICB9KTtcbiAgfSxcbn0pO1xuIl19
\ No newline at end of file \ No newline at end of file
...@@ -12,7 +12,8 @@ Page({ ...@@ -12,7 +12,8 @@ Page({
*/ */
data: { data: {
month: '', month: '',
areaId: 0, areaId: '',
areaName: '',
areaList: [], areaList: [],
growthList: [], growthList: [],
customerCount: 0, customerCount: 0,
...@@ -98,14 +99,15 @@ Page({ ...@@ -98,14 +99,15 @@ Page({
}, },
areaChangeHandle(val) { areaChangeHandle(val) {
console.log('areaChangeHandle', val); console.log('areaChangeHandle', val);
const { value } = val.detail; const { id, name } = val;
this.setData!( this.setData!(
{ {
areaId: value, areaId: id,
areaName: name,
}, },
() => { () => {
if (value) { if (id) {
this.fetchList({ areaId: value }); this.fetchList({ areaId: id });
} else { } else {
this.fetchList(); this.fetchList();
} }
......
...@@ -16,7 +16,7 @@ ...@@ -16,7 +16,7 @@
</view> </view>
<view class="userGrowth-filter"> <view class="userGrowth-filter">
<view class="userGrowth-area"> <view class="userGrowth-area">
<area-select range="{{areaList}}" range-key="{{'areaName'}}" bindchange="areaChangeHandle" placeholder="所属区域选择" /> <area-select mode="page" bindchange="areaChangeHandle" methodName="areaChangeHandle" value="{{areaId}}" showText="{{areaName}}" placeholder="所属区域选择" />
</view> </view>
<view class="userGrowth-time"> <view class="userGrowth-time">
<c-select mode="date" fields="month" value="{{month}}" bindchange="monthChangeHandle" /> <c-select mode="date" fields="month" value="{{month}}" bindchange="monthChangeHandle" />
......
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