1.修改积分支付查询积分问题

yj-dev
杨杰 3 years ago
parent ae967e6325
commit a898343f92
  1. 2
      pages/goods/store-list/store-details.vue
  2. 21
      pages/order/confirmation.vue
  3. 26
      pages/pay/success/success.vue
  4. 14
      pages/user/order_details/order_details.vue

@ -12,7 +12,7 @@
<view class="font14 fcor666 fontwig6 text2">{{merchanList.address}}</view> <view class="font14 fcor666 fontwig6 text2">{{merchanList.address}}</view>
<view class="font14 fcor666 mart5">营业时间: 00:00-23:59 <text class="store_zp margle">站内开票</text></view> <view class="font14 fcor666 mart5">营业时间: 00:00-23:59 <text class="store_zp margle">站内开票</text></view>
</view> </view>
<view class="width20 flright mart10 fotrt" @click="seeloaction"> <view class="width20 flright mart10 fotct" @click="seeloaction">
<image mode="widthFix" style="width: 25px;height: 25px;" :src="imagewxUrl+imgadres1"> <image mode="widthFix" style="width: 25px;height: 25px;" :src="imagewxUrl+imgadres1">
</image> </image>
<view class="mart5 fcor999 font13">{{distance}}km</view> <view class="mart5 fcor999 font13">{{distance}}km</view>

@ -79,7 +79,7 @@
<view class="height50 width100 backcorfff" v-if="couponList.payType == 2 || couponList.payType==3 " <view class="height50 width100 backcorfff" v-if="couponList.payType == 2 || couponList.payType==3 "
@tap="paytype='jinbi'"> @tap="paytype='jinbi'">
<view class="width60 flleft fcor333 fontwig6 font16" style="padding-left: 4%;"> <view class="width60 flleft fcor333 fontwig6 font16" style="padding-left: 4%;">
积分支付<text class="font14 fcor666 margle">可用金币: {{user.gold}}</text> 积分支付<text class="font14 fcor666 margle">可用积分: {{user.gold}}</text>
</view> </view>
<view class="width30 flright fotrt paddtright10 font15 fontwig6 fcor666 alijun" <view class="width30 flright fotrt paddtright10 font15 fontwig6 fcor666 alijun"
style="align-items: center;"> style="align-items: center;">
@ -170,7 +170,8 @@
getUserNormalDiscountList, getUserNormalDiscountList,
bindUserPhone, bindUserPhone,
orderToPay, orderToPay,
orderToGoldPay orderToGoldPay,
findUser
} from '../../Utils/Api.js'; } from '../../Utils/Api.js';
import wybPopup from '../../components/wyb-popup/wyb-popup.vue'; import wybPopup from '../../components/wyb-popup/wyb-popup.vue';
import ssPaymentPassword from '../../components/sanshui-payment-password' import ssPaymentPassword from '../../components/sanshui-payment-password'
@ -211,12 +212,12 @@
}, },
onLoad(option) { onLoad(option) {
this.couponId = option.id; this.couponId = option.id;
this.user = app.globalData.userInfo;
this.getCouponById(); this.getCouponById();
this.getUserNormalDiscountList(); this.getUserNormalDiscountList();
}, },
onShow() { onShow() {
this.user = app.globalData.userInfo; this.user = app.globalData.userInfo;
this.findUser();
}, },
onHide() { onHide() {
@ -246,6 +247,20 @@
} }
}, },
methods: { methods: {
//
findUser() {
let params;
findUser(params).then(res => {
if (res.return_code == '000000') {
app.globalData.userInfo = res.return_data;
this.user = res.return_data;
uni.setStorage({
key: "user",
data: res.return_data
})
}
});
},
// //
getCouponById() { getCouponById() {
uni.showLoading({ uni.showLoading({

File diff suppressed because one or more lines are too long

@ -14,9 +14,9 @@
<view class="row"> <view class="row">
<view class="goods-info"> <view class="goods-info">
<view class="img"> <view class="img">
<image :src="imageUrl+rec.goodsImg" v-if="rec.goodsType == 1"></image> <image mode="widthFix" :src="imageUrl+rec.goodsImg" v-if="rec.goodsType == 1"></image>
<image :src="imagewxUrl+imgadres1" v-if="rec.goodsType == 6"></image> <image mode="widthFix" :src="imagewxUrl+imgadres1" v-if="rec.goodsType == 6"></image>
<image :src="rec.goodsImg" v-if="rec.goodsType != 1 && rec.goodsType != 6"></image> <image mode="widthFix" :src="rec.goodsImg" v-if="rec.goodsType != 1 && rec.goodsType != 6"></image>
</view> </view>
<view class="info"> <view class="info">
<view class="title">{{rec.goodsName}}</view> <view class="title">{{rec.goodsName}}</view>
@ -413,16 +413,16 @@
display: flex; display: flex;
.img { .img {
width: 22vw; width: 80px;
height: 22vw; max-height: 80px;
border-radius: 10upx; border-radius: 10upx;
overflow: hidden; overflow: hidden;
flex-shrink: 0; flex-shrink: 0;
margin-right: 10upx; margin-right: 10upx;
image { image {
width: 22vw; width: 80px;
height: 22vw; max-height: 80px;
} }
} }

Loading…
Cancel
Save