Commit 0f4cb39b by 姜雷

Merge branch 'develop' into test

parents b1f3f6bc 40042509
......@@ -47,6 +47,7 @@ Component({
selected: '',
selectedIndex: '',
filterList: [],
inputValue: '',
},
methods: {
inputClickHandle: function () {
......@@ -56,11 +57,25 @@ Component({
});
}
else {
var inputValue = '';
if (this.data.selectedIndex || this.data.selectedIndex === 0) {
inputValue = this.data.range[this.data.selectedIndex].areaName;
}
console.log(inputValue);
this.setData({
showPickerView: !this.data.showPickerView,
inputValue: inputValue,
});
}
},
clearInputValue: function () {
console.log('in clearInputValue');
this.setData({
inputValue: '',
selected: '',
selectedIndex: '',
});
},
innerClickHandle: function (e) {
return false;
},
......@@ -108,19 +123,14 @@ Component({
selectedHandle: function (e) {
var value = e.currentTarget.dataset.value;
console.log(e, value);
if (this.data.selectedIndex === value) {
this.setData({
selected: '',
selectedIndex: '',
});
}
else {
var valueId = this.data.filterList[value].id;
this.setData({
showPickerView: false,
selected: this.data.filterList[value].id,
selectedIndex: value,
});
}
this.triggerEvent('change', { value: valueId }, {});
},
},
});
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiQXJlYVNlbGVjdC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIkFyZWFTZWxlY3QudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7QUFBQSw0Q0FBNEM7QUFHNUMsU0FBUyxDQUFDO0lBQ1IsVUFBVSxFQUFFO1FBQ1YsV0FBVyxFQUFFO1lBQ1gsSUFBSSxFQUFFLE1BQU07WUFDWixLQUFLLEVBQUUsS0FBSztTQUNiO1FBQ0QsS0FBSyxFQUFFO1lBQ0wsSUFBSSxFQUFFLEtBQUs7WUFDWCxLQUFLLEVBQUUsRUFBRTtZQUNULFFBQVEsWUFBQyxNQUFNO2dCQUNiLElBQUksQ0FBQyxPQUFPLENBQUMsRUFBRSxVQUFVLEVBQUUsTUFBTSxFQUFFLENBQUMsQ0FBQztZQUN2QyxD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YW5nZSgpIHtcbiAgICAgIGxldCB2YWx1ZSA9IHRoaXMuZGF0YS5zZWxlY3RlZDtcbiAgICAgIHRoaXMuc2V0RGF0YSEoe1xuICAgICAgICBzaG93UGlja2VyVmlldzogZmFsc2UsXG4gICAgICB9KTtcbiAgICAgIHRoaXMudHJpZ2dlckV2ZW50KCdjaGFuZ2UnLCB7IHZhbHVlIH0sIHt9KTtcbiAgICB9LFxuICAgIHNlbGVjdGVkSGFuZGxlKGUpIHtcbiAgICAgIGNvbnN0IHsgdmFsdWUgfSA9IGUuY3VycmVudFRhcmdldC5kYXRhc2V0O1xuICAgICAgY29uc29sZS5sb2coZSwgdmFsdWUpO1xuICAgICAgaWYgKHRoaXMuZGF0YS5zZWxlY3RlZEluZGV4ID09PSB2YWx1ZSkge1xuICAgICAgICB0aGlzLnNldERhdGEoe1xuICAgICAgICAgIHNlbGVjdGVkOiAnJyxcbiAgICAgICAgICBzZWxlY3RlZEluZGV4OiAnJyxcbiAgICAgICAgfSk7XG4gICAgICB9IGVsc2Uge1xuICAgICAgICB0aGlzLnNldERhdGEoe1xuICAgICAgICAgIHNlbGVjdGVkOiB0aGlzLmRhdGEuZmlsdGVyTGlzdFt2YWx1ZV0uaWQsXG4gICAgICAgICAgc2VsZWN0ZWRJbmRleDogdmFsdWUsXG4gICAgICAgIH0pO1xuICAgICAgfVxuICAgIH0sXG4gIH0sXG59KTtcbiJdfQ==
\ No newline at end of file
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiQXJlYVNlbGVjdC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIkFyZWFTZWxlY3QudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7QUFBQSw0Q0FBNEM7QUFHNUMsU0FBUyxDQUFDO0lBQ1IsVUFBVSxFQUFFO1FBQ1YsV0FBVyxFQUFFO1lBQ1gsSUFBSSxFQUFFLE1BQU07WUFDWixLQUFLLEVBQUUsS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IH1cbiAgICAgIGxldCB2YWx1ZUlkID0gdGhpcy5kYXRhLmZpbHRlckxpc3RbdmFsdWVdLmlkO1xuICAgICAgdGhpcy5zZXREYXRhISh7XG4gICAgICAgIHNob3dQaWNrZXJWaWV3OiBmYWxzZSxcbiAgICAgICAgc2VsZWN0ZWQ6IHRoaXMuZGF0YS5maWx0ZXJMaXN0W3ZhbHVlXS5pZCxcbiAgICAgICAgc2VsZWN0ZWRJbmRleDogdmFsdWUsXG4gICAgICB9KTtcbiAgICAgIHRoaXMudHJpZ2dlckV2ZW50KCdjaGFuZ2UnLCB7IHZhbHVlOiB2YWx1ZUlkIH0sIHt9KTtcbiAgICB9LFxuICB9LFxufSk7XG4iXX0=
\ No newline at end of file
import { delay } from "../../../utils/util";
import { delay } from '../../../utils/util';
// pages/components/AreaSelect/AreaSelect.js
Component({
......@@ -47,6 +47,7 @@ Component({
selected: '',
selectedIndex: '',
filterList: [],
inputValue: '',
},
methods: {
inputClickHandle() {
......@@ -55,11 +56,25 @@ Component({
url: `/pages/areaSelect/areaSelect?methodName=${this.data.methodName}&value=${this.data.value}`,
});
} else {
let inputValue = '';
if (this.data.selectedIndex || this.data.selectedIndex === 0) {
inputValue = this.data.range[this.data.selectedIndex].areaName;
}
console.log(inputValue);
this.setData!({
showPickerView: !this.data.showPickerView,
inputValue,
});
}
},
clearInputValue() {
console.log('in clearInputValue');
this.setData!({
inputValue: '',
selected: '',
selectedIndex: '',
});
},
innerClickHandle(e) {
return false;
},
......@@ -104,17 +119,24 @@ Component({
selectedHandle(e) {
const { value } = e.currentTarget.dataset;
console.log(e, value);
if (this.data.selectedIndex === value) {
this.setData({
selected: '',
selectedIndex: '',
});
} else {
this.setData({
// if (this.data.selectedIndex === value) {
// this.setData({
// selected: '',
// selectedIndex: '',
// });
// } else {
// this.setData({
// selected: this.data.filterList[value].id,
// selectedIndex: value,
// });
// }
let valueId = this.data.filterList[value].id;
this.setData!({
showPickerView: false,
selected: this.data.filterList[value].id,
selectedIndex: value,
});
}
this.triggerEvent('change', { value: valueId }, {});
},
},
});
......@@ -12,7 +12,10 @@
<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" bindinput="inputHandle" bindconfirm="confirmHandle" />
<input class="areaselect-pickInput" type="text" value="{{inputValue}}" bindinput="inputHandle" bindconfirm="confirmHandle" />
<view class="areaselect-pickInput-clear" wx:if="{{inputValue}}" catch:tap="clearInputValue">
<image class="areaselect-pickInput-clear-icon" src="../../../images/ic_guanbi@2x.png" />
</view>
<view class="areaselect-pickBtn" bindtap="bindPickerChange">确认</view>
</view>
<view class="areaselect-list">
......
......@@ -26,6 +26,19 @@
text-overflow: ellipsis;
width: 85%;
}
.areaselect-pickInput-clear {
position: absolute;
width: 40rpx;
height: 40rpx;
right: 175rpx;
bottom: 30rpx;
z-index: 2;
}
.areaselect-pickInput-clear-icon {
display: block;
width: 100%;
height: 100%;
}
.select-icon {
position: absolute;
width: 44rpx;
......@@ -66,6 +79,7 @@
height: 70%;
}
.areaselect-pickFilter {
position: relative;
display: flex;
padding: 40rpx 40rpx 0;
}
......
......@@ -49,13 +49,16 @@ Component({
data: {
id: this.data.feedbackData.id,
replayContent: val,
state: '2',
state: '3',
},
})
.then(function (res) {
wx.showToast({
title: res.msg,
});
_this.setData({
inputValue: '',
});
_this.triggerEvent('refresh', {});
})
.catch(function (err) {
......@@ -67,4 +70,4 @@ Component({
},
},
});
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiRmVlZGJhY2tJdGVtLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiRmVlZGJhY2tJdGVtLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7O0FBQUEsNENBQW1EO0FBR25ELFNBQVMsQ0FBQztJQUlSLFVB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WNrRGF0YToge1xuICAgICAgdHlwZTogT2JqZWN0LFxuICAgICAgdmFsdWU6IHtcbiAgICAgICAgYXJlYUlkOiAwLFxuICAgICAgICBhcmVhTmFtZTogJycsXG4gICAgICAgIGN1c3RvbWVySWQ6IDAsXG4gICAgICAgIGN1c3RvbWVyTmFtZTogJycsXG4gICAgICAgIGN1c3RvbWVyUGhvbmU6ICcnLFxuICAgICAgICBjdXN0b21lclNleDogJycsXG4gICAgICAgIGZlZWRiYWNrQ29udGVudDogJycsXG4gICAgICAgIGlkOiAwLFxuICAgICAgICBzdGF0ZTogJycsXG4gICAgICB9LFxuICAgIH0sXG4gIH0sXG5cbiAgLyoqXG4gICAqIOe7hOS7tueahOWIneWni+aVsOaNrlxuICAgKi9cbiAgZGF0YToge1xuICAgIGlucHV0VmFsdWU6ICcnLFxuICB9LFxuXG4gIC8qKlxuICAgKiDnu4Tku7bnmoTmlrnms5XliJfooahcbiAgICovXG4gIG1ldGhvZHM6IHtcbiAgICBtYWtlUGhvbmVDYWxsSGFuZGxlKCkge1xuICAgICAgY29uc29sZS5sb2coJ2luIG1ha2VQaG9uZUNhbGxIYW5kbGUnKTtcbiAgICAgIHd4Lm1ha2VQaG9uZUNhbGwoe1xuICAgICAgICBwaG9uZU51bWJlcjogdGhpcy5kYXRhLmZlZWRiYWNrRGF0YS5jdXN0b21lclBob25lLFxuICAgICAgICBzdWNjZXNzOiAoKSA9PiB7XG4gICAgICAgICAgY29uc29sZS5sb2coJ3N1Y2Nlc3MnKTtcbiAgICAgICAgfSxcbiAgICAgICAgZmFpbDogKCkgPT4ge1xuICAgICAgICAgIGNvbnNvbGUubG9nKCdmYWlsJyk7XG4gICAgICAgIH0sXG4gICAgICB9KTtcbiAgICB9LFxuICAgIGlucHV0SGFuZGxlKGUpIHtcbiAgICAgIGNvbnN0IHZhbCA9IGUuZGV0YWlsLnZhbHVlO1xuICAgICAgdGhpcy5zZXREYXRhKHtcbiAgICAgICAgaW5wdXRWYWx1ZTogdmFsLFxuICAgICAgfSk7XG4gICAgfSxcblxuICAgIHNlbmRGZWVkYmFjaygpIHtcbiAgICAgIGNvbnN0IHZhbCA9IHRoaXMuZGF0YS5pbnB1dFZhbHVlO1xuXG4gICAgICBjdXN0b21lckZldGNoKHtcbiAgICAgICAgdXJsOiAnL2ZlZWRiYWNrL2ZlZWRiYWNrJyxcbiAgICAgICAgbWV0aG9kOiAnUFVUJyxcbiAgICAgICAgZGF0YToge1xuICAgICAgICAgIGlkOiB0aGlzLmRhdGEuZmVlZGJhY2tEYXRhLmlkLFxuICAgICAgICAgIHJlcGxheUNvbnRlbnQ6IHZhbCxcbiAgICAgICAgICBzdGF0ZTogJzInLFxuICAgICAgICB9LFxuICAgICAgfSlcbiAgICAgICAgLnRoZW4ocmVzID0+IHtcbiAgICAgICAgICB3eC5zaG93VG9hc3Qoe1xuICAgICAgICAgICAgdGl0bGU6IHJlcy5tc2csXG4gICAgICAgICAgfSk7XG4gICAgICAgICAgdGhpcy50cmlnZ2VyRXZlbnQoJ3JlZnJlc2gnLCB7fSk7XG4gICAgICAgIH0pXG4gICAgICAgIC5jYXRjaCgoZXJyOiB3eC5HZW5lcmFsQ2FsbGJhY2tSZXN1bHQpID0+IHtcbiAgICAgICAgICB3eC5zaG93VG9hc3Qoe1xuICAgICAgICAgICAgdGl0bGU6IGVyci5lcnJNc2csXG4gICAgICAgICAgICBpY29uOiAnbm9uZScsXG4gICAgICAgICAgfSk7XG4gICAgICAgIH0pO1xuICAgIH0sXG4gIH0sXG59KTtcbiJdfQ==
\ No newline at end of file
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiRmVlZGJhY2tJdGVtLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiRmVlZGJhY2tJdGVtLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7O0FBQUEsNENBQW1EO0FBR25ELFNBQVMsQ0FBQztJQUlSLFVBQVUsRUFBRTtRQUNWLF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e7hOS7tueahOWxnuaAp+WIl+ihqFxuICAgKi9cbiAgcHJvcGVydGllczoge1xuICAgIGZlZWRiYWNrRGF0YToge1xuICAgICAgdHlwZTogT2JqZWN0LFxuICAgICAgdmFsdWU6IHtcbiAgICAgICAgYXJlYUlkOiAwLFxuICAgICAgICBhcmVhTmFtZTogJycsXG4gICAgICAgIGN1c3RvbWVySWQ6IDAsXG4gICAgICAgIGN1c3RvbWVyTmFtZTogJycsXG4gICAgICAgIGN1c3RvbWVyUGhvbmU6ICcnLFxuICAgICAgICBjdXN0b21lclNleDogJycsXG4gICAgICAgIGZlZWRiYWNrQ29udGVudDogJycsXG4gICAgICAgIGlkOiAwLFxuICAgICAgICBzdGF0ZTogJycsXG4gICAgICB9LFxuICAgIH0sXG4gIH0sXG5cbiAgLyoqXG4gICAqIOe7hOS7tueahOWIneWni+aVsOaNrlxuICAgKi9cbiAgZGF0YToge1xuICAgIGlucHV0VmFsdWU6ICcnLFxuICB9LFxuXG4gIC8qKlxuICAgKiDnu4Tku7bnmoTmlrnms5XliJfooahcbiAgICovXG4gIG1ldGhvZHM6IHtcbiAgICBtYWtlUGhvbmVDYWxsSGFuZGxlKCkge1xuICAgICAgY29uc29sZS5sb2coJ2luIG1ha2VQaG9uZUNhbGxIYW5kbGUnKTtcbiAgICAgIHd4Lm1ha2VQaG9uZUNhbGwoe1xuICAgICAgICBwaG9uZU51bWJlcjogdGhpcy5kYXRhLmZlZWRiYWNrRGF0YS5jdXN0b21lclBob25lLFxuICAgICAgICBzdWNjZXNzOiAoKSA9PiB7XG4gICAgICAgICAgY29uc29sZS5sb2coJ3N1Y2Nlc3MnKTtcbiAgICAgICAgfSxcbiAgICAgICAgZmFpbDogKCkgPT4ge1xuICAgICAgICAgIGNvbnNvbGUubG9nKCdmYWlsJyk7XG4gICAgICAgIH0sXG4gICAgICB9KTtcbiAgICB9LFxuICAgIGlucHV0SGFuZGxlKGUpIHtcbiAgICAgIGNvbnN0IHZhbCA9IGUuZGV0YWlsLnZhbHVlO1xuICAgICAgdGhpcy5zZXREYXRhKHtcbiAgICAgICAgaW5wdXRWYWx1ZTogdmFsLFxuICAgICAgfSk7XG4gICAgfSxcblxuICAgIHNlbmRGZWVkYmFjaygpIHtcbiAgICAgIGNvbnN0IHZhbCA9IHRoaXMuZGF0YS5pbnB1dFZhbHVlO1xuXG4gICAgICBjdXN0b21lckZldGNoKHtcbiAgICAgICAgdXJsOiAnL2ZlZWRiYWNrL2ZlZWRiYWNrJyxcbiAgICAgICAgbWV0aG9kOiAnUFVUJyxcbiAgICAgICAgZGF0YToge1xuICAgICAgICAgIGlkOiB0aGlzLmRhdGEuZmVlZGJhY2tEYXRhLmlkLFxuICAgICAgICAgIHJlcGxheUNvbnRlbnQ6IHZhbCxcbiAgICAgICAgICBzdGF0ZTogJzMnLFxuICAgICAgICB9LFxuICAgICAgfSlcbiAgICAgICAgLnRoZW4ocmVzID0+IHtcbiAgICAgICAgICB3eC5zaG93VG9hc3Qoe1xuICAgICAgICAgICAgdGl0bGU6IHJlcy5tc2csXG4gICAgICAgICAgfSk7XG4gICAgICAgICAgdGhpcy5zZXREYXRhKHtcbiAgICAgICAgICAgIGlucHV0VmFsdWU6ICcnLFxuICAgICAgICAgIH0pO1xuICAgICAgICAgIHRoaXMudHJpZ2dlckV2ZW50KCdyZWZyZXNoJywge30pO1xuICAgICAgICB9KVxuICAgICAgICAuY2F0Y2goKGVycjogd3guR2VuZXJhbENhbGxiYWNrUmVzdWx0KSA9PiB7XG4gICAgICAgICAgd3guc2hvd1RvYXN0KHtcbiAgICAgICAgICAgIHRpdGxlOiBlcnIuZXJyTXNnLFxuICAgICAgICAgICAgaWNvbjogJ25vbmUnLFxuICAgICAgICAgIH0pO1xuICAgICAgICB9KTtcbiAgICB9LFxuICB9LFxufSk7XG4iXX0=
\ No newline at end of file
......@@ -61,13 +61,16 @@ Component({
data: {
id: this.data.feedbackData.id,
replayContent: val,
state: '2',
state: '3',
},
})
.then(res => {
wx.showToast({
title: res.msg,
});
this.setData({
inputValue: '',
});
this.triggerEvent('refresh', {});
})
.catch((err: wx.GeneralCallbackResult) => {
......
......@@ -8,7 +8,7 @@
<view class="FeedbackItem-areaname">{{feedbackData.areaName}}</view>
</view>
<view class="FeedbackItem-content">{{feedbackData.feedbackContent}}</view>
<input class="FeedbackItem-input" bindinput="inputHandle"></input>
<input class="FeedbackItem-input" bindinput="inputHandle" value="{{inputValue}}"></input>
<view class="FeedbackItem-option">
<view class="FeedbackItem-phone" bind:tap="makePhoneCallHandle">
<image class="FeedbackItem-phoneIcon" src="../../../images/ic_phone@2x.png"></image>
......
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