[最新更新]
This commit is contained in:
@@ -7,9 +7,9 @@ import { errInfo } from './err'
|
|||||||
import { updToken } from './updateToken'
|
import { updToken } from './updateToken'
|
||||||
|
|
||||||
// 正式地址
|
// 正式地址
|
||||||
const api = "https://api.xuanhuojk.com/api/"
|
// const api = "https://api.xuanhuojk.com/api/"
|
||||||
// 测试地址
|
// 测试地址
|
||||||
// const api = "https://api.xhtest.douhuofalv.com/api/"
|
const api = "https://api.xhtest.douhuofalv.com/api/"
|
||||||
const header = {
|
const header = {
|
||||||
"Accept" : "application/json"
|
"Accept" : "application/json"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
|
|
||||||
<view class="content">
|
<view class="content">
|
||||||
<block wx:if="{{isUser}}">
|
<block wx:if="{{isUser}}">
|
||||||
<!-- 工具栏 -->
|
<!-- 工具栏 -->
|
||||||
@@ -61,9 +60,8 @@
|
|||||||
<block wx:else>
|
<block wx:else>
|
||||||
<!-- 用户未登录 -->
|
<!-- 用户未登录 -->
|
||||||
<view class="pack-center pages-loding auth-login">
|
<view class="pack-center pages-loding auth-login">
|
||||||
<image src="/static/icons/carnull_icon.png"></image>
|
|
||||||
<view>您还未登录,无法查看您的购物车信息</view>
|
<view>您还未登录,无法查看您的购物车信息</view>
|
||||||
<navigator class="auth-btn" url="/pages/login/index">登录</navigator>
|
<navigator class="auth-btn" url="/pages/login/index">登录</navigator>
|
||||||
</view>
|
</view>
|
||||||
</block>
|
</block>
|
||||||
</view>
|
</view>
|
||||||
@@ -18,12 +18,11 @@ Page({
|
|||||||
freight : '', // 运费
|
freight : '', // 运费
|
||||||
weight : '', // 重量
|
weight : '', // 重量
|
||||||
distribution : [
|
distribution : [
|
||||||
{ type: 2, title: "选择配送方式" },
|
{ type: 0, title: "选择配送方式" },
|
||||||
{ type: 0, title: "快递" },
|
{ type: 1, title: "快递" },
|
||||||
{ type: 1, title: "自提" },
|
{ type: 2, title: "自提" },
|
||||||
],
|
],
|
||||||
distributionIndex: 0,
|
distributionIndex: 0
|
||||||
distributionType : 2
|
|
||||||
},
|
},
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -43,8 +42,7 @@ Page({
|
|||||||
distributionChange(e){
|
distributionChange(e){
|
||||||
if(e.detail.value === this.data.distributionIndex) return
|
if(e.detail.value === this.data.distributionIndex) return
|
||||||
this.setData({
|
this.setData({
|
||||||
distributionIndex : e.detail.value,
|
distributionIndex: e.detail.value
|
||||||
distributionType : this.data.distribution[e.detail.value].type
|
|
||||||
})
|
})
|
||||||
this.placeInfo(this.data.skuId);
|
this.placeInfo(this.data.skuId);
|
||||||
},
|
},
|
||||||
@@ -96,7 +94,7 @@ Page({
|
|||||||
cart_ids : this.data.skuId,
|
cart_ids : this.data.skuId,
|
||||||
address_id : this.data.address.address_id,
|
address_id : this.data.address.address_id,
|
||||||
remark : '',
|
remark : '',
|
||||||
delivery_type : this.data.distributionType
|
delivery_type : this.data.distributionIndex
|
||||||
}).then(res => {
|
}).then(res => {
|
||||||
wx.redirectTo({
|
wx.redirectTo({
|
||||||
url: '/pages/pay/index?params=' + encodeURIComponent(JSON.stringify(res.data))
|
url: '/pages/pay/index?params=' + encodeURIComponent(JSON.stringify(res.data))
|
||||||
|
|||||||
@@ -75,14 +75,9 @@ Page({
|
|||||||
loding: false
|
loding: false
|
||||||
})
|
})
|
||||||
break;
|
break;
|
||||||
default:
|
case 'baofoo':
|
||||||
wx.showToast({
|
this.baofuPay()
|
||||||
title: '请选择支付',
|
break;
|
||||||
icon : 'none'
|
|
||||||
})
|
|
||||||
this.setData({
|
|
||||||
loding: false
|
|
||||||
})
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -31,12 +31,12 @@
|
|||||||
</view>
|
</view>
|
||||||
<radio class="radio-radio" value="coin" color="#da2b54" checked="{{payType == 'coin'}}"/>
|
<radio class="radio-radio" value="coin" color="#da2b54" checked="{{payType == 'coin'}}"/>
|
||||||
</label>
|
</label>
|
||||||
<label class="radio-flex" wx:if="{{can.baofu == 1}}">
|
<label class="radio-flex" wx:if="{{can.baofoo == 1}}">
|
||||||
<view class="radio-text">
|
<view class="radio-text">
|
||||||
<image class="radio-icon" src="/static/pay/wechat.png"></image>
|
<image class="radio-icon" src="/static/pay/wechat.png"></image>
|
||||||
<text>微信支付(宝付)</text>
|
<text>微信支付(宝付)</text>
|
||||||
</view>
|
</view>
|
||||||
<radio class="radio-radio" value="baofu" color="#da2b54" checked="{{payType == 'baofu'}}"/>
|
<radio class="radio-radio" value="baofoo" color="#da2b54" checked="{{payType == 'baofoo'}}"/>
|
||||||
</label>
|
</label>
|
||||||
</radio-group>
|
</radio-group>
|
||||||
<view class="radio-lay" wx:if="{{loding}}"></view>
|
<view class="radio-lay" wx:if="{{loding}}"></view>
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
|
|
||||||
<view class="content">
|
<view class="content">
|
||||||
<view class="store-city">当前所在城市:哈尔滨市</view>
|
<view class="store-city">当前所在城市:哈尔滨市</view>
|
||||||
<view class="store-title">请选择自提门店</view>
|
<view class="store-title">请选择自提门店</view>
|
||||||
@@ -19,4 +18,4 @@
|
|||||||
<view class="store-item-km">距离1.0KM</view>
|
<view class="store-item-km">距离1.0KM</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
@@ -14,4 +14,4 @@
|
|||||||
.store-item:last-child::after{ display: none; }
|
.store-item:last-child::after{ display: none; }
|
||||||
.store-item-title{ font-weight: bold; line-height: 50rpx; font-size: 32rpx; }
|
.store-item-title{ font-weight: bold; line-height: 50rpx; font-size: 32rpx; }
|
||||||
.store-item-address{ font-size: 28rpx; color: gray; line-height: 40rpx; }
|
.store-item-address{ font-size: 28rpx; color: gray; line-height: 40rpx; }
|
||||||
.store-item-km{ position: absolute; right: 30rpx; font-size: 26rpx; color: gray; top: 50%; line-height: 40rpx; margin-top: -20rpx; }
|
.store-item-km{ position: absolute; right: 30rpx; font-size: 26rpx; color: gray; top: 50%; line-height: 40rpx; margin-top: -20rpx; }
|
||||||
@@ -17,15 +17,15 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "购物车",
|
"name": "购物车",
|
||||||
"pathName": "pages/empower/writeOff/writeOff",
|
"pathName": "pages/bag/bag",
|
||||||
"query": "",
|
"query": "",
|
||||||
"launchMode": "default",
|
"launchMode": "default",
|
||||||
"scene": null
|
"scene": null
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "提现",
|
"name": "朋友圈进入详情",
|
||||||
"pathName": "pages/empower/writeOff/writeOff",
|
"pathName": "pages/mall/details/details",
|
||||||
"query": "",
|
"query": "id=3&invite=null",
|
||||||
"launchMode": "default",
|
"launchMode": "default",
|
||||||
"scene": 1084
|
"scene": 1084
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user