Browse Source

样式优化 支付跳转逻辑修改

test
Enzo 5 years ago
parent
commit
5070148400
  1. 4
      common/http.js
  2. 2
      common/uploadFile.js
  3. 2
      manifest.json
  4. 3
      pages/index/index.vue
  5. 26
      pages/order/confirm_atonce.vue
  6. 4
      pages/order/confirm_order.vue
  7. 2
      pages/recommList/index.vue

4
common/http.js

@ -93,9 +93,9 @@ function $http(url, data = {}, options = {}){
var accountInfo = wx.getAccountInfoSync(); var accountInfo = wx.getAccountInfoSync();
var autoappid = accountInfo.miniProgram.appId; var autoappid = accountInfo.miniProgram.appId;
options.appid = autoappid || 'wxeb58570b5e04d147';
console.log('当前自动获取的aapid',autoappid)
console.log('请求',options.appid)
options.appid = autoappid || 'wxeb58570b5e04d147';
let user_info = uni.getStorageSync('userinfo') let user_info = uni.getStorageSync('userinfo')
let user_token = user_info.token let user_token = user_info.token

2
common/uploadFile.js

@ -34,8 +34,6 @@ const uploadFile = function (filePath, successc, failc) {
var autoappid = accountInfo.miniProgram.appId; var autoappid = accountInfo.miniProgram.appId;
var uploadappid = autoappid || 'wxeb58570b5e04d147'; var uploadappid = autoappid || 'wxeb58570b5e04d147';
console.log('上次',uploadappid)
uni.uploadFile({ uni.uploadFile({
url: url + url_a,//开发者服务器 url url: url + url_a,//开发者服务器 url

2
manifest.json

@ -50,7 +50,7 @@
"quickapp" : {}, "quickapp" : {},
/* */ /* */
"mp-weixin" : { "mp-weixin" : {
"appid" : "wxeb58570b5e04d147",
"appid" : "wxb35ef055a4dd8ad4",
"setting" : { "setting" : {
"urlCheck" : false, "urlCheck" : false,
"es6" : false, "es6" : false,

3
pages/index/index.vue

@ -322,7 +322,7 @@
content: ''; content: '';
position: absolute; position: absolute;
z-index: 1; z-index: 1;
// background: rgba(0, 0, 0, 0.5);
background: rgba(0, 0, 0, 0.3);
top: 0; top: 0;
left: 0; left: 0;
} }
@ -362,7 +362,6 @@
// height: 142rpx; // height: 142rpx;
height: max-content; height: max-content;
width: 100%; width: 100%;
background-color: rgba(0,0,0,0.65);
box-sizing: border-box; box-sizing: border-box;
padding: 15rpx; padding: 15rpx;
position: absolute; position: absolute;

26
pages/order/confirm_atonce.vue

@ -1,4 +1,6 @@
<template></template>
<template>
<view></view>
</template>
<script> <script>
export default { export default {
@ -37,19 +39,17 @@
}).then(res => { }).then(res => {
uni.setStorageSync('userinfo', res.data); uni.setStorageSync('userinfo', res.data);
that.userInfo = JSON.stringify(res.data) that.userInfo = JSON.stringify(res.data)
if(res.data) {
uni.showModal({
title: '支付提示',
content: '确认支付吗?',
confirmColor: '#1998FE',
showCancel: false,
success(res2) {
if (res2.confirm) {
that.payOnce();
}
uni.showModal({
title: '支付提示',
content: '确认支付吗?',
confirmColor: '#1998FE',
showCancel: false,
success(res2) {
if (res2.confirm) {
that.payOnce();
} }
});
}
}
});
}) })
} }
} }

4
pages/order/confirm_order.vue

@ -148,7 +148,9 @@
that.$url('/pages/payState/paystate?ifSuccess=2&order_id='+that.pay_order_id,{type: 'redirect'}) that.$url('/pages/payState/paystate?ifSuccess=2&order_id='+that.pay_order_id,{type: 'redirect'})
} }
}) })
},
onUnload() {
uni.$off('payState');
}, },
methods: { methods: {
payStatus(type) { payStatus(type) {

2
pages/recommList/index.vue

@ -4,7 +4,7 @@
<u-tabs :list="tab_list" :is-scroll="true" :current="current" @change="tabChange"></u-tabs> <u-tabs :list="tab_list" :is-scroll="true" :current="current" @change="tabChange"></u-tabs>
</view> </view>
<lf-nocontent v-else></lf-nocontent> <lf-nocontent v-else></lf-nocontent>
<swiper :style="{height: 'calc('+ windowHeight +'px - 60rpx)', width: '750rpx'}" :current="current" @change="swiperChange">
<swiper :style="{height: 'calc('+ windowHeight +'px - 60rpx)', width: '750rpx', padding: '0 0 86rpx 0'}" :current="current" @change="swiperChange">
<swiper-item v-for="(tabItem, tabIndex) in tab_list" :key="tabIndex"> <swiper-item v-for="(tabItem, tabIndex) in tab_list" :key="tabIndex">
<scroll-view class="com" :scroll-y="true" :refresher-enabled="true" :refresher-triggered="tabItem.isRefresher" @scrolltolower="onScrolltolower" @refresherrefresh="onRefresherrefresh"> <scroll-view class="com" :scroll-y="true" :refresher-enabled="true" :refresher-triggered="tabItem.isRefresher" @scrolltolower="onScrolltolower" @refresherrefresh="onRefresherrefresh">
<view class="lf-m-t-20"></view> <view class="lf-m-t-20"></view>

Loading…
Cancel
Save