|
|
@@ -65,9 +65,21 @@
|
|
|
</view>
|
|
|
|
|
|
<view class='moneyList'>
|
|
|
-
|
|
|
+ <view class="item acea-row row-between-wrapper" >
|
|
|
+ <view>销售员工</view>
|
|
|
+ </view>
|
|
|
+ <scroll-view scroll-x="true" class="zp-wrap" @scrolltolower="">
|
|
|
+ <view class="zp-item" v-for="ygitem in yg.list" @click="choosYg(ygitem,1)"
|
|
|
+ :class="{'choose': ygitem.id == sale_yg.id}">
|
|
|
+ <image :src="ygitem.avatar || '../../../static/images/avt.png'" mode="" class="zp-logo"></image>
|
|
|
+ <view class="zp-name">{{ygitem.name}}</view>
|
|
|
+ </view>
|
|
|
+ </scroll-view>
|
|
|
+ <view class="item acea-row row-between-wrapper" >
|
|
|
+ <view>预约员工</view>
|
|
|
+ </view>
|
|
|
<scroll-view scroll-x="true" class="zp-wrap" @scrolltolower="">
|
|
|
- <view class="zp-item" v-for="ygitem in yg.list" @click="choosYg(ygitem)"
|
|
|
+ <view class="zp-item" v-for="ygitem in yg.list" @click="choosYg(ygitem,2)"
|
|
|
:class="{'choose': ygitem.id == choose_yg.id}">
|
|
|
<image :src="ygitem.avatar || '../../../static/images/avt.png'" mode="" class="zp-logo"></image>
|
|
|
<view class="zp-name">{{ygitem.name}}</view>
|
|
|
@@ -343,9 +355,8 @@
|
|
|
loadingType: 'loadmore',
|
|
|
loaded: false,
|
|
|
},
|
|
|
- choose_yg: {
|
|
|
-
|
|
|
- },
|
|
|
+ choose_yg: {},
|
|
|
+ sale_yg: {},
|
|
|
payInfo: {},
|
|
|
};
|
|
|
},
|
|
|
@@ -415,8 +426,12 @@
|
|
|
})
|
|
|
},
|
|
|
// 选择员工
|
|
|
- choosYg(item) {
|
|
|
- this.choose_yg = item
|
|
|
+ choosYg(item,index) {
|
|
|
+ if(index == 1) {
|
|
|
+ this.sale_yg = item
|
|
|
+ }else {
|
|
|
+ this.choose_yg = item
|
|
|
+ }
|
|
|
},
|
|
|
// 获取员工列表
|
|
|
getMen() {
|
|
|
@@ -717,8 +732,10 @@
|
|
|
console.log(e)
|
|
|
let that = this
|
|
|
if(e.action == 'payClose') {
|
|
|
+ console.log(this.payType)
|
|
|
this.pay_close = false
|
|
|
}else {
|
|
|
+
|
|
|
SubscribeCreate({
|
|
|
uid: this.userInfo.uid,
|
|
|
work_member_id: this.choose_yg.id,
|
|
|
@@ -726,20 +743,250 @@
|
|
|
pay_type: e.value,
|
|
|
store_id: that.system_store.id,
|
|
|
reservation_time: that.yytime,
|
|
|
-
|
|
|
+ sale_uid: that.sale_yg.id
|
|
|
}).then(res => {
|
|
|
- that.$util.Tips({
|
|
|
- title: '支付成功',
|
|
|
- icon: 'success'
|
|
|
- }, {
|
|
|
- tab: 4,
|
|
|
- url: goPages
|
|
|
- });
|
|
|
- setTimeout(()=> {
|
|
|
- uni.switchTab({
|
|
|
- url: '/pages/index/index'
|
|
|
- })
|
|
|
- },1500)
|
|
|
+ let status = res.data.status,
|
|
|
+ orderId = res.data.result.order_id,
|
|
|
+ jsConfig = res.data.result.jsConfig,
|
|
|
+ goPages = '/pages/goods/order_pay_status/index?order_id=' + orderId + '&msg=' + res
|
|
|
+ .msg +
|
|
|
+ '&type=6' + '&totalPrice=' + this.totalPrice + '&pay_type=' + e.value + '&pay_end=' + status
|
|
|
+ switch (status) {
|
|
|
+ case 'ORDER_EXIST':
|
|
|
+ case 'EXTEND_ORDER':
|
|
|
+ case 'PAY_ERROR':
|
|
|
+ uni.hideLoading();
|
|
|
+ return that.$util.Tips({
|
|
|
+ title: res.msg
|
|
|
+ }, {
|
|
|
+ tab: 5,
|
|
|
+ url: goPages
|
|
|
+ });
|
|
|
+ break;
|
|
|
+ case 'SUCCESS':
|
|
|
+ uni.hideLoading();
|
|
|
+ if (that.BargainId || that.combinationId || that.pinkId || that.seckillId || that
|
|
|
+ .discountId)
|
|
|
+ return that.$util.Tips({
|
|
|
+ title: res.msg,
|
|
|
+ icon: 'success'
|
|
|
+ }, {
|
|
|
+ tab: 4,
|
|
|
+ url: goPages
|
|
|
+ });
|
|
|
+ return that.$util.Tips({
|
|
|
+ title: res.msg,
|
|
|
+ icon: 'success'
|
|
|
+ }, {
|
|
|
+ tab: 5,
|
|
|
+ url: goPages
|
|
|
+ });
|
|
|
+ break;
|
|
|
+ case 'WECHAT_PAY':
|
|
|
+ that.toPay = true;
|
|
|
+ // #ifdef MP
|
|
|
+ /* that.toPay = true; */
|
|
|
+ let mp_pay_name = ''
|
|
|
+ if (uni.requestOrderPayment) {
|
|
|
+ mp_pay_name = 'requestOrderPayment'
|
|
|
+ } else {
|
|
|
+ mp_pay_name = 'requestPayment'
|
|
|
+ }
|
|
|
+ uni[mp_pay_name]({
|
|
|
+ timeStamp: jsConfig.timestamp,
|
|
|
+ nonceStr: jsConfig.nonceStr,
|
|
|
+ package: jsConfig.package,
|
|
|
+ signType: jsConfig.signType,
|
|
|
+ paySign: jsConfig.paySign,
|
|
|
+ success: function(res) {
|
|
|
+ uni.hideLoading();
|
|
|
+ if (that.BargainId || that.combinationId || that.pinkId || that
|
|
|
+ .seckillId || that.discountId)
|
|
|
+ return that.$util.Tips({
|
|
|
+ title: '支付成功',
|
|
|
+ icon: 'success'
|
|
|
+ }, {
|
|
|
+ tab: 4,
|
|
|
+ url: goPages
|
|
|
+ });
|
|
|
+ return that.$util.Tips({
|
|
|
+ title: '支付成功',
|
|
|
+ icon: 'success'
|
|
|
+ }, {
|
|
|
+ tab: 5,
|
|
|
+ url: goPages
|
|
|
+ });
|
|
|
+ },
|
|
|
+ fail: function(e) {
|
|
|
+ uni.hideLoading();
|
|
|
+ return that.$util.Tips({
|
|
|
+ title: '取消支付'
|
|
|
+ }, {
|
|
|
+ tab: 5,
|
|
|
+ url: goPages + '&status=2'
|
|
|
+ });
|
|
|
+ },
|
|
|
+ complete: function(e) {
|
|
|
+ uni.hideLoading();
|
|
|
+ //关闭当前页面跳转至订单状态
|
|
|
+ if (res.errMsg == 'requestPayment:cancel') return that.$util
|
|
|
+ .Tips({
|
|
|
+ title: '取消支付'
|
|
|
+ }, {
|
|
|
+ tab: 5,
|
|
|
+ url: goPages + '&status=2'
|
|
|
+ });
|
|
|
+ },
|
|
|
+ })
|
|
|
+ // #endif
|
|
|
+ // #ifdef H5
|
|
|
+ this.$wechat.pay(res.data.result.jsConfig).then(res => {
|
|
|
+ return that.$util.Tips({
|
|
|
+ title: '支付成功',
|
|
|
+ icon: 'success'
|
|
|
+ }, {
|
|
|
+ tab: 5,
|
|
|
+ url: goPages
|
|
|
+ });
|
|
|
+ }).catch(res => {
|
|
|
+ if (!this.$wechat.isWeixin()) {
|
|
|
+ uni.redirectTo({
|
|
|
+ url: goPages +
|
|
|
+ '&msg=支付失败&status=2'
|
|
|
+ })
|
|
|
+ }
|
|
|
+ if (res.errMsg == 'chooseWXPay:cancel') return that.$util.Tips({
|
|
|
+ title: '取消支付'
|
|
|
+ }, {
|
|
|
+ tab: 5,
|
|
|
+ url: goPages + '&status=2'
|
|
|
+ });
|
|
|
+ })
|
|
|
+ // #endif
|
|
|
+ // #ifdef APP-PLUS
|
|
|
+ uni.requestPayment({
|
|
|
+ provider: 'wxpay',
|
|
|
+ orderInfo: jsConfig,
|
|
|
+ success: (e) => {
|
|
|
+ let url = goPages;
|
|
|
+ uni.showToast({
|
|
|
+ title: "支付成功"
|
|
|
+ })
|
|
|
+ setTimeout(res => {
|
|
|
+ uni.redirectTo({
|
|
|
+ url: url
|
|
|
+ })
|
|
|
+ }, 2000)
|
|
|
+ },
|
|
|
+ fail: (e) => {
|
|
|
+ let url = '/pages/goods/order_pay_status/index?order_id=' +
|
|
|
+ orderId +
|
|
|
+ '&msg=支付失败';
|
|
|
+ uni.showModal({
|
|
|
+ content: "支付失败",
|
|
|
+ showCancel: false,
|
|
|
+ success: function(res) {
|
|
|
+ if (res.confirm) {
|
|
|
+ uni.redirectTo({
|
|
|
+ url: url
|
|
|
+ })
|
|
|
+ } else if (res.cancel) {
|
|
|
+ console.log('用户点击取消');
|
|
|
+ }
|
|
|
+ }
|
|
|
+ })
|
|
|
+ },
|
|
|
+ complete: () => {
|
|
|
+ uni.hideLoading();
|
|
|
+ },
|
|
|
+ });
|
|
|
+ // #endif
|
|
|
+ break;
|
|
|
+ case 'PAY_DEFICIENCY':
|
|
|
+ uni.hideLoading();
|
|
|
+ //余额不足
|
|
|
+ return that.$util.Tips({
|
|
|
+ title: res.msg
|
|
|
+ }, {
|
|
|
+ tab: 5,
|
|
|
+ url: goPages + '&status=1'
|
|
|
+ });
|
|
|
+ break;
|
|
|
+ case "WECHAT_H5_PAY":
|
|
|
+ uni.hideLoading();
|
|
|
+ that.$util.Tips({
|
|
|
+ title: '订单创建成功!'
|
|
|
+ }, {
|
|
|
+ tab: 4,
|
|
|
+ url: goPages + '&status=0'
|
|
|
+ });
|
|
|
+ setTimeout(() => {
|
|
|
+ location.href = res.data.result.jsConfig.mweb_url;
|
|
|
+ }, 2000);
|
|
|
+ break;
|
|
|
+
|
|
|
+ case 'ALIPAY_PAY':
|
|
|
+ //#ifdef H5
|
|
|
+ if (this.from === 'weixin') {
|
|
|
+ uni.redirectTo({
|
|
|
+ url: `/pages/users/alipay_invoke/index?id=${orderId}&pay_key=${res.data.result.pay_key}`
|
|
|
+ });
|
|
|
+ } else {
|
|
|
+ uni.hideLoading();
|
|
|
+ that.formContent = res.data.result.jsConfig;
|
|
|
+ that.$nextTick(() => {
|
|
|
+ document.getElementById('alipaysubmit').submit();
|
|
|
+ })
|
|
|
+ }
|
|
|
+ //#endif
|
|
|
+ // #ifdef MP
|
|
|
+ uni.navigateTo({
|
|
|
+ url: `/pages/users/alipay_invoke/index?id=${orderId}&link=${jsConfig.qrCode}`
|
|
|
+ });
|
|
|
+ // #endif
|
|
|
+ // #ifdef APP-PLUS
|
|
|
+ uni.requestPayment({
|
|
|
+ provider: 'alipay',
|
|
|
+ orderInfo: jsConfig,
|
|
|
+ success: (e) => {
|
|
|
+ uni.showToast({
|
|
|
+ title: "支付成功"
|
|
|
+ })
|
|
|
+ let url = '/pages/goods/order_pay_status/index?order_id=' +
|
|
|
+ orderId +
|
|
|
+ '&msg=支付成功';
|
|
|
+ setTimeout(res => {
|
|
|
+ uni.redirectTo({
|
|
|
+ url: url
|
|
|
+ })
|
|
|
+ }, 2000)
|
|
|
+
|
|
|
+ },
|
|
|
+ fail: (e) => {
|
|
|
+ let url = '/pages/goods/order_pay_status/index?order_id=' +
|
|
|
+ orderId +
|
|
|
+ '&msg=支付失败';
|
|
|
+ uni.showModal({
|
|
|
+ content: "支付失败",
|
|
|
+ showCancel: false,
|
|
|
+ success: function(res) {
|
|
|
+ if (res.confirm) {
|
|
|
+ uni.redirectTo({
|
|
|
+ url: url
|
|
|
+ })
|
|
|
+ } else if (res.cancel) {
|
|
|
+ console.log('用户点击取消');
|
|
|
+ }
|
|
|
+ }
|
|
|
+ })
|
|
|
+ },
|
|
|
+ complete: () => {
|
|
|
+ uni.hideLoading();
|
|
|
+ },
|
|
|
+ });
|
|
|
+ // #endif
|
|
|
+ break;
|
|
|
+ }
|
|
|
})
|
|
|
}
|
|
|
|
|
|
@@ -748,6 +995,11 @@
|
|
|
this.pay_close = false;
|
|
|
},
|
|
|
goPay() {
|
|
|
+ if(!this.sale_yg.id) {
|
|
|
+ return this.$util.Tips({
|
|
|
+ title: '请选择销售员工'
|
|
|
+ });
|
|
|
+ }
|
|
|
if(!this.choose_yg.id) {
|
|
|
return this.$util.Tips({
|
|
|
title: '请选择预约员工'
|
|
|
@@ -949,213 +1201,6 @@
|
|
|
*
|
|
|
*/
|
|
|
getConfirm: function(numType) {
|
|
|
- // let that = this;
|
|
|
- // let shippingType = parseInt(this.shippingType) + 1;
|
|
|
- // let addressId = 0,
|
|
|
- // storeid;
|
|
|
- // if (this.tableId) {
|
|
|
- // shippingType = 4;
|
|
|
- // }
|
|
|
- // if (shippingType == 1) {
|
|
|
- // addressId = that.addressId
|
|
|
- // if (this.deliveryType == 1) {
|
|
|
- // storeid = 0
|
|
|
- // } else {
|
|
|
- // storeid = that.storeId
|
|
|
- // }
|
|
|
- // } else {
|
|
|
- // addressId = ''
|
|
|
- // storeid = that.storeId
|
|
|
- // }
|
|
|
- // orderConfirm(that.cartId, that.news, addressId, shippingType, storeid, that.couponId).then(res => {
|
|
|
- // if (res.data.upgrade_addr == 1) {
|
|
|
- // that.id = res.data.addressInfo.id
|
|
|
- // this.isaddress = true
|
|
|
- // }
|
|
|
- // if (numType != 1) {
|
|
|
- // let confirm = this.objToArr(res.data.custom_form);
|
|
|
- // confirm.forEach((item, index, arr) => {
|
|
|
- // CACHE_CITY[index] = ''; //清空省市区
|
|
|
- // if (item.name == 'texts') {
|
|
|
- // if (item.defaultValConfig.value) {
|
|
|
- // item.value = item.defaultValConfig.value
|
|
|
- // } else {
|
|
|
- // item.value = ''
|
|
|
- // }
|
|
|
- // } else if (item.name == 'radios') {
|
|
|
- // item.value = item.wordsConfig.list[0].val
|
|
|
- // } else if (item.name == 'uploadPicture') {
|
|
|
- // item.value = [];
|
|
|
- // } else if (item.name == 'dateranges') {
|
|
|
- // if (item.valConfig.tabVal == 0) {
|
|
|
- // if (item.valConfig.tabData == 0) {
|
|
|
- // let obj = dayjs(new Date(Number(new Date().getTime()))).format(
|
|
|
- // 'YYYY-MM-DD');
|
|
|
- // item.value = [obj, obj]
|
|
|
- // } else {
|
|
|
- // let data1 = dayjs(new Date(Number(new Date(item.valConfig
|
|
|
- // .specifyDate[0]).getTime()))).format('YYYY-MM-DD');
|
|
|
- // let data2 = dayjs(new Date(Number(new Date(item.valConfig
|
|
|
- // .specifyDate[1]).getTime()))).format('YYYY-MM-DD');
|
|
|
- // item.value = [data1, data2];
|
|
|
- // }
|
|
|
- // } else {
|
|
|
- // item.value = [];
|
|
|
- // }
|
|
|
- // } else {
|
|
|
- // if (['times', 'dates', 'timeranges'].indexOf(item.name) != -1) {
|
|
|
- // if (item.valConfig.tabVal == 0) {
|
|
|
- // if (item.valConfig.tabData == 0) {
|
|
|
- // if (item.name == 'times') {
|
|
|
- // item.value = dayjs(new Date(Number(new Date()
|
|
|
- // .getTime()))).format('HH:mm');
|
|
|
- // } else if (item.name == 'dates') {
|
|
|
- // item.value = dayjs(new Date(Number(new Date()
|
|
|
- // .getTime()))).format('YYYY-MM-DD');
|
|
|
- // } else {
|
|
|
- // let current = dayjs(new Date(Number(new Date()
|
|
|
- // .getTime()))).format('HH:mm');
|
|
|
- // item.value = current + ' - ' + current;
|
|
|
- // }
|
|
|
- // } else {
|
|
|
- // if (item.name == 'times' || item.name == 'dates') {
|
|
|
- // item.value = item.valConfig.specifyDate;
|
|
|
- // } else {
|
|
|
- // item.value = item.valConfig.specifyDate[0] + ' - ' +
|
|
|
- // item.valConfig.specifyDate[1];
|
|
|
- // }
|
|
|
- // }
|
|
|
- // } else {
|
|
|
- // item.value = '';
|
|
|
- // }
|
|
|
- // } else {
|
|
|
- // item.value = '';
|
|
|
- // }
|
|
|
- // }
|
|
|
- // })
|
|
|
-
|
|
|
- // function sortNumber(a, b) {
|
|
|
- // return a.timestamp - b.timestamp;
|
|
|
- // }
|
|
|
- // confirm.sort(sortNumber);
|
|
|
- // that.$set(that, 'confirm', confirm);
|
|
|
- // }
|
|
|
- // that.$set(that, 'goodsType', res.data.type);
|
|
|
- // that.$set(that, 'userInfo', res.data.userInfo);
|
|
|
- // that.$set(that, 'integral', res.data.userInfo.integral);
|
|
|
- // that.$set(that, 'contacts', res.data.userInfo.real_name);
|
|
|
- // that.$set(that, 'contactsTel', res.data.userInfo.record_phone || '');
|
|
|
- // that.$set(that, 'integralRatio', res.data.integralRatio);
|
|
|
- // that.$set(that, 'offlinePostage', res.data.offlinePostage);
|
|
|
- // that.$set(that, 'orderKey', res.data.orderKey);
|
|
|
- // that.$set(that, 'valid_count', res.data.valid_count);
|
|
|
- // that.$set(that, 'discount_id', res.data.discount_id)
|
|
|
- // that.$set(that, 'priceGroup', res.data.priceGroup);
|
|
|
- // that.$set(that, 'seckillId', parseInt(res.data.seckill_id));
|
|
|
- // that.$set(that, 'BargainId', parseInt(res.data.bargain_id));
|
|
|
- // that.$set(that, 'combinationId', parseInt(res.data.combination_id));
|
|
|
- // that.$set(that, 'discountId', parseInt(res.data.discount_id));
|
|
|
- // that.$set(that, 'invoice_func', res.data.invoice_func);
|
|
|
- // that.$set(that, 'special_invoice', res.data.special_invoice);
|
|
|
- // that.$set(that, 'integral_ratio_status', res.data.integral_ratio_status);
|
|
|
- // that.$set(that, 'store_self_mention', res.data.store_self_mention);
|
|
|
- // that.$set(that, 'store_func_status', res.data.store_func_status);
|
|
|
- // that.giveData.give_integral = res.data.give_integral;
|
|
|
- // that.giveData.give_coupon = res.data.give_coupon;
|
|
|
- // let cartInfo = res.data.cartInfo;
|
|
|
- // let cartObj = [],
|
|
|
- // giftObj = [];
|
|
|
- // cartInfo.forEach(item => {
|
|
|
- // if (item.is_gift == 1) {
|
|
|
- // giftObj.push(item)
|
|
|
- // } else {
|
|
|
- // cartObj.push(item)
|
|
|
- // }
|
|
|
- // })
|
|
|
- // that.$set(that, 'cartInfo', cartObj);
|
|
|
- // that.$set(that, 'giveCartInfo', giftObj);
|
|
|
- // let giveType = -1;
|
|
|
- // giftObj.forEach(item => {
|
|
|
- // if (item.product_type == 0 || item.product_type == 4) {
|
|
|
- // return giveType = 0
|
|
|
- // }
|
|
|
- // })
|
|
|
- // that.$set(that, 'product_type', (res.data.product_type == 0 || giveType == 0 || res.data
|
|
|
- // .product_type == 4) ? 0 : 1);
|
|
|
- // //微信支付是否开启
|
|
|
- // that.cartArr[0].payStatus = res.data.pay_weixin_open || 0
|
|
|
- // //支付宝是否开启
|
|
|
- // that.cartArr[1].payStatus = res.data.ali_pay_status || 0;
|
|
|
- // //#ifdef MP
|
|
|
- // that.cartArr[1].payStatus = 0;
|
|
|
- // //#endif
|
|
|
- // //余额支付是否开启
|
|
|
- // // that.cartArr[2].title = '可用余额:' + res.data.userInfo.now_money;
|
|
|
- // that.cartArr[2].number = res.data.userInfo.now_money;
|
|
|
- // that.cartArr[2].payStatus = res.data.yue_pay_status == 1 ? res.data.yue_pay_status : 0
|
|
|
- // if (res.data.offline_pay_status == 2) {
|
|
|
- // that.cartArr[3].payStatus = 0
|
|
|
- // } else {
|
|
|
- // that.cartArr[3].payStatus = 1
|
|
|
- // }
|
|
|
- // // that.$set(that, 'cartArr', that.cartArr);
|
|
|
- // that.$set(that, 'ChangePrice', that.totalPrice);
|
|
|
- // that.getBargainId();
|
|
|
- // that.getCouponList();
|
|
|
- // that.computedPrice();
|
|
|
- // if (this.addressId || this.couponId) {
|
|
|
- // // this.computedPrice();
|
|
|
- // } else {
|
|
|
- // that.$set(that, 'totalPrice', that.$util.$h.Add(parseFloat(res.data.priceGroup
|
|
|
- // .totalPrice),
|
|
|
- // parseFloat(res.data
|
|
|
- // .priceGroup.storePostage)));
|
|
|
- // }
|
|
|
- // }).catch(err => {
|
|
|
- // return this.$util.Tips({
|
|
|
- // title: err
|
|
|
- // });
|
|
|
- // });
|
|
|
- },
|
|
|
- /*
|
|
|
- * 提取砍价和拼团id
|
|
|
- */
|
|
|
- getBargainId: function() {
|
|
|
- let that = this;
|
|
|
- // let cartINfo = that.cartInfo;
|
|
|
- // let BargainId = 0;
|
|
|
- // let combinationId = 0;
|
|
|
- // let discountId = 0;
|
|
|
- // cartINfo.forEach(function(value, index, cartINfo) {
|
|
|
- // BargainId = cartINfo[index].bargain_id,
|
|
|
- // combinationId = cartINfo[index].combination_id,
|
|
|
- // discountId = cartINfo[index].discount_id
|
|
|
- // })
|
|
|
- // that.$set(that, 'BargainId', parseInt(BargainId));
|
|
|
- // that.$set(that, 'combinationId', parseInt(combinationId));
|
|
|
- // that.$set(that, 'discountId', parseInt(discountId));
|
|
|
- if (that.cartArr.length == 3 && (that.BargainId || that.combinationId || that.seckillId || that
|
|
|
- .discountId)) {
|
|
|
- that.cartArr[2].payStatus = 0;
|
|
|
- that.$set(that, 'cartArr', that.cartArr);
|
|
|
- }
|
|
|
- },
|
|
|
- /**
|
|
|
- * 获取当前金额可用优惠券
|
|
|
- *
|
|
|
- */
|
|
|
- getCouponList: function() {
|
|
|
- let that = this;
|
|
|
- let data = {
|
|
|
- cartId: this.cartId,
|
|
|
- 'new': this.news,
|
|
|
- shipping_type: that.$util.$h.Add(that.shippingType, 1),
|
|
|
- store_id: that.system_store ? that.system_store.id : 0
|
|
|
- }
|
|
|
- getCouponsOrderPrice(this.totalPrice, data).then(res => {
|
|
|
- that.$set(that.coupon, 'list', res.data);
|
|
|
- that.openType = 1;
|
|
|
- });
|
|
|
},
|
|
|
/*
|
|
|
* 获取默认收货地址或者获取某条地址信息
|