|
@@ -16,7 +16,7 @@
|
|
<view class="clear"></view>
|
|
<view class="clear"></view>
|
|
<view class="op">
|
|
<view class="op">
|
|
<view class="date">{{ item.createTime }}</view>
|
|
<view class="date">{{ item.createTime }}</view>
|
|
- <view class="an btn" @click.stop="confirm(item.id, 1, '确认接单?')">立即够买</view>
|
|
|
|
|
|
+ <view class="an btn" @click.stop="buy(item)">立即够买</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
<u-empty v-if="list.length == 0"></u-empty>
|
|
<u-empty v-if="list.length == 0"></u-empty>
|
|
@@ -47,6 +47,18 @@ export default {
|
|
detail(item) {
|
|
detail(item) {
|
|
uni.navigateTo({ url: '/pages/market/one/detail?id=' + item.publishGoodsId });
|
|
uni.navigateTo({ url: '/pages/market/one/detail?id=' + item.publishGoodsId });
|
|
},
|
|
},
|
|
|
|
+ // 立即购买
|
|
|
|
+ buy(item) {
|
|
|
|
+ this.http.request({
|
|
|
|
+ url: '/level-one-server/app/TbGoodsTransit/purchaseLevelOntGoodsTransit',
|
|
|
|
+ data: { goodsTransitId: item.publishGoodsId },
|
|
|
|
+ method: 'POST',
|
|
|
|
+ contentType: 'application/json; charset=utf-8',
|
|
|
|
+ success: res => {
|
|
|
|
+ uni.redirectTo({ url: '/pages/market/one/leader/success' });
|
|
|
|
+ }
|
|
|
|
+ });
|
|
|
|
+ },
|
|
del(item) {
|
|
del(item) {
|
|
let ids = item.id || this.list.map(i => i.id);
|
|
let ids = item.id || this.list.map(i => i.id);
|
|
uni.showModal({
|
|
uni.showModal({
|