shish 2 سال پیش
والد
کامیت
6a4e7c3c5c
1فایلهای تغییر یافته به همراه14 افزوده شده و 2 حذف شده
  1. 14 2
      ghsApp/src/pagesOrder/showOrder.vue

+ 14 - 2
ghsApp/src/pagesOrder/showOrder.vue

@@ -3,7 +3,8 @@
 		<view class="billing_box_bg">
 			<view class="top-view"> </view>
 			<view class="result-view">
-                <button v-if="showButton" class="admin-button-com big blue" style="width:45vw;" @click="showCgOrder()">点我查看订单</button>
+				<view style="text-align:center;margin-top:20upx;margin-bottom:60upx;font-size:30upx;">编号:{{id}}</view>
+                <button v-if="showButton" class="admin-button-com big blue" style="width:45vw;" @click="showCgOrder()">点击查看订单</button>
 			</view>
 		</view>
 	</view>
@@ -15,7 +16,8 @@ export default {
 	data() {
 		return {
 			getAppIdList:{},
-			showButton:false
+			showButton:false,
+			id:0
 		};
 	},
 	onLoad() {
@@ -25,7 +27,17 @@ export default {
 			that.showButton = true
 		})
 	},
+	onShow() {
+		if(this.option.id){
+			this.id = this.option.id
+		}
+	},
 	methods: {
+		init(){
+			if(this.option.id){
+				this.id = this.option.id
+			}
+		},
 		showCgOrder() {
 			let that = this
 			console.log('pagesPurchase/purDetails?id='+that.option.id)