liudan 5 months ago
parent 2a4e3f3959
commit 0552961917
  1. 4
      api/order.js
  2. 2
      pages/burst/index.vue
  3. 15
      pages/goods_details/index.vue
  4. 4
      pages/user/index.vue
  5. 48
      pages/users/order_confirm/index.vue
  6. 8
      pages/users/order_list1/index.vue
  7. 4
      pages/users/promoter-list/index.vue
  8. 6
      pages/users/user_cash/index.vue

@ -89,8 +89,8 @@ export function integralOrderPay(id,data){
/**
* 订单统计数据
*/
export function orderData(){
return request.get('order/number')
export function orderData(data){
return request.get('order/number',data)
}
/**

@ -55,7 +55,7 @@ export default{
filter_params: '',
page: 1,
limit: 30,
is_burst:1
// is_burst:1
}).then(res => {
console.log(res,"-=-")
this.list = res.data.list;

@ -337,11 +337,11 @@
<view>购物车</view>
</navigator> -->
<view v-if="attr.productSelect.stock != 0" class='bnt acea-row skeleton-rect'>
<form @submit="joinCart" report-submit='true' style="width:50%;">
<form @submit="joinCart" report-submit='true' style="width:50%;" v-if="!storeInfo.is_retail&&!storeInfo.is_wholesale">
<button v-if="storeInfo.type != 1&&storeInfo.type != 2&&!storeInfo.mer_form_id" class='joinCart bnts' form-type="submit">加入购物车</button>
</form>
<form @submit="goBuy" report-submit='true' v-if="attr.productSelect" style="width:50%;">
<button class='buy bnts' :class="(storeInfo.type == 1 || storeInfo.type == 2 || storeInfo.mer_form_id) ? 'virtual_buy' : ''" form-type="submit" :disabled="attr.productSelect.stock == 0">立即购买</button>
<form @submit="goBuy" report-submit='true' v-if="attr.productSelect" style="width:50%;" :style="{'width':!storeInfo.is_retail&&!storeInfo.is_wholesale?'50%':'100%'}">
<button :style="{'border-radius':!storeInfo.is_retail&&!storeInfo.is_wholesale?'0 26px 26px 0':'26px'}" class='buy bnts' :class="(storeInfo.type == 1 || storeInfo.type == 2 || storeInfo.mer_form_id) ? 'virtual_buy' : ''" form-type="submit" :disabled="attr.productSelect.stock == 0">立即购买</button>
</form>
</view>
<view v-else class='bnt acea-row skeleton-rect'>
@ -584,7 +584,7 @@
max_count: 0,
min_count: 0,
pay_limit: 1,
is_burst:null,
// is_burst:null,
svipData: {},
svipPrice: false,
specsInfo: {
@ -1101,7 +1101,7 @@
that.$set(that, 'activity', res.data.activity ? res.data.activity : []);
that.$set(that, 'max_count', res.data.once_max_count);
that.$set(that, 'pay_limit', res.data.pay_limit);
that.$set(that, 'is_burst', res.data.is_burst);
// that.$set(that, 'is_burst', res.data.is_burst);
that.$set(that, 'min_count', res.data.once_min_count);
that.$set(that, 'svipData', res.data.show_svip_info || null);
that.$set(that, 'svipPrice', res.data.show_svip_info && res.data.show_svip_info.show_svip_price || false);
@ -1443,7 +1443,8 @@
Cache.set(CART_TIME,timestamp)
if (news) {
uni.navigateTo({
url: '/pages/users/order_confirm/index?cartId=' + cartId +'&is_burst='+that.is_burst
// url: '/pages/users/order_confirm/index?cartId=' + cartId +'&is_burst='+that.is_burst
url: '/pages/users/order_confirm/index?cartId=' + cartId
});
} else {
that.$util.Tips({
@ -1877,7 +1878,7 @@
z-index: 277;
border-top: 1px solid #f0f0f0;
&.footpl{
padding-left: 80rpx;
// padding-left: 80rpx;
}
}
.product-con .footer .item {

@ -60,9 +60,9 @@
<view class="icon">
<image src="/static/images/edit.png" mode=""></image>
</view>
<view style="margin-left: 30rpx;">
<!-- <view style="margin-left: 30rpx;">
推荐人{{recommendPeopleText}}
</view>
</view> -->
</view>
<view class="phone" v-if="!userInfo.phone && isLogin" @tap="bindPhone">绑定手机号</view>
</view>

@ -342,7 +342,7 @@
</view>
</form>
</view>
<view class="orderType">
<view class="orderType" v-if="productType!=1">
<view class="orderTypeTitle">
订单类型
</view>
@ -350,7 +350,7 @@
<label class="item acea-row row-between-wrapper" v-for="(item,index) in typeList" :key="index">
<view>
<radio :value="item.id.toString()" :checked="item.id == 1" />
<radio :value="item.id.toString()" />
</view>
<view class="name">{{item.name}}</view>
</label>
@ -454,8 +454,8 @@
</view>
<view class='settlement' :class='couponData.status != "noAddress" ? "" : "disabled"' style='z-index:100'
@tap="SubOrder">{{couponData.status != "noAddress" ? '提交订单':'选择地址'}}</view>
<view class='settlement' :class='couponData.status != "noAddress" ? "" : "disabled"' style='z-index:100'
v-if="is_burst==1" @tap="SubOrder">{{couponData.status != "noAddress" ? '确认寄售':'选择地址'}}</view>
<!-- <view class='settlement' :class='couponData.status != "noAddress" ? "" : "disabled"' style='z-index:100'
v-if="is_burst==1" @tap="SubOrder">{{couponData.status != "noAddress" ? '确认寄售':'选择地址'}}</view> -->
</view>
</view>
<block v-if="coupon.status">
@ -696,8 +696,9 @@
{id:0,name:'商品'},
{id:1,name:'积分'},
],
orderType:1,
is_burst:null,
orderType:null,
// is_burst:null,
productType:null,
};
},
computed: {
@ -717,7 +718,7 @@
mounted: function() {
},
onLoad: function(options) {
this.is_burst = options.is_burst
// this.is_burst = options.is_burst
// #ifdef H5
this.from = this.$wechat.isWeixin() ? 'weixin' : 'h5'
// #endif
@ -1065,7 +1066,21 @@
use_integral: that.use_integral
}).then(res => {
//
that.is_take = false
that.is_take = false;
if(res.data.order[0]&&res.data.order[0].list[0]&&res.data.order[0].list[0].product){
if(res.data.order[0].list[0].product.is_retail==1){
//
that.productType = 2
}else if(res.data.order[0].list[0].product.is_wholesale==1){
//
that.productType = 1
}else{
//
that.productType = null
}
}
res.data.order.forEach(el => {
if(el.order.isTake == 1)that.is_take = true
el.isTake = 0
@ -1558,6 +1573,11 @@
title: '请阅读并勾选协议,否则无法进行操作'
});
}
if(!that.orderType){
return that.$util.Tips({
title: '请选择订单类型'
});
}
if (that.is_take) {
if(!that.post.real_name){
return that.$util.Tips({
@ -1652,12 +1672,20 @@
receipt_data: this.invoiceData,
extend: this.extend,
post: this.post,
gift_type:this.orderType,
is_burst:this.is_burst,
// is_burst:this.is_burst,
// #ifdef H5
return_url: 'http://' + window.location.host + '/pages/users/order_list/index',
// #endif
};
if(this.productType==2){
// gift_type:this.orderType,
this.$set(data,'gift_type',this.orderType)
}
if(this.productType==2||this.productType==1){
this.$set(data,'order_type',this.productType)
}
if (data.mark && this.isEmojiCharacter(data.mark[Object.keys(data.mark)[0]])) {
that.$util.Tips({
title: '备注不允许输入表情!'

@ -404,7 +404,7 @@
*/
getOrderData: function() {
let that = this;
orderData().then(res => {
orderData({order_type:1}).then(res => {
that.$set(that, 'orderData', res.data);
})
},
@ -536,7 +536,8 @@
groupOrderList({
page: that.page,
limit: that.limit,
is_burst:1,
// is_burst:1,
order_type:1
}).then(res => {
that.isReady = true;
let list = res.data.list || [];
@ -555,7 +556,8 @@
status: that.orderStatus ,
page: that.page,
limit: that.limit,
is_burst:1,
// is_burst:1,
order_type:1
}).then(res => {
let list = res.data.list || [];
let loadend = list.length < that.limit;

@ -10,10 +10,10 @@
</view>
</view>
</view>
<view class='nav acea-row row-around'>
<!-- <view class='nav acea-row row-around'>
<view :class="grade == 0 ? 'item on' : 'item'" @click='setType(0)'>一级({{userInfo.one_level_count}})</view>
<view :class="grade == 1 ? 'item on' : 'item'" @click='setType(1)'>二级({{userInfo.two_level_count}})</view>
</view>
</view> -->
<timeSlot @changeTime="changeTime"></timeSlot>
<view class='list'>
<view class="sortNav acea-row row-middle">

@ -46,6 +46,10 @@
<view class='input'><input :placeholder='"最低提现金额"+minPrice' placeholder-class='placeholder' name="extract_price"
type='digit' v-model="extract_price"></input></view>
</view>
<view class='item acea-row row-between-wrapper'>
<view class='name'>提现手续费</view>
<view class='input'>1.2</view>
</view>
<view class='tip mt25'>
当前可提现金额: <text class="price">{{userInfo.brokerage_price}},</text>冻结佣金{{userInfo.lock_brokerage}}
</view>
@ -536,7 +540,7 @@
}
}
.cash-withdrawal .wrapper .list .item .name {
width: 130rpx;
width: 160rpx;
}
.cash-withdrawal .wrapper .list .item .input {
width: 505rpx;

Loading…
Cancel
Save