zs %!s(int64=2) %!d(string=hai) anos
pai
achega
3832754451
Modificáronse 1 ficheiros con 32 adicións e 28 borrados
  1. 32 28
      pagesMy/dough/index.vue

+ 32 - 28
pagesMy/dough/index.vue

@@ -27,7 +27,7 @@
 								</view>
 								<view class="one_2">
 									<view class="list" v-for="(item, index) in list" :key="index">
-										<view class="list_1" v-if="tabs.active=='0'">
+										<view class="list_1" v-if="tabs.active=='0'" @tap="toView(item,'order')">
 											<view class="list_1_1">
 												<view class="shopname">
 													<text class="iconfont icon-shangdian"></text>
@@ -71,8 +71,6 @@
 												<text>实付款¥{{item.pay}}</text>
 											</view>
 											<view class="btn">
-												<button type="default" size="mini"
-													@tap.stop="toView(item,'order')">详细信息</button>
 												<button v-if="item.status=='0'||item.status=='1'" size="mini"
 													@tap.stop="toCancel(item)">取消订单</button>
 												<button v-if="item.status=='0'" size="mini" :disabled="disabled"
@@ -90,7 +88,7 @@
 													@tap.stop="toAppraise(item)">{{item.rate?'追加评价':'立即评价'}}</button> -->
 											</view>
 										</view>
-										<view class="list_2" v-else-if="tabs.active=='-1'">
+										<view class="list_2" v-else-if="tabs.active=='-1'" @tap="toView(item,'after')">
 											<view class="list_2_1">
 												<view class="shopname">
 													<text class="iconfont icon-shangdian"></text>
@@ -126,8 +124,6 @@
 												</view>
 											</view>
 											<view class="btn">
-												<button type="default" size="mini"
-													@tap.stop="toView(item,'after')">详细信息</button>
 												<button v-if="item.status=='0'" type="default" size="mini"
 													@tap.stop="toCancels(item)">取消售后</button>
 												<button
@@ -144,7 +140,7 @@
 													@tap.stop="toConfirm(item,'after')">确认收货</button>
 											</view>
 										</view>
-										<view class="list_2" v-else>
+										<view class="list_2" v-else @tap.stop="toLook(item)">
 											<view class="list_2_1">
 												<view class="shopname">
 													<text class="iconfont icon-shangdian"></text>
@@ -178,10 +174,9 @@
 												</view>
 											</view>
 											<view class="btn">
+												<button size="mini" v-if="item.status=='0'" open-type="share" @tap.stop="toShare(item)">分享</button>
 												<button type="default" v-if="item.can_group==true&&item.status!='1'"
 													size="mini" @tap.stop="toCan(item)">开团</button>
-												<button type="default" v-if="item.status=='0'" size="mini"
-													@tap.stop="toShare(item)">查看团购</button>
 												<button type="default" v-if="item.status=='0'||item.status=='1'"
 													size="mini" @tap.stop="toHandle(item)">团购订单</button>
 												<button type="default" size="mini"
@@ -410,6 +405,15 @@
 					type: '1'
 				})
 			},
+			// 选择选项卡
+			tabsChange(e) {
+				const that = this;
+				that.$set(that.tabs, `active`, e.active)
+				that.$set(that, `searchInfo`, {})
+				that.$set(that, `status_name`, '')
+				that.clearPage();
+				that.search()
+			},
 			// 订单详细信息
 			toView(item, type) {
 				const that = this;
@@ -703,7 +707,7 @@
 					}
 				});
 			},
-			// 团处理
+			// 团购订单
 			toHandle(e) {
 				const that = this;
 				that.clearPage();
@@ -711,7 +715,7 @@
 					url: `/pagesMy/dough/handle?id=${e._id}`
 				})
 			},
-			// 设置状态
+			// 散团
 			toSet(e) {
 				const that = this;
 				uni.showModal({
@@ -739,6 +743,23 @@
 					}
 				});
 			},
+			// 查看团购
+			toLook(e) {
+				const that = this;
+				that.clearPage();
+				uni.navigateTo({
+					url: `/pagesHome/group/share?id=${e.goods._id}&group=${e._id}`
+				})
+			},
+			// 分享
+			toShare(e) {
+				const that = this;
+				that.$config.share = {
+					title: e?.goods?.name,
+					path: `/pagesHome/group/share?id=${e.goods._id}&group=${e._id}`,
+					imageUrl: e?.goods?.file[0].url
+				}
+			},
 			// 分页
 			toPage(e) {
 				const that = this;
@@ -757,15 +778,6 @@
 					uni.hideLoading();
 				} else {}
 			},
-			// 选择选项卡
-			tabsChange(e) {
-				const that = this;
-				that.$set(that.tabs, `active`, e.active)
-				that.$set(that, `searchInfo`, {})
-				that.$set(that, `status_name`, '')
-				that.clearPage();
-				that.search()
-			},
 			// 查询其他信息
 			async searchOther() {
 				const that = this;
@@ -788,14 +800,6 @@
 				});
 				if (res.errcode == '0') that.$set(that, `gstatusList`, res.data)
 			},
-			// 分享
-			toShare(e) {
-				const that = this;
-				that.clearPage();
-				uni.navigateTo({
-					url: `/pagesHome/group/share?id=${e.goods._id}&group=${e._id}`
-				})
-			},
 			// 清空列表
 			clearPage() {
 				const that = this;