Selaa lähdekoodia

Merge branch 'master' of http://git.aseanbusiness.cn/qzyReal/market-app-ui

mym 1 vuosi sitten
vanhempi
commit
e8cd220213
1 muutettua tiedostoa jossa 4 lisäystä ja 3 poistoa
  1. 4 3
      pages/market/two/purchaser/buy/detail.vue

+ 4 - 3
pages/market/two/purchaser/buy/detail.vue

@@ -62,7 +62,7 @@
 				</view>
 			</view>
 			<button class="btn" @click.stop="confirm()" v-if="item.isRelease == 1 && item.isOrders == 1 && item.isConfirm == 0">同意接单并支付</button>
-			<button class="btn" @click.stop="refuse()" style="background-color: #f44336" v-if="item.isRelease == 1 && item.isOrders == 1 && item.isConfirm == 0">拒绝接单</button>
+			<button class="btn" @click.stop="refuse(item.goodsDemandId)" style="background-color: #f44336" v-if="item.isRelease == 1 && item.isOrders == 1 && item.isConfirm == 0">拒绝接单</button>
 		</view>
 	</view>
 </template>
@@ -97,9 +97,10 @@ export default {
 				}
 			});
 		},
-		refuse() {
+		refuse(goodsDemandId) {
 			this.http.request({
-				url: '/level-two-server/app/TbGoodsDemand/refuse?id=' + e.id,
+				url: '/level-two-server/app/TbGoodsDemand/refuse',
+				data: {id: goodsDemandId},
 				success: res => {
 					uni.showToast({ title: '操作成功' });
 				}