From c4c0385fb7c35237294c7553ca58f5df055f39b5 Mon Sep 17 00:00:00 2001
From: doum <doum>
Date: 星期四, 26 二月 2026 16:12:07 +0800
Subject: [PATCH] 经销商管理

---
 mini-program/pages/mine/mine.vue |   44 ++++++++++++++++++++++++++++++++++++--------
 1 files changed, 36 insertions(+), 8 deletions(-)

diff --git a/mini-program/pages/mine/mine.vue b/mini-program/pages/mine/mine.vue
index 109db88..d9778ad 100644
--- a/mini-program/pages/mine/mine.vue
+++ b/mini-program/pages/mine/mine.vue
@@ -8,7 +8,7 @@
 			<view class="user">
 				<view class="user-left">
 					<view class="user-image">
-						<image :src="userInfo.imgFullUrl" mode="widthFix"></image>
+						<image :src="userInfo.imgFullUrl?userInfo.imgFullUrl:'/static/icon/default.png'" mode="widthFix"></image>
 					</view>
 					<view class="user-name">
 						<button open-type="getPhoneNumber" @getphonenumber="getphonenumber" v-if="!userInfo">鑾峰彇鎵嬫満鍙�</button>
@@ -26,19 +26,19 @@
 				</view>
 			</view>
 			<view class="cate">
-				<view class="cate-item">
+				<view class="cate-item" @click="jumpTo(1)">
 					<text>{{objNum ? objNum.cartTypeNum : 0}}</text>
 					<text>璐墿杞�</text>
 				</view>
-				<view class="cate-item">
+				<view class="cate-item" @click="jumpTo(2)">
 					<text>{{objNum ? objNum.member.integral : 0}}</text>
 					<text>绉垎</text>
 				</view>
-				<view class="cate-item">
+				<view class="cate-item" @click="jumpTo(3)">
 					<text>{{objNum ? objNum.couponNum : 0}}</text>
 					<text>浼樻儬鍒�</text>
 				</view>
-				<view class="cate-item">
+				<view class="cate-item" @click="jumpTo(4)">
 					<text>{{objNum ? objNum.collectNum : 0}}</text>
 					<text>鏀惰棌</text>
 				</view>
@@ -69,8 +69,8 @@
 					</view>
 				</view>
 			</view>
-			<view class="guanggao">
-				<image src="/static/images/share@2x.png" mode="widthFix"></image>
+			<view class="guanggao" @click="jumpShare()">
+				<image src="/static/images/share@2x.png"  mode="widthFix"></image>
 			</view>
 			<view class="gn">
 				<view class="gn-item" @click="jump()">
@@ -94,7 +94,7 @@
 	import { mapState } from 'vuex'
 	export default {
 		computed: {
-			...mapState(['navHeight', 'statusbarHeight', 'openid', 'userInfo'])
+			...mapState(['navHeight', 'statusbarHeight', 'openid', 'userInfo','recshopid','recuserid'])
 		},
 		data() {
 			return {
@@ -108,9 +108,33 @@
 			this.ordersStatistics()
 		},
 		methods: {
+			jumpTo(type) {
+				if (type === 1) {
+					uni.navigateTo({
+						url: '/pages/shopping-cart/shopping-cart'
+					})
+				} else if (type === 2) {
+					uni.navigateTo({
+						url: '/pages/my-points/my-points'
+					})
+				} else if (type === 3) {
+					uni.navigateTo({
+						url: '/pages/coupon/coupon'
+					})
+				} else if (type === 4) {
+					uni.navigateTo({
+						url: '/pages/my-collection/my-collection'
+					})
+				}
+			},
 			jump() {
 				uni.navigateTo({
 					url: '/pages/login/login'
+				})
+			},
+			jumpShare(){
+				uni.navigateTo({
+					url: '/pages/share/share'
 				})
 			},
 			// 璺宠浆娑堟伅
@@ -129,11 +153,15 @@
 			getphonenumber(e) {
 				this.$u.api.wxPhone({
 					code: e.detail.code,
+					shopId:this.recshopid,
+					recId:this.recuserid,
 					openid: this.openid
 				}).then(res => {
 					if (res.code === 200) {
 						this.$store.commit('setUserInfo', res.data.member)
 						this.$store.commit('setToken', res.data.token)
+						 this.$store.commit('setRecShopId','')
+						 this.$store.commit('setRecUserId','')
 					}
 				})
 			},

--
Gitblit v1.9.3