From cf186b0a4de01261dea0870fd2a9529b5baee4e6 Mon Sep 17 00:00:00 2001
From: jiangping <jp@doumee.com>
Date: 星期五, 18 七月 2025 10:58:36 +0800
Subject: [PATCH] 前端
---
small-program/pages/mine/mine.vue | 19 ++-
small-program/pages/certification-results/certification-results.vue | 229 +++++++++++++++++++++++++++++++++++----------
2 files changed, 189 insertions(+), 59 deletions(-)
diff --git a/small-program/pages/certification-results/certification-results.vue b/small-program/pages/certification-results/certification-results.vue
index 19ed1a8..20e1200 100644
--- a/small-program/pages/certification-results/certification-results.vue
+++ b/small-program/pages/certification-results/certification-results.vue
@@ -1,56 +1,66 @@
<template>
<view class="box">
- <!-- <view class="box-head">
+ <view class="box-head" v-if="info && info.auditStatus ==2">
<image src="/static/icon/ic_pass@2x.png" mode="widthFix"></image>
- <text>渚涢璁よ瘉宸查�氳繃</text>
- </view> -->
- <view class="box-error">
+ <text >{{typeName}}宸查�氳繃</text>
+ </view>
+ <view class="box-error" v-if="info && info.auditStatus ==3">
<view class="box-error-top">
<image src="/static/icon/ic_fail@2x.png" mode="widthFix"></image>
- <text>渚涢璁よ瘉宸叉嫆缁�</text>
+ <text>{{typeName}}宸叉嫆缁�</text>
</view>
- <view class="box-error-info">钀ヤ笟鎵х収杩囨湡锛岃閲嶆柊鎻愪氦瀹℃牳</view>
+ <view class="box-error-info">{{info.auditRemark}}</view>
+ </view>
+ <view class="box-ing" v-if="info && (info.auditStatus||1) ==1">
+ <view class="box-ing-top">
+ <image src="/static/icon/ic_renzhengzhong@2x.png" mode="widthFix"></image>
+ <text>璁よ瘉涓�</text>
+ </view>
+ <view class="box-ing-info">璁よ瘉缁撴灉灏嗛�氳繃鐭俊/璁㈤槄娑堟伅閫氱煡鎮�</view>
+ </view>
+ <view class="box-error" v-if="!info">
+ <view class="box-error-top">
+ <image src="/static/icon/ic_fail@2x.png" mode="widthFix"></image>
+ <text>鏈煡璇㈠埌鐢宠璁板綍</text>
+ </view>
</view>
<view class="box-list">
<view class="box-list-item">
<view class="box-list-item-label">璁よ瘉绫诲瀷</view>
<view class="box-list-item-val">
- <text>涓汉</text>
+ <text>{{info.authType == 1?'浼佷笟':'涓汉'}}</text>
</view>
</view>
<view class="box-list-item">
<view class="box-list-item-label">鑱旂郴浜�</view>
<view class="box-list-item-val">
- <text>鏉庝竾娴�</text>
+ <text>{{info.linkName}}</text>
</view>
</view>
<view class="box-list-item">
<view class="box-list-item-label">鎵嬫満鍙�</view>
<view class="box-list-item-val">
- <text>18155446667</text>
+ <text>{{info.telephone}}</text>
</view>
</view>
<view class="box-list-item">
<view class="box-list-item-label">鎺ュ崟浣嶇疆</view>
<view class="box-list-item-val">
- <text>瀹夊窘鐪佸悎鑲ュ競缁忓紑鍖鸿幉鑺辩鎶�鍥璅搴�402</text>
- <view class="box-list-item-val-edit">淇敼</view>
+ <text>{{info.location}}</text>
+ <view class="box-list-item-val-edit" v-if="info && info.auditStatus ==2" @click="goEditAddr">淇敼</view>
</view>
</view>
- <view class="box-list-info">
- <view class="box-list-info-label">韬唤淇℃伅</view>
+ <view class="box-list-info" >
+ <view class="box-list-info-label">{{info.authType==1?'璁よ瘉璧勬枡':'韬唤淇℃伅'}}</view>
<view class="box-list-info-list">
- <view class="box-list-info-list-image">
- <image src="/static/image/btn_guohui@2x.png" mode="widthFix"></image>
- </view>
- <view class="box-list-info-list-image">
- <image src="/static/image/btn_guohui@2x.png" mode="widthFix"></image>
- </view>
+ <view class="box-list-info-list-image" v-for="item in info.imgList">
+ <image :src="item" @click="previemImg(item)" mode="widthFix"></image>
+ </view>
</view>
</view>
</view>
- <view class="box-footer">
- <view class="box-footer-btn">閲嶆柊璁よ瘉</view>
+ <view class="box-footer" v-if="info &&info.auditStatus ==3">
+ <view class="box-footer-btn" @click="goRenzheng">閲嶆柊璁よ瘉</view>
</view>
</view>
</template>
@@ -59,54 +69,138 @@
export default {
data() {
return {
- title: '鐢ㄦ埛璁よ瘉鐢宠璇︽儏',
+ title: '鐢ㄦ埛璁よ瘉鐢宠',
+ typeName: '鐢ㄦ埛璁よ瘉',
flag: null,
loading:false,
- form: {
- "companyName": "",
- authType:0,
- "img1": "",
- "img2": "",
- "img11": "",
- "img21": "",
- "img3": "",
- "img4": "",
- "img1Full": "",
- "img2Full": "",
- "img11Full": "",
- "img21Full": "",
- "img3Full": "",
- "img4Full": "",
- "location": "",
- "lat": null,
- "lgt": null,
- "linkName": "",
- "location": "",
- "telephone": "",
- "type": 1
- }
+ info: {},
+
};
},
onLoad(options) {
console.log(options)
var flag = options.flag
this.flag = flag
- this.initFormData()
+ this.getApplyData()
switch(flag){
case '1':
- this.title = '璐ц繍璁よ瘉鐢宠璇︽儏'
+ this.title = '璐ц繍璁よ瘉鐢宠'
+ this.typeName='璐ц繍璁よ瘉'
break;
case '2':
- this.title = '渚涢璁よ瘉鐢宠璇︽儏'
+ this.title = '渚涢璁よ瘉鐢宠'
+ this.typeName='渚涢璁よ瘉'
break;
- default:
- this.title = '鐢ㄥ伐璁よ瘉鐢宠璇︽儏'
+ default:
+ this.title = '鐢ㄥ伐璁よ瘉鐢宠'
+ this.typeName='鐢ㄥ伐璁よ瘉'
break;
}
uni.setNavigationBarTitle({
title:this.title
})
},
+ methods:{
+ goRenzheng(){
+ uni.navigateTo({
+ url: '/pages/employment-certification/employment-certification?flag='+this.flag
+ })
+ },
+ getApplyData(){
+ var that = this
+ var param ={ type:that.flag}
+ this.$u.api.getIdentityInfo(param).then(res =>{
+ if(res.code ===200){
+ that.info = res.data
+ }
+ })
+ },
+ previemImg(src){
+ uni.previewImage({
+ current: src, // 褰撳墠鏄剧ず鍥剧墖鐨刪ttp閾炬帴
+ urls: [src] // 闇�瑕侀瑙堢殑鍥剧墖http閾炬帴鍒楄〃
+ });
+ },
+ goEditAddr(){
+ var that =this
+ uni.chooseLocation({
+ success:(res)=> {
+ console.log(res);
+ var param ={
+ id:that.info.id,
+ lat:res.latitude,
+ location:res.address,
+ lgt:res.longitude
+ }
+ that.$u.api.updateLocation(param).then(res1 =>{
+ if(res1.code ===200){
+ uni.showToast({
+ title: '淇敼鎴愬姛 ',
+ icon: "none",
+ duration: 2000
+ });
+ that.info.location=param.location
+ that.info.lat=param.lat
+ that.info.lgt=param.lgt
+ }
+ })
+ },
+ fail:()=>{
+ // 濡傛灉鐢╱ni.chooseLocation娌℃湁鑾峰彇鍒板湴鐞嗕綅缃紝鍒欓渶瑕佽幏鍙栧綋鍓嶇殑鎺堟潈淇℃伅锛屽垽鏂槸鍚︽湁鍦扮悊鎺堟潈淇℃伅
+ uni.getSetting({
+ success: (res) => {
+ console.log(res);
+ var status = res.authSetting;
+ if(!status['scope.userLocation']){
+ // 濡傛灉鎺堟潈淇℃伅涓病鏈夊湴鐞嗕綅缃殑鎺堟潈锛屽垯闇�瑕佸脊绐楁彁绀虹敤鎴烽渶瑕佹巿鏉冨湴鐞嗕俊鎭�
+ uni.showModal({
+ title:"鏄惁鎺堟潈褰撳墠浣嶇疆",
+ content:"闇�瑕佽幏鍙栨偍鐨勫湴鐞嗕綅缃紝璇风‘璁ゆ巿鏉冿紝鍚﹀垯鍦板浘鍔熻兘灏嗘棤娉曚娇鐢�",
+ success:(tip)=>{
+ if(tip.confirm){
+ // 濡傛灉鐢ㄦ埛鍚屾剰鎺堟潈鍦扮悊淇℃伅锛屽垯鎵撳紑鎺堟潈璁剧疆椤甸潰锛屽垽鏂敤鎴风殑鎿嶄綔
+ uni.openSetting({
+ success:(data)=>{
+ // 濡傛灉鐢ㄦ埛鎺堟潈浜嗗湴鐞嗕俊鎭湪锛屽垯鎻愮ず鎺堟潈鎴愬姛
+ if(data.authSetting['scope.userLocation']===true){
+ uni.showToast({
+ title:"鎺堟潈鎴愬姛",
+ icon:"success",
+ duration:1000
+ })
+ // 鎺堟潈鎴愬姛鍚庯紝鐒跺悗鍐嶆chooseLocation鑾峰彇淇℃伅
+ uni.chooseLocation({
+ success: (res) => {
+ console.log("璇︾粏鍦板潃",res);
+ // this.getRegionFn(res);
+ }
+ })
+ }else{
+ uni.showToast({
+ title:"鎺堟潈澶辫触",
+ icon:"none",
+ duration:1000
+ })
+ }
+ }
+ })
+ }
+ }
+ })
+ }
+ },
+ fail: (res) => {
+ uni.showToast({
+ title:"璋冪敤鎺堟潈绐楀彛澶辫触",
+ icon:"none",
+ duration:1000
+ })
+ }
+ })
+ }
+ })
+ }
+ }
}
</script>
@@ -160,6 +254,37 @@
margin-top: 32rpx;
}
}
+
+ .box-ing {
+ width: 100%;
+ height: 248rpx;
+ background: rgba(255, 114, 0, 0.10);
+ display: flex;
+ flex-direction: column;
+ align-items: center;
+ justify-content: center;
+ .box-ing-top {
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ image {
+ width: 60rpx;
+ height: 60rpx;
+ margin-right: 24rpx;
+ }
+ text {
+ font-weight: 600;
+ font-size: 40rpx;
+ color: #FF7200;
+ }
+ }
+ .box-ing-info {
+ font-weight: 400;
+ font-size: 28rpx;
+ color: #333333;
+ margin-top: 32rpx;
+ }
+ }
.box-head {
width: 100%;
height: 172rpx;
@@ -196,9 +321,11 @@
display: flex;
align-items: center;
justify-content: space-between;
+ flex-wrap: wrap;
.box-list-info-list-image {
- width: 334rpx;
+ width: 314rpx;
height: 216rpx;
+ margin: 10rpx;
border-radius: 16rpx;
overflow: hidden;
display: flex;
diff --git a/small-program/pages/mine/mine.vue b/small-program/pages/mine/mine.vue
index 81c0c85..6588fd9 100644
--- a/small-program/pages/mine/mine.vue
+++ b/small-program/pages/mine/mine.vue
@@ -80,7 +80,7 @@
<view class="paidan-label">鎺ュ彈绯荤粺鑷姩娲惧崟</view>
<view class="paidan-right">
<text>鍏抽棴</text>
- <u-switch activeColor="#00BC12" v-model="autoReceiveStatus"></u-switch>
+ <u-switch activeColor="#00BC12" @change="updateMemberInfo" v-model="autoReceiveStatus"></u-switch>
</view>
</view>
</view>
@@ -94,31 +94,31 @@
<text>鏀惰垂鏍囧噯</text>
<u-icon name="arrow-right" color="#111111" size="18"></u-icon>
</view>
- <view class="list-hz-item" @click="jump(2)">
+ <view class="list-hz-item" @click="jump(isLogin?2:5)">
<text>宸ヤ汉璧氶挶</text>
<view class="list-hz-item-r">
<text v-if="userInfo.workerIdentity === 2">宸茶璇�</text>
- <text class="bluetxt" v-else-if="userInfo.workerIdentity === 1">璁よ瘉涓�</text>
+ <text class="orangetxt" v-else-if="userInfo.workerIdentity === 1">璁よ瘉涓�</text>
<text class="redtxt" v-else-if="userInfo.workerIdentity === 3">璁よ瘉澶辫触</text>
<text v-else>鍙帴鐢ㄥ伐璁㈠崟</text>
<u-icon name="arrow-right" color="#111111" size="18"></u-icon>
</view>
</view>
- <view class="list-hz-item" @click="jump(3)">
+ <view class="list-hz-item" @click="jump(isLogin?3:5)">
<text>鍙告満璧氶挶</text>
<view class="list-hz-item-r">
<text v-if="userInfo.driverIdentity === 2">宸茶璇�</text>
- <text class="bluetxt" v-else-if="userInfo.driverIdentity === 1">璁よ瘉涓�</text>
+ <text class="orangetxt" v-else-if="userInfo.driverIdentity === 1">璁よ瘉涓�</text>
<text class="redtxt" v-else-if="userInfo.driverIdentity === 3">璁よ瘉澶辫触</text>
<text v-else>鍙帴杩愯揣璁㈠崟</text>
<u-icon name="arrow-right" color="#111111" size="18"></u-icon>
</view>
</view>
- <view class="list-hz-item" @click="jump(4)">
+ <view class="list-hz-item" @click="jump(isLogin?4:5)">
<text>鎴戣兘渚涢</text>
<view class="list-hz-item-r">
<text v-if="userInfo.chefIdentity === 2">宸茶璇�</text>
- <text class="bluetxt" v-else-if="userInfo.chefIdentity === 1">璁よ瘉涓�</text>
+ <text class="orangetxt" v-else-if="userInfo.chefIdentity === 1">璁よ瘉涓�</text>
<text class="redtxt" v-else-if="userInfo.chefIdentity === 3">璁よ瘉澶辫触</text>
<text v-else>鍙帴鐢ㄩ璁㈠崟</text>
<u-icon name="arrow-right" color="#111111" size="18"></u-icon>
@@ -265,7 +265,7 @@
that.changing1 = false
})
} ,
- updateMemberInfo() {
+ updateMemberInfo(e) {
if(this.changing){
return
}
@@ -573,4 +573,7 @@
.redtxt{
color:#FF0000 !important ;
}
+ .orangetxt{
+ color: #FF7200 !important ;
+ }
</style>
--
Gitblit v1.9.3