From 9505c2324966d298edce55c919bdcbed09df1b37 Mon Sep 17 00:00:00 2001
From: doum <doum>
Date: 星期六, 28 二月 2026 15:46:10 +0800
Subject: [PATCH] 经销商管理

---
 mini-program/pages/article-details/article-details.vue |   38 +++++++-------------------------------
 1 files changed, 7 insertions(+), 31 deletions(-)

diff --git a/mini-program/pages/article-details/article-details.vue b/mini-program/pages/article-details/article-details.vue
index f4d484d..afccfd6 100644
--- a/mini-program/pages/article-details/article-details.vue
+++ b/mini-program/pages/article-details/article-details.vue
@@ -31,23 +31,12 @@
 						<view class="pl-item-info-data-time">{{item.createDate  }}</view>
 						<view class="pl-item-info-data-list">
 							<view class="pl-item-info-data-list-item"  >
-								<button open-type="getPhoneNumber" style="border:none;" plain="true" @getphonenumber="getphonenumber" v-if="!userInfo ||!userInfo.id">
-									 <image  v-if="!userInfo ||!userInfo.id" src="/static/icon/ic_reply2@2x.png" mode="widthFix" ></image>
-								</button>
-								<image v-if="userInfo && userInfo.id" src="/static/icon/ic_reply2@2x.png" mode="widthFix"  @click="openTwo(item.id, item)"></image>
+								<image  src="/static/icon/ic_reply2@2x.png" mode="widthFix"  @click="openTwo(item.id, item)"></image>
 							</view>
 							<view class="pl-item-info-data-list-item" >
-								<template  v-if="userInfo && userInfo.id" >
 									<image src="/static/icon/dianzan.png" mode="widthFix" v-if="!item.zanStatus || item.zanStatus == 0"  @click.stop="dianzanpl(item)"></image>
 									<image src="/static/icon/detail_ic_zan_sel@2x.png" mode="widthFix" v-else  @click.stop="dianzanpl(item)"></image>
 									<text :style="{color: (!item.zanStatus || item.zanStatus == 0) ? '#AAAAAA' : '#004096'}"  @click.stop="dianzanpl(item)">{{item.zanCount}}</text>
-								</template>
-								<template  v-else>
-									<button open-type="getPhoneNumber" style="border:none;" plain="true" @getphonenumber="getphonenumber" v-if="!userInfo ||!userInfo.id">
-										<image src="/static/icon/dianzan.png" mode="widthFix"  ></image>
-										<text :style="{color: (!item.zanStatus || item.zanStatus == 0) ? '#AAAAAA' : '#004096'}"  >{{item.zanCount}}</text>
-									</button>
-								</template>
 							</view>
 						</view>
 					</view>
@@ -58,6 +47,7 @@
 						<view class="pl-item-info">
 							<view class="pl-item-info-name">{{child.nikeName}}</view>
 							<view class="pl-item-info-content" v-if="child.content">
+								<text v-if="child.replyMemberNikeName"> 鍥炲<text  style="color: #AAAAAA;margin-left: 6rpx;margin-right: 6rpx;">{{child.replyMemberNikeName}}</text>: </text>
 								{{child.content}}
 							</view>
 							<view class="pl-item-info-list" v-if="child.multifileList && child.multifileList.length > 0">
@@ -179,24 +169,6 @@
 			}
 		},
 		methods: {
-			// 鎺堟潈鎵嬫満鍙�
-			getphonenumber(e) {
-				if (e.detail.errMsg === 'getPhoneNumber:ok') {
-					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','')
-						}
-					})
-				}
-			},
 			// 鐐硅禐
 			dianzanpl(item) {
 				if (!this.userInfo) {
@@ -227,6 +199,10 @@
 			},
 			// 浜岀骇璇勮
 			openTwo(commentId, item) {
+				if (!this.userInfo) {
+					this.$refs.login.open()
+					return;
+				}
 				this.item = item
 				this.commentId = commentId
 				this.show1 = true
@@ -329,7 +305,7 @@
 					activityId: this.info.id,
 					content: this.value,
 					multifileList: this.multifileList,
-					// commentId: this.commentId,
+					commentId: this.commentId,
 					replyId: this.item ? this.item.id : null
 				}).then(res => {
 					if (res.code === 200) {

--
Gitblit v1.9.3