From 599cbbfede5e74d928c987434844a74ce2002694 Mon Sep 17 00:00:00 2001
From: doum <doum>
Date: 星期三, 11 二月 2026 15:00:57 +0800
Subject: [PATCH] 小程序

---
 mini-program/pagesA/pages/my-qualifications/my-qualifications.vue |   60 +++++++++++++++++++++++++++++++++++++++++++++---------------
 1 files changed, 45 insertions(+), 15 deletions(-)

diff --git a/mini-program/pagesA/pages/my-qualifications/my-qualifications.vue b/mini-program/pagesA/pages/my-qualifications/my-qualifications.vue
index 74222d4..941b1dd 100644
--- a/mini-program/pagesA/pages/my-qualifications/my-qualifications.vue
+++ b/mini-program/pagesA/pages/my-qualifications/my-qualifications.vue
@@ -3,32 +3,32 @@
 		<view class="box-info">
 			<view class="shop">
 				<view class="shop-image">
-					<image src="/static/logo.png" mode="widthFix"></image>
+					<image  v-if="shop.imgurl"  @click="previewImage(shop.imgurl)" :src="shop.imgurl" mode="widthFix"></image>
 				</view>
 				<view class="shop-info">
-					<text>榧庡厓鍐滄満涓�鍙风粡閿�鍟�</text>
-					<text>鑱旂郴浜猴細鍚翠功涓�</text>
-					<text>鑱旂郴鐢佃瘽锛�0551-676763678</text>
+					<text>{{shop.name || ''}}</text>
+					<text>鑱旂郴浜猴細{{shop.realname || ''}}</text>
+					<text>鑱旂郴鐢佃瘽锛歿{shop.phone || ''}}</text>
 				</view>
 			</view>
 			<view class="xian"></view>
 			<view class="info">
 				<view class="info-item">
 					<view class="info-item-label">钀ヤ笟鏃堕棿锛�</view>
-					<view class="info-item-val">鍛ㄤ竴鑷冲懆浜� 09:30-17:00</view>
+					<view class="info-item-val">鍛ㄤ竴鑷冲懆浜� {{shop.startTime || ''}}</view>
 				</view>
 				<view class="info-item">
 					<view class="info-item-label">鐪佸競鍖猴細</view>
-					<view class="info-item-val">瀹夊窘鐪佸悎鑲ュ競缁忔祹鎶�鏈紑鍙戝尯</view>
+					<view class="info-item-val">{{(shop.areas.provinceName||'') + (shop.areas.cityName||'') + (shop.areas.name||'')}}</view>
 				</view>
 				<view class="info-item">
 					<view class="info-item-label">闂ㄥ簵鍦板潃锛�</view>
-					<view class="info-item-val">鑾茶姳璺�200鍙疯幉鑺变骇涓氬洯F鏍�401</view>
+					<view class="info-item-val">{{shop.addr || ''}}</view>
 				</view>
 				<view class="info-item">
 					<view class="info-item-label">钀ヤ笟鎵х収锛�</view>
 					<view class="info-item-image">
-						<image src="/static/logo.png" mode="widthFix"></image>
+						<image v-if="shop.businessImg"  @click="previewImage(shop.businessImg)" :src="shop.businessImg" mode="widthFix"></image>
 					</view>
 				</view>
 			</view>
@@ -38,20 +38,20 @@
 			<view class="info">
 				<view class="info-item">
 					<view class="info-item-label">娉曚汉濮撳悕锛�</view>
-					<view class="info-item-val">寮犲厜瀹�</view>
+					<view class="info-item-val">{{shop.legalPersonName || ''}}</view>
 				</view>
 				<view class="info-item">
 					<view class="info-item-label">娉曚汉鐢佃瘽锛�</view>
-					<view class="info-item-val">181554462589</view>
+					<view class="info-item-val">{{shop.legalPersonPhone||''}}</view>
 				</view>
 				<view class="info-item">
 					<view class="info-item-label">韬唤璇侊細</view>
 					<view class="info-item-list">
-						<view class="info-item-list-image">
-							<image src="/static/logo.png" mode="widthFix"></image>
+						<view class="info-item-list-image"  v-if="shop.idcardImg" >
+							<image :src="shop.idcardImg" mode="widthFix" @click="previewImage(shop.idcardImg)"></image>
 						</view>
-						<view class="info-item-list-image">
-							<image src="/static/logo.png" mode="widthFix"></image>
+						<view class="info-item-list-image"  v-if="shop.idcardImgBack">
+							<image :src="shop.idcardImgBack"  @click="previewImage(shop.idcardImgBack)" mode="widthFix"></image>
 						</view>
 					</view>
 				</view>
@@ -61,11 +61,41 @@
 </template>
 
 <script>
+	import { mapState } from 'vuex' 
 	export default {
+		computed: {
+			...mapState(['navHeight', 'statusbarHeight','shopInfo', 'shopToken'])
+		},
 		data() {
 			return {
-				
+				shop:{}
 			};
+		},
+		onShow() {
+			this.shop  ={}
+			this.checkShopLogin()
+			this.shop = this.shopInfo || {}
+		},
+		methods:{
+			previewImage (url)  {
+				if (url) {
+					uni.previewImage({
+						urls:[url]
+					})
+				}
+			},
+			async  checkShopLogin(){
+				var that =this
+				if( this.shopInfo ==null || this.shopInfo.id==null ||  this.shopToken==null || this.shopToken==''){
+					uni.navigateTo({
+						url: '/pages/login/login'
+					})
+				} 
+				let res = await that.$u.api.getShopInfo({tokenType:1  })
+				if (res.code === 200) {
+					that.shop = res.data
+				}
+			} 
 		}
 	}
 </script>

--
Gitblit v1.9.3