Browse Source

修改历史订单

zhengjinyi 5 years ago
parent
commit
3a28b4cdc0
3 changed files with 6 additions and 6 deletions
  1. 1 1
      market/pages/club/list.vue
  2. 3 3
      market/pages/order/order-history.vue
  3. 2 2
      pages/tabBar/home/home.vue

+ 1 - 1
market/pages/club/list.vue

@@ -39,7 +39,7 @@
 								<text class="iconfont icon-xieboke"></text>
 								<text>修改资料</text>
 							</view>
-							<view class="opea-type-dell or" @click.stop="orderHistory(item.clubID)">
+							<view class="opea-type-dell or" @click.stop="orderHistory(item)">
 								<text class="iconfont icon-dingdanxuanzhong"></text>
 								<text>历史订单</text>
 							</view>

+ 3 - 3
market/pages/order/order-history.vue

@@ -42,6 +42,7 @@
 		},
 		data() {
 			return {
+				clubID:'',
 				serviceProviderId:'',
 				isEmpty:false,
 				nomoreText: '上拉显示更多',
@@ -61,8 +62,8 @@
 				historyList:[],
 			}
 		},
-		onLoad(){	
-			
+		onLoad(option){	
+			this.clubID = option.clubID
 		},
 		methods: {
 			inithistoryList(){	
@@ -163,7 +164,6 @@
 		},
 		onShow() {
 			this.$api.getStorage().then((resolve) =>{
-				console.log(resolve)
 				this.serviceProviderId = resolve.serviceProviderID
 				this.pageNum = 1;
 				this.inithistoryList();

+ 2 - 2
pages/tabBar/home/home.vue

@@ -261,8 +261,8 @@
 				console.log(e.detail.query)
 			},
 			showTost(){
-				// this.$util.msg("正在开发中,敬请期待~",2000);
-				this.$api.navigateTo(`/market/pages/login/login`)
+				this.$util.msg("正在开发中,敬请期待~",2000);
+				// this.$api.navigateTo(`/market/pages/login/login`)
 				// uni.navigateToMiniProgram({
 				// 	appId: 'wx5a5cda32926f55ac',
 				// 	path: '/pages/tabBar/home/home',