Browse Source

优化

master
邓平艺 4 years ago
parent
commit
285395cde3
  1. 4
      components/index-banner/index-banner.vue
  2. 9
      components/lf-payPassword/lf-payPassword.vue
  3. 7
      pages/order/cashier/cashier.vue
  4. 4
      pages/order/confirm/confirm.vue
  5. 14
      pages/shop/goodsdetail.vue

4
components/index-banner/index-banner.vue

@ -14,7 +14,7 @@
:style=" :style="
'height: ' + 'height: ' +
imgHeight + imgHeight +
'px; padding-left: ' +
'rpx; padding-left: ' +
meta.padding_left + meta.padding_left +
'px; padding-right: ' + 'px; padding-right: ' +
meta.padding_right + meta.padding_right +
@ -41,7 +41,7 @@ export default {
// data // data
data() { data() {
return { return {
imgHeight: '450'
imgHeight: 900
}; };
}, },
options: { options: {

9
components/lf-payPassword/lf-payPassword.vue

@ -50,7 +50,8 @@
data(){ data(){
return { return {
code: '', // code: '', //
time: new Date('2021/09/8 14:15:00').getTime() - new Date('2021/09/8 14:10:00').getTime()
time: new Date('2021/09/8 14:15:00').getTime() - new Date('2021/09/8 14:10:00').getTime(),
is_auto: false
} }
}, },
created(){ created(){
@ -64,12 +65,18 @@
this.code = event; this.code = event;
if(this.code.length >= 6){ if(this.code.length >= 6){
this.comfirm(); this.comfirm();
this.is_auto = true;
}else{
this.is_auto = false;
} }
}, },
comfirm(){ comfirm(){
if(this.code.length < 6){ if(this.code.length < 6){
return this.$msg('请输入完整支付密码'); return this.$msg('请输入完整支付密码');
} }
if(this.is_auto){
return;
}
this.$emit('comfirm', this.code); this.$emit('comfirm', this.code);
} }
} }

7
pages/order/cashier/cashier.vue

@ -129,7 +129,7 @@
this.confirm(); this.confirm();
}, },
// //
confirm() {
confirm(event) {
if (this.clickContinue == true) { if (this.clickContinue == true) {
this.clickContinue = false; this.clickContinue = false;
if (this.is_date_finish) return this.$msg('订单超时未支付'); if (this.is_date_finish) return this.$msg('订单超时未支付');
@ -143,6 +143,9 @@
this.show_pw = true; this.show_pw = true;
return; return;
} }
uni.showLoading({
title: '正在支付,请稍后'
})
this.getOpenid().then(res => { this.getOpenid().then(res => {
var data = { var data = {
@ -164,6 +167,7 @@
Authorization: this.token Authorization: this.token
} }
}).then(res => { }).then(res => {
uni.hideLoading()
res = res.data; res = res.data;
if (res.status) { if (res.status) {
// this.formId = e.detail.formId || ''; // this.formId = e.detail.formId || '';
@ -184,6 +188,7 @@
this.setData({ this.setData({
loading: false loading: false
}); });
uni.hideLoading()
wx.showModal({ wx.showModal({
content: '支付失败', content: '支付失败',
showCancel: false showCancel: false

4
pages/order/confirm/confirm.vue

@ -144,6 +144,7 @@
</radio-group> </radio-group>
<view>不使用优惠券</view> <view>不使用优惠券</view>
</label> </label>
<view style="height: 40rpx;"></view>
</view> </view>
</u-popup> </u-popup>
</block> </block>
@ -489,9 +490,10 @@
width: 750rpx; width: 750rpx;
height: max-content; height: max-content;
max-height: 70vh; max-height: 70vh;
overflow-y: scroll;
// overflow-y: scroll;
padding: 40rpx 32rpx; padding: 40rpx 32rpx;
background: #FFFFFF; background: #FFFFFF;
padding-bottom: 0rpx;
} }
.coupon-circle1 { .coupon-circle1 {
width: 40rpx; width: 40rpx;

14
pages/shop/goodsdetail.vue

@ -63,15 +63,15 @@
<view class="cu-bar padding-lr"> <view class="cu-bar padding-lr">
<view class="lf-flex"> <view class="lf-flex">
<text class="lf-color-777 lf-font-28">优惠</text> <text class="lf-color-777 lf-font-28">优惠</text>
<view style="width: 580rpx;">
<view class="lf-color-222 lf-font-26 lf-m-l-30"
v-for="(item, index) in coupons" :key="index">{{ item.title }}
</view>
<view style="width: 580rpx; padding-left: 20rpx;">
<text class="lf-color-222 lf-font-26"
v-for="(item, index) in coupons" :key="index">{{ item.title }};
</text>
</view> </view>
</view> </view>
<view>
<!-- <view>
<text class="lf-font-24 lf-color-777 lf-iconfont icon-xiangyou"></text> <text class="lf-font-24 lf-color-777 lf-iconfont icon-xiangyou"></text>
</view>
</view> -->
</view> </view>
</view> </view>
</block> </block>
@ -1001,6 +1001,7 @@
padding: 0; padding: 0;
width: 88rpx; width: 88rpx;
position: relative; position: relative;
color: #555555;
&:first-child{ &:first-child{
padding-left: 0; padding-left: 0;
} }
@ -1009,6 +1010,7 @@
width: 50rpx; width: 50rpx;
font-size: 40rpx; font-size: 40rpx;
line-height: 1; line-height: 1;
color: #555555;
} }
} }
.btn1{ .btn1{

Loading…
Cancel
Save