diff --git a/pages/therapist/therapist.vue b/pages/therapist/therapist.vue index 21daae2..3dc7b5f 100644 --- a/pages/therapist/therapist.vue +++ b/pages/therapist/therapist.vue @@ -16,7 +16,7 @@ + action-text="搜索" @custom="onSearch()" @clear="clear"> 筛选 @@ -229,7 +229,7 @@ 技师等级 - + 技师类型 @@ -360,8 +360,6 @@ onLoad(e) { let that = this that.massageTypeId = e.massageTypeId; - that.classifyId = ''; - that.technicianType = 3; // that.getLocation();//低精度,快就完事了 // that.getLocation(true);//高精度,慢慢查询 if(e){ @@ -419,6 +417,9 @@ }, onShow() { let that = this + that.orderList=[]; + that.technicianType=3; + that.selectedValues=[]; that.XCXIsSelect = this.$queue.getData("XCXIsSelect"); var add=uni.getStorageSync('cityTherapist'); if(add!=''){ @@ -439,9 +440,6 @@ url: '/pages/public/login' }) } - that.orderList=[]; - that.technicianType='3' - that.selectedValues=[]; that.token = uni.getStorageSync('token') if (uni.getStorageSync('token')) { if (that.latitude && that.longitude) { @@ -491,10 +489,12 @@ }, methods: { quding(){ - this.getlist() + this.getlist(); + console.log("this.technicianType=============>",this.technicianType) this.showpay = false; }, toggle() { + this.technicianType=3; this.showpay = true; }, tabNavSon(){ @@ -511,7 +511,7 @@ }) } this.tabListSon=list; - this.classifyId=res.data[0].id; + // this.classifyId=res.data[0].id; this.page = 1; } }) @@ -531,6 +531,13 @@ this.technicianType=item.id; this.page=1; }, + clear(res) { + let that = this + that.orderList=[]; + that.technicianType=3; + that.selectedValues=[]; + that.getlist() + }, getlist() { var that=this; let index = 2 @@ -835,12 +842,7 @@ } }); }, - tanChange(index, item) { - this.orderIndex = index - this.tabIndex = item.id - this.page = 1 - this.getlist() - }, + // 开启订阅消息 openMsg() { console.log('订阅消息') @@ -905,41 +907,6 @@ this.page = 1; this.getlist() }, - - // 切换菜单 - tabChange() { - if (uni.getStorageSync('sendMsg')) { - console.log('授权+1') - wx.requestSubscribeMessage({ - tmplIds: this.arr, - success(re) { - console.log(JSON.stringify(re), 111111111111) - var datas = JSON.stringify(re); - if (datas.indexOf("accept") != -1) { - // console.log(re) - } - }, - fail: (res) => { - // console.log(res) - } - }) - } - this.defaultIndex = [0, 0, 0] - // this.$refs.uDropdown.close(); - this.page = 1 - this.getlist() - }, - - // 筛选 - change(index) { - - // this.value1 = e[0][0].value - // this.value2 = e[1][0].value - // this.value3 = e[2][0].value - this.listIndex = index - this.page = 1 - this.getlist() - }, // 乐享低价 goLowTaking() { uni.navigateTo({