1.修改样式

yj-dev
杨杰 3 years ago
parent 2d199f07d9
commit 39981c15ac
  1. 16
      App.vue
  2. 14
      pages/goods/refuel-confirm/refuel-confirm.vue
  3. 36
      pages/goods/refuel-details/refuel-details.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: '',

@ -224,7 +224,7 @@
position: fixed; position: fixed;
bottom: 0upx; bottom: 0upx;
width: 100%; width: 100%;
height: 99upx; height: 100rpx;
color: #FFFFFF; color: #FFFFFF;
border-top: solid 1upx #eee; border-top: solid 1upx #eee;
background-color: #FFFFFF; background-color: #FFFFFF;
@ -232,17 +232,19 @@
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
align-items: center; align-items: center;
.reBtn { .reBtn {
width: 110px; width: 120px;
background-color: #089bf5; background-color: #089bf5;
color: #FFFFFF; color: #FFFFFF;
text-align: center; text-align: center;
padding: 0; padding: 0;
font-size: 16px; font-size: 16px;
border-radius: 22px; border-radius: 0px;
height: 40px; height: 50px;
line-height: 40px; line-height: 50px;
position: absolute;
right: 0px;
} }
} }
</style> </style>

@ -82,7 +82,8 @@
<!-- 底部按钮 --> <!-- 底部按钮 -->
<view class="footer"> <view class="footer">
<view class="flleft padleft15 font15 fcoreb5"> <view class="flleft padleft15 font15 fcoreb5">
合计: <text class="font24">{{totalPrice}}</text><text class="font12 fcor666">优惠:{{discountPrice}}</text> 合计: <text class="font24">{{totalPrice}}</text><text
class="font12 fcor666" v-if="priceVip != priceOfficial">优惠约:{{discountPrice}}</text>
</view> </view>
<!-- #ifdef MP --> <!-- #ifdef MP -->
@ -116,6 +117,7 @@
</view> </view>
</view> </view>
</wybPopup> </wybPopup>
<view class="height30"></view>
</view> </view>
</template> </template>
@ -270,10 +272,10 @@
this.inputMoney = amount.price; this.inputMoney = amount.price;
this.litre = parseFloat(amount.price / this.priceGun).toFixed(2); this.litre = parseFloat(amount.price / this.priceGun).toFixed(2);
this.totalPrice = parseFloat(amount.price / this.priceGun * this.priceVip).toFixed(2); this.totalPrice = parseFloat(amount.price / this.priceGun * this.priceVip).toFixed(2);
if(this.priceVip != this.priceGun){ if (this.priceVip != this.priceGun) {
let gbprice = parseFloat(this.litre * this.priceOfficial).toFixed(2); let gbprice = parseFloat(this.litre * this.priceOfficial).toFixed(2);
this.discountPrice = parseFloat(gbprice - this.inputMoney).toFixed(2); this.discountPrice = parseFloat(gbprice - this.inputMoney).toFixed(2);
} }
}, },
// //
getPhoneNumber(PhoneNumber) { getPhoneNumber(PhoneNumber) {
@ -306,11 +308,11 @@
}, },
// //
Listeningfocus() { Listeningfocus() {
this.litre = parseFloat(this.inputMoney / this.priceGun).toFixed(2); this.litre = parseFloat(this.inputMoney / this.priceOfficial).toFixed(2);
this.totalPrice = parseFloat(this.inputMoney / this.priceGun * this.priceVip).toFixed(2); this.totalPrice = parseFloat(this.inputMoney / this.priceOfficial * this.priceVip).toFixed(2);
if (this.priceVip != this.priceGun) { if (this.priceVip != this.priceOfficial) {
let gbprice = parseFloat(this.litre * this.priceOfficial).toFixed(2); let gbprice = parseFloat(this.litre * this.priceOfficial).toFixed(2);
this.discountPrice = parseFloat(gbprice - this.inputMoney).toFixed(2); this.discountPrice = parseFloat(gbprice - this.totalPrice).toFixed(0);
} }
}, },
toPay() { toPay() {
@ -332,7 +334,9 @@
"goodsPrice": this.inputMoney, "goodsPrice": this.inputMoney,
"gasGunNo": this.gunNo, "gasGunNo": this.gunNo,
"gasOilNo": this.gasOilNo, "gasOilNo": this.gasOilNo,
"gasOilType": this.oilType "gasOilType": this.oilType,
"gasPriceGun": this.priceOfficial,
"gasPriceVip": this.priceVip
}] }]
} }
addOrder(goods).then(res => { addOrder(goods).then(res => {
@ -472,7 +476,7 @@
position: fixed; position: fixed;
bottom: 0upx; bottom: 0upx;
width: 100%; width: 100%;
height: 99upx; height: 100rpx;
color: #FFFFFF; color: #FFFFFF;
border-top: solid 1upx #eee; border-top: solid 1upx #eee;
background-color: #FFFFFF; background-color: #FFFFFF;
@ -482,15 +486,17 @@
align-items: center; align-items: center;
.reBtn { .reBtn {
width: 90px; width: 120px;
background-color: #089bf5; background-color: #089bf5;
color: #FFFFFF; color: #FFFFFF;
text-align: center; text-align: center;
padding: 0; padding: 0;
font-size: 16px; font-size: 16px;
border-radius: 22px; border-radius: 0px;
height: 40px; height: 50px;
line-height: 40px; line-height: 50px;
position: absolute;
right: 0px;
} }
} }
</style> </style>

Loading…
Cancel
Save