|
@@ -14,8 +14,8 @@
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
|
<!-- 地址 -->
|
|
<!-- 地址 -->
|
|
|
- <navigator v-if="tabCurrentIndex == 1" url="/pages/set/address?source=1" class="address-section">
|
|
|
|
|
- <view class="order-content" v-if="addressData.real_name">
|
|
|
|
|
|
|
+ <navigator v-if="tabCurrentIndex == 1" url="/pages/set/address?source=1" class="address-section margin-b-30">
|
|
|
|
|
+ <view class="order-content " v-if="addressData.real_name">
|
|
|
<view class="cen">
|
|
<view class="cen">
|
|
|
<view class="top">
|
|
<view class="top">
|
|
|
<text class="name">{{ addressData.real_name }}</text>
|
|
<text class="name">{{ addressData.real_name }}</text>
|
|
@@ -33,7 +33,7 @@
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
|
</navigator>
|
|
</navigator>
|
|
|
- <navigator v-if="tabCurrentIndex == 2" url="/pages/order/shopList?type=1" class="address-section">
|
|
|
|
|
|
|
+ <navigator url="/pages/order/shopList?type=1" class="address-section">
|
|
|
<view class="shop-box" v-if="shopAddress.name">
|
|
<view class="shop-box" v-if="shopAddress.name">
|
|
|
<view class="shop-top flex">
|
|
<view class="shop-top flex">
|
|
|
<view class="flex shop-title">
|
|
<view class="flex shop-title">
|
|
@@ -49,7 +49,7 @@
|
|
|
电话:{{ shopAddress.phone }}
|
|
电话:{{ shopAddress.phone }}
|
|
|
</view>
|
|
</view>
|
|
|
<text class="shop-address">
|
|
<text class="shop-address">
|
|
|
- 地区:{{ shopAddress._detailed_address }}
|
|
|
|
|
|
|
+ 地区:{{shopAddress.address+shopAddress.detailed_address}}
|
|
|
</text>
|
|
</text>
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
@@ -61,7 +61,6 @@
|
|
|
</view>
|
|
</view>
|
|
|
</navigator>
|
|
</navigator>
|
|
|
<view class="goodsList">
|
|
<view class="goodsList">
|
|
|
-
|
|
|
|
|
<view class="goods-section" v-for="(ls, ind) in shopList" :key="ind">
|
|
<view class="goods-section" v-for="(ls, ind) in shopList" :key="ind">
|
|
|
<!-- 商品列表 -->
|
|
<!-- 商品列表 -->
|
|
|
<view class="g-item">
|
|
<view class="g-item">
|
|
@@ -84,14 +83,38 @@
|
|
|
</view>
|
|
</view>
|
|
|
<!-- 金额明细 -->
|
|
<!-- 金额明细 -->
|
|
|
<view class="yt-list">
|
|
<view class="yt-list">
|
|
|
- <view class="yt-list-cell b-b" v-if="tabCurrentIndex == 2">
|
|
|
|
|
- <text class="cell-tit clamp">姓名</text>
|
|
|
|
|
- <input class="desc" type="text" v-model="addressData.real_name" placeholder="请填写备注信息" placeholder-class="placeholder" />
|
|
|
|
|
- </view>
|
|
|
|
|
- <view class="yt-list-cell b-b" v-if="tabCurrentIndex == 2">
|
|
|
|
|
- <text class="cell-tit clamp">手机号</text>
|
|
|
|
|
- <input class="desc" type="text" v-model="addressData.phone" placeholder="请填写备注信息" placeholder-class="placeholder" />
|
|
|
|
|
|
|
+ <view class="yt-list-cell b-b" v-if="certificate_info.num>0">
|
|
|
|
|
+ <text class="cell-tit clamp">使用卡券({{certificate_info.num}})</text>
|
|
|
|
|
+ <view class="desc">
|
|
|
|
|
+ <switch class="switchCard" :checked='certificate_info.checked' style="transform:scale(0.7)"
|
|
|
|
|
+ @change="switchChange" />
|
|
|
|
|
+ </view>
|
|
|
</view>
|
|
</view>
|
|
|
|
|
+ <template v-if="tabCurrentIndex == 1">
|
|
|
|
|
+ <view class="yt-list-cell b-b">
|
|
|
|
|
+ <text class="cell-tit clamp">送货日期</text>
|
|
|
|
|
+ <view @click="openTime" class="desc">
|
|
|
|
|
+ <text v-if="day.day">
|
|
|
|
|
+ {{timeList[checkedTime].name+day.time}}
|
|
|
|
|
+ </text>
|
|
|
|
|
+ <text v-else>
|
|
|
|
|
+ 请选择送货日期
|
|
|
|
|
+ </text>
|
|
|
|
|
+ </view>
|
|
|
|
|
+ </view>
|
|
|
|
|
+ </template>
|
|
|
|
|
+ <template v-if="tabCurrentIndex == 2">
|
|
|
|
|
+ <view class="yt-list-cell b-b">
|
|
|
|
|
+ <text class="cell-tit clamp">姓名</text>
|
|
|
|
|
+ <input class="desc" type="text" v-model="addressData.real_name" placeholder="请填写姓名"
|
|
|
|
|
+ placeholder-class="placeholder" />
|
|
|
|
|
+ </view>
|
|
|
|
|
+ <view class="yt-list-cell b-b">
|
|
|
|
|
+ <text class="cell-tit clamp">手机号</text>
|
|
|
|
|
+ <input class="desc" type="text" v-model="addressData.phone" placeholder="请填写手机号"
|
|
|
|
|
+ placeholder-class="placeholder" />
|
|
|
|
|
+ </view>
|
|
|
|
|
+ </template>
|
|
|
<view class="yt-list-cell b-b">
|
|
<view class="yt-list-cell b-b">
|
|
|
<text class="cell-tit clamp">运费</text>
|
|
<text class="cell-tit clamp">运费</text>
|
|
|
<text class="cell-tip disabled">{{ Postage }}</text>
|
|
<text class="cell-tip disabled">{{ Postage }}</text>
|
|
@@ -104,7 +127,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
<view class="yt-list">
|
|
<view class="yt-list">
|
|
|
- <view class="yt-list-cell b-b" v-if="fx" @click="payType='weixin'">
|
|
|
|
|
|
|
+ <view class="yt-list-cell b-b" @click="payType='weixin'">
|
|
|
<view class="cell-tit flex">
|
|
<view class="cell-tit flex">
|
|
|
<image class="orderIcon" src="../../static/icon/orderWx.png" mode="widthFix"></image>
|
|
<image class="orderIcon" src="../../static/icon/orderWx.png" mode="widthFix"></image>
|
|
|
<text class="margin-l-10">微信支付</text>
|
|
<text class="margin-l-10">微信支付</text>
|
|
@@ -133,6 +156,16 @@
|
|
|
</image>
|
|
</image>
|
|
|
<view v-else class="noChecked"></view>
|
|
<view v-else class="noChecked"></view>
|
|
|
</view>
|
|
</view>
|
|
|
|
|
+ <view class="yt-list-cell b-b" v-if="!certificate_info.checked" @click="payType='offline'">
|
|
|
|
|
+ <view class="cell-tit flex">
|
|
|
|
|
+ <image class="orderIcon" src="../../static/icon/yh.png" mode="widthFix"></image>
|
|
|
|
|
+ <text class="margin-l-10">线下支付</text>
|
|
|
|
|
+ </view>
|
|
|
|
|
+ <image class="checked" v-if="payType=='offline'" src="../../static/icon/addressIconXz.png"
|
|
|
|
|
+ mode="widthFix">
|
|
|
|
|
+ </image>
|
|
|
|
|
+ <view v-else class="noChecked"></view>
|
|
|
|
|
+ </view>
|
|
|
</view>
|
|
</view>
|
|
|
|
|
|
|
|
|
|
|
|
@@ -145,6 +178,34 @@
|
|
|
</view>
|
|
</view>
|
|
|
<text class="submit" :class="{submitNo:payLoding}" @click="payLoding?'':submit()">提交订单</text>
|
|
<text class="submit" :class="{submitNo:payLoding}" @click="payLoding?'':submit()">提交订单</text>
|
|
|
</view>
|
|
</view>
|
|
|
|
|
+
|
|
|
|
|
+ <uni-popup class="alertTime" ref="popup" type="bottom">
|
|
|
|
|
+ <view class="alert-box position-relative">
|
|
|
|
|
+ <view class="alert-title ">
|
|
|
|
|
+ 选择预计送达时间
|
|
|
|
|
+ </view>
|
|
|
|
|
+ <view class="tip iconfont iconclose" @click="$refs.popup.close()"></view>
|
|
|
|
|
+ <view class="flex">
|
|
|
|
|
+ <view class="left-title">
|
|
|
|
|
+ <view class="title" :class="{action:checkedTime==ind}" v-for="(item,ind) in timeList"
|
|
|
|
|
+ @click="changeCheckedTime(item,ind)">
|
|
|
|
|
+ {{item.name+'('+item.day+')'}}
|
|
|
|
|
+ </view>
|
|
|
|
|
+ </view>
|
|
|
|
|
+ <view class="right-content">
|
|
|
|
|
+ <view class="list flex" v-for="(item,ind) in timeList[checkedTime].list"
|
|
|
|
|
+ @click="checkedShopTime(item)">
|
|
|
|
|
+ <view class="time">
|
|
|
|
|
+ {{item.time}}
|
|
|
|
|
+ </view>
|
|
|
|
|
+ <view class="checked">
|
|
|
|
|
+ 剩余:{{item.door_number-item.day_number}}
|
|
|
|
|
+ </view>
|
|
|
|
|
+ </view>
|
|
|
|
|
+ </view>
|
|
|
|
|
+ </view>
|
|
|
|
|
+ </view>
|
|
|
|
|
+ </uni-popup>
|
|
|
</view>
|
|
</view>
|
|
|
</template>
|
|
</template>
|
|
|
|
|
|
|
@@ -161,6 +222,9 @@
|
|
|
import {
|
|
import {
|
|
|
getUserInfo
|
|
getUserInfo
|
|
|
} from '@/api/user.js';
|
|
} from '@/api/user.js';
|
|
|
|
|
+ import {
|
|
|
|
|
+ storeday
|
|
|
|
|
+ } from '@/api/water.js';
|
|
|
// #ifdef H5
|
|
// #ifdef H5
|
|
|
import weixinObj from "@/plugin/jweixin-module/index.js";
|
|
import weixinObj from "@/plugin/jweixin-module/index.js";
|
|
|
// #endif
|
|
// #endif
|
|
@@ -204,9 +268,63 @@
|
|
|
orderId: '', //订单id
|
|
orderId: '', //订单id
|
|
|
now_money: 0, //余额
|
|
now_money: 0, //余额
|
|
|
onShopId: -1, //默认-1为不存在商家id
|
|
onShopId: -1, //默认-1为不存在商家id
|
|
|
- system_store: [], //到店自提列表仓库
|
|
|
|
|
|
|
+ // 下单日期
|
|
|
|
|
+ day: {
|
|
|
|
|
+ day: '',
|
|
|
|
|
+ id: '',
|
|
|
|
|
+ time: ''
|
|
|
|
|
+ },
|
|
|
|
|
+ // 当前选中的日期对象
|
|
|
|
|
+ checkedTime: 0,
|
|
|
|
|
+ // 保存每周日子
|
|
|
|
|
+ timeName: ['周日', '周一', '周二', '周三', '周四', '周五', '周六'],
|
|
|
|
|
+ // 保存日期列表
|
|
|
|
|
+ timeList: [{
|
|
|
|
|
+ name: '今天',
|
|
|
|
|
+ day: '',
|
|
|
|
|
+ time: '',
|
|
|
|
|
+ list: []
|
|
|
|
|
+ }, {
|
|
|
|
|
+ name: '明天',
|
|
|
|
|
+ day: '',
|
|
|
|
|
+ time: '',
|
|
|
|
|
+ list: []
|
|
|
|
|
+ }, {
|
|
|
|
|
+ name: '',
|
|
|
|
|
+ day: '',
|
|
|
|
|
+ time: '',
|
|
|
|
|
+ list: []
|
|
|
|
|
+ }, {
|
|
|
|
|
+ name: '',
|
|
|
|
|
+ day: '',
|
|
|
|
|
+ time: '',
|
|
|
|
|
+ list: []
|
|
|
|
|
+ }],
|
|
|
|
|
+ // 可使用的水票
|
|
|
|
|
+ certificate_info: {
|
|
|
|
|
+ id: '',
|
|
|
|
|
+ num: 0,
|
|
|
|
|
+ checked: false
|
|
|
|
|
+ }
|
|
|
};
|
|
};
|
|
|
},
|
|
},
|
|
|
|
|
+ watch: {
|
|
|
|
|
+ shopAddress(newValue, oldValue) {
|
|
|
|
|
+ console.log(newValue, 'newValue');
|
|
|
|
|
+ for (let i = 0; i < this.timeList.length; i++) {
|
|
|
|
|
+ const item = this.timeList[i];
|
|
|
|
|
+ const day = `${item.time.getFullYear()}-${item.time.getMonth()+1}-${item.time.getDate()}`
|
|
|
|
|
+ storeday({
|
|
|
|
|
+ store_id: newValue.id,
|
|
|
|
|
+ day
|
|
|
|
|
+ }).then(({
|
|
|
|
|
+ data
|
|
|
|
|
+ }) => {
|
|
|
|
|
+ item.list = data;
|
|
|
|
|
+ });
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+ },
|
|
|
onLoad(option) {
|
|
onLoad(option) {
|
|
|
// 保存当前商品在购物车中的id
|
|
// 保存当前商品在购物车中的id
|
|
|
this.cartId = option.id;
|
|
this.cartId = option.id;
|
|
@@ -216,8 +334,11 @@
|
|
|
}
|
|
}
|
|
|
this.loadData();
|
|
this.loadData();
|
|
|
this.userinfo();
|
|
this.userinfo();
|
|
|
|
|
+ // 初始化送货时间
|
|
|
|
|
+ this.timeInit();
|
|
|
},
|
|
},
|
|
|
computed: {
|
|
computed: {
|
|
|
|
|
+ // 计算是否免运费
|
|
|
Postage() {
|
|
Postage() {
|
|
|
let money = +this.moneyAll.storePostage;
|
|
let money = +this.moneyAll.storePostage;
|
|
|
if (money == 0) {
|
|
if (money == 0) {
|
|
@@ -229,10 +350,61 @@
|
|
|
payAllMoney() {
|
|
payAllMoney() {
|
|
|
return +this.moneyAll.totalPrice + +this.moneyAll.vipPrice;
|
|
return +this.moneyAll.totalPrice + +this.moneyAll.vipPrice;
|
|
|
},
|
|
},
|
|
|
- ...mapState('shop', ['shopDetail']),
|
|
|
|
|
- ...mapState(['fx'])
|
|
|
|
|
|
|
+ ...mapState('shop', ['shopDetail'])
|
|
|
},
|
|
},
|
|
|
methods: {
|
|
methods: {
|
|
|
|
|
+ // 是否使用卡券切换
|
|
|
|
|
+ switchChange(res) {
|
|
|
|
|
+ this.certificate_info.checked = res.detail.value;
|
|
|
|
|
+ if (this.payType == 'offline') {
|
|
|
|
|
+ this.payType = 'weixin'
|
|
|
|
|
+ }
|
|
|
|
|
+ // 重新计算价格
|
|
|
|
|
+ this.payMoneyNub();
|
|
|
|
|
+ },
|
|
|
|
|
+ checkedShopTime(item) {
|
|
|
|
|
+
|
|
|
|
|
+ if (item.door_number - item.day_number == 0) {
|
|
|
|
|
+ uni.showModal({
|
|
|
|
|
+ title: '提示',
|
|
|
|
|
+ content: '该时间段预约已满!',
|
|
|
|
|
+ showCancel: false,
|
|
|
|
|
+ });
|
|
|
|
|
+ return
|
|
|
|
|
+ }
|
|
|
|
|
+ this.day = item;
|
|
|
|
|
+ this.$refs.popup.close();
|
|
|
|
|
+ },
|
|
|
|
|
+ // 选中的时间对象
|
|
|
|
|
+ changeCheckedTime(item, ind) {
|
|
|
|
|
+ this.checkedTime = ind;
|
|
|
|
|
+ },
|
|
|
|
|
+ // 打开弹窗
|
|
|
|
|
+ openTime() {
|
|
|
|
|
+ // 打开弹出窗
|
|
|
|
|
+ this.$refs.popup.open();
|
|
|
|
|
+ },
|
|
|
|
|
+ // 初始化送货时间
|
|
|
|
|
+ timeInit() {
|
|
|
|
|
+ // 保存当前时间
|
|
|
|
|
+ const startTime = new Date();
|
|
|
|
|
+ for (let i = 0; i < this.timeList.length; i++) {
|
|
|
|
|
+ const item = this.timeList[i]
|
|
|
|
|
+ // 保存今天时间戳
|
|
|
|
|
+ item.time = new Date(startTime.getTime() + 86400000 * i);
|
|
|
|
|
+ // 获取今日周几
|
|
|
|
|
+ item.day = this.timeName[item.time.getDay()];
|
|
|
|
|
+ if (!item.name) {
|
|
|
|
|
+ // 获取今日日期
|
|
|
|
|
+ item.name = `${item.time.getMonth()+1}月${item.time.getDate()}日`
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+ console.log(this.timeList, 'this.timeList');
|
|
|
|
|
+ },
|
|
|
|
|
+ // 送货时间修改
|
|
|
|
|
+ changeTime(res) {
|
|
|
|
|
+ console.log(res);
|
|
|
|
|
+ },
|
|
|
// 加载用户基础信息
|
|
// 加载用户基础信息
|
|
|
userinfo() {
|
|
userinfo() {
|
|
|
getUserInfo({}).then(({
|
|
getUserInfo({}).then(({
|
|
@@ -243,11 +415,16 @@
|
|
|
},
|
|
},
|
|
|
// 计算支付金额
|
|
// 计算支付金额
|
|
|
payMoneyNub() {
|
|
payMoneyNub() {
|
|
|
- computedOrderkey({
|
|
|
|
|
- orderkey: this.orderKey,
|
|
|
|
|
- useIntegral: 0, //是否积分抵扣
|
|
|
|
|
- addressId: this.addressData.id //地址编号
|
|
|
|
|
- })
|
|
|
|
|
|
|
+ let updata = {
|
|
|
|
|
+ orderkey: this.orderKey,
|
|
|
|
|
+ useIntegral: 0, //是否积分抵扣
|
|
|
|
|
+ addressId: this.addressData.id //地址编号
|
|
|
|
|
+ }
|
|
|
|
|
+ // 判断是卡券支付
|
|
|
|
|
+ if (this.certificate_info.checked) {
|
|
|
|
|
+ updata.use_certificate_id = this.certificate_info.id
|
|
|
|
|
+ }
|
|
|
|
|
+ computedOrderkey(updata)
|
|
|
.then(({
|
|
.then(({
|
|
|
data
|
|
data
|
|
|
}) => {
|
|
}) => {
|
|
@@ -267,15 +444,18 @@
|
|
|
confirm({
|
|
confirm({
|
|
|
cartId: obj.cartId + '',
|
|
cartId: obj.cartId + '',
|
|
|
longitude: uni.getStorageSync('CACHE_LONGITUDE'),
|
|
longitude: uni.getStorageSync('CACHE_LONGITUDE'),
|
|
|
- latitude:uni.getStorageSync('CACHE_LATITUDE'),
|
|
|
|
|
|
|
+ latitude: uni.getStorageSync('CACHE_LATITUDE'),
|
|
|
}).then(({
|
|
}).then(({
|
|
|
data
|
|
data
|
|
|
}) => {
|
|
}) => {
|
|
|
|
|
+ obj.certificate_info.id = data.certificate_info.id;
|
|
|
|
|
+ obj.certificate_info.num = data.certificate_info.num;
|
|
|
obj.addressData = data.addressInfo || {};
|
|
obj.addressData = data.addressInfo || {};
|
|
|
obj.shopList = data.cartInfo; //商品列表
|
|
obj.shopList = data.cartInfo; //商品列表
|
|
|
obj.moneyAll = data.priceGroup; //金额数据
|
|
obj.moneyAll = data.priceGroup; //金额数据
|
|
|
obj.orderKey = data.orderKey; //订单key
|
|
obj.orderKey = data.orderKey; //订单key
|
|
|
obj.shopAddress = data.system_store; //到店自提列表
|
|
obj.shopAddress = data.system_store; //到店自提列表
|
|
|
|
|
+ obj.shopAddress.address = data.system_store.address.join(','); //到店自提列表
|
|
|
// 计算金额
|
|
// 计算金额
|
|
|
this.payMoneyNub();
|
|
this.payMoneyNub();
|
|
|
});
|
|
});
|
|
@@ -296,6 +476,14 @@
|
|
|
});
|
|
});
|
|
|
return;
|
|
return;
|
|
|
}
|
|
}
|
|
|
|
|
+ if (!obj.day.day) {
|
|
|
|
|
+ uni.showModal({
|
|
|
|
|
+ title: '提示',
|
|
|
|
|
+ content: '请选择送水时间!',
|
|
|
|
|
+ showCancel: false,
|
|
|
|
|
+ });
|
|
|
|
|
+ return
|
|
|
|
|
+ }
|
|
|
|
|
|
|
|
uni.showLoading({
|
|
uni.showLoading({
|
|
|
title: '支付中',
|
|
title: '支付中',
|
|
@@ -404,15 +592,14 @@
|
|
|
// 初次订单创建
|
|
// 初次订单创建
|
|
|
firstCreateOrder() {
|
|
firstCreateOrder() {
|
|
|
let obj = this;
|
|
let obj = this;
|
|
|
- // 获取下单页面数据
|
|
|
|
|
- let prepage = obj;
|
|
|
|
|
|
|
+ console.log(obj.day, 'obj.day');
|
|
|
let data = {
|
|
let data = {
|
|
|
- real_name: prepage.addressData.real_name, //联系人名称
|
|
|
|
|
- phone: prepage.addressData.phone, //联系人号码
|
|
|
|
|
- addressId: prepage.addressData.id, //支付地址id
|
|
|
|
|
|
|
+ real_name: obj.addressData.real_name, //联系人名称
|
|
|
|
|
+ phone: obj.addressData.phone, //联系人号码
|
|
|
|
|
+ addressId: obj.addressData.id, //支付地址id
|
|
|
useIntegral: 0, //是否积分抵扣1为是0为否
|
|
useIntegral: 0, //是否积分抵扣1为是0为否
|
|
|
payType: obj.payType, //支付类型 weixin-微信 yue-余额
|
|
payType: obj.payType, //支付类型 weixin-微信 yue-余额
|
|
|
- mark: prepage.desc, //备注
|
|
|
|
|
|
|
+ mark: obj.desc, //备注
|
|
|
// #ifdef H5
|
|
// #ifdef H5
|
|
|
from: 'weixin', //来源
|
|
from: 'weixin', //来源
|
|
|
// #endif
|
|
// #endif
|
|
@@ -423,10 +610,12 @@
|
|
|
from: 'app', //来源
|
|
from: 'app', //来源
|
|
|
// #endif
|
|
// #endif
|
|
|
shipping_type: obj.tabCurrentIndex, //提货方式 1 快递 2自提
|
|
shipping_type: obj.tabCurrentIndex, //提货方式 1 快递 2自提
|
|
|
- store_id:obj.shopAddress.id||''
|
|
|
|
|
|
|
+ store_id: obj.shopAddress.id || '',
|
|
|
|
|
+ day: obj.day.day,
|
|
|
|
|
+ door_id: obj.day.door_id
|
|
|
};
|
|
};
|
|
|
- if(obj.tabCurrentIndex == 2) {
|
|
|
|
|
- data.store_id = obj.shopAddress.id
|
|
|
|
|
|
|
+ if (obj.certificate_info.checked) {
|
|
|
|
|
+ data.use_certificate_id = obj.certificate_info.id
|
|
|
}
|
|
}
|
|
|
// 生成订单
|
|
// 生成订单
|
|
|
createOrderkey(data, obj.orderKey)
|
|
createOrderkey(data, obj.orderKey)
|
|
@@ -449,7 +638,7 @@
|
|
|
// 保存订单号
|
|
// 保存订单号
|
|
|
obj.orderId = data.result.orderId;
|
|
obj.orderId = data.result.orderId;
|
|
|
// 判断是否为余额支付
|
|
// 判断是否为余额支付
|
|
|
- if (obj.payType == 'yue') {
|
|
|
|
|
|
|
+ if (obj.payType == 'yue' || obj.payType == 'offline') {
|
|
|
console.log('余额支付', status == 200 && data.status == 'SUCCESS');
|
|
console.log('余额支付', status == 200 && data.status == 'SUCCESS');
|
|
|
if (status == 200 && data.status == 'SUCCESS') {
|
|
if (status == 200 && data.status == 'SUCCESS') {
|
|
|
obj.paySuccessTo();
|
|
obj.paySuccessTo();
|
|
@@ -472,9 +661,10 @@
|
|
|
</script>
|
|
</script>
|
|
|
|
|
|
|
|
<style lang="scss">
|
|
<style lang="scss">
|
|
|
- .content{
|
|
|
|
|
|
|
+ .content {
|
|
|
padding-bottom: 100rpx;
|
|
padding-bottom: 100rpx;
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
.address-section {
|
|
.address-section {
|
|
|
border-radius: 20rpx;
|
|
border-radius: 20rpx;
|
|
|
padding: 30rpx;
|
|
padding: 30rpx;
|
|
@@ -700,6 +890,11 @@
|
|
|
text-align: right;
|
|
text-align: right;
|
|
|
font-size: $font-base;
|
|
font-size: $font-base;
|
|
|
color: $font-color-light;
|
|
color: $font-color-light;
|
|
|
|
|
+
|
|
|
|
|
+ .switchCard {
|
|
|
|
|
+ margin-right: -20rpx;
|
|
|
|
|
+
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|
|
@@ -820,13 +1015,16 @@
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
- .shop-box{
|
|
|
|
|
|
|
+
|
|
|
|
|
+ .shop-box {
|
|
|
.shop-top {
|
|
.shop-top {
|
|
|
width: 100%;
|
|
width: 100%;
|
|
|
- .shop-title{
|
|
|
|
|
|
|
+
|
|
|
|
|
+ .shop-title {
|
|
|
width: 0px;
|
|
width: 0px;
|
|
|
flex-grow: 1;
|
|
flex-grow: 1;
|
|
|
justify-content: flex-start;
|
|
justify-content: flex-start;
|
|
|
|
|
+
|
|
|
.shopImg {
|
|
.shopImg {
|
|
|
height: 65rpx;
|
|
height: 65rpx;
|
|
|
width: 65rpx;
|
|
width: 65rpx;
|
|
@@ -834,12 +1032,14 @@
|
|
|
margin-right: 20rpx;
|
|
margin-right: 20rpx;
|
|
|
flex-shrink: 0;
|
|
flex-shrink: 0;
|
|
|
}
|
|
}
|
|
|
- .shop-name{
|
|
|
|
|
|
|
+
|
|
|
|
|
+ .shop-name {
|
|
|
font-weight: bold;
|
|
font-weight: bold;
|
|
|
font-size: $font-lg;
|
|
font-size: $font-lg;
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
- .shop-tip{
|
|
|
|
|
|
|
+
|
|
|
|
|
+ .shop-tip {
|
|
|
color: #FFF;
|
|
color: #FFF;
|
|
|
padding: 5rpx 10rpx;
|
|
padding: 5rpx 10rpx;
|
|
|
font-size: $font-sm;
|
|
font-size: $font-sm;
|
|
@@ -847,10 +1047,70 @@
|
|
|
border-radius: 5rpx;
|
|
border-radius: 5rpx;
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
- .shop-content{
|
|
|
|
|
- color: $font-color-light;
|
|
|
|
|
|
|
+
|
|
|
|
|
+ .shop-content {
|
|
|
|
|
+ color: $font-color-light;
|
|
|
font-size: $font-sm;
|
|
font-size: $font-sm;
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
|
|
+ .alertTime {
|
|
|
|
|
+ z-index: 1000;
|
|
|
|
|
+
|
|
|
|
|
+ .alert-box {
|
|
|
|
|
+ background-color: #FFF;
|
|
|
|
|
+ border-top-right-radius: 20rpx;
|
|
|
|
|
+ border-top-left-radius: 20rpx;
|
|
|
|
|
+ min-height: 70vh;
|
|
|
|
|
+
|
|
|
|
|
+ .right-content {
|
|
|
|
|
+ width: 70%;
|
|
|
|
|
+
|
|
|
|
|
+ .list {
|
|
|
|
|
+ padding: 20rpx 30rpx;
|
|
|
|
|
+ font-size: $font-sm;
|
|
|
|
|
+ border-bottom: 1px solid $border-color-light;
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ .left-title {
|
|
|
|
|
+ width: 30%;
|
|
|
|
|
+ align-self: flex-start;
|
|
|
|
|
+
|
|
|
|
|
+ .title {
|
|
|
|
|
+ padding: 30rpx;
|
|
|
|
|
+ text-align: center;
|
|
|
|
|
+ font-weight: bold;
|
|
|
|
|
+ font-size: $font-sm;
|
|
|
|
|
+ background-color: rgba(246, 246, 246, 1);
|
|
|
|
|
+
|
|
|
|
|
+ &.action {
|
|
|
|
|
+ background-color: #FFF;
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ .alert-title {
|
|
|
|
|
+ text-align: center;
|
|
|
|
|
+ padding: 30rpx;
|
|
|
|
|
+ line-height: 1;
|
|
|
|
|
+ font-weight: bold;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ .tip {
|
|
|
|
|
+ position: absolute;
|
|
|
|
|
+ top: 30rpx;
|
|
|
|
|
+ right: 30rpx;
|
|
|
|
|
+ color: $font-color-disabled;
|
|
|
|
|
+ font-weight: bold;
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ /deep/ .uni-switch-input {
|
|
|
|
|
+ &.uni-switch-input-checked {
|
|
|
|
|
+ border-color: $base-color !important;
|
|
|
|
|
+ background-color: $base-color !important;
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
</style>
|
|
</style>
|