1.修改页面样式

yj-dev
杨杰 3 years ago
parent eb270bb339
commit 0fad83a61f
  1. 16
      App.vue
  2. 4
      pages.json
  3. 116
      pages/goods/coupon-details/coupon-details.vue
  4. 18
      pages/goods/goods.vue
  5. 2
      pages/order/confirmation.vue
  6. 22
      pages/pay/payment/payment.vue
  7. 6
      pages/tabBar/home/home.vue
  8. 136
      pages/user/mineCoupons/mineCoupons.vue
  9. 4
      pages/user/order_details/order_details.vue
  10. 2
      pages/user/order_list/order_list.vue

@ -5,15 +5,15 @@
// 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',
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/',
// //
// url: 'https://hsgcs.dctpay.com/crest', url: 'https://hsgcs.dctpay.com/crest',
// 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/',
userInfo: "", userInfo: "",
brestUserInfo : '', brestUserInfo : '',
openId: '', openId: '',

@ -315,6 +315,10 @@
"path": "pages/goods/coupon-details/coupon-details", "path": "pages/goods/coupon-details/coupon-details",
"style": { "style": {
"navigationBarTitleText": "卡券详情", "navigationBarTitleText": "卡券详情",
"backgroundTextStyle": "light",
"navigationBarBackgroundColor": "#0083f5",
"backgroundColorTop": "#0083f5",
"navigationBarTextStyle": "white",
"enablePullDownRefresh": false "enablePullDownRefresh": false
} }

File diff suppressed because one or more lines are too long

@ -75,7 +75,7 @@
</view> </view>
<view class="mart10 width100 font14 fcor999 height20"> <view class="mart10 width100 font14 fcor999 height20">
<view class="width70 flleft">有效期至: {{goodsData[0].salesEndTime | formatDate('-')}}</view> <view class="width70 flleft">有效期至: {{goodsData[0].salesEndTime | formatDate('-')}}</view>
<view class="width30 flright fotrt">库存 : {{goodsData[0].stockCount}}</view> <view class="width30 flright fotrt" v-if="goodsData[0].couponSource != 4">库存 : {{goodsData[0].stockCount}}</view>
</view> </view>
</view> </view>
<!-- 服务-规则选择 --> <!-- 服务-规则选择 -->
@ -369,7 +369,7 @@
}, },
buy() { buy() {
let that = this; let that = this;
if (that.goodsData[0].stockCount) { // if (that.goodsData[0].stockCount && that.goodsData[0].couponSource == 4) {
uni.showToast({ uni.showToast({
title: '提交订单...', title: '提交订单...',
icon: 'none', icon: 'none',
@ -380,13 +380,13 @@
}) })
} }
}) })
} else { // } else {
uni.showToast({ // uni.showToast({
title: '卡券数量不足', // title: '',
icon: 'none', // icon: 'none',
duration: 2000 // duration: 2000
}) // })
} // }
}, },

@ -358,7 +358,7 @@
uni.redirectTo({ uni.redirectTo({
url: '../pay/payment/payment?amount=' + res.return_data.payPrice + url: '../pay/payment/payment?amount=' + res.return_data.payPrice +
'&paytype=' + this.couponList.payType + '&orderId=' + res.return_data.id + '&paytype=' + this.couponList.payType + '&orderId=' + res.return_data.id +
'&couponId=' + this.couponId '&couponId=' + this.couponId +'&typeaout='+ res.return_data.highChildOrderList[0].ext1
}) })
} else { } else {
uni.hideLoading(); uni.hideLoading();

@ -80,7 +80,8 @@
paytype: '', // paytype: '', //
orderNo: '', orderNo: '',
user: '', user: '',
couponId: '' couponId: '',
jumpType:''
}; };
}, },
onLoad(e) { onLoad(e) {
@ -88,6 +89,7 @@
this.orderNo = e.orderId; this.orderNo = e.orderId;
this.couponId = e.couponId; this.couponId = e.couponId;
this.user = app.globalData.userInfo; this.user = app.globalData.userInfo;
this.jumpType = e.typeaout;
if (this.pryType == 1) { if (this.pryType == 1) {
this.paytype = 'wxpay'; this.paytype = 'wxpay';
} else if (this.pryType == 2) { } else if (this.pryType == 2) {
@ -139,6 +141,12 @@
uni.showToast({ uni.showToast({
title: '支付成功' title: '支付成功'
}) })
if(that.jumpType == 4){
uni.reLaunch({
url: '/pages/tabBar/user/user'
});
return;
}
uni.reLaunch({ uni.reLaunch({
url: '../success/success?id=' + that.couponId url: '../success/success?id=' + that.couponId
}); });
@ -180,6 +188,12 @@
uni.showToast({ uni.showToast({
title: '支付成功' title: '支付成功'
}) })
if(that.jumpType == 4){
uni.reLaunch({
url: '/pages/tabBar/user/user'
});
return;
}
uni.reLaunch({ uni.reLaunch({
url: '../success/success?id=' + that.couponId url: '../success/success?id=' + that.couponId
}); });
@ -235,6 +249,12 @@
uni.showToast({ uni.showToast({
title: '支付成功' title: '支付成功'
}) })
if(that.jumpType == 4){
uni.reLaunch({
url: '/pages/tabBar/user/user'
});
return;
}
uni.reLaunch({ uni.reLaunch({
url: '../success/success?id=' + that.couponId url: '../success/success?id=' + that.couponId
}); });

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

@ -397,7 +397,7 @@
uni.redirectTo({ uni.redirectTo({
url: "/pages/pay/payment/payment?amount=" + this.recinfo.payPrice + url: "/pages/pay/payment/payment?amount=" + this.recinfo.payPrice +
'&paytype=' + payTypes + '&orderId=' + this.recinfo.id + '&couponId=' + this.recinfo '&paytype=' + payTypes + '&orderId=' + this.recinfo.id + '&couponId=' + this.recinfo
.highChildOrderList[0].goodsId .highChildOrderList[0].goodsId + '&typeaout='+ this.recinfo.highChildOrderList[0].ext1
}) })
// //
@ -647,6 +647,8 @@
.money { .money {
font-size: 20px; font-size: 20px;
font-weight: 600; font-weight: 600;
display: flex;
align-items: center;
} }
} }

@ -289,7 +289,7 @@
uni.redirectTo({ uni.redirectTo({
url: "/pages/pay/payment/payment?amount=" + row.payPrice + url: "/pages/pay/payment/payment?amount=" + row.payPrice +
'&paytype=' + payTypes + '&orderId=' + row.id + '&couponId=' + this.orderList[0] '&paytype=' + payTypes + '&orderId=' + row.id + '&couponId=' + this.orderList[0]
.highChildOrderList[0].goodsId .highChildOrderList[0].goodsId + '&typeaout='+ this.orderList[0].highChildOrderList[0].ext1
}) })
} }
} }

Loading…
Cancel
Save