lhl пре 3 година
родитељ
комит
ff0b18f68e
3 измењених фајлова са 17 додато и 4 уклоњено
  1. 9 0
      api/whole.js
  2. 1 1
      pages/index/child/goldenBean.vue
  3. 7 3
      pages/user/myWholesale.vue

+ 9 - 0
api/whole.js

@@ -89,4 +89,13 @@ export function getWholeInfo(data,id) {
 		method: 'get',
 		data
 	});
+}
+
+//提货package/take_delivery/:id
+export function delivery(data,id) {
+	return request({
+		url: '/api/package/take_delivery/' + id,
+		method: 'get',
+		data
+	});
 }

+ 1 - 1
pages/index/child/goldenBean.vue

@@ -29,7 +29,7 @@
 							{{ d.store_name }}
 						</view>
 						<view class="price">
-							{{ d.price }}金豆
+							{{ d.price }}
 						</view>
 					</view>
 				</view>

+ 7 - 3
pages/user/myWholesale.vue

@@ -38,7 +38,7 @@
 							<button class="action-btn" @click.stop="lookMore(item)">查看详情</button>
 							<button v-if="item.status == 0" class="action-btn recom"
 								@click.stop="payNew(item)">立即支付</button>
-							<button v-if="item.status >= 1" class="action-btn recom"
+							<button v-if="item.status >= 2" class="action-btn recom"
 								@click.stop="stopItem(item)">提货</button>
 						</view>
 					</view>
@@ -116,7 +116,8 @@
 	import {
 		getMyPackage,
 		getMySellout,
-		packageAudit
+		packageAudit,
+		delivery
 	} from '@/api/whole.js'
 	export default {
 		components: {
@@ -318,7 +319,10 @@
 			},
 			// 提货
 			stopItem(item) {
-
+				console.log(item)
+				delivery({},item.id).then(res => {
+					console.log(res)
+				})
 			}
 		}
 	}