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

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

@ -19,7 +19,20 @@
</view> </view>
</view> </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="ml-lg mr-lg">
<view class="fill-base mt-md pd-lg f-paragraph c-paragraph radius-16"> <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> <view class="f-title c-title text-bold mb-md">基本信息</view>
@ -218,4 +231,20 @@
display: block; 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> </style>

Loading…
Cancel
Save