zs 2 vuotta sitten
vanhempi
commit
a369ccb9b5
2 muutettua tiedostoa jossa 4 lisäystä ja 3 poistoa
  1. 1 1
      pages/index/index.vue
  2. 3 2
      pagesMy/order/service.vue

+ 1 - 1
pages/index/index.vue

@@ -37,7 +37,7 @@
 								path: '/pages/index/index',
 								imageUrl: config.config.share[0].url
 							}
-							let url = `/pages/home/index`;
+							let url = `/pagesMy/order/service`;
 							uni.redirectTo({
 								url
 							})

+ 3 - 2
pagesMy/order/service.vue

@@ -85,9 +85,8 @@
 		},
 		onLoad: async function(e) {
 			const that = this;
-			that.$set(that, `id`, e && e.id || '6361ceb683473c0322151aa8');
+			that.$set(that, `id`, e && e.id || '636221d1e25ed78601dd4fa8');
 			that.$set(that, `status`, e && e.status || '3');
-			console.log(e);
 			that.watchLogin();
 		},
 		methods: {
@@ -107,8 +106,10 @@
 			async search() {
 				const that = this;
 				let id = that.id;
+				console.log(id);
 				let res = await that.$api(`/orderDetail/${id}`, 'GET')
 				if (res.errcode == '0') {
+					console.log(res.data);
 					for (let val of res.data.goods) val.goods_name = val.goods.name;
 					that.$set(that, `info`, res.data)
 				} else {