Commit efad2da2 authored by 黄奎's avatar 黄奎

Merge branch 'master' of http://gitlab.oytour.com/viitto/mallapp

parents 67bbd98d 02f57ae5
...@@ -119,17 +119,23 @@ export default { ...@@ -119,17 +119,23 @@ export default {
"paySign": payData.paySign, //微信签名 "paySign": payData.paySign, //微信签名
'success':function(res){ 'success':function(res){
uni.hideLoading() uni.hideLoading()
uni.showToast({ uni.navigateTo({
title:'支付成功' url: '/pages/order-submit/pay-success?payInfo='+JSON.stringify(that.payInfo)
}) });
// uni.showToast({
// title:'支付成功'
// })
}, },
'fail':function(res){ 'fail':function(res){
uni.hideLoading() uni.hideLoading()
uni.navigateTo({
url: '/pages/order/index/index?status=1'
});
}, },
'complete':function(res){ 'complete':function(res){
uni.showToast({ // uni.showToast({
title:res.errMsg // title:res.errMsg
}) // })
} }
}) })
}, },
......
...@@ -331,7 +331,7 @@ ...@@ -331,7 +331,7 @@
}, },
data() { data() {
return { return {
isAlipay: 2, isAlipay: 2,//1微信 2微信支付宝
JJSWStuId: "", JJSWStuId: "",
Thename2: '', Thename2: '',
u: {}, u: {},
......
...@@ -95,7 +95,8 @@ ...@@ -95,7 +95,8 @@
:border-radius="20"></u-modal> :border-radius="20"></u-modal>
<good-list :list="goodData" v-if="showGoodList" @close="closeGoodListHandler"></good-list> <good-list :list="goodData" v-if="showGoodList" @close="closeGoodListHandler"></good-list>
<auth v-if="showAuth" @changeuserinfo="reloadUserinfo" @gbAuth='goback'></auth> <auth v-if="showAuth" @changeuserinfo="reloadUserinfo" @gbAuth='goback'></auth>
<payCom v-if="payBtn" :payInfo="payInfo" @closePay="closePay"></payCom> <payCom v-if="payBtn&&u.TenantId!=27" :payInfo="payInfo" @closePay="closePay"></payCom>
<submit2PayCom v-if="payBtn&&u.TenantId==27" :payInfo="payInfo" :isAlipay="isAlipay" @closePay="closePay"></submit2PayCom>
<u-popup v-model="payExit" mode="center" :mask-close-able="false"> <u-popup v-model="payExit" mode="center" :mask-close-able="false">
<view style="background:#fff;width:500rpx"> <view style="background:#fff;width:500rpx">
<view style="padding:10px 0 0 10px">提交失败</view> <view style="padding:10px 0 0 10px">提交失败</view>
...@@ -110,16 +111,19 @@ ...@@ -110,16 +111,19 @@
<script> <script>
import payCom from '@/components/pay/pay'; import payCom from '@/components/pay/pay';
import submit2PayCom from '@/components/pay/submit2Pay';
import goodList from "@/components/goods/order-good-list2"; import goodList from "@/components/goods/order-good-list2";
import auth from "../../../components/auth/index.vue"; import auth from "../../../components/auth/index.vue";
export default { export default {
components: { components: {
goodList, goodList,
auth, auth,
payCom payCom,
submit2PayCom
}, },
data() { data() {
return { return {
isAlipay:2,//1微信 2微信支付宝
pageTitle: "我的订单", pageTitle: "我的订单",
current: 0, current: 0,
list: [], list: [],
......
...@@ -241,7 +241,8 @@ ...@@ -241,7 +241,8 @@
<u-modal v-model="showReviceModal" content="是否确认收货?" :show-cancel-button="true" :show-title="false" <u-modal v-model="showReviceModal" content="是否确认收货?" :show-cancel-button="true" :show-title="false"
@confirm="submitReviceGoodHandler" :border-radius="20"></u-modal> @confirm="submitReviceGoodHandler" :border-radius="20"></u-modal>
<u-toast ref="uToast" /> <u-toast ref="uToast" />
<payCom v-if="payBtn" :payInfo="payInfo" @closePay="closePay"></payCom> <payCom v-if="payBtn&&u.TenantId!=27" :payInfo="payInfo" @closePay="closePay"></payCom>
<submit2PayCom v-if="payBtn&&u.TenantId==27" :payInfo="payInfo" :isAlipay="isAlipay" @closePay="closePay"></submit2PayCom>
<u-popup v-model="payExit" mode="center" :mask-close-able="false"> <u-popup v-model="payExit" mode="center" :mask-close-able="false">
<view style="background:#fff;width:500rpx"> <view style="background:#fff;width:500rpx">
<view style="padding:10px 0 0 10px">提交失败</view> <view style="padding:10px 0 0 10px">提交失败</view>
...@@ -257,16 +258,19 @@ ...@@ -257,16 +258,19 @@
<script> <script>
import payCom from '@/components/pay/pay'; import payCom from '@/components/pay/pay';
import submit2PayCom from '@/components/pay/submit2Pay';
import afterSale from "@/components/userorder/after-sale"; import afterSale from "@/components/userorder/after-sale";
import goodlist from "@/components/goods/list"; import goodlist from "@/components/goods/list";
export default { export default {
components: { components: {
afterSale, afterSale,
goodlist, goodlist,
payCom payCom,
submit2PayCom
}, },
data() { data() {
return { return {
isAlipay:2,//1微信 2微信支付宝
u:{}, u:{},
mc: "", mc: "",
secondary: "", secondary: "",
......
...@@ -790,7 +790,7 @@ ...@@ -790,7 +790,7 @@
this.getComponyStatus() this.getComponyStatus()
let currentPages = getCurrentPages(); let currentPages = getCurrentPages();
let c = this.$uiConfig.is_bang ? 80 : 52; let c = this.$uiConfig.is_bang ? 80 : 52;
this.bottommargin = c + 10 + 'px'; // this.bottommargin = c + 10 + 'px';
this.listbottom = c - 2 + 50 + 'px'; this.listbottom = c - 2 + 50 + 'px';
this.contentHeight = this.$utils.calcContentHeight(c); this.contentHeight = this.$utils.calcContentHeight(c);
if (this.contentHeight > 690 && this.contentHeight < 776) { if (this.contentHeight > 690 && this.contentHeight < 776) {
...@@ -807,6 +807,14 @@ ...@@ -807,6 +807,14 @@
uni.setNavigationBarTitle({ uni.setNavigationBarTitle({
title: '用户中心' title: '用户中心'
}); });
let that=this
wx.getSystemInfo({
success(res) {
let lift=res.screenHeight-res.safeArea.bottom
that.bottommargin = (Number(lift)+80)+'px'
console.log(lift)
}
})
}, },
onShow() { onShow() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment