'区域选择'
This commit is contained in:
parent
7cc2711f91
commit
01467fcd2f
@ -10,7 +10,7 @@
|
||||
</view>
|
||||
<view class="lightBox flex-center" @click="linkOrder">
|
||||
<image :src="path+ '/assets/img/icon/ID.png'"></image>
|
||||
<view>闪电评估</view>
|
||||
<view>工作证</view>
|
||||
</view>
|
||||
<view class="tab-bar-item" @click="switchTab('pages/mine/mine')">
|
||||
<image
|
||||
|
||||
@ -42,6 +42,48 @@ const post = (url, data, returndata) => {
|
||||
},
|
||||
});
|
||||
|
||||
}
|
||||
const get = (url, data, returndata) => {
|
||||
|
||||
var token =uni.getStorageSync('userToken');
|
||||
uni.request({
|
||||
url: api_url + url+"?token="+token ,
|
||||
data: data,
|
||||
header: {
|
||||
'Accept': 'application/json',
|
||||
'Content-Type': 'application/json',
|
||||
},
|
||||
method: 'GET',
|
||||
success: (response) => {
|
||||
const result = response.data;
|
||||
if (result.code == 401) {
|
||||
uni.removeStorageSync('userToken');
|
||||
uni.showToast({
|
||||
title: result.msg,
|
||||
icon: 'none'
|
||||
})
|
||||
setTimeout(function() {
|
||||
uni.navigateTo({
|
||||
url: '/pages/login/login'
|
||||
})
|
||||
}, 1000)
|
||||
}
|
||||
returndata(result);
|
||||
},
|
||||
fail: (error) => {
|
||||
uni.showLoading({
|
||||
title: '网络错误'
|
||||
});
|
||||
uni.hideLoading();
|
||||
if (error && error.response) {
|
||||
uni.showToast({ title: error.response , icon: 'none' })
|
||||
} else {
|
||||
|
||||
}
|
||||
|
||||
},
|
||||
});
|
||||
|
||||
}
|
||||
const upload = (url, data, returndata) => {
|
||||
console.log(data)
|
||||
@ -141,7 +183,7 @@ export const personlogin = (data, callback) => post('api/recover/person/personlo
|
||||
export const applyCertification = (data, callback) => post('api/recover/person/applyCertification', data, callback);
|
||||
export const checkPayPassword = (data, callback) => post('api/recover/person/checkPayPassword', data, callback);
|
||||
export const verifyPayPassword = (data, callback) => post('api/recover/person/verifyPayPassword', data, callback);
|
||||
export const priceList = (data, callback) => post('api/recover/personmoneylog/index', data, callback);
|
||||
export const priceList = (data, callback) => get('api/recover/personmoney/index', data, callback);
|
||||
export const uploadImg = (data, callback) => upload('api/feedback/upload', data, callback);
|
||||
export const allarealist = (data, callback) => post('api/recover/area/allarealist', data, callback);
|
||||
export const qrcode = (data, callback) => post('api/promotion/generate', data, callback);
|
||||
|
||||
@ -50,12 +50,12 @@
|
||||
</view>
|
||||
<view class="blockBox1"></view>
|
||||
|
||||
<view class="orderBox" style="height: 1700rpx;" v-for="item in qiangdanArr" @click="goDetail(item.id)">
|
||||
<view class="orderBox" v-for="item in qiangdanArr" @click="goDetail(item.id)">
|
||||
<view class="flex-between">
|
||||
<view class="flex-center">
|
||||
<image :src="path+'/assets/img/icon/yu.png'" style="width: 79rpx;height: 71rpx;margin-top: -25rpx;margin-left: -33rpx;margin-right: 21rpx;"></image>
|
||||
<view class="timeLabel">{{countTime(item.order_time)}}分钟内</view>
|
||||
<view class="timeLabel2">(10:17前)上门</view>
|
||||
<!-- <view class="timeLabel">{{countTime(item.order_time)}}分钟内</view> -->
|
||||
<view class="timeLabel2">{{item.order_time_text}}</view>
|
||||
</view>
|
||||
<view class="distant">{{item.distance}}公里</view>
|
||||
</view>
|
||||
@ -109,12 +109,11 @@
|
||||
</view>
|
||||
</view>
|
||||
<view style="height: 195rpx;"></view>
|
||||
<!-- {{recycleList}} -->
|
||||
<view class="orderBox" style="height: 1700rpx;" v-show="item.status==tabCur || tabCur=='0'" v-for="item in recycleList" @click="goDetail(item.id)">
|
||||
<view class="orderBox" v-show="item.status==tabCur || tabCur=='0'" v-for="item in recycleList" @click="goDetail(item.id)">
|
||||
<view class="flex-between">
|
||||
<view class="flex-center">
|
||||
<view class="timeLabel">36分钟内</view>
|
||||
<view class="timeLabel2">(10:17前)上门</view>
|
||||
<!-- <view class="timeLabel">36分钟内</view> -->
|
||||
<view class="timeLabel2">{{item.order_time_text}}</view>
|
||||
</view>
|
||||
<view class="distant">1.5公里</view>
|
||||
</view>
|
||||
@ -426,7 +425,7 @@
|
||||
page2: 1,
|
||||
lastPage1: '',
|
||||
lastPage2: '',
|
||||
limit: 1
|
||||
limit: 10
|
||||
}
|
||||
},
|
||||
components: {
|
||||
@ -666,7 +665,7 @@
|
||||
if(res.code == '1'){
|
||||
this.qiangdanArr = this.qiangdanArr.concat(res.data.list.data)
|
||||
// this.recycleList = res.data.type
|
||||
this.lastPage1 = res.data.list.last_page
|
||||
this.lastPage1 = Math.ceil(res.data.total/this.limit)
|
||||
uni.stopPullDownRefresh();
|
||||
}
|
||||
})
|
||||
@ -680,9 +679,9 @@
|
||||
}
|
||||
this.$api.recycleOrderList(data,res=>{
|
||||
if(res.code == '1'){
|
||||
console.log(res.data.list,res.data.list.data,'dddd')
|
||||
this.recycleList = res.data.list.data
|
||||
this.lastPage2 = res.data.list.last_page
|
||||
console.log(res.data.list,res.data.list.data,res.data.total,'dddd')
|
||||
this.recycleList = this.recycleList.concat(res.data.list)
|
||||
this.lastPage2 = Math.ceil(res.data.total/this.limit)
|
||||
uni.stopPullDownRefresh();
|
||||
}
|
||||
})
|
||||
|
||||
@ -136,8 +136,8 @@
|
||||
},
|
||||
methods: {
|
||||
confirmProvince(val){
|
||||
console.log(val,val.value[0])
|
||||
this.cityList = val.value[0].children[0].children
|
||||
console.log(val,val.value[0],val.value[0].children)
|
||||
this.cityList = val.value[0].children
|
||||
this.provinceName = val.value[0].label
|
||||
this.showProvince = false
|
||||
},
|
||||
|
||||
@ -8,7 +8,8 @@
|
||||
人身保险
|
||||
</view>
|
||||
<view class='hs-row-ft flex-center'>
|
||||
<text class="rightText">已上传</text>
|
||||
<text class="rightText" v-if="userinfo.personal_insurance">已上传</text>
|
||||
<view class="rightText2">待上传</view>
|
||||
<u-icon name="arrow-right" color="#282F38" size="14" style="margin-left: 19rpx;"></u-icon>
|
||||
</view>
|
||||
</view>
|
||||
@ -17,7 +18,8 @@
|
||||
健康证
|
||||
</view>
|
||||
<view class='hs-row-ft flex-center'>
|
||||
<text class="rightText">已上传</text>
|
||||
<text class="rightText" v-if="userinfo.health_certificate">已上传</text>
|
||||
<view class="rightText2">待上传</view>
|
||||
<u-icon name="arrow-right" color="#282F38" size="14" style="margin-left: 19rpx;"></u-icon>
|
||||
</view>
|
||||
</view>
|
||||
@ -50,6 +52,7 @@
|
||||
<view class='hs-list-hd' style="width: 180px;">高空作业证</view>
|
||||
|
||||
<view class='hs-list-na flex-center'>
|
||||
<view class="rightText" v-if="userinfo.high_altitude_certificate">>已上传</view>
|
||||
<view class="rightText2">待上传</view>
|
||||
<u-icon name="arrow-right" color="#282F38" size="14" style="margin-left: 19rpx;"></u-icon>
|
||||
</view>
|
||||
@ -58,6 +61,7 @@
|
||||
<view class='hs-list-hd' style="width: 180px;">电工证</view>
|
||||
<view class='hs-row-ft flex-center'>
|
||||
<!-- <text class="rightText">已上传</text> -->
|
||||
<view class="rightText" v-if="userinfo.electrician_certificate">已上传</view>
|
||||
<view class="rightText2">待上传</view>
|
||||
<u-icon name="arrow-right" color="#282F38" size="14" style="margin-left: 19rpx;"></u-icon>
|
||||
</view>
|
||||
@ -65,14 +69,16 @@
|
||||
<view class='hs-list flex-between' @click="linkDetail('userProt')">
|
||||
<view class='hs-list-hd' style="width: 180px;">焊工证</view>
|
||||
<view class='hs-row-ft flex-center'>
|
||||
<text class="rightText">已上传</text>
|
||||
<text class="rightText" v-if="userinfo.welder_certificate">已上传</text>
|
||||
<view class="rightText2">待上传</view>
|
||||
<u-icon name="arrow-right" color="#282F38" size="14" style="margin-left: 19rpx;"></u-icon>
|
||||
</view>
|
||||
</view>
|
||||
<view class='hs-list flex-between' @click="linkDetail('privacy')">
|
||||
<view class='hs-list-hd' style="width: 180px;">绿色回收认证证书</view>
|
||||
<view class='hs-row-ft flex-center'>
|
||||
<text class="rightText">已上传</text>
|
||||
<text class="rightText" v-if="userinfo.green_recycle_certificate">已上传</text>
|
||||
<view class="rightText2">待上传</view>
|
||||
<u-icon name="arrow-right" color="#282F38" size="14" style="margin-left: 19rpx;"></u-icon>
|
||||
</view>
|
||||
</view>
|
||||
@ -147,7 +153,12 @@
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view style="height: 20rpx;"></view>
|
||||
<!-- <u-popup :show="show" mode="top" @close="close" @open="open">
|
||||
<view>
|
||||
<text>人生若只如初见,何事秋风悲画扇</text>
|
||||
</view>
|
||||
</u-popup> -->
|
||||
<view style="height: 20rpx;"></view>
|
||||
<view class="button-bottom">
|
||||
<button class="btn btn-success" @click="checkPassword()" >保存</button>
|
||||
</view>
|
||||
@ -274,11 +285,12 @@
|
||||
var _this = this;
|
||||
_this.$api.userInfo({},res=>{
|
||||
if(res.code == '1'){
|
||||
if(res.data.user.avatar){
|
||||
_this.avatar = res.data.user.avatar
|
||||
}
|
||||
_this.nickname = res.data.user.nickname
|
||||
_this.userinfo = res.data.user
|
||||
// if(res.data.user.avatar){
|
||||
// _this.avatar = res.data.user.avatar
|
||||
// }
|
||||
// _this.nickname = res.data.user.nickname
|
||||
// _this.userinfo = res.data.user
|
||||
_this.userinfo = res.data.person
|
||||
}else{
|
||||
}
|
||||
})
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user