This commit is contained in:
xiaozhiyong
2023-04-17 11:35:27 +08:00
parent 98af2a90fc
commit 0049dd2f2d
5 changed files with 32 additions and 26 deletions

View File

@@ -5,7 +5,7 @@
<block slot="backText">返回</block>
</cu-custom> -->
<view class="bg-img fixed-top flex align-end margin-bottom-lg " :style="'background-image: url('+imgURL+'site-bg.png '+');width: 750upx;height: 326rpx;background-size:cover'">
<image @tap="goBack" :src="imgURL+'site-back.png'" width="20upx" mode="widthFix" class="position-ab site-back">
<image v-if="isShow" @tap="goBack" :src="imgURL+'site-back.png'" width="20upx" mode="widthFix" class="position-ab site-back">
</image>
<view class="cu-list menu margin padding-sm radius my-shadow bg-white yu-card-xuan">
<view class="cu-item ">
@@ -164,7 +164,7 @@
<text class="showtext">当前油站距离您较远请与加油员确认您选择的油站是否正确</text>
</view>
<view class="checklocation_box_button">
<view class="cu-tn btn-box red_btn" @tap="backTohome">
<view v-if="isShow" class="cu-tn btn-box red_btn" @tap="backTohome">
返回油站列表
</view>
<view class="cu-tn btn-box" @tap="gotoPay">
@@ -210,7 +210,8 @@
secondChannelCode: '',
ureaNum:false,
ureaproductType:'',
areaPrice:''
areaPrice:'',
isShow:true
}
},
onHide() {
@@ -218,10 +219,11 @@
},
onLoad(option) {
// let siteId = uni.getStorageSync('siteId') ||
if(option.siteId) {
uni.setStorageSync('siteId',siteId)
this.siteId = siteId
this.getSiteInfo(siteId)
if(option.siteId && !option.customerJump) {
this.isShow = false
this.siteId = option.siteId
this.getSiteInfo(option.siteId)
uni.setStorageSync('siteId',option.siteId)
return
}
// console.log(option)
@@ -232,8 +234,7 @@
// let obj = option.item,
// var oilItem = JSON.parse(option.item)
// }
let oilItem = option.channerCode == 'TY' ? uni.getStorageSync('OtherSiteInfo') : JSON.parse(option.item)
let oilItem = option.channerCode == 'TY' ? uni.getStorageSync('OtherSiteInfo') : option.item ? JSON.parse(option.item) : {siteId:option.siteId}
// if(oilItem.secondChannelCode === 'SQ'){
// oilItem.listTag = oilItem.sqSiteBelong === 'JKJY' ? '集卡加油' :'上汽联名卡'
// }
@@ -544,6 +545,7 @@
text-align: center;
}
.red_btn{
margin-right: 20rpx;
color: #FFFFFF;
background-color: #FF6700;
}
@@ -565,8 +567,8 @@
}
.checklocation_box_button{
display: flex;
justify-content: space-between;
align-items: center;
justify-content: center;
/* align-items: center; */
padding: 0 5%;
}
.btn-box{