更新
This commit is contained in:
@@ -59,7 +59,7 @@
|
|||||||
<button class="cu-btn margin-top round lg" @tap="refuseEmpower">
|
<button class="cu-btn margin-top round lg" @tap="refuseEmpower">
|
||||||
输入手机号码登录
|
输入手机号码登录
|
||||||
</button>
|
</button>
|
||||||
<button class="cu-btn margin-top bg-0 round lg" @tap="refuseLogin">
|
<button v-if="isShow" class="cu-btn margin-top bg-0 round lg" @tap="refuseLogin">
|
||||||
跳过
|
跳过
|
||||||
</button>
|
</button>
|
||||||
</view>
|
</view>
|
||||||
@@ -95,7 +95,8 @@
|
|||||||
loginRes: {},
|
loginRes: {},
|
||||||
sessionKey: '',
|
sessionKey: '',
|
||||||
nickName: '',
|
nickName: '',
|
||||||
loginOut: uni.getStorageSync('loginOut') ? true : false
|
loginOut: uni.getStorageSync('loginOut') ? true : false,
|
||||||
|
isShow:true
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
onLoad(option) {
|
onLoad(option) {
|
||||||
@@ -134,7 +135,10 @@
|
|||||||
let siteId = uni.getStorageSync('siteId')
|
let siteId = uni.getStorageSync('siteId')
|
||||||
uni.clearStorageSync();
|
uni.clearStorageSync();
|
||||||
if(isJump) uni.setStorageSync('isJump',isJump)
|
if(isJump) uni.setStorageSync('isJump',isJump)
|
||||||
if(siteId) uni.setStorageSync('siteId',siteId)
|
if(siteId) {
|
||||||
|
this.isShow = false
|
||||||
|
uni.setStorageSync('siteId',siteId)
|
||||||
|
}
|
||||||
this.refreshLocation()
|
this.refreshLocation()
|
||||||
let _that = this
|
let _that = this
|
||||||
uni.login({
|
uni.login({
|
||||||
|
|||||||
@@ -5,7 +5,7 @@
|
|||||||
<block slot="backText">返回</block>
|
<block slot="backText">返回</block>
|
||||||
</cu-custom> -->
|
</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'">
|
<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>
|
</image>
|
||||||
<view class="cu-list menu margin padding-sm radius my-shadow bg-white yu-card-xuan">
|
<view class="cu-list menu margin padding-sm radius my-shadow bg-white yu-card-xuan">
|
||||||
<view class="cu-item ">
|
<view class="cu-item ">
|
||||||
@@ -164,7 +164,7 @@
|
|||||||
<text class="showtext">当前油站距离您较远,请与加油员确认您选择的油站是否正确。</text>
|
<text class="showtext">当前油站距离您较远,请与加油员确认您选择的油站是否正确。</text>
|
||||||
</view>
|
</view>
|
||||||
<view class="checklocation_box_button">
|
<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>
|
||||||
<view class="cu-tn btn-box" @tap="gotoPay">
|
<view class="cu-tn btn-box" @tap="gotoPay">
|
||||||
@@ -210,7 +210,8 @@
|
|||||||
secondChannelCode: '',
|
secondChannelCode: '',
|
||||||
ureaNum:false,
|
ureaNum:false,
|
||||||
ureaproductType:'',
|
ureaproductType:'',
|
||||||
areaPrice:''
|
areaPrice:'',
|
||||||
|
isShow:true
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
onHide() {
|
onHide() {
|
||||||
@@ -218,10 +219,11 @@
|
|||||||
},
|
},
|
||||||
onLoad(option) {
|
onLoad(option) {
|
||||||
// let siteId = uni.getStorageSync('siteId') ||
|
// let siteId = uni.getStorageSync('siteId') ||
|
||||||
if(option.siteId) {
|
if(option.siteId && !option.customerJump) {
|
||||||
uni.setStorageSync('siteId',siteId)
|
this.isShow = false
|
||||||
this.siteId = siteId
|
this.siteId = option.siteId
|
||||||
this.getSiteInfo(siteId)
|
this.getSiteInfo(option.siteId)
|
||||||
|
uni.setStorageSync('siteId',option.siteId)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
// console.log(option)
|
// console.log(option)
|
||||||
@@ -232,8 +234,7 @@
|
|||||||
// let obj = option.item,
|
// let obj = option.item,
|
||||||
// var oilItem = JSON.parse(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'){
|
// if(oilItem.secondChannelCode === 'SQ'){
|
||||||
// oilItem.listTag = oilItem.sqSiteBelong === 'JKJY' ? '集卡加油' :'上汽联名卡'
|
// oilItem.listTag = oilItem.sqSiteBelong === 'JKJY' ? '集卡加油' :'上汽联名卡'
|
||||||
// }
|
// }
|
||||||
@@ -544,6 +545,7 @@
|
|||||||
text-align: center;
|
text-align: center;
|
||||||
}
|
}
|
||||||
.red_btn{
|
.red_btn{
|
||||||
|
margin-right: 20rpx;
|
||||||
color: #FFFFFF;
|
color: #FFFFFF;
|
||||||
background-color: #FF6700;
|
background-color: #FF6700;
|
||||||
}
|
}
|
||||||
@@ -565,8 +567,8 @@
|
|||||||
}
|
}
|
||||||
.checklocation_box_button{
|
.checklocation_box_button{
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: space-between;
|
justify-content: center;
|
||||||
align-items: center;
|
/* align-items: center; */
|
||||||
padding: 0 5%;
|
padding: 0 5%;
|
||||||
}
|
}
|
||||||
.btn-box{
|
.btn-box{
|
||||||
|
|||||||
@@ -180,9 +180,9 @@
|
|||||||
tkiQrcode
|
tkiQrcode
|
||||||
},
|
},
|
||||||
onLoad(option) {
|
onLoad(option) {
|
||||||
console.log('进入siteQr',option)
|
// console.log('进入siteQr',option)
|
||||||
let oilItem = uni.getStorageSync('oilItem')
|
let oilItem = uni.getStorageSync('oilItem')
|
||||||
console.log(oilItem)
|
// console.log(oilItem)
|
||||||
this.showtitles = oilItem.listTag
|
this.showtitles = oilItem.listTag
|
||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
@@ -236,7 +236,7 @@
|
|||||||
cards() {
|
cards() {
|
||||||
if (this.cardList.length) {
|
if (this.cardList.length) {
|
||||||
let cards = []
|
let cards = []
|
||||||
console.log(this.cardList,'---------------------')
|
// console.log(this.cardList,'---------------------')
|
||||||
this.cardList.forEach((e) => {
|
this.cardList.forEach((e) => {
|
||||||
// cards.push(e.accountCardCode)
|
// cards.push(e.accountCardCode)
|
||||||
e.companyName = e.companyName + '('+( e.companyType==0?`柴油账户:${e.balance}元`:e.companyType==1?`汽油账户:${e.balance}元`:e.companyType==2?`LNG账户:${e.balance}元`:`尿素:${e.balance}元`) + ')'
|
e.companyName = e.companyName + '('+( e.companyType==0?`柴油账户:${e.balance}元`:e.companyType==1?`汽油账户:${e.balance}元`:e.companyType==2?`LNG账户:${e.balance}元`:`尿素:${e.balance}元`) + ')'
|
||||||
@@ -255,7 +255,7 @@
|
|||||||
this.otherUser = 'kl'
|
this.otherUser = 'kl'
|
||||||
}
|
}
|
||||||
this.otherUserInfo = otherUserInfo
|
this.otherUserInfo = otherUserInfo
|
||||||
console.log('+++++',option)
|
// console.log('+++++',option)
|
||||||
this.showtitles = oilItem.listTag
|
this.showtitles = oilItem.listTag
|
||||||
this.siteId = option.siteId
|
this.siteId = option.siteId
|
||||||
this.activeChannelCode = option.activeChannelCode
|
this.activeChannelCode = option.activeChannelCode
|
||||||
@@ -284,11 +284,11 @@
|
|||||||
oilCardNature: activeCard.oilCardType, //类型:String 必有字段 备注:油卡性质
|
oilCardNature: activeCard.oilCardType, //类型:String 必有字段 备注:油卡性质
|
||||||
accountCardCode: activeCard.accountCardCode //类型:String 必有字段 备注:油卡卡号
|
accountCardCode: activeCard.accountCardCode //类型:String 必有字段 备注:油卡卡号
|
||||||
}
|
}
|
||||||
console.log('这里是二维码参数',data2)
|
// console.log('这里是二维码参数',data2)
|
||||||
qrApi.getOilQrCode(data2).then(res => {
|
qrApi.getOilQrCode(data2).then(res => {
|
||||||
console.log('这里是二维码返回处+',res,'+')
|
// console.log('这里是二维码返回处+',res,'+')
|
||||||
if (res.code === 20000) {
|
if (res.code === 20000) {
|
||||||
console.log(res.data)
|
// console.log(res.data)
|
||||||
// console.log(this.otherUser,'++++++++++++++++++++')
|
// console.log(this.otherUser,'++++++++++++++++++++')
|
||||||
// if(this.otherUser = 'kl'){
|
// if(this.otherUser = 'kl'){
|
||||||
// this.val = res.data.codeStr+"&"+this.otherUser
|
// this.val = res.data.codeStr+"&"+this.otherUser
|
||||||
@@ -313,8 +313,8 @@
|
|||||||
})
|
})
|
||||||
},
|
},
|
||||||
getUserCard() {
|
getUserCard() {
|
||||||
console.log('%c look that ↓','color:red;font-size:50px')
|
// console.log('%c look that ↓','color:red;font-size:50px')
|
||||||
console.log(uni.getStorageSync('oilItem'),'*-*-*-*-')
|
// console.log(uni.getStorageSync('oilItem'),'*-*-*-*-')
|
||||||
accountApi.getNewUserAccount({siteId:uni.getStorageSync('oilItem').siteId}).then(res => {
|
accountApi.getNewUserAccount({siteId:uni.getStorageSync('oilItem').siteId}).then(res => {
|
||||||
if (res.code == 20000) {
|
if (res.code == 20000) {
|
||||||
this.cardList = res.data
|
this.cardList = res.data
|
||||||
@@ -326,7 +326,7 @@
|
|||||||
},
|
},
|
||||||
toSiteDetail(id) {
|
toSiteDetail(id) {
|
||||||
uni.redirectTo({
|
uni.redirectTo({
|
||||||
url: `/BagStation/pages/stationDetail/stationDetail?siteId=${id}`,
|
url: `/BagStation/pages/stationDetail/stationDetail?siteId=${id}&customerJump=false`,
|
||||||
fail: (err) => {
|
fail: (err) => {
|
||||||
// console.log(err)
|
// console.log(err)
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -294,7 +294,7 @@ export default {
|
|||||||
},
|
},
|
||||||
toDetail(id) {
|
toDetail(id) {
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
url: `/BagStation/pages/stationDetail/stationDetail?siteId=${id}`,
|
url: `/BagStation/pages/stationDetail/stationDetail?siteId=${id}&customerJump=false`,
|
||||||
fail: (err) => {
|
fail: (err) => {
|
||||||
// // console.log(err)
|
// // console.log(err)
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -110,7 +110,7 @@
|
|||||||
},
|
},
|
||||||
toDetail() {
|
toDetail() {
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
url: `/BagStation/pages/stationDetail/stationDetail?siteId=${this.siteId}`,
|
url: `/BagStation/pages/stationDetail/stationDetail?siteId=${this.siteId}&customerJump=false`,
|
||||||
fail: (err) => {
|
fail: (err) => {
|
||||||
// console.log(err)
|
// console.log(err)
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user