排序更改

cyl/develop
wangxia 12 months ago
parent a7270d8fcd
commit 3ba1e65840

@ -38,20 +38,6 @@ Page({
picked: '0'
},
],
sortList: [
{
name: '综合排序',
key: 'zuigao',
},
{
name: '综合排序',
key: 'zuigao',
},
{
name: '综合排序',
key: 'zuigao',
},
],
anchorList: [
{
id: 'age',
@ -137,7 +123,7 @@ Page({
lat: "",
lng: "",
jobClassify: "",
sortTag: 0,
sortTag: 1,
jobRequestLabelIds: "",
cityName: "",
brandIds: "",
@ -1717,7 +1703,7 @@ Page({
console.log(e);
let that = this;
// let data = e.currentTarget.dataset.item;
this.data.storeJobListSearchForm.sortTag = 0;
this.data.storeJobListSearchForm.sortTag = 1;
that.data.storeJobListSearchForm.pageNum = 1;
this.setData({
firstMenu: "工价",
@ -4346,7 +4332,7 @@ Page({
let item = e.currentTarget.dataset.item
that.data.choiceCollect = item.key;
// that.data.storeJobListSearchForm.ucj = e.currentTarget.dataset.id;
that.data.storeJobListSearchForm.sortTag = item.key;
// that.data.storeJobListSearchForm.sortTag = 0;
that.data.storeJobListSearchForm.picked = item.picked;
that.data.storeJobListSearchForm.pageNum = 1;
that.setData({
@ -4372,7 +4358,7 @@ Page({
let str = e.currentTarget.dataset.id;
console.log(e);
if (str == "all") {
that.data.storeJobListSearchForm.sortTag = 0;
that.data.storeJobListSearchForm.sortTag = 1;
that.setData({
firstMenu: "工价",
// storeJobListSearchForm: that.data.storeJobListSearchForm,
@ -4471,11 +4457,7 @@ Page({
firstMenu: "工价",
recordList: [],
});
that.getJobList().then(() => {
that.setData({
siv: "menu",
});
});
} else if (str == "fuwufei") {
console.log(str);
that.data.storeJobListSearchForm.sortTag = 3;
@ -4485,17 +4467,22 @@ Page({
// storeJobListSearchForm: tha t.data.storeJobListSearchForm,
recordList: [],
});
that.getJobList().then(() => {
that.setData({
siv: "menu",
});
});
} else if (str == "shijian") {
that.data.storeJobListSearchForm.sortTag = 2;
that.data.storeJobListSearchForm.pageNum = 1;
that.setData({
firstMenu: "时间",
// storeJobListSearchForm: tha t.data.storeJobListSearchForm,
recordList: [],
});
}
that.getJobList().then(() => {
that.setData({
siv: "menu",
});
});
that.setData({
activez: str,
whichOneShow: "",

@ -65,7 +65,7 @@
<view class="bgf tl c3 por filter filterprice sort {{whichOneShow == 'gj' ? 'activeWindow' : ''}}" catchtap style="height:240px">
<view class="f16 fw500 p016 {{activez=='zuigao'?'cf00 b1 ':''}}" data-id="zuigao" bindtap="choiceFilter" style="line-height: 42px" hover-class="thover">按工价</view>
<!-- <view class="f16 fw500 p016 {{activez=='zuijin'?'cf00 b1':''}}" data-id="zuijin" bindtap="choiceFilter" style="line-height: 42px" hover-class="thover">距离优先</view> -->
<view wx:if="{{choiceCollect == '1'}}" class="f16 fw500 p016 {{activez=='fuwufei'?'cf00 b1':''}}" data-id="fuwufei" bindtap="choiceFilter" style="line-height: 42px" hover-class="thover">按佣金</view>
<view class="f16 fw500 p016 {{activez=='fuwufei'?'cf00 b1':''}}" data-id="fuwufei" bindtap="choiceFilter" style="line-height: 42px" hover-class="thover">按佣金</view>
<view class="f16 fw500 p016 {{activez=='shijian'?'cf00 b1':''}}" data-id="shijian" bindtap="choiceFilter" style="line-height: 42px" hover-class="thover">按时间</view>
</view>
</scroll-view>

Loading…
Cancel
Save