2020-08-13 08:12:57 +00:00
|
|
|
|
<template>
|
|
|
|
|
<view>
|
|
|
|
|
<view class='order-submission'>
|
2021-06-11 09:41:16 +00:00
|
|
|
|
<view class="allAddress" :style="store_self_mention ? '':'padding-top:10rpx;'">
|
2020-08-13 08:12:57 +00:00
|
|
|
|
<view class="nav acea-row">
|
2023-06-28 16:24:30 +00:00
|
|
|
|
<view class="item font-color" :class="shippingType === 1 ? 'on' : 'on2'"
|
2023-06-29 15:32:16 +00:00
|
|
|
|
@tap="addressType(0)" v-if='store_self_mention' />
|
|
|
|
|
<view class="item font-color" :class="shippingType === 2 ? 'on' : 'on2'"
|
2023-06-28 16:24:30 +00:00
|
|
|
|
@tap="addressType(1)" v-if='store_self_mention' />
|
2020-08-13 08:12:57 +00:00
|
|
|
|
</view>
|
2023-06-26 12:52:27 +00:00
|
|
|
|
<!-- 收货地址的选择 -->
|
2023-06-29 15:32:16 +00:00
|
|
|
|
<view class='address acea-row row-between-wrapper' @tap='onAddress' v-if='shippingType === 1'
|
2023-06-26 12:52:27 +00:00
|
|
|
|
:style="store_self_mention ? '':'border-top-left-radius: 14rpx;border-top-right-radius: 14rpx;'">
|
|
|
|
|
<view class='addressCon' v-if="addressInfo.name">
|
|
|
|
|
<view class='name'>{{ addressInfo.name }}
|
|
|
|
|
<text class='phone'>{{ addressInfo.mobile }}</text>
|
2020-08-13 08:12:57 +00:00
|
|
|
|
</view>
|
2021-06-11 09:41:16 +00:00
|
|
|
|
<view class="acea-row">
|
2023-06-26 12:52:27 +00:00
|
|
|
|
<text class='default font-color' v-if="addressInfo.defaultStatus">[默认]</text>
|
|
|
|
|
<text class="line2">{{ addressInfo.areaName }} {{addressInfo.detailAddress}}</text>
|
2021-06-11 09:41:16 +00:00
|
|
|
|
</view>
|
2020-08-13 08:12:57 +00:00
|
|
|
|
</view>
|
|
|
|
|
<view class='addressCon' v-else>
|
|
|
|
|
<view class='setaddress'>设置收货地址</view>
|
|
|
|
|
</view>
|
|
|
|
|
<view class='iconfont icon-jiantou'></view>
|
|
|
|
|
</view>
|
2023-06-28 16:24:30 +00:00
|
|
|
|
<!-- 门店的选择 -->
|
2020-08-13 08:12:57 +00:00
|
|
|
|
<view class='address acea-row row-between-wrapper' v-else @tap="showStoreList">
|
|
|
|
|
<block v-if="storeList.length>0">
|
|
|
|
|
<view class='addressCon'>
|
2023-06-28 16:24:30 +00:00
|
|
|
|
<view class='name'>{{ system_store.name }}
|
|
|
|
|
<text class='phone'>{{ system_store.phone }}</text>
|
2020-08-13 08:12:57 +00:00
|
|
|
|
</view>
|
2023-06-28 16:24:30 +00:00
|
|
|
|
<view class="line1"> {{ system_store.areaName }}{{", " + system_store.detailAddress}}
|
2021-06-11 09:41:16 +00:00
|
|
|
|
</view>
|
2020-08-13 08:12:57 +00:00
|
|
|
|
</view>
|
|
|
|
|
<view class='iconfont icon-jiantou'></view>
|
|
|
|
|
</block>
|
|
|
|
|
<block v-else>
|
|
|
|
|
<view>暂无门店信息</view>
|
|
|
|
|
</block>
|
|
|
|
|
</view>
|
|
|
|
|
<view class='line'>
|
|
|
|
|
<image src='/static/images/line.jpg'></image>
|
|
|
|
|
</view>
|
|
|
|
|
</view>
|
2021-06-11 09:41:16 +00:00
|
|
|
|
<view class="pad30">
|
2023-06-29 15:32:16 +00:00
|
|
|
|
<orderGoods :cartInfo="cartInfo" />
|
2021-06-11 09:41:16 +00:00
|
|
|
|
<view class='wrapper borRadius14'>
|
|
|
|
|
<view class='item acea-row row-between-wrapper' @tap='couponTap'
|
2023-06-29 15:32:16 +00:00
|
|
|
|
v-if="orderInfoVo.type === 1 && productType==='normal'">
|
2021-06-11 09:41:16 +00:00
|
|
|
|
<view>优惠券</view>
|
|
|
|
|
<view class='discount'>{{couponTitle}}
|
|
|
|
|
<text class='iconfont icon-jiantou'></text>
|
|
|
|
|
</view>
|
2020-08-13 08:12:57 +00:00
|
|
|
|
</view>
|
2023-06-26 12:52:27 +00:00
|
|
|
|
|
2021-06-11 09:41:16 +00:00
|
|
|
|
<view class='item acea-row row-between-wrapper'
|
2023-06-29 15:32:16 +00:00
|
|
|
|
v-if="orderInfoVo.type === 1 && productType==='normal'">
|
2021-06-11 09:41:16 +00:00
|
|
|
|
<view>积分抵扣</view>
|
|
|
|
|
<!-- -->
|
|
|
|
|
<view class='discount acea-row row-middle'>
|
|
|
|
|
<view> {{useIntegral ? "剩余积分":"当前积分"}}
|
|
|
|
|
<text class='num font-color'>{{useIntegral ? orderInfoVo.surplusIntegral : orderInfoVo.userIntegral || 0}}</text>
|
|
|
|
|
</view>
|
|
|
|
|
<checkbox-group @change="ChangeIntegral">
|
|
|
|
|
<checkbox :checked='useIntegral ? true : false' :disabled="orderInfoVo.userIntegral==0 && !useIntegral"/>
|
|
|
|
|
</checkbox-group>
|
2020-08-13 08:12:57 +00:00
|
|
|
|
</view>
|
|
|
|
|
</view>
|
2021-06-11 09:41:16 +00:00
|
|
|
|
<!-- <view class='item acea-row row-between-wrapper'
|
|
|
|
|
v-if="priceGroup.vipPrice > 0 && userInfo.vip && !pinkId && !BargainId && !combinationId && !seckillId">
|
|
|
|
|
<view>会员优惠</view>
|
|
|
|
|
<view class='discount'>-¥{{priceGroup.vipPrice}}</view>
|
|
|
|
|
</view> -->
|
2023-06-29 15:32:16 +00:00
|
|
|
|
<view class='item acea-row row-between-wrapper' v-if='shippingType === 1'>
|
2021-06-11 09:41:16 +00:00
|
|
|
|
<view>快递费用</view>
|
|
|
|
|
<view class='discount' v-if='parseFloat(orderInfoVo.freightFee) > 0'>
|
|
|
|
|
+¥{{orderInfoVo.freightFee}}
|
2020-08-13 08:12:57 +00:00
|
|
|
|
</view>
|
2021-06-11 09:41:16 +00:00
|
|
|
|
<view class='discount' v-else>免运费</view>
|
2020-08-13 08:12:57 +00:00
|
|
|
|
</view>
|
2021-06-11 09:41:16 +00:00
|
|
|
|
<view v-else>
|
|
|
|
|
<view class="item acea-row row-between-wrapper">
|
|
|
|
|
<view>联系人</view>
|
|
|
|
|
<view class="discount textR">
|
|
|
|
|
<input type="text" placeholder="请填写您的联系姓名" placeholder-style="color:#ccc;" placeholder-class="placeholder"
|
2023-06-26 12:52:27 +00:00
|
|
|
|
@blur='realName' />
|
2021-06-11 09:41:16 +00:00
|
|
|
|
</view>
|
|
|
|
|
</view>
|
|
|
|
|
<view class="item acea-row row-between-wrapper">
|
|
|
|
|
<view>联系电话</view>
|
|
|
|
|
<view class="discount textR">
|
|
|
|
|
<input type="text" placeholder="请填写您的联系电话" placeholder-style="color:#ccc;" placeholder-class="placeholder"
|
|
|
|
|
@blur='phone'></input>
|
|
|
|
|
</view>
|
2020-08-13 08:12:57 +00:00
|
|
|
|
</view>
|
|
|
|
|
</view>
|
2021-06-11 09:41:16 +00:00
|
|
|
|
<view class='item' v-if="textareaStatus">
|
|
|
|
|
<view>备注信息</view>
|
|
|
|
|
<textarea v-if="coupon.coupon===false" placeholder-class='placeholder' @input='bindHideKeyboard'
|
|
|
|
|
value="" name="mark" placeholder='请添加备注(150字以内)'></textarea>
|
|
|
|
|
</view>
|
2020-08-13 08:12:57 +00:00
|
|
|
|
</view>
|
2021-06-11 09:41:16 +00:00
|
|
|
|
<view class='wrapper borRadius14'>
|
|
|
|
|
<view class='item'>
|
|
|
|
|
<view>支付方式</view>
|
|
|
|
|
<view class='list'>
|
|
|
|
|
<view class='payItem acea-row row-middle' :class='active==index ?"on":""'
|
|
|
|
|
@tap='payItem(index)' v-for="(item,index) in cartArr" :key='index'
|
|
|
|
|
v-if="item.payStatus==1">
|
|
|
|
|
<view class='name acea-row row-center-wrapper'>
|
|
|
|
|
<view class='iconfont animated'
|
|
|
|
|
:class='(item.icon) + " " + (animated==true&&active==index ?"bounceIn":"")'>
|
|
|
|
|
</view>
|
|
|
|
|
{{item.name}}
|
|
|
|
|
</view>
|
|
|
|
|
<view class='tip'>{{item.title}}</view>
|
2020-08-13 08:12:57 +00:00
|
|
|
|
</view>
|
|
|
|
|
</view>
|
|
|
|
|
</view>
|
|
|
|
|
</view>
|
2021-06-11 09:41:16 +00:00
|
|
|
|
<view class='moneyList borRadius14'>
|
|
|
|
|
<view class='item acea-row row-between-wrapper'>
|
|
|
|
|
<view>商品总价:</view>
|
|
|
|
|
<view class='money'>¥{{orderInfoVo.proTotalFee || 0}}</view>
|
|
|
|
|
</view>
|
|
|
|
|
<view class='item acea-row row-between-wrapper' v-if="orderInfoVo.couponFee > 0">
|
|
|
|
|
<view>优惠券抵扣:</view>
|
|
|
|
|
<view class='money'>-¥{{orderInfoVo.couponFee}}</view>
|
|
|
|
|
</view>
|
|
|
|
|
<view class='item acea-row row-between-wrapper' v-if="orderInfoVo.deductionPrice > 0">
|
|
|
|
|
<view>积分抵扣:</view>
|
|
|
|
|
<view class='money'>-¥{{orderInfoVo.deductionPrice}}</view>
|
|
|
|
|
</view>
|
|
|
|
|
<view class='item acea-row row-between-wrapper' v-if="orderInfoVo.freightFee > 0">
|
|
|
|
|
<view>运费:</view>
|
|
|
|
|
<view class='money'>+¥{{orderInfoVo.freightFee}}</view>
|
|
|
|
|
</view>
|
2020-08-13 08:12:57 +00:00
|
|
|
|
</view>
|
2021-06-11 09:41:16 +00:00
|
|
|
|
<view style='height:120rpx;'></view>
|
2020-08-13 08:12:57 +00:00
|
|
|
|
</view>
|
|
|
|
|
<view class='footer acea-row row-between-wrapper'>
|
|
|
|
|
<view>合计:
|
2021-06-11 09:41:16 +00:00
|
|
|
|
<text class='font-color'>¥{{orderInfoVo.payFee || 0}}</text>
|
2020-08-13 08:12:57 +00:00
|
|
|
|
</view>
|
|
|
|
|
<view class='settlement' style='z-index:100' @tap="SubOrder">立即结算</view>
|
|
|
|
|
</view>
|
|
|
|
|
</view>
|
2023-06-28 16:37:30 +00:00
|
|
|
|
|
|
|
|
|
<!-- 优惠劵的弹窗选择 -->
|
|
|
|
|
<couponListWindow
|
|
|
|
|
:coupon='coupon'
|
|
|
|
|
@ChangCouponsClone="ChangCouponsClone"
|
|
|
|
|
:openType='openType'
|
|
|
|
|
@ChangCoupons="ChangCoupons"
|
|
|
|
|
:orderShow="orderShow"
|
|
|
|
|
/>
|
2023-06-26 12:52:27 +00:00
|
|
|
|
|
|
|
|
|
<!-- 收货地址的弹窗选择 -->
|
|
|
|
|
<addressWindow
|
|
|
|
|
ref="addressWindow"
|
|
|
|
|
:address='address'
|
|
|
|
|
:pagesUrl="pagesUrl"
|
|
|
|
|
@OnChangeAddress="OnChangeAddress"
|
|
|
|
|
@changeClose="changeClose"
|
|
|
|
|
/>
|
2020-08-13 08:12:57 +00:00
|
|
|
|
<home></home>
|
|
|
|
|
</view>
|
|
|
|
|
</template>
|
|
|
|
|
<script>
|
|
|
|
|
import {
|
|
|
|
|
orderCreate,
|
|
|
|
|
postOrderComputed,
|
2021-01-19 02:16:45 +00:00
|
|
|
|
wechatOrderPay,
|
2021-06-11 09:41:16 +00:00
|
|
|
|
wechatQueryPayResult,
|
2020-08-13 08:12:57 +00:00
|
|
|
|
} from '@/api/order.js';
|
2023-06-26 12:52:27 +00:00
|
|
|
|
import * as AddressApi from '@/api/member/address.js';
|
2023-06-29 12:19:40 +00:00
|
|
|
|
import * as CouponApi from '@/api/promotion/coupon.js';
|
2023-06-29 15:32:16 +00:00
|
|
|
|
import * as OrderApi from '@/api/trade/order.js';
|
2023-06-29 12:19:40 +00:00
|
|
|
|
import {
|
2020-08-13 08:12:57 +00:00
|
|
|
|
openPaySubscribe
|
|
|
|
|
} from '@/utils/SubscribeMessage.js';
|
2023-06-28 16:24:30 +00:00
|
|
|
|
import * as DeliveryApi from '@/api/trade/delivery.js';
|
|
|
|
|
import couponListWindow from '@/components/couponListWindow';
|
2020-08-13 08:12:57 +00:00
|
|
|
|
import addressWindow from '@/components/addressWindow';
|
|
|
|
|
import orderGoods from '@/components/orderGoods';
|
|
|
|
|
import home from '@/components/home';
|
2023-06-26 12:52:27 +00:00
|
|
|
|
import { toLogin } from '@/libs/login.js';
|
|
|
|
|
import { mapGetters } from "vuex";
|
2023-06-29 15:32:16 +00:00
|
|
|
|
import * as Util from '@/utils/util.js';
|
|
|
|
|
export default {
|
2020-08-13 08:12:57 +00:00
|
|
|
|
components: {
|
|
|
|
|
couponListWindow,
|
|
|
|
|
addressWindow,
|
|
|
|
|
orderGoods,
|
2023-06-26 12:52:27 +00:00
|
|
|
|
home
|
2020-08-13 08:12:57 +00:00
|
|
|
|
},
|
|
|
|
|
data() {
|
|
|
|
|
return {
|
2023-06-29 15:32:16 +00:00
|
|
|
|
items: [], // 前端传递的购物项
|
|
|
|
|
cartInfo: [], // 后端返回的购物项
|
|
|
|
|
orderInfoVo: {}, // 订单信息
|
|
|
|
|
|
|
|
|
|
// TODO 芋艿:未整理
|
2020-08-13 08:12:57 +00:00
|
|
|
|
textareaStatus: true,
|
|
|
|
|
//支付方式
|
|
|
|
|
cartArr: [{
|
|
|
|
|
"name": "微信支付",
|
|
|
|
|
"icon": "icon-weixin2",
|
|
|
|
|
value: 'weixin',
|
|
|
|
|
title: '微信快捷支付',
|
|
|
|
|
payStatus: 1,
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"name": "余额支付",
|
|
|
|
|
"icon": "icon-icon-test",
|
|
|
|
|
value: 'yue',
|
|
|
|
|
title: '可用余额:',
|
|
|
|
|
payStatus: 1,
|
2021-06-11 09:41:16 +00:00
|
|
|
|
}
|
2020-08-13 08:12:57 +00:00
|
|
|
|
],
|
|
|
|
|
payType: 'weixin', //支付方式
|
|
|
|
|
active: 0, //支付方式切换
|
2023-06-26 12:52:27 +00:00
|
|
|
|
|
2020-08-13 08:12:57 +00:00
|
|
|
|
userInfo: {}, //用户信息
|
|
|
|
|
mark: '', //备注信息
|
|
|
|
|
coupon_price: 0, //优惠券抵扣金额
|
|
|
|
|
useIntegral: false, //是否使用积分
|
|
|
|
|
integral_price: 0, //积分抵扣金额
|
|
|
|
|
integral: 0,
|
|
|
|
|
status: 0,
|
|
|
|
|
toPay: false, //修复进入支付时页面隐藏从新刷新页面
|
|
|
|
|
contacts: '',
|
|
|
|
|
contactsTel: '',
|
|
|
|
|
priceGroup: {},
|
|
|
|
|
animated: false,
|
|
|
|
|
totalPrice: 0,
|
|
|
|
|
pagesUrl: "",
|
2021-01-19 02:16:45 +00:00
|
|
|
|
payChannel: '',
|
2023-06-28 16:24:30 +00:00
|
|
|
|
bargain: false, // 是否是砍价
|
|
|
|
|
combination: false, // 是否是拼团
|
|
|
|
|
secKill: false, // 是否是秒杀
|
2023-06-26 12:52:27 +00:00
|
|
|
|
preOrderNo: '', //预下单订单号
|
|
|
|
|
|
2023-06-28 16:37:30 +00:00
|
|
|
|
// ========== 优惠劵 ==========
|
|
|
|
|
couponId: 0, // 选中的优惠券 id
|
|
|
|
|
couponTitle: '请选择', // 优惠券的标题
|
|
|
|
|
coupon: { // 优惠券组件
|
|
|
|
|
coupon: false,
|
|
|
|
|
list: [],
|
|
|
|
|
statusTile: '立即使用'
|
|
|
|
|
},
|
|
|
|
|
|
2023-06-26 12:52:27 +00:00
|
|
|
|
// ========== 收货地址 ==========
|
2023-06-29 15:32:16 +00:00
|
|
|
|
shippingType: 1, // 1 - 快递配送;2 - 门店自提
|
2023-06-26 12:52:27 +00:00
|
|
|
|
addressId: 0, // 页面传递的 param 对应的地址 id
|
|
|
|
|
addressInfo: {}, // 选中的地址信息
|
|
|
|
|
address: { // 地址组件
|
|
|
|
|
address: false, // 是否 addressWindow 展示
|
|
|
|
|
addressId: 0 // 真正选中的 address 编号,优先级大于 addressId
|
|
|
|
|
},
|
2023-06-28 16:37:30 +00:00
|
|
|
|
openType: 1, // 优惠券打开方式 1=使用
|
|
|
|
|
orderShow: 'orderShow', // 下单页面使用优惠券组件不展示 tab 切换页
|
2023-06-28 16:24:30 +00:00
|
|
|
|
|
|
|
|
|
// ========== 门店自提 ==========
|
|
|
|
|
store_self_mention: false, // 门店自提是否开启
|
|
|
|
|
storeList: [], // 门店列表
|
|
|
|
|
system_store: {}, // 选中的门店
|
2023-06-26 12:52:27 +00:00
|
|
|
|
};
|
2020-08-13 08:12:57 +00:00
|
|
|
|
},
|
2021-06-11 09:41:16 +00:00
|
|
|
|
computed: mapGetters(['isLogin', 'systemPlatform', 'productType']),
|
|
|
|
|
watch: {
|
|
|
|
|
isLogin: {
|
|
|
|
|
handler: function(newV, oldV) {
|
|
|
|
|
if (newV) {
|
|
|
|
|
this.getloadPreOrder();
|
2023-06-26 12:52:27 +00:00
|
|
|
|
this.getaddressInfo();
|
2021-03-19 10:26:43 +00:00
|
|
|
|
}
|
|
|
|
|
},
|
2021-06-11 09:41:16 +00:00
|
|
|
|
deep: true
|
2021-03-19 10:26:43 +00:00
|
|
|
|
}
|
|
|
|
|
},
|
2021-06-11 09:41:16 +00:00
|
|
|
|
onLoad(options) {
|
2023-06-26 12:52:27 +00:00
|
|
|
|
if (!this.isLogin) {
|
|
|
|
|
toLogin();
|
|
|
|
|
return
|
|
|
|
|
}
|
|
|
|
|
|
2023-06-29 15:32:16 +00:00
|
|
|
|
// TODO 芋艿:支付相关,可以移除;
|
2020-08-13 08:12:57 +00:00
|
|
|
|
// #ifdef H5
|
2021-06-11 09:41:16 +00:00
|
|
|
|
this.payChannel = this.$wechat.isWeixin() ? 'public' : 'weixinh5';
|
2020-08-13 08:12:57 +00:00
|
|
|
|
// #endif
|
|
|
|
|
// #ifdef MP
|
2021-06-11 09:41:16 +00:00
|
|
|
|
this.payChannel = 'routine';
|
2020-08-13 08:12:57 +00:00
|
|
|
|
// #endif
|
2023-06-29 15:32:16 +00:00
|
|
|
|
|
|
|
|
|
// 获得订单确认信息
|
|
|
|
|
if (options.cartIds && options.cartIds.length > 0) {
|
|
|
|
|
const cartIds = options.cartIds.split(',');
|
|
|
|
|
this.items = cartIds.map(cartId => ({ cartId }));
|
|
|
|
|
} else if (options.skuId > 0) {
|
|
|
|
|
this.items = [{
|
|
|
|
|
skuId: options.skuId,
|
|
|
|
|
count: options.count | 1
|
|
|
|
|
}]
|
|
|
|
|
}
|
2023-06-26 12:52:27 +00:00
|
|
|
|
this.getloadPreOrder();
|
|
|
|
|
|
|
|
|
|
// 处理 address 地址
|
|
|
|
|
this.addressId = options.addressId || 0;
|
|
|
|
|
this.getaddressInfo();
|
2023-06-28 16:37:30 +00:00
|
|
|
|
// 获得门店自提是否开启
|
|
|
|
|
DeliveryApi.getDeliveryConfig().then(res => {
|
|
|
|
|
this.store_self_mention = res.data.pickUpEnable && this.productType === 'normal';
|
|
|
|
|
})
|
2020-08-13 08:12:57 +00:00
|
|
|
|
},
|
|
|
|
|
/**
|
|
|
|
|
* 生命周期函数--监听页面显示
|
|
|
|
|
*/
|
|
|
|
|
onShow: function() {
|
|
|
|
|
let _this = this
|
|
|
|
|
this.textareaStatus = true;
|
2023-06-28 16:37:30 +00:00
|
|
|
|
// 获得默认的收货地址
|
2023-06-26 12:52:27 +00:00
|
|
|
|
if (this.isLogin && !this.toPay) {
|
|
|
|
|
this.getaddressInfo();
|
2020-08-13 08:12:57 +00:00
|
|
|
|
}
|
|
|
|
|
|
2023-06-28 16:37:30 +00:00
|
|
|
|
// 来自 goods_details_store/index.vue 的门店选择
|
2020-08-13 08:12:57 +00:00
|
|
|
|
uni.$on("handClick", res => {
|
|
|
|
|
if (res) {
|
|
|
|
|
_this.system_store = res.address
|
|
|
|
|
}
|
|
|
|
|
// 清除监听
|
|
|
|
|
uni.$off('handClick');
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
|
methods: {
|
2023-06-29 15:32:16 +00:00
|
|
|
|
/**
|
|
|
|
|
* 获得订单确认信息
|
|
|
|
|
*/
|
2021-06-11 09:41:16 +00:00
|
|
|
|
getloadPreOrder: function() {
|
2023-06-29 15:32:16 +00:00
|
|
|
|
OrderApi.settlementOrder({
|
|
|
|
|
items: this.items,
|
|
|
|
|
addressId: this.address.addressId > 0 && this.shippingType === 1 ? this.address.addressId : undefined,
|
|
|
|
|
shippingType: parseInt() + 1,
|
|
|
|
|
couponId: this.couponId > 0 ? this.couponId : undefined,
|
|
|
|
|
// TODO 芋艿:秒杀等等
|
|
|
|
|
}).then(res => {
|
|
|
|
|
const orderInfoVo = res.data
|
2021-06-11 09:41:16 +00:00
|
|
|
|
this.orderInfoVo = orderInfoVo;
|
2023-06-29 15:32:16 +00:00
|
|
|
|
this.cartInfo = orderInfoVo.items;
|
2021-06-11 09:41:16 +00:00
|
|
|
|
this.address.addressId = this.addressId ? this.addressId :orderInfoVo.addressId;
|
2023-06-29 15:32:16 +00:00
|
|
|
|
|
|
|
|
|
// TODO 芋艿:可以搞走
|
2021-06-11 09:41:16 +00:00
|
|
|
|
this.cartArr[1].title = '可用余额:' + orderInfoVo.userBalance;
|
|
|
|
|
this.cartArr[1].payStatus = parseInt(res.data.yuePayStatus) === 1 ? 1 : 2;
|
|
|
|
|
this.cartArr[0].payStatus = parseInt(res.data.payWeixinOpen) === 1 ? 1 : 0;
|
2023-06-26 12:52:27 +00:00
|
|
|
|
|
2023-06-28 16:24:30 +00:00
|
|
|
|
// 获得收件地址列表
|
|
|
|
|
this.$nextTick(function() {
|
|
|
|
|
this.$refs.addressWindow.getAddressList();
|
|
|
|
|
})
|
2023-06-29 15:32:16 +00:00
|
|
|
|
|
|
|
|
|
// 获得优惠劵列表
|
|
|
|
|
this.getCouponList();
|
2023-06-26 12:52:27 +00:00
|
|
|
|
}).catch(err => {
|
2021-06-11 09:41:16 +00:00
|
|
|
|
return this.$util.Tips({
|
|
|
|
|
title: err
|
|
|
|
|
});
|
|
|
|
|
})
|
2020-08-13 08:12:57 +00:00
|
|
|
|
},
|
2021-06-11 09:41:16 +00:00
|
|
|
|
// 计算订单价格
|
2020-08-13 08:12:57 +00:00
|
|
|
|
computedPrice: function() {
|
2021-06-11 09:41:16 +00:00
|
|
|
|
postOrderComputed({
|
2023-06-29 12:19:40 +00:00
|
|
|
|
useIntegral: this.useIntegral,
|
2021-06-11 09:41:16 +00:00
|
|
|
|
preOrderNo: this.preOrderNo
|
2020-08-13 08:12:57 +00:00
|
|
|
|
}).then(res => {
|
2021-06-11 09:41:16 +00:00
|
|
|
|
let data = res.data;
|
|
|
|
|
this.orderInfoVo.couponFee = data.couponFee;
|
|
|
|
|
//赋值操作,userIntegral 当前积分,surplusIntegral 剩余积分
|
|
|
|
|
this.orderInfoVo.userIntegral = data.surplusIntegral;
|
|
|
|
|
this.orderInfoVo.deductionPrice = data.deductionPrice;
|
|
|
|
|
this.orderInfoVo.freightFee = data.freightFee;
|
|
|
|
|
this.orderInfoVo.payFee = data.payFee;
|
|
|
|
|
this.orderInfoVo.proTotalFee = data.proTotalFee;
|
|
|
|
|
this.orderInfoVo.useIntegral = data.useIntegral;
|
|
|
|
|
this.orderInfoVo.usedIntegral = data.usedIntegral;
|
|
|
|
|
this.orderInfoVo.surplusIntegral = data.surplusIntegral;
|
|
|
|
|
//this.orderInfoVo.userIntegral = data.userIntegral;
|
2020-09-15 08:13:25 +00:00
|
|
|
|
}).catch(err => {
|
|
|
|
|
return this.$util.Tips({
|
|
|
|
|
title: err
|
|
|
|
|
});
|
|
|
|
|
});
|
2020-08-13 08:12:57 +00:00
|
|
|
|
},
|
2023-06-28 16:37:30 +00:00
|
|
|
|
|
2020-08-13 08:12:57 +00:00
|
|
|
|
changeTextareaStatus: function() {
|
|
|
|
|
for (let i = 0, len = this.coupon.list.length; i < len; i++) {
|
|
|
|
|
this.coupon.list[i].use_title = '';
|
|
|
|
|
this.coupon.list[i].is_use = 0;
|
|
|
|
|
}
|
|
|
|
|
this.textareaStatus = true;
|
|
|
|
|
this.status = 0;
|
|
|
|
|
this.$set(this.coupon, 'list', this.coupon.list);
|
|
|
|
|
},
|
|
|
|
|
/**
|
|
|
|
|
* 使用积分抵扣
|
|
|
|
|
*/
|
|
|
|
|
ChangeIntegral: function() {
|
|
|
|
|
this.useIntegral = !this.useIntegral;
|
|
|
|
|
this.computedPrice();
|
|
|
|
|
},
|
|
|
|
|
bindHideKeyboard: function(e) {
|
|
|
|
|
this.mark = e.detail.value;
|
|
|
|
|
},
|
2023-06-28 16:37:30 +00:00
|
|
|
|
|
2020-08-13 08:12:57 +00:00
|
|
|
|
payItem: function(e) {
|
|
|
|
|
let that = this;
|
|
|
|
|
let active = e;
|
|
|
|
|
that.active = active;
|
|
|
|
|
that.animated = true;
|
|
|
|
|
that.payType = that.cartArr[active].value;
|
|
|
|
|
that.computedPrice();
|
|
|
|
|
setTimeout(function() {
|
|
|
|
|
that.car();
|
|
|
|
|
}, 500);
|
|
|
|
|
},
|
|
|
|
|
car: function() {
|
|
|
|
|
let that = this;
|
|
|
|
|
that.animated = false;
|
|
|
|
|
},
|
|
|
|
|
realName: function(e) {
|
|
|
|
|
this.contacts = e.detail.value;
|
|
|
|
|
},
|
|
|
|
|
phone: function(e) {
|
|
|
|
|
this.contactsTel = e.detail.value;
|
|
|
|
|
},
|
|
|
|
|
payment: function(data) {
|
|
|
|
|
let that = this;
|
2021-06-11 09:41:16 +00:00
|
|
|
|
orderCreate(data).then(res => {
|
2021-01-19 02:16:45 +00:00
|
|
|
|
that.getOrderPay(res.data.orderNo, '支付成功');
|
|
|
|
|
|
|
|
|
|
}).catch(err => {
|
|
|
|
|
uni.hideLoading();
|
|
|
|
|
return that.$util.Tips({
|
|
|
|
|
title: err
|
|
|
|
|
});
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
getOrderPay: function(orderNo, message) {
|
|
|
|
|
let that = this;
|
|
|
|
|
let goPages = '/pages/order_pay_status/index?order_id=' + orderNo + '&msg=' + message;
|
|
|
|
|
wechatOrderPay({
|
|
|
|
|
orderNo: orderNo,
|
2021-06-11 09:41:16 +00:00
|
|
|
|
payChannel: that.payChannel,
|
|
|
|
|
payType: that.payType,
|
|
|
|
|
scene: that.productType==='normal'? 0 :1177 //下单时小程序的场景值
|
2021-01-19 02:16:45 +00:00
|
|
|
|
}).then(res => {
|
|
|
|
|
let jsConfig = res.data.jsConfig;
|
|
|
|
|
switch (res.data.payType) {
|
|
|
|
|
case 'weixin':
|
|
|
|
|
// #ifdef MP
|
|
|
|
|
uni.requestPayment({
|
|
|
|
|
timeStamp: jsConfig.timeStamp,
|
|
|
|
|
nonceStr: jsConfig.nonceStr,
|
|
|
|
|
package: jsConfig.packages,
|
|
|
|
|
signType: jsConfig.signType,
|
|
|
|
|
paySign: jsConfig.paySign,
|
2021-06-11 09:41:16 +00:00
|
|
|
|
ticket: that.productType==='normal'? null : jsConfig.ticket,
|
2021-01-19 02:16:45 +00:00
|
|
|
|
success: function(ress) {
|
|
|
|
|
uni.hideLoading();
|
2021-06-11 09:41:16 +00:00
|
|
|
|
wechatQueryPayResult(orderNo).then(res => {
|
|
|
|
|
uni.hideLoading();
|
|
|
|
|
if (that.orderInfoVo.bargainId || that.orderInfoVo.combinationId || that.pinkId || that
|
|
|
|
|
.orderInfoVo.seckillId)
|
|
|
|
|
return that.$util.Tips({
|
|
|
|
|
title: '支付成功',
|
|
|
|
|
icon: 'success'
|
|
|
|
|
}, {
|
|
|
|
|
tab: 4,
|
|
|
|
|
url: goPages
|
|
|
|
|
});
|
2021-01-19 02:16:45 +00:00
|
|
|
|
return that.$util.Tips({
|
|
|
|
|
title: '支付成功',
|
|
|
|
|
icon: 'success'
|
|
|
|
|
}, {
|
2021-06-11 09:41:16 +00:00
|
|
|
|
tab: 5,
|
2021-01-19 02:16:45 +00:00
|
|
|
|
url: goPages
|
|
|
|
|
});
|
2021-06-11 09:41:16 +00:00
|
|
|
|
}).cache(err => {
|
|
|
|
|
uni.hideLoading();
|
|
|
|
|
return that.$util.Tips({
|
|
|
|
|
title: err
|
|
|
|
|
});
|
|
|
|
|
})
|
2023-06-26 12:52:27 +00:00
|
|
|
|
|
2021-01-19 02:16:45 +00:00
|
|
|
|
},
|
|
|
|
|
fail: function(e) {
|
|
|
|
|
uni.hideLoading();
|
|
|
|
|
return that.$util.Tips({
|
|
|
|
|
title: '取消支付'
|
|
|
|
|
}, {
|
|
|
|
|
tab: 5,
|
|
|
|
|
url: goPages + '&status=2'
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
complete: function(e) {
|
|
|
|
|
uni.hideLoading();
|
|
|
|
|
//关闭当前页面跳转至订单状态
|
2021-06-11 09:41:16 +00:00
|
|
|
|
if (e.errMsg == 'requestPayment:cancel') return that.$util
|
|
|
|
|
.Tips({
|
|
|
|
|
title: '取消支付'
|
|
|
|
|
}, {
|
|
|
|
|
tab: 5,
|
|
|
|
|
url: goPages + '&status=2'
|
|
|
|
|
});
|
2021-01-19 02:16:45 +00:00
|
|
|
|
},
|
2020-08-13 08:12:57 +00:00
|
|
|
|
})
|
2021-01-19 02:16:45 +00:00
|
|
|
|
// #endif
|
|
|
|
|
// #ifdef H5
|
|
|
|
|
let data = {
|
|
|
|
|
timestamp: jsConfig.timeStamp,
|
|
|
|
|
nonceStr: jsConfig.nonceStr,
|
|
|
|
|
package: jsConfig.packages,
|
|
|
|
|
signType: jsConfig.signType,
|
|
|
|
|
paySign: jsConfig.paySign
|
|
|
|
|
};
|
|
|
|
|
that.$wechat.pay(data).then(res => {
|
|
|
|
|
if (res.errMsg == 'chooseWXPay:cancel') {
|
2021-06-11 09:41:16 +00:00
|
|
|
|
uni.hideLoading();
|
2021-01-19 02:16:45 +00:00
|
|
|
|
return that.$util.Tips({
|
|
|
|
|
title: '取消支付'
|
|
|
|
|
}, {
|
|
|
|
|
tab: 5,
|
|
|
|
|
url: goPages + '&status=2'
|
|
|
|
|
});
|
|
|
|
|
} else {
|
2021-06-11 09:41:16 +00:00
|
|
|
|
wechatQueryPayResult(orderNo).then(res => {
|
|
|
|
|
uni.hideLoading();
|
2021-01-19 02:16:45 +00:00
|
|
|
|
return that.$util.Tips({
|
|
|
|
|
title: '支付成功',
|
|
|
|
|
icon: 'success'
|
|
|
|
|
}, {
|
|
|
|
|
tab: 5,
|
|
|
|
|
url: goPages
|
|
|
|
|
});
|
|
|
|
|
}).cache(err => {
|
2021-06-11 09:41:16 +00:00
|
|
|
|
uni.hideLoading();
|
2021-01-19 02:16:45 +00:00
|
|
|
|
return that.$util.Tips({
|
|
|
|
|
title: err
|
|
|
|
|
});
|
|
|
|
|
})
|
|
|
|
|
}
|
2021-02-06 09:25:18 +00:00
|
|
|
|
}).cache(res => {
|
2021-06-11 09:41:16 +00:00
|
|
|
|
uni.hideLoading();
|
2021-02-06 09:25:18 +00:00
|
|
|
|
return that.$util.Tips({
|
|
|
|
|
title: '取消支付'
|
|
|
|
|
}, {
|
|
|
|
|
tab: 5,
|
|
|
|
|
url: goPages + '&status=0'
|
|
|
|
|
});
|
|
|
|
|
});
|
2021-01-19 02:16:45 +00:00
|
|
|
|
// #endif
|
|
|
|
|
break;
|
|
|
|
|
case 'yue':
|
|
|
|
|
uni.hideLoading();
|
|
|
|
|
return that.$util.Tips({
|
|
|
|
|
title: message
|
|
|
|
|
}, {
|
|
|
|
|
tab: 5,
|
|
|
|
|
url: goPages + '&status=1'
|
|
|
|
|
});
|
|
|
|
|
break;
|
2021-02-06 09:25:18 +00:00
|
|
|
|
case 'weixinh5':
|
|
|
|
|
uni.hideLoading();
|
|
|
|
|
that.$util.Tips({
|
|
|
|
|
title: '订单创建成功'
|
|
|
|
|
}, {
|
|
|
|
|
tab: 5,
|
|
|
|
|
url: goPages + '&status=0'
|
|
|
|
|
});
|
|
|
|
|
setTimeout(() => {
|
2021-06-11 09:41:16 +00:00
|
|
|
|
location.href = jsConfig.mwebUrl + '&redirect_url=' + window.location
|
|
|
|
|
.protocol + '//' + window.location.host +
|
2021-02-06 09:25:18 +00:00
|
|
|
|
goPages + '&status=1';
|
|
|
|
|
}, 100)
|
|
|
|
|
break;
|
2021-01-19 02:16:45 +00:00
|
|
|
|
}
|
2020-08-13 08:12:57 +00:00
|
|
|
|
}).catch(err => {
|
|
|
|
|
uni.hideLoading();
|
|
|
|
|
return that.$util.Tips({
|
|
|
|
|
title: err
|
|
|
|
|
});
|
|
|
|
|
});
|
|
|
|
|
},
|
2021-01-19 02:16:45 +00:00
|
|
|
|
getPayType: function(status, orderId, message, jsConfig) {
|
2020-08-13 08:12:57 +00:00
|
|
|
|
let that = this;
|
|
|
|
|
let goPages = '/pages/order_pay_status/index?order_id=' + orderId + '&msg=' + message;
|
|
|
|
|
switch (status) {
|
|
|
|
|
case 'ORDER_EXIST':
|
|
|
|
|
case 'EXTEND_ORDER':
|
|
|
|
|
case 'PAY_ERROR':
|
|
|
|
|
uni.hideLoading();
|
|
|
|
|
return that.$util.Tips({
|
|
|
|
|
title: message
|
|
|
|
|
}, {
|
|
|
|
|
tab: 5,
|
|
|
|
|
url: goPages
|
|
|
|
|
});
|
|
|
|
|
break;
|
2021-01-19 02:16:45 +00:00
|
|
|
|
case 'SUCCESS':
|
2020-08-13 08:12:57 +00:00
|
|
|
|
uni.hideLoading();
|
2021-06-11 09:41:16 +00:00
|
|
|
|
if (that.orderInfoVo.bargainId || that.orderInfoVo.combinationId || that.pinkId || that.orderInfoVo.seckillId)
|
2020-08-13 08:12:57 +00:00
|
|
|
|
return that.$util.Tips({
|
|
|
|
|
title: message,
|
|
|
|
|
icon: 'success'
|
|
|
|
|
}, {
|
|
|
|
|
tab: 4,
|
|
|
|
|
url: goPages
|
2021-01-19 02:16:45 +00:00
|
|
|
|
});
|
2020-08-13 08:12:57 +00:00
|
|
|
|
return that.$util.Tips({
|
|
|
|
|
title: message,
|
|
|
|
|
icon: 'success'
|
|
|
|
|
}, {
|
|
|
|
|
tab: 5,
|
|
|
|
|
url: goPages
|
|
|
|
|
});
|
|
|
|
|
break;
|
|
|
|
|
case 'WECHAT_PAY':
|
|
|
|
|
// #ifdef MP
|
|
|
|
|
that.toPay = true;
|
2021-06-11 09:41:16 +00:00
|
|
|
|
let packagess = 'prepay_id=' + jsConfig.prepayId;
|
2020-08-13 08:12:57 +00:00
|
|
|
|
uni.requestPayment({
|
|
|
|
|
timeStamp: jsConfig.timeStamp.toString(),
|
|
|
|
|
nonceStr: jsConfig.nonceStr,
|
2021-06-11 09:41:16 +00:00
|
|
|
|
package: packagess,
|
2020-08-13 08:12:57 +00:00
|
|
|
|
signType: jsConfig.signType,
|
|
|
|
|
paySign: jsConfig.paySign,
|
|
|
|
|
success: function(res) {
|
|
|
|
|
uni.hideLoading();
|
2021-06-11 09:41:16 +00:00
|
|
|
|
if (that.orderInfoVo.bargainId || that.orderInfoVo.combinationId || that.pinkId || that.orderInfoVo.seckillId)
|
2020-08-13 08:12:57 +00:00
|
|
|
|
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=0'
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
complete: function(e) {
|
|
|
|
|
uni.hideLoading();
|
|
|
|
|
//关闭当前页面跳转至订单状态
|
|
|
|
|
if (res.errMsg == 'requestPayment:cancel') return that.$util.Tips({
|
|
|
|
|
title: '取消支付'
|
|
|
|
|
}, {
|
|
|
|
|
tab: 5,
|
|
|
|
|
url: goPages + '&status=0'
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
})
|
|
|
|
|
// #endif
|
|
|
|
|
// #ifdef H5
|
|
|
|
|
let jsConfigAgain = jsConfig;
|
|
|
|
|
let packages = 'prepay_id=' + jsConfigAgain.prepayId;
|
|
|
|
|
let data = {
|
2021-01-19 02:16:45 +00:00
|
|
|
|
timestamp: jsConfigAgain.timeStamp,
|
|
|
|
|
nonceStr: jsConfigAgain.nonceStr,
|
|
|
|
|
package: packages,
|
|
|
|
|
signType: jsConfigAgain.signType,
|
|
|
|
|
paySign: jsConfigAgain.paySign,
|
|
|
|
|
h5PayUrl: jsConfigAgain.h5PayUrl
|
2020-08-13 08:12:57 +00:00
|
|
|
|
};
|
|
|
|
|
this.$wechat.pay(data).then(res => {
|
|
|
|
|
return that.$util.Tips({
|
|
|
|
|
title: '支付成功',
|
|
|
|
|
icon: 'success'
|
|
|
|
|
}, {
|
|
|
|
|
tab: 5,
|
|
|
|
|
url: goPages
|
|
|
|
|
});
|
|
|
|
|
}).cache(res => {
|
|
|
|
|
if (res.errMsg == 'requestPayment:cancel') return that.$util.Tips({
|
|
|
|
|
title: '取消支付'
|
|
|
|
|
}, {
|
|
|
|
|
tab: 5,
|
|
|
|
|
url: goPages + '&status=0'
|
|
|
|
|
});
|
|
|
|
|
})
|
|
|
|
|
// #endif
|
|
|
|
|
break;
|
|
|
|
|
case 'PAY_DEFICIENCY':
|
|
|
|
|
uni.hideLoading();
|
|
|
|
|
return that.$util.Tips({
|
|
|
|
|
title: message
|
|
|
|
|
}, {
|
|
|
|
|
tab: 5,
|
|
|
|
|
url: goPages + '&status=1'
|
|
|
|
|
});
|
|
|
|
|
break;
|
|
|
|
|
case "WECHAT_H5_PAY": //网页版公众号支付
|
|
|
|
|
setTimeout(() => {
|
2020-08-17 07:28:28 +00:00
|
|
|
|
let domain = encodeURIComponent(location.href);
|
2021-01-19 02:16:45 +00:00
|
|
|
|
let urls = jsConfigAgain.h5PayUrl + '&redirect_url=' + domain;
|
2020-08-17 07:28:28 +00:00
|
|
|
|
location.href = urls;
|
|
|
|
|
return that.$util.Tips({
|
|
|
|
|
title: '支付成功',
|
|
|
|
|
icon: 'success'
|
|
|
|
|
}, {
|
|
|
|
|
tab: 5,
|
|
|
|
|
url: goPages
|
|
|
|
|
});
|
2020-08-13 08:12:57 +00:00
|
|
|
|
}, 100);
|
|
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
},
|
2021-01-19 02:16:45 +00:00
|
|
|
|
SubOrder: function(e) {
|
2020-08-13 08:12:57 +00:00
|
|
|
|
|
|
|
|
|
let that = this,
|
|
|
|
|
data = {};
|
|
|
|
|
|
|
|
|
|
if (!that.payType) return that.$util.Tips({
|
|
|
|
|
title: '请选择支付方式'
|
|
|
|
|
});
|
2023-06-29 15:32:16 +00:00
|
|
|
|
if (!that.address.addressId && that.shippingType === 1) return that.$util.Tips({
|
2020-08-13 08:12:57 +00:00
|
|
|
|
title: '请选择收货地址'
|
|
|
|
|
});
|
2023-06-29 15:32:16 +00:00
|
|
|
|
if (that.shippingType == 2) {
|
2020-08-13 08:12:57 +00:00
|
|
|
|
if (that.contacts == "" || that.contactsTel == "") {
|
|
|
|
|
return that.$util.Tips({
|
|
|
|
|
title: '请填写联系人或联系人电话'
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
if (!/^1(3|4|5|7|8|9|6)\d{9}$/.test(that.contactsTel)) {
|
|
|
|
|
return that.$util.Tips({
|
|
|
|
|
title: '请填写正确的手机号'
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
if (!/^[\u4e00-\u9fa5\w]{2,16}$/.test(that.contacts)) {
|
|
|
|
|
return that.$util.Tips({
|
|
|
|
|
title: '请填写您的真实姓名'
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
if (that.storeList.length == 0) return that.$util.Tips({
|
|
|
|
|
title: '暂无门店,请选择其他方式'
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
data = {
|
|
|
|
|
realName: that.contacts,
|
|
|
|
|
phone: that.contactsTel,
|
2021-06-11 09:41:16 +00:00
|
|
|
|
addressId: that.address.addressId,
|
2020-08-13 08:12:57 +00:00
|
|
|
|
couponId: that.couponId,
|
|
|
|
|
payType: that.payType,
|
|
|
|
|
useIntegral: that.useIntegral,
|
2021-06-11 09:41:16 +00:00
|
|
|
|
preOrderNo: that.preOrderNo,
|
2020-08-13 08:12:57 +00:00
|
|
|
|
mark: that.mark,
|
|
|
|
|
storeId: that.system_store.id || 0,
|
|
|
|
|
shippingType: that.$util.$h.Add(that.shippingType, 1),
|
2021-01-19 02:16:45 +00:00
|
|
|
|
payChannel: that.payChannel
|
|
|
|
|
|
2020-08-13 08:12:57 +00:00
|
|
|
|
};
|
2021-06-11 09:41:16 +00:00
|
|
|
|
if (data.payType == 'yue' && parseFloat(that.userInfo.nowMoney) < parseFloat(that.totalPrice))
|
|
|
|
|
return that.$util
|
|
|
|
|
.Tips({
|
|
|
|
|
title: '余额不足!'
|
|
|
|
|
});
|
2020-08-13 08:12:57 +00:00
|
|
|
|
uni.showLoading({
|
|
|
|
|
title: '订单支付中'
|
|
|
|
|
});
|
2021-02-06 09:25:18 +00:00
|
|
|
|
// #ifdef MP
|
|
|
|
|
openPaySubscribe().then(() => {
|
|
|
|
|
that.payment(data);
|
|
|
|
|
});
|
|
|
|
|
// #endif
|
|
|
|
|
// #ifndef MP
|
2020-08-13 08:12:57 +00:00
|
|
|
|
that.payment(data);
|
2021-02-06 09:25:18 +00:00
|
|
|
|
// #endif
|
2023-06-26 12:52:27 +00:00
|
|
|
|
},
|
|
|
|
|
|
2023-06-28 16:37:30 +00:00
|
|
|
|
// ========== 优惠劵 ==========
|
|
|
|
|
/**
|
2023-06-29 12:19:40 +00:00
|
|
|
|
* 获取当前金额可用优惠券
|
2023-06-28 16:37:30 +00:00
|
|
|
|
*/
|
|
|
|
|
getCouponList: function() {
|
2023-06-29 12:19:40 +00:00
|
|
|
|
CouponApi.getMatchCouponList({
|
|
|
|
|
// TODO 芋艿:这里应该补充下参数
|
|
|
|
|
}).then(res => {
|
2023-06-28 16:37:30 +00:00
|
|
|
|
this.$set(this.coupon, 'list', res.data);
|
2023-06-29 12:19:40 +00:00
|
|
|
|
// 设置指定优惠劵已选择;用于 couponId 有参数时,默认选中一下
|
|
|
|
|
const useCoupon = res.data.find(coupon => coupon.id === this.couponId);
|
|
|
|
|
if (useCoupon) {
|
|
|
|
|
useCoupon.use_title = '不使用';
|
|
|
|
|
useCoupon.isUse = 1;
|
|
|
|
|
this.couponTitle = useCoupon.name;
|
|
|
|
|
}
|
2023-06-28 16:37:30 +00:00
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
/**
|
2023-06-29 12:19:40 +00:00
|
|
|
|
* 处理点击优惠券后的事件
|
2023-06-28 16:37:30 +00:00
|
|
|
|
*/
|
2023-06-29 12:19:40 +00:00
|
|
|
|
ChangCoupons: function(index) {
|
|
|
|
|
const list = this.coupon.list;
|
|
|
|
|
// 先标记未使用
|
|
|
|
|
for (let i = 0; i < list.length; i++) {
|
|
|
|
|
if (i !== index) {
|
2023-06-28 16:37:30 +00:00
|
|
|
|
list[i].use_title = '';
|
|
|
|
|
list[i].isUse = 0;
|
|
|
|
|
}
|
|
|
|
|
}
|
2023-06-29 12:19:40 +00:00
|
|
|
|
// 再标记使用中的优惠劵
|
|
|
|
|
let couponTitle = '请选择';
|
|
|
|
|
let couponId = 0;
|
|
|
|
|
if (list[index].isUse) { // 不使用优惠券(就是又点了下,选中的优惠劵)
|
2023-06-28 16:37:30 +00:00
|
|
|
|
list[index].use_title = '';
|
|
|
|
|
list[index].isUse = 0;
|
2023-06-29 12:19:40 +00:00
|
|
|
|
} else { // 使用优惠券
|
2023-06-28 16:37:30 +00:00
|
|
|
|
list[index].use_title = '不使用';
|
|
|
|
|
list[index].isUse = 1;
|
|
|
|
|
couponTitle = list[index].name;
|
|
|
|
|
couponId = list[index].id;
|
|
|
|
|
}
|
|
|
|
|
this.couponTitle = couponTitle;
|
|
|
|
|
this.couponId = couponId;
|
|
|
|
|
this.$set(this.coupon, 'coupon', false);
|
|
|
|
|
this.$set(this.coupon, 'list', list);
|
2023-06-29 12:19:40 +00:00
|
|
|
|
this.getloadPreOrder();
|
2023-06-28 16:37:30 +00:00
|
|
|
|
},
|
2023-06-29 12:19:40 +00:00
|
|
|
|
/**
|
|
|
|
|
* 打开 coupon 优惠劵的选择弹窗
|
|
|
|
|
*/
|
|
|
|
|
couponTap: function() {
|
|
|
|
|
this.coupon.coupon = true;
|
|
|
|
|
},
|
|
|
|
|
/**
|
|
|
|
|
* 关闭 coupon 优惠劵的选择弹窗
|
|
|
|
|
*/
|
2023-06-28 16:37:30 +00:00
|
|
|
|
ChangCouponsClone: function() {
|
|
|
|
|
this.$set(this.coupon, 'coupon', false);
|
|
|
|
|
},
|
|
|
|
|
|
2023-06-26 12:52:27 +00:00
|
|
|
|
// ========== 收货地址 ==========
|
|
|
|
|
/**
|
|
|
|
|
* 打开选择地址的弹窗
|
|
|
|
|
*/
|
|
|
|
|
onAddress: function() {
|
|
|
|
|
this.textareaStatus = false;
|
|
|
|
|
this.address.address = true;
|
|
|
|
|
this.pagesUrl = '/pages/users/user_address_list/index?preOrderNo='+ this.preOrderNo;
|
|
|
|
|
},
|
|
|
|
|
/**
|
|
|
|
|
* 选择地址后改变事件
|
|
|
|
|
*/
|
|
|
|
|
OnChangeAddress: function(e) {
|
|
|
|
|
this.addressInfo = e;
|
|
|
|
|
this.address.addressId = e.id;
|
|
|
|
|
this.textareaStatus = true;
|
|
|
|
|
this.address.address = false;
|
|
|
|
|
this.getaddressInfo();
|
|
|
|
|
this.computedPrice();
|
|
|
|
|
},
|
|
|
|
|
/**
|
|
|
|
|
* 获取默认收货地址或者获取某条地址信息
|
|
|
|
|
*/
|
|
|
|
|
getaddressInfo: function() {
|
|
|
|
|
if (this.addressId) {
|
|
|
|
|
AddressApi.getAddress(this.addressId).then(res => {
|
|
|
|
|
if (res.data) {
|
|
|
|
|
this.addressInfo = res.data || {};
|
|
|
|
|
this.addressId = res.data.id || 0;
|
|
|
|
|
this.address.addressId = res.data.id || 0;
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
} else {
|
|
|
|
|
AddressApi.getDefaultUserAddress().then(res => {
|
|
|
|
|
if (res.data) {
|
|
|
|
|
this.addressInfo = res.data || {};
|
|
|
|
|
this.addressId = res.data.id || 0;
|
|
|
|
|
this.address.addressId = res.data.id || 0;
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
/**
|
|
|
|
|
* 关闭地址弹窗
|
|
|
|
|
*/
|
|
|
|
|
changeClose: function() {
|
|
|
|
|
this.$set(this.address, 'address', false);
|
|
|
|
|
},
|
2023-06-28 16:24:30 +00:00
|
|
|
|
|
|
|
|
|
// ========== 门店自提 ==========
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 切换物流方式
|
|
|
|
|
*/
|
|
|
|
|
addressType: function(shippingType) {
|
|
|
|
|
this.shippingType = shippingType;
|
|
|
|
|
this.computedPrice();
|
2023-06-29 15:32:16 +00:00
|
|
|
|
if (shippingType === 2) {
|
2023-06-28 16:24:30 +00:00
|
|
|
|
this.getList();
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
/**
|
|
|
|
|
* 跳转门店列表
|
|
|
|
|
*/
|
|
|
|
|
showStoreList: function() {
|
|
|
|
|
if (this.storeList.length > 0) {
|
|
|
|
|
uni.navigateTo({
|
|
|
|
|
url: '/pages/users/goods_details_store/index'
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
/**
|
|
|
|
|
* 获取门店列表数据
|
|
|
|
|
*/
|
|
|
|
|
getList: function() {
|
|
|
|
|
let longitude = uni.getStorageSync("user_longitude"); // 经度
|
|
|
|
|
let latitude = uni.getStorageSync("user_latitude"); // 纬度
|
|
|
|
|
DeliveryApi.getDeliveryPickUpStoreList({
|
|
|
|
|
latitude,
|
|
|
|
|
longitude
|
|
|
|
|
}).then(res => {
|
|
|
|
|
let list = res.data || [];
|
|
|
|
|
this.$set(this, 'storeList', list);
|
|
|
|
|
this.$set(this, 'system_store', list[0]);
|
|
|
|
|
}).catch(err => {
|
|
|
|
|
return this.$util.Tips({
|
|
|
|
|
title: err
|
|
|
|
|
});
|
|
|
|
|
})
|
|
|
|
|
},
|
2023-06-29 15:32:16 +00:00
|
|
|
|
|
|
|
|
|
fen2yuan(price) {
|
|
|
|
|
return Util.fen2yuan(price)
|
|
|
|
|
},
|
2023-06-26 12:52:27 +00:00
|
|
|
|
}
|
2020-08-13 08:12:57 +00:00
|
|
|
|
}
|
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
<style lang="scss" scoped>
|
2021-06-11 09:41:16 +00:00
|
|
|
|
.line2{
|
|
|
|
|
width: 504rpx;
|
|
|
|
|
}
|
2021-02-06 09:25:18 +00:00
|
|
|
|
.textR {
|
|
|
|
|
text-align: right;
|
|
|
|
|
}
|
|
|
|
|
|
2020-08-13 08:12:57 +00:00
|
|
|
|
.order-submission .line {
|
|
|
|
|
width: 100%;
|
|
|
|
|
height: 3rpx;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.order-submission .line image {
|
|
|
|
|
width: 100%;
|
|
|
|
|
height: 100%;
|
|
|
|
|
display: block;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.order-submission .address {
|
2021-06-11 09:41:16 +00:00
|
|
|
|
padding: 28rpx;
|
2020-08-13 08:12:57 +00:00
|
|
|
|
background-color: #fff;
|
|
|
|
|
box-sizing: border-box;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.order-submission .address .addressCon {
|
2021-06-11 09:41:16 +00:00
|
|
|
|
width: 596rpx;
|
2020-08-13 08:12:57 +00:00
|
|
|
|
font-size: 26rpx;
|
|
|
|
|
color: #666;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.order-submission .address .addressCon .name {
|
|
|
|
|
font-size: 30rpx;
|
|
|
|
|
color: #282828;
|
|
|
|
|
font-weight: bold;
|
|
|
|
|
margin-bottom: 10rpx;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.order-submission .address .addressCon .name .phone {
|
|
|
|
|
margin-left: 50rpx;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.order-submission .address .addressCon .default {
|
|
|
|
|
margin-right: 12rpx;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.order-submission .address .addressCon .setaddress {
|
|
|
|
|
color: #333;
|
|
|
|
|
font-size: 28rpx;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.order-submission .address .iconfont {
|
|
|
|
|
font-size: 35rpx;
|
|
|
|
|
color: #707070;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.order-submission .allAddress {
|
|
|
|
|
width: 100%;
|
|
|
|
|
background: linear-gradient(to bottom, #e93323 0%, #f5f5f5 100%);
|
|
|
|
|
// background-image: linear-gradient(to bottom, #e93323 0%, #f5f5f5 100%);
|
|
|
|
|
// background-image: -webkit-linear-gradient(to bottom, #e93323 0%, #f5f5f5 100%);
|
|
|
|
|
// background-image: -moz-linear-gradient(to bottom, #e93323 0%, #f5f5f5 100%);
|
2021-06-11 09:41:16 +00:00
|
|
|
|
padding: 100rpx 30rpx 0 30rpx;
|
2020-08-13 08:12:57 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.order-submission .allAddress .nav {
|
2021-06-11 09:41:16 +00:00
|
|
|
|
width: 690rpx;
|
2020-08-13 08:12:57 +00:00
|
|
|
|
margin: 0 auto;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.order-submission .allAddress .nav .item {
|
2021-06-11 09:41:16 +00:00
|
|
|
|
width: 334rpx;
|
2020-08-13 08:12:57 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.order-submission .allAddress .nav .item.on {
|
|
|
|
|
position: relative;
|
2021-06-11 09:41:16 +00:00
|
|
|
|
width: 230rpx;
|
2020-08-13 08:12:57 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.order-submission .allAddress .nav .item.on::before {
|
|
|
|
|
position: absolute;
|
|
|
|
|
bottom: 0;
|
|
|
|
|
content: "快递配送";
|
|
|
|
|
font-size: 28rpx;
|
|
|
|
|
display: block;
|
|
|
|
|
height: 0;
|
|
|
|
|
width: 336rpx;
|
|
|
|
|
border-width: 0 20rpx 80rpx 0;
|
|
|
|
|
border-style: none solid solid;
|
|
|
|
|
border-color: transparent transparent #fff;
|
|
|
|
|
z-index: 2;
|
2021-06-11 09:41:16 +00:00
|
|
|
|
border-radius: 14rpx 36rpx 0 0;
|
2020-08-13 08:12:57 +00:00
|
|
|
|
text-align: center;
|
|
|
|
|
line-height: 80rpx;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.order-submission .allAddress .nav .item:nth-of-type(2).on::before {
|
|
|
|
|
content: "到店自提";
|
|
|
|
|
border-width: 0 0 80rpx 20rpx;
|
2021-06-11 09:41:16 +00:00
|
|
|
|
border-radius: 36rpx 14rpx 0 0;
|
2020-08-13 08:12:57 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.order-submission .allAddress .nav .item.on2 {
|
|
|
|
|
position: relative;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.order-submission .allAddress .nav .item.on2::before {
|
|
|
|
|
position: absolute;
|
|
|
|
|
bottom: 0;
|
|
|
|
|
content: "到店自提";
|
|
|
|
|
font-size: 28rpx;
|
|
|
|
|
display: block;
|
|
|
|
|
height: 0;
|
2021-06-11 09:41:16 +00:00
|
|
|
|
width: 401rpx;
|
2020-08-13 08:12:57 +00:00
|
|
|
|
border-width: 0 0 60rpx 60rpx;
|
|
|
|
|
border-style: none solid solid;
|
|
|
|
|
border-color: transparent transparent #f7c1bd;
|
2021-06-11 09:41:16 +00:00
|
|
|
|
border-radius: 36rpx 14rpx 0 0;
|
2020-08-13 08:12:57 +00:00
|
|
|
|
text-align: center;
|
|
|
|
|
line-height: 60rpx;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.order-submission .allAddress .nav .item:nth-of-type(1).on2::before {
|
|
|
|
|
content: "快递配送";
|
|
|
|
|
border-width: 0 60rpx 60rpx 0;
|
2021-06-11 09:41:16 +00:00
|
|
|
|
border-radius: 14rpx 36rpx 0 0;
|
2020-08-13 08:12:57 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.order-submission .allAddress .address {
|
2021-06-11 09:41:16 +00:00
|
|
|
|
width: 690rpx;
|
|
|
|
|
max-height: 180rpx;
|
2020-08-13 08:12:57 +00:00
|
|
|
|
margin: 0 auto;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.order-submission .allAddress .line {
|
2021-06-11 09:41:16 +00:00
|
|
|
|
width: 100%;
|
2020-08-13 08:12:57 +00:00
|
|
|
|
margin: 0 auto;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.order-submission .wrapper .item .discount .placeholder {
|
|
|
|
|
color: #ccc;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.order-submission .wrapper {
|
|
|
|
|
background-color: #fff;
|
2021-06-11 09:41:16 +00:00
|
|
|
|
margin-top: 15rpx;
|
2020-08-13 08:12:57 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.order-submission .wrapper .item {
|
2021-06-11 09:41:16 +00:00
|
|
|
|
padding: 27rpx 24rpx;
|
2020-08-13 08:12:57 +00:00
|
|
|
|
font-size: 30rpx;
|
2021-06-11 09:41:16 +00:00
|
|
|
|
color: #333333;
|
|
|
|
|
border-bottom: 1px solid #F5F5F5;
|
2020-08-13 08:12:57 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.order-submission .wrapper .item .discount {
|
|
|
|
|
font-size: 30rpx;
|
2021-06-11 09:41:16 +00:00
|
|
|
|
color: #333;
|
2020-08-13 08:12:57 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.order-submission .wrapper .item .discount .iconfont {
|
|
|
|
|
color: #515151;
|
|
|
|
|
font-size: 30rpx;
|
|
|
|
|
margin-left: 15rpx;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.order-submission .wrapper .item .discount .num {
|
|
|
|
|
font-size: 32rpx;
|
|
|
|
|
margin-right: 20rpx;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.order-submission .wrapper .item .shipping {
|
|
|
|
|
font-size: 30rpx;
|
|
|
|
|
color: #999;
|
|
|
|
|
position: relative;
|
|
|
|
|
padding-right: 58rpx;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.order-submission .wrapper .item .shipping .iconfont {
|
|
|
|
|
font-size: 35rpx;
|
|
|
|
|
color: #707070;
|
|
|
|
|
position: absolute;
|
|
|
|
|
right: 0;
|
|
|
|
|
top: 50%;
|
|
|
|
|
transform: translateY(-50%);
|
|
|
|
|
margin-left: 30rpx;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.order-submission .wrapper .item textarea {
|
|
|
|
|
background-color: #f9f9f9;
|
2021-06-11 09:41:16 +00:00
|
|
|
|
width: auto !important;
|
2020-08-13 08:12:57 +00:00
|
|
|
|
height: 140rpx;
|
2021-06-11 09:41:16 +00:00
|
|
|
|
border-radius: 14rpx;
|
2020-08-13 08:12:57 +00:00
|
|
|
|
margin-top: 30rpx;
|
2021-06-11 09:41:16 +00:00
|
|
|
|
padding: 15rpx;
|
2020-08-13 08:12:57 +00:00
|
|
|
|
box-sizing: border-box;
|
2021-06-11 09:41:16 +00:00
|
|
|
|
font-weight: 400;
|
2020-08-13 08:12:57 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.order-submission .wrapper .item .placeholder {
|
|
|
|
|
color: #ccc;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.order-submission .wrapper .item .list {
|
|
|
|
|
margin-top: 35rpx;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.order-submission .wrapper .item .list .payItem {
|
|
|
|
|
border: 1px solid #eee;
|
2021-06-11 09:41:16 +00:00
|
|
|
|
border-radius: 14rpx;
|
2020-08-13 08:12:57 +00:00
|
|
|
|
height: 86rpx;
|
|
|
|
|
width: 100%;
|
|
|
|
|
box-sizing: border-box;
|
|
|
|
|
margin-top: 20rpx;
|
|
|
|
|
font-size: 28rpx;
|
|
|
|
|
color: #282828;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.order-submission .wrapper .item .list .payItem.on {
|
|
|
|
|
border-color: #fc5445;
|
2021-06-11 09:41:16 +00:00
|
|
|
|
color: $theme-color;
|
2020-08-13 08:12:57 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.order-submission .wrapper .item .list .payItem .name {
|
|
|
|
|
width: 50%;
|
|
|
|
|
text-align: center;
|
|
|
|
|
border-right: 1px solid #eee;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.order-submission .wrapper .item .list .payItem .name .iconfont {
|
|
|
|
|
width: 44rpx;
|
|
|
|
|
height: 44rpx;
|
|
|
|
|
border-radius: 50%;
|
|
|
|
|
text-align: center;
|
|
|
|
|
line-height: 44rpx;
|
|
|
|
|
background-color: #fe960f;
|
|
|
|
|
color: #fff;
|
|
|
|
|
font-size: 30rpx;
|
|
|
|
|
margin-right: 15rpx;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.order-submission .wrapper .item .list .payItem .name .iconfont.icon-weixin2 {
|
|
|
|
|
background-color: #41b035;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.order-submission .wrapper .item .list .payItem .tip {
|
|
|
|
|
width: 49%;
|
|
|
|
|
text-align: center;
|
|
|
|
|
font-size: 26rpx;
|
|
|
|
|
color: #aaa;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.order-submission .moneyList {
|
2021-06-11 09:41:16 +00:00
|
|
|
|
margin-top: 15rpx;
|
2020-08-13 08:12:57 +00:00
|
|
|
|
background-color: #fff;
|
|
|
|
|
padding: 30rpx;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.order-submission .moneyList .item {
|
|
|
|
|
font-size: 28rpx;
|
|
|
|
|
color: #282828;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.order-submission .moneyList .item~.item {
|
|
|
|
|
margin-top: 20rpx;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.order-submission .moneyList .item .money {
|
2021-06-11 09:41:16 +00:00
|
|
|
|
color: #666666;
|
2020-08-13 08:12:57 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.order-submission .footer {
|
|
|
|
|
width: 100%;
|
|
|
|
|
height: 100rpx;
|
|
|
|
|
background-color: #fff;
|
|
|
|
|
padding: 0 30rpx;
|
|
|
|
|
font-size: 28rpx;
|
|
|
|
|
color: #333;
|
|
|
|
|
box-sizing: border-box;
|
|
|
|
|
position: fixed;
|
|
|
|
|
bottom: 0;
|
|
|
|
|
left: 0;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.order-submission .footer .settlement {
|
|
|
|
|
font-size: 30rpx;
|
|
|
|
|
color: #fff;
|
|
|
|
|
width: 240rpx;
|
|
|
|
|
height: 70rpx;
|
2021-06-11 09:41:16 +00:00
|
|
|
|
background-color: $theme-color;
|
2020-08-13 08:12:57 +00:00
|
|
|
|
border-radius: 50rpx;
|
|
|
|
|
text-align: center;
|
|
|
|
|
line-height: 70rpx;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.footer .transparent {
|
|
|
|
|
opacity: 0
|
|
|
|
|
}
|
|
|
|
|
</style>
|