lhl 2 years ago
parent
commit
128b662270
2 changed files with 8 additions and 2 deletions
  1. 1 1
      pages/goods/order_list/ygOrder.vue
  2. 7 1
      pages/users/user_order/index.vue

+ 1 - 1
pages/goods/order_list/ygOrder.vue

@@ -25,7 +25,7 @@
 			<Loading :loaded="loaded" :loading="loading"></Loading>
 			<view class="list">
 				<view class="item" v-for="(item, index) in orderList" :key="index" v-if="showOrder(item)">
-					<view @click="goOrderDetails(item.order_id)">
+					<view >
 						<view class="title acea-row row-between-wrapper">
 							<view class="acea-row row-middle">
 								订单ID:{{item.order_id}}

+ 7 - 1
pages/users/user_order/index.vue

@@ -5,7 +5,7 @@
 				<view class="showtime">
 					<text class="float_left order-no-text">{{ item.card_name|| '' }}</text>
 				</view>
-				<view class="item-info" v-for="good in item.card">
+				<view class="item-info" v-for="good in item.card" @click="goGoods(good)">
 					<image :src="good.product.image" mode=""></image>
 					<view class="info-info">
 						<view class="clamp2">
@@ -48,6 +48,12 @@
 
 		},
 		methods: {
+			goGoods(item) {
+				console.log(item)
+				uni.navigateTo({
+					url:'/pages/goods_details/index?id=' + item.product_id
+				})
+			},
 			tabClick(item, index) {
 				this.tabCurrentIndex = index;
 			},