fix: 订单直接生成支付

tea/dev
wx-jincw 3 weeks ago
parent 3a9560eab1
commit f9a08075ab

@ -1,7 +1,7 @@
{ {
"name" : "甄味馆商城", "name" : "商城",
"appid" : "__UNI__B905528", "appid" : "__UNI__B905528",
"description" : "甄味馆商城", "description" : "商城",
"versionName" : "1.0.0", "versionName" : "1.0.0",
"versionCode" : 1001, "versionCode" : 1001,
"transformPx" : false, "transformPx" : false,
@ -172,7 +172,7 @@
"async" : { "async" : {
"timeout" : 200000 "timeout" : 200000
}, },
"title" : "甄味馆" "title" : "商城"
}, },
"plus" : { "plus" : {
"statusbar" : { "statusbar" : {

@ -1,7 +1,7 @@
<template> <template>
<view> <view>
<view class='order-submission'> <view class='order-submission'>
<view class="allAddress" :style="store_self_mention ? '':'padding-top:10rpx;'"> <!-- <view class="allAddress" :style="store_self_mention ? '':'padding-top:10rpx;'">
<view class="nav acea-row"> <view class="nav acea-row">
<view class="item font-color" :class="shippingType == 0 ? 'on' : 'on2'" @tap="addressType(0)" <view class="item font-color" :class="shippingType == 0 ? 'on' : 'on2'" @tap="addressType(0)"
v-if='store_self_mention'></view> v-if='store_self_mention'></view>
@ -42,11 +42,11 @@
<view class='line'> <view class='line'>
<image src='/static/images/line.jpg'></image> <image src='/static/images/line.jpg'></image>
</view> </view>
</view> </view> -->
<view class="pad30"> <view class="pad30">
<orderGoods :cartInfo="cartInfo" :orderProNum="orderProNum"></orderGoods> <orderGoods :cartInfo="cartInfo" :orderProNum="orderProNum"></orderGoods>
<view class='wrapper borRadius14'> <view class='wrapper borRadius14'>
<view class='item acea-row row-between-wrapper' @tap='couponTap' <!-- <view class='item acea-row row-between-wrapper' @tap='couponTap'
v-if="!orderInfoVo.bargainId && !orderInfoVo.combinationId && !orderInfoVo.seckillId && productType==='normal'"> v-if="!orderInfoVo.bargainId && !orderInfoVo.combinationId && !orderInfoVo.seckillId && productType==='normal'">
<view>优惠券</view> <view>优惠券</view>
<view class='discount'>{{couponTitle}} <view class='discount'>{{couponTitle}}
@ -57,7 +57,6 @@
<view class='item acea-row row-between-wrapper' <view class='item acea-row row-between-wrapper'
v-if="!orderInfoVo.bargainId && !orderInfoVo.combinationId && !orderInfoVo.seckillId && productType==='normal'"> v-if="!orderInfoVo.bargainId && !orderInfoVo.combinationId && !orderInfoVo.seckillId && productType==='normal'">
<view>积分抵扣</view> <view>积分抵扣</view>
<!-- -->
<view class='discount acea-row row-middle'> <view class='discount acea-row row-middle'>
<view> {{useIntegral ? "剩余积分":"当前积分"}} <view> {{useIntegral ? "剩余积分":"当前积分"}}
<text class='num font-color'>{{useIntegral ? orderInfoVo.surplusIntegral : orderInfoVo.userIntegral || 0}}</text> <text class='num font-color'>{{useIntegral ? orderInfoVo.surplusIntegral : orderInfoVo.userIntegral || 0}}</text>
@ -66,13 +65,13 @@
<checkbox :checked='useIntegral ? true : false' :disabled="orderInfoVo.userIntegral==0 && !useIntegral"/> <checkbox :checked='useIntegral ? true : false' :disabled="orderInfoVo.userIntegral==0 && !useIntegral"/>
</checkbox-group> </checkbox-group>
</view> </view>
</view> </view> -->
<!-- <view class='item acea-row row-between-wrapper' <!-- <view class='item acea-row row-between-wrapper'
v-if="priceGroup.vipPrice > 0 && userInfo.vip && !pinkId && !BargainId && !combinationId && !seckillId"> v-if="priceGroup.vipPrice > 0 && userInfo.vip && !pinkId && !BargainId && !combinationId && !seckillId">
<view>会员优惠</view> <view>会员优惠</view>
<view class='discount'>-{{priceGroup.vipPrice}}</view> <view class='discount'>-{{priceGroup.vipPrice}}</view>
</view> --> </view> -->
<view class='item acea-row row-between-wrapper' v-if='shippingType==0'> <!-- <view class='item acea-row row-between-wrapper' v-if='shippingType==0'>
<view>快递费用</view> <view>快递费用</view>
<view class='discount' v-if='parseFloat(orderInfoVo.freightFee) > 0'> <view class='discount' v-if='parseFloat(orderInfoVo.freightFee) > 0'>
+{{orderInfoVo.freightFee}} +{{orderInfoVo.freightFee}}
@ -94,7 +93,7 @@
@blur='phone'></input> @blur='phone'></input>
</view> </view>
</view> </view>
</view> </view> -->
<!-- <view class='item acea-row row-between-wrapper' wx:else> <!-- <view class='item acea-row row-between-wrapper' wx:else>
<view>自提门店</view> <view>自提门店</view>
<view class='discount'>{{system_store.name}}</view> <view class='discount'>{{system_store.name}}</view>
@ -105,7 +104,7 @@
value="" name="mark" placeholder='请添加备注150字以内'></textarea> value="" name="mark" placeholder='请添加备注150字以内'></textarea>
</view> </view>
</view> </view>
<view class='wrapper borRadius14'> <!-- <view class='wrapper borRadius14'>
<view class='item'> <view class='item'>
<view>支付方式</view> <view>支付方式</view>
<view class='list'> <view class='list'>
@ -122,7 +121,7 @@
</view> </view>
</view> </view>
</view> </view>
</view> </view> -->
<view class='moneyList borRadius14'> <view class='moneyList borRadius14'>
<view class='item acea-row row-between-wrapper'> <view class='item acea-row row-between-wrapper'>
<view>商品总价</view> <view>商品总价</view>
@ -627,6 +626,15 @@
getOrderPay: function(orderNo, message) { getOrderPay: function(orderNo, message) {
let that = this; let that = this;
let goPages = '/pages/order_pay_status/index?order_id=' + orderNo + '&msg=' + message; let goPages = '/pages/order_pay_status/index?order_id=' + orderNo + '&msg=' + message;
uni.hideLoading();
return that.$util.Tips({
title: '支付成功',
icon: 'success'
}, {
tab: 5,
url: goPages
});
return;
wechatOrderPay({ wechatOrderPay({
orderNo: orderNo, orderNo: orderNo,
payChannel: that.payChannel, payChannel: that.payChannel,
@ -911,32 +919,32 @@
let that = this, let that = this,
data = {}; data = {};
if (!that.payType) return that.$util.Tips({ // if (!that.payType) return that.$util.Tips({
title: '请选择支付方式' // title: ''
}); // });
if (!that.address.addressId && !that.shippingType) return that.$util.Tips({ // if (!that.address.addressId && !that.shippingType) return that.$util.Tips({
title: '请选择收货地址' // title: ''
}); // });
if (that.shippingType == 1) { // if (that.shippingType == 1) {
if (that.contacts == "" || that.contactsTel == "") { // if (that.contacts == "" || that.contactsTel == "") {
return that.$util.Tips({ // return that.$util.Tips({
title: '请填写联系人或联系人电话' // title: ''
}); // });
} // }
if (!/^1(3|4|5|7|8|9|6)\d{9}$/.test(that.contactsTel)) { // if (!/^1(3|4|5|7|8|9|6)\d{9}$/.test(that.contactsTel)) {
return that.$util.Tips({ // return that.$util.Tips({
title: '请填写正确的手机号' // title: ''
}); // });
} // }
if (!/^[\u4e00-\u9fa5\w]{2,16}$/.test(that.contacts)) { // if (!/^[\u4e00-\u9fa5\w]{2,16}$/.test(that.contacts)) {
return that.$util.Tips({ // return that.$util.Tips({
title: '请填写您的真实姓名' // title: ''
}); // });
} // }
if (that.storeList.length == 0) return that.$util.Tips({ // if (that.storeList.length == 0) return that.$util.Tips({
title: '暂无门店,请选择其他方式' // title: ','
}); // });
} // }
data = { data = {
realName: that.contacts, realName: that.contacts,
phone: that.contactsTel, phone: that.contactsTel,
@ -951,11 +959,11 @@
payChannel: that.payChannel||'weixinh5' payChannel: that.payChannel||'weixinh5'
}; };
if (data.payType == 'yue' && parseFloat(that.userInfo.nowMoney) < parseFloat(that.totalPrice)) // if (data.payType == 'yue' && parseFloat(that.userInfo.nowMoney) < parseFloat(that.totalPrice))
return that.$util // return that.$util
.Tips({ // .Tips({
title: '余额不足!' // title: ''
}); // });
uni.showLoading({ uni.showLoading({
title: '订单支付中' title: '订单支付中'
}); });

@ -4,11 +4,11 @@
<meta charset="utf-8"> <meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width,user-scalable=no,initial-scale=1,maximum-scale=1,minimum-scale=1"> <meta name="viewport" content="width=device-width,user-scalable=no,initial-scale=1,maximum-scale=1,minimum-scale=1">
<title>甄味馆</title> <title>商城</title>
<meta name="Copyright" content="helang"> <meta name="Copyright" content="helang">
<!-- <link rel="shortcut icon" type="image/png" href="/uniapp-extend/static/logo.png"> --> <!-- <link rel="shortcut icon" type="image/png" href="/uniapp-extend/static/logo.png"> -->
<meta name="keywords" content="甄味馆"> <meta name="keywords" content="商城">
<meta name="description" content="甄味馆"> <meta name="description" content="商城">
<style type="text/css"> <style type="text/css">
body { body {
margin: 0; margin: 0;

Loading…
Cancel
Save