技师列表进入初始查询条件

This commit is contained in:
曹磊 2024-08-16 17:06:40 +08:00
parent 251fd75cb0
commit 45fabca996
2 changed files with 104 additions and 102 deletions

View File

@ -20,7 +20,7 @@
</view>
<!-- <view class="index-top-left font-size-34">盛安到家</view> -->
<view class="index-top-mian">
<!-- <view class="index-top-mian-text">
<image style="margin-top: 1px;" src="../../static/index-nav-1.png" mode=""></image>
<span>实名认证</span>
@ -34,7 +34,7 @@
<span>平台担保</span>
</view>-->
</view>
<view class="index-headset">
<!--<image style="width: 26rpx; height: 26rpx;" src="../../static/index-nav-4.png" @click="goChat()" mode="widthFix"></image>
<image src="../../static/index-nav-5.png" mode="widthFix"></image> -->
@ -42,10 +42,10 @@
<image class="index-yanzheng" src="../../static/images/index/renzheng02.png" mode=""></image>
<image class="index-yanzheng" src="../../static/images/index/renzheng03.png" mode=""></image>
</view>
</view>
<view class="flex align-center index-mian">
<uni-search-bar placeholder="请输入项目名称" @service="serviceTrue" @confirm="search" :cancelext="'取消'" v-model="searchValue" @input="input"
@clear="clear">
</uni-search-bar>
@ -100,7 +100,7 @@
<image src="../../static/index-fenglei14.png" mode="widthFix"></image>
<span class="feng_word">正骨拨筋</span>
</view>
<view class="index-project-content" @click="goNav('/pages/my/indextaociliaoList?type='+104+'&name='+'index')">
<image src="../../static/index-fenglei1.png" mode="widthFix"></image>
<span class="feng_word">盛安套餐</span>
@ -155,7 +155,7 @@
</view>
</view>
</view>
</view>
<view class="index-taocan width">
<view class="index-taocan-view">
@ -175,8 +175,8 @@
<view class="index-card-view-title-right" >
<text v-if="item.tagsData!=''">{{item.tagsData[0]}}</text>
<text v-else>助眠解压</text>
</view>
<!-- <view class="index-card-view-title-right" >助眠解压</view> -->
</view>
<!-- <view class="index-card-view-title-right" >助眠解压</view> -->
</view>
<view class="index-card-mian">
<view class="index-card-mian-title marginTop">{{item.title}}</view>
@ -218,7 +218,7 @@
</view>
</view>
</scroll-view>
<!-- 内容 -->
<scroll-view class="swiper-box-list" scroll-y="true" :scroll-into-view="scrollIntoView">
<view class="swiper-topic-list" v-for="(item,index) in swiperDateLists" :key="index">
@ -262,7 +262,7 @@
</view>
<view class="guanbi" @click="guanbi">
<image src="@/static/closeimg.png"></image>
</view>
</view>
</view>
</uni-popup>
<view>
@ -306,7 +306,7 @@
<script>
import commonConfig from 'common/config.js';
import * as webMap from 'utils/webMap.js';
// import permision from "@/components/permission.js";
//
@ -333,7 +333,7 @@
amap: null,
latitude: '43.86487',
longitude: '',
city: '请选择城市',
city: '请选择地址',
XCXIsSelect: '否',
currentTabFl: 1,
tjData:[],
@ -391,7 +391,7 @@
content: '中医推拿',
name:'李安茹',
},
],
typeList:[],
searchValue: '',
@ -442,7 +442,7 @@
this.$queue.setData('inviterCode', scene.split(',')[0]);
}
// #endif
that.$Request.getT('/app/common/type/250').then(res => { //
if (res.code == 0) {
if (res.data && res.data.value) {
@ -450,7 +450,7 @@
}
}
})
that.$Request.getT('/app/common/type/248').then(res => { //
if (res.code == 0) {
if (res.data && res.data.value) {
@ -497,7 +497,7 @@
}
})
}
that.getVideo()
},
onShow() {
@ -642,7 +642,7 @@
if (res.code == 0) {
that.swiperDateLists = res.data.list||{}
// this.dataList=res.data.records
} else {
uni.showToast({
title: res.msg,
@ -657,7 +657,7 @@
url:'/pages/index/searchAddress?text='+'index'
})
},
searchBtn(){//
uni.navigateTo({
url:'/pages/my/fuwuGengduo?searchValue='+this.searchValue
@ -704,7 +704,7 @@
});
},
goChat() {
let kefu = this.$queue.getData('kefu'); // 1 2
let kefu = this.$queue.getData('kefu'); // 1 2
let kefuPhone = this.$queue.getData('kefuPhone');
if (kefu == 1) {
uni.makePhoneCall({
@ -762,14 +762,14 @@
const radLon2 = lon2 * (Math.PI / 180);
const a = radLat1 - radLat2;
const b = radLon1 - radLon2;
// 使
const Haversine = Math.pow(Math.sin(a / 2), 2) + Math.cos(radLat1) * Math.cos(radLat2) * Math.pow(Math.sin(b / 2), 2);
const distance = 2 * 6371 * Math.atan2(Math.sqrt(Haversine), Math.sqrt(1 - Haversine));
//
return distance;
},
//
openMsg() {
@ -782,7 +782,7 @@
// if (ret.subscriptionsSetting.itemSettings && Object.keys(ret.subscriptionsSetting.itemSettings).length == 2) {
if (ret.subscriptionsSetting.itemSettings) {
uni.setStorageSync('sendMsg', true)
uni.openSetting({ //
uni.openSetting({ //
success(rea) {
console.log(rea.authSetting)
}
@ -810,7 +810,7 @@
}
})
// uni.setStorageSync('sendMsg', true)
that.showModal = false
} else if (res.cancel) {
console.log('取消')
@ -841,7 +841,7 @@
}
});
},
chaoji(){//
uni.navigateTo({
url:'/my/wallet/index'
@ -851,7 +851,7 @@
uni.navigateTo({
url:'/my/hongbao/xinrenhongbao'
})
},
goNavs(e){
uni.switchTab({
@ -868,10 +868,10 @@
title:'敬请期待!'
})
}
},
// chooseItem(item){
// },
chooseItem(e) {//item
console.log('授权', uni.getStorageSync('sendMsg'))
@ -901,7 +901,7 @@
url: '/pages/public/login'
});
}
},
goOrder(e) {
console.log('授权', uni.getStorageSync('sendMsg'))
@ -930,14 +930,14 @@
url: '/pages/public/login'
});
}
},
gengduo(){
uni.reLaunch({
url:'/pages/therapist/therapist'
})
},
getCity(e) {
// this.city = e[0].label;
// uni.setStorageSync('city', this.city)
@ -962,7 +962,7 @@
data.value = index
this.cityList.push(data);
});
if (!isOpen) {
this.orderList = []
// this.showTP = true;
@ -1036,9 +1036,9 @@
// const targetLongitude =''; //
for(var i=0;i<this.nearbyTechnician.length;i++){
const distance = this.calculateDistance(
this.latitude,
this.longitude,
this.nearbyTechnician[i].latitude,
this.latitude,
this.longitude,
this.nearbyTechnician[i].latitude,
this.nearbyTechnician[i].longitude
);
this.nearbyTechnician[i].dingwei= distance.toFixed(1)
@ -1065,9 +1065,9 @@
this.starTechnician = res.startData.list;
// for(var i=0;i<this.starTechnician.length;i++){
// const distance = this.calculateDistance(
// this.latitude,
// this.longitude,
// this.starTechnician[i].latitude,
// this.latitude,
// this.longitude,
// this.starTechnician[i].latitude,
// this.starTechnician[i].longitude
// );
// this.starTechnician[i].dingwei= distance.toFixed(1)
@ -1080,7 +1080,7 @@
},
//
getBannerList() {
this.$Request.get("/app/dict/list", {
type: '服务类型'
}).then(res => {
@ -1153,8 +1153,8 @@
}
});
},
}
}
</script>
@ -1220,10 +1220,10 @@
height: 100%;
}
.data-list{
width:100%;
width:100%;
height: 162px;
background-color: #000000;
background-color: #000000;
}
.videoHovers{
width: 76px;
@ -1266,7 +1266,7 @@
.localName{
width: 100px;
margin-left: 4rpx;
font-weight: bold;
font-weight: bold;
color: #333333;
margin-top: 3rpx;
overflow: hidden; /* 确保超出容器的内容被裁剪 */
@ -1291,9 +1291,9 @@
color: #019c88 !important;
font-size: 30rpx !important;
margin-top: 3rpx;
}
/deep/.uni-select__selector-scroll{
height: 100px;
}
@ -1353,7 +1353,7 @@
height: 60rpx;
background: #18A689;
border-radius: 31rpx;
}
/deep/.uni-searchbar__box{
height: 32px;
@ -1375,14 +1375,14 @@
.index-headset{
margin-right: 30rpx;
display: flex;
align-items: center;
align-items: center;
margin-top: 4rpx;
}
.locate-line{
/*padding-left: 25rpx;*/
margin-top: 3rpx;
display: flex;
align-items: center;
align-items: center;
}
.popup-mian-view{
width: 100%;
@ -1397,7 +1397,7 @@
.popup-mian-btn span:nth-child(2){
background: linear-gradient(90deg, #019C88, #28BA92, #35C495);
}
.popup-mian-btn span{
width: 247rpx;
height: 77rpx;
@ -1464,7 +1464,7 @@
text-align: right;
margin-top:15rpx;
margin-right: 15rpx;
}
.popup-close-img{
width: 50rpx;
@ -1515,14 +1515,14 @@
}
.dingwei-img{
width:26rpx;
height:29rpx;
height:29rpx;
}
.menu-topic-act .menu-topic-bottom-color {
background: linear-gradient(90deg,rgba(234, 248, 245,0.7),rgba(132, 211, 196,0.7));
}
/* 字体 */
.font-size-19{
font-size: 19rpx;
@ -1571,7 +1571,7 @@
width: 346rpx;
display: flex;
flex-direction: column;
margin-top: 12rpx;
margin-top: 12rpx;
}
.swiper-back-img{
width: 100%;
@ -1587,13 +1587,13 @@
width: 91.67rpx;
height: 93.06rpx;
}
.body-view {
width: 100%;
overflow: hidden;
padding-bottom: 100px;
}
.top-menu-view {
display: flex;
flex-direction: row;
@ -1604,7 +1604,7 @@
height: 108rpx;
line-height: 108rpx;
margin-top: 10rpx;
}
.menu-topic-text {
font-size: 30rpx;
@ -1617,7 +1617,7 @@
bottom: 0;
width: 100%;
}
.menu-topic-view {
display: inline-block;
white-space: nowrap;
@ -1642,7 +1642,7 @@
/deep/.menu-topic-act{
position: relative;
}
.swiper-box-list {
width: 95%;
margin: 5px auto;
@ -1661,8 +1661,8 @@
/deep/.uni-scroll-view::-webkit-scrollbar {
display: none
}
.index-card-mian-biao-left,.index-card-mian-biao-right{
padding: 3px 5px;
}
@ -1693,7 +1693,7 @@
}
.index-card-mian-title{
font-size: 28rpx;
color: #333333;
color: #333333;
}
.marginTop{
margin-bottom: 5px;
@ -1731,7 +1731,7 @@
border-top-left-radius: 30px;
background-color: rgba(176, 176, 176, 0.48);
}
.index-card-mian-time,.index-card-mian-money{
display: flex;
flex-direction: row;
@ -1787,7 +1787,7 @@
height: 32rpx;
background: #CCCCCC;
}
.index-taocan-view-nav-text{
font-weight: bold;
font-size: 30rpx;
@ -1810,7 +1810,7 @@
color: #999999;
}
.feng_word{
font-size: 25rpx;
font-size: 25rpx;
}
.index-taocan-view{
width: 100%;
@ -1834,8 +1834,8 @@
color: #999999;
text-align: center;
display: table;
width: 100px;
white-space: pre-wrap;
width: 100px;
white-space: pre-wrap;
display: -webkit-box;
-webkit-box-orient: vertical;
-webkit-line-clamp: 1;
@ -1916,7 +1916,7 @@
height: 22.61rpx;
margin-right: 5px;
}
.index-fujin-title-left image{
width: 33.33rpx;
height: 33.33rpx;
@ -1950,7 +1950,7 @@
align-items: center;
margin-top: 10px;
}
.index-guanggao-pintuan{
width: 340.28rpx;
height: 100%;
@ -2096,7 +2096,7 @@
justify-content: space-between;
margin: 0px auto 8px auto;
}
.index-mian-select image{
width: 16px;
height: 8px;
@ -2149,7 +2149,7 @@
width: 30rpx;
height: 30rpx;
}
.index-top{
width:94%;
display: flex;
@ -2159,7 +2159,7 @@
margin: 0 auto;
}
.index-head{
width: 100%;
width: 100%;
display: flex;
align-items: flex-start;
flex-direction: column;

View File

@ -7,7 +7,7 @@
<image src="../../static/liliao-1.png" class="dingwei-img"></image>
<view class="localName" style="margin-right: 30rpx;">{{ cityname }}</view>
</view>
<view class="flex align-center justify-between" style="margin-left: 8rpx;">
<selectSwitchDitu :key="componentKey" @change="switch1Change" :switchList="switchList"/>
</view>
@ -21,9 +21,9 @@
<span @click="toggle" class="screen-button">筛选</span>
<!-- <z-tabs class="z-tabs-fenlei" :list="tabList" @change="tabChange" @changeClick="changeClick"/> -->
</view>
</view>
<view class="liebiao" v-show="current === 0">
<view v-if="orderList.length" class="flex text-center flex-wrap list-view">
<view class="margin-bottom-sm radius touxiang-left">
@ -52,7 +52,7 @@
<view class="timea-hui">休息中</view>
</view>
</view>
</view>
</view>
</view>
@ -61,14 +61,14 @@
</view>
<view class="therapist-mian-top">
<view class="therap-pin">
<span>评论</span>
<span class="therapist-mian-view-text">
{{ item.commentCount ? item.commentCount : 0 }}
</span>
</view>
<view class="therap-pin">
<span>收藏</span>
<span class="therapist-mian-view-text">
{{ item.collectCount ? item.collectCount : 0 }}
@ -86,7 +86,7 @@
<image class="therapist-bottom-img" src="../../static/dituzhaoren5.png"></image>
<view v-if="item.consortiaName" class="therapist-mian-bottom-text">{{item.consortiaName}}</view>
</view>
</view>
</view>
</view>
@ -124,7 +124,7 @@
</view>
<view class="margin-left flex flex-direction dituList">
<view class="flex align-center" style="justify-content: start;">
<view class="flex align-center list-right-top">
<view class="list-right-top-view">
<view class="list-right-top-name">
@ -153,7 +153,7 @@
</view>
</view>
</view>
<view class="item-view-jianjie">
{{getOrderByCurrentMarkerIndex().content}}
</view>
@ -193,7 +193,7 @@
</image>
<view class="therapist-mian-bottom-text">{{getOrderByCurrentMarkerIndex().consortiaName}}</view>
</view>
</view> -->
<view class="text-center make-now" v-if="getOrderByCurrentMarkerIndex().status == 1" @click.stop="goOrder(getOrderByCurrentMarkerIndex())">
立即预约
@ -202,8 +202,8 @@
style="background: #d9d9d9;color: #ffffff;width: 100%;border-radius: 30upx;height: 60upx;line-height: 60upx;margin-top: 10rpx;">
立即预约
</view>
</view>
</view>
</view>
@ -360,6 +360,8 @@
onLoad(e) {
let that = this
that.massageTypeId = e.massageTypeId;
that.classifyId = '';
that.technicianType = 3;
// that.getLocation();//
// that.getLocation(true);//
if(e){
@ -479,7 +481,7 @@
},
onReady() {
this.initMap();
//this.initMapPointThread();
},
onUnload() {
@ -557,7 +559,7 @@
} else {
res.data.list[i].distance = (res.data.list[i].distance).toFixed(1) + 'm'
}
}
if (that.page == 1) {
that.orderList = res.data.list
@ -579,7 +581,7 @@
that.creatMarker(rmap);
}
}
}
uni.stopPullDownRefresh();
})
@ -852,7 +854,7 @@
success(ret) {
if (ret.subscriptionsSetting.itemSettings) {
uni.setStorageSync('sendMsg', true)
uni.openSetting({ //
uni.openSetting({ //
success(rea) {
console.log(rea.authSetting)
}
@ -907,7 +909,7 @@
this.page = 1;
this.getlist()
},
//
tabChange() {
if (uni.getStorageSync('sendMsg')) {
@ -1003,7 +1005,7 @@
url: '/pages/index/search/index?index=' + index
});
},
//
getLocation(isHighAccuracy = false) {
console.log('获取地理位置,精度:', isHighAccuracy);
@ -1064,8 +1066,8 @@
that.latitude = location[1]
console.log("locationlocationlocationlocation>",location)
uni.amap.setCenter([location[0],location[1]])
}
}
},
@ -1316,7 +1318,7 @@
/* #endif */
border-radius: 30rpx;
}
.pay_btn {
width: 90%;
margin: 0 auto;
@ -1638,7 +1640,7 @@
height: auto;
border-radius: 10rpx;
position: relative;
}
.touxiang-left-content-img-ditu{
width: 150rpx;
@ -1676,7 +1678,7 @@
height: 100%;
justify-content: space-between;
}
/deep/.justify-between{
// width: 100px;
// height: 32px;
@ -1721,15 +1723,15 @@
width: 110rpx;
display: flex;
flex-direction: row;
align-items: center;
align-items: center;
justify-content: space-between;
}
.map-img{
width: 40rpx;
height: 40rpx;
}
.dingwei-img{
width:33.33rpx;
height:37.5rpx;
@ -2070,4 +2072,4 @@
margin:0 18rpx;
border-radius:6rpx;
}
</style>
</style>