main
liudan 1 year ago
parent 3c8003438b
commit 3ae48d6483
  1. 16
      pages/service.vue
  2. 100
      pages/technician.vue
  3. 31
      user/pages/technician-info.vue

@ -223,6 +223,7 @@
autograph: state => state.user.autograph,
userInfo: state => state.user.userInfo,
mineInfo: state => state.user.mineInfo,
userPageType: state => state.user.userPageType,
}),
async onLoad(options) {
this.getRecommend()
@ -244,7 +245,7 @@
key: 'pageActive',
val: true
})
console.log(this.mineInfo,this.userPageType,"88888")
},
onPullDownRefresh() {
@ -346,9 +347,16 @@
})
}
if(item.name=="技师招募"){
uni.navigateTo({
url:"/user/pages/gonggao/item?id=2"
})
if(this.userPageType==1){
uni.navigateTo({
url:"/technician/pages/apply"
})
}else{
uni.navigateTo({
url:"/user/pages/gonggao/item?id=1"
})
}
}

@ -349,10 +349,10 @@
...mapMutations(['updateUserItem', 'updateTechnicianItem']),
async initIndex(refresh = false) {
// #ifdef H5
if (!refresh && this.$jweixin.isWechat()) {
await this.$jweixin.initJssdk();
this.toAppShare()
}
// if (!refresh && this.$jweixin.isWechat()) {
// await this.$jweixin.initJssdk();
// this.toAppShare()
// }
// #endif
if (!this.configInfo.id || refresh) {
await this.getConfigInfo()
@ -470,52 +470,52 @@
} = this
if (!location.lat) {
// #ifdef H5
if (this.$jweixin.isWechat()) {
this.$util.showLoading()
// await this.$jweixin.initJssdk();
await this.$jweixin.wxReady2();
let {
latitude: lat = 0,
longitude: lng = 0
} = await this.$jweixin.getWxLocation()
location = {
lng,
lat,
address: '定位失败',
province: '',
city: '',
district: ''
}
if (lat && lng) {
let key = `${lat},${lng}`
let data = await this.$api.base.getMapInfo({
location: key
})
let {
status,
result
} = JSON.parse(data)
if (status == 0) {
let {
address,
address_component
} = result
let {
province,
city,
district
} = address_component
location = {
lng,
lat,
address,
province,
city,
district
}
}
}
}
// if (this.$jweixin.isWechat()) {
// this.$util.showLoading()
// // await this.$jweixin.initJssdk();
// await this.$jweixin.wxReady2();
// let {
// latitude: lat = 0,
// longitude: lng = 0
// } = await this.$jweixin.getWxLocation()
// location = {
// lng,
// lat,
// address: '',
// province: '',
// city: '',
// district: ''
// }
// if (lat && lng) {
// let key = `${lat},${lng}`
// let data = await this.$api.base.getMapInfo({
// location: key
// })
// let {
// status,
// result
// } = JSON.parse(data)
// if (status == 0) {
// let {
// address,
// address_component
// } = result
// let {
// province,
// city,
// district
// } = address_component
// location = {
// lng,
// lat,
// address,
// province,
// city,
// district
// }
// }
// }
// }
// #endif
// #ifndef H5
location = await this.$util.getBmapLocation()

@ -19,7 +19,20 @@
</view>
</view>
</view>
<view class="tags">
<view class="tagItem">
<u-icon name="checkmark-circle" color="#17C161" size="20"></u-icon>
<text>爽约包退</text>
</view>
<view class="tagItem">
<u-icon name="checkmark-circle" color="#17C161" size="20"></u-icon>
<text>实名认证</text>
</view>
<view class="tagItem">
<u-icon name="checkmark-circle" color="#17C161" size="20"></u-icon>
<text>资质证书</text>
</view>
</view>
<view class="ml-lg mr-lg">
<view class="fill-base mt-md pd-lg f-paragraph c-paragraph radius-16">
<view class="f-title c-title text-bold mb-md">基本信息</view>
@ -218,4 +231,20 @@
display: block;
}
}
.tags{
background: rgba(23,193,97,0.3);
display: flex;
justify-content: space-around;
margin:20rpx 30rpx;
padding:20rpx 0;
border-radius:20rpx;
.tagItem{
display: flex;
align-items: center;
}
text{
font-size:24rpx;
margin-left:10rpx;
}
}
</style>

Loading…
Cancel
Save