shish hace 2 años
padre
commit
855318d708
Se han modificado 2 ficheros con 9 adiciones y 3 borrados
  1. 8 2
      ghsApp/src/pagesOrder/arrival.vue
  2. 1 1
      ghsApp/src/pagesOrder/detail.vue

+ 8 - 2
ghsApp/src/pagesOrder/arrival.vue

@@ -5,10 +5,10 @@
 				<view class="commodity-view">
 					<view class="commodity-list">
 						<view v-for="(s, idx) in detailInfo.product" :key="idx" class="commodity-item" >
-							<image class="item-icon" :src="s.cover" alt="" />
+							<image class="item-icon" :src="s.cover" alt="" @click="pageTo({url:'/admin/item/detail?id='+s.productId})" />
 							<view class="item-info">
 								<view class="info-line">
-									<text class="item-name">{{ s.name }}</text>
+									<text class="item-name" @click="pageTo({url:'/admin/item/detail?id='+s.productId})">{{ s.name }}</text>
 									<text class="item-price">
 										<text class="unit"></text>
 										<text class="price"><text>{{s.xhPreNum}}{{s.xhUnitName}}</text></text>
@@ -100,6 +100,12 @@ export default {
 	onShow() {
 		this.init();
 	},
+	onLoad(){
+		//返回上一页时不需要刷新
+		let pages = getCurrentPages();
+		let prevPage = pages[ pages.length - 2 ];
+		prevPage.$vm.fromDetail = {status:1}
+	},
 	computed: {
 		...mapGetters({ loginInfo: "getLoginInfo" }),
 		allPrice() {

+ 1 - 1
ghsApp/src/pagesOrder/detail.vue

@@ -187,7 +187,7 @@
 								<text style="color:red;font-weight: bold;" v-if="Number(s.refundNum)>0">已退{{ s.refundNum }}{{s.xhUnitName}}</text>
 							</text>
 
-							<view class="item-info" @click="pageTo({url:'/admin/item/detail',query:{id: s.productId}})">
+							<view class="item-info" @click="pageTo({url:'/admin/item/detail?id='+s.productId})">
 								<view class="info-line">
 									<text class="item-name">{{ s.name }}</text>
 									<text class="item-price">