1.修改话费充值问题

master
杨杰 2 years ago
parent 56669d0b47
commit 540f485ed0
  1. 32
      high-unionPay/App.vue
  2. 33
      high-unionPay/pages/unionPay/recharge-centre/recharge-centre.vue

@ -5,23 +5,23 @@
// brestUrl: 'http://192.168.3.4:9302/brest', // brestUrl: 'http://192.168.3.4:9302/brest',
// imgUrl: 'https://192.168.3.4:9301/filesystem/', // imgUrl: 'https://192.168.3.4:9301/filesystem/',
// //
// url: 'https://hsg.dctpay.com/crest', url: 'https://hsg.dctpay.com/crest',
// v1url:'https://hsg.dctpay.com/v1', v1url:'https://hsg.dctpay.com/v1',
// orderurl:' https://hsg.dctpay.com/order', orderurl:' https://hsg.dctpay.com/order',
// userurl:'https://hsg.dctpay.com/user', userurl:'https://hsg.dctpay.com/user',
// imgUrl: 'https://hsg.dctpay.com/filesystem/', imgUrl: 'https://hsg.dctpay.com/filesystem/',
// brestUrl: 'https://hsg.dctpay.com/brest', brestUrl: 'https://hsg.dctpay.com/brest',
// imageWxImg: 'https://hsg.dctpay.com/filesystem/wxApplets/', imageWxImg: 'https://hsg.dctpay.com/filesystem/wxApplets/',
// imageqrImg: 'https://hsg.dctpay.com/filesystem/temporary/', imageqrImg: 'https://hsg.dctpay.com/filesystem/temporary/',
// //
url: 'https://hsgcs.dctpay.com/crest', // url: 'https://hsgcs.dctpay.com/crest',
v1url: 'https://hsgcs.dctpay.com/v1', // v1url: 'https://hsgcs.dctpay.com/v1',
orderurl:'https://hsgcs.dctpay.com/order', // orderurl:'https://hsgcs.dctpay.com/order',
userurl:'https://hsgcs.dctpay.com/user', // userurl:'https://hsgcs.dctpay.com/user',
brestUrl: 'https://hsgcs.dctpay.com/brest', // brestUrl: 'https://hsgcs.dctpay.com/brest',
imgUrl: 'https://hsgcs.dctpay.com/filesystem/', // imgUrl: 'https://hsgcs.dctpay.com/filesystem/',
imageWxImg: 'https://hsgcs.dctpay.com/filesystem/wxApplets/', // imageWxImg: 'https://hsgcs.dctpay.com/filesystem/wxApplets/',
imageqrImg: 'https://hsgcs.dctpay.com/filesystem/temporary/', // imageqrImg: 'https://hsgcs.dctpay.com/filesystem/temporary/',
userInfo: "", userInfo: "",
brestUserInfo: '', brestUserInfo: '',
openId: '', openId: '',

@ -63,9 +63,10 @@
</swiper> </swiper>
</view> </view>
<view class="width90 height40 backcor008 font16 fcorfff fotct border-r" @click="addOrderPay()">¥ <view class="width90 height50 backcor008 font18 fcorfff fotct border-r" @click="addOrderPay()">
{{inputAmount}} <text v-if="inputAmount">¥</text>
立即充值 {{inputAmount}}
立即充值
</view> </view>
<view class="width100 height40"></view> <view class="width100 height40"></view>
</view> </view>
@ -117,13 +118,13 @@
notice: '', // notice: '', //
textcont: '', // textcont: '', //
explainReceiptTime: '', // explainReceiptTime: '', //
time: 0, time: 20,
// //
scrollIntoView: 0, // scrollIntoView: 0, //
swiperTabList: [], // swiperTabList: [], //
swiperTabIdx: 0, swiperTabIdx: 0,
swiperCurrentSize: '26rpx', // swiperCurrentSize: '30rpx', //
swiperColor: '#333333', // swiperColor: '#333333', //
swiperCurrentColor: '#1D63FF', // swiperCurrentColor: '#1D63FF', //
currentSwiperWidth: '23%', // % upx rpx px currentSwiperWidth: '23%', // % upx rpx px
@ -146,17 +147,17 @@
this.findSecConfigByTypewap(); this.findSecConfigByTypewap();
}, },
mounted() { mounted() {
let scroll_width = 0; // let scroll_width = 0;
const query = uni.createSelectorQuery().in(this); // const query = uni.createSelectorQuery().in(this);
query.select('.right-left-scroll').boundingClientRect(data => { // query.select('.right-left-scroll').boundingClientRect(data => {
scroll_width = (data.width).toFixed(2); // scroll_width = (data.width).toFixed(2);
}).exec(); // }).exec();
query.select('.right-left-scroll .content').boundingClientRect(data => { // query.select('.right-left-scroll .content').boundingClientRect(data => {
if (data.width - scroll_width > 0) { // if (data.width - scroll_width > 0) {
this.time = (9 * data.width / scroll_width).toFixed(2); // this.time = (9 * data.width / scroll_width).toFixed(2);
} // }
}).exec(); // }).exec();
}, },
methods: { methods: {
// //

Loading…
Cancel
Save