@ -8,8 +8,9 @@
< / view >
< / view >
< / view >
< / view >
< scroll -view scroll -x class = " nav text-center" >
< scroll -view scroll -x class = " nav text-center" >
< view class = "cu-item" v -for = " ( item , index ) in channelList " v -if = " index = = activeCur " : class = "index==activeCur?'text-red cur':''" :key ="item.channelId"
< view class = "cu-item" v -for = " ( item , index ) in channelList " v -if = " index = = activeCur "
@ tap = "tabSelect" : data - id = "index" : data - channel - code = "item.channelCode" >
: class = "index==activeCur?'text-red cur':''" : key = "item.channelId" @ tap = "tabSelect" : data - id = "index"
: data - channel - code = "item.channelCode" >
< image class = "site-icon margin-right-sm" :src ="imgURL+'site-'+item.channelCode+'.png'" mode = "widthFix" >
< image class = "site-icon margin-right-sm" :src ="imgURL+'site-'+item.channelCode+'.png'" mode = "widthFix" >
< / image >
< / image >
{ { item . channelCode | channelCodeFamt } }
{ { item . channelCode | channelCodeFamt } }
@ -18,16 +19,19 @@
< / s c r o l l - v i e w >
< / s c r o l l - v i e w >
< radio -group class = "block" @change ="changePrice" >
< radio -group class = "block" @change ="changePrice" >
< view class = "cu-list menu text-left" >
< view class = "cu-list menu text-left" >
< view class = "cu-item" v-for ="(itemx,index) in oilSitePriceDetailsVo" :key="index" v-if="itemx.sitePrice>0" >
< view class = "cu-item" v -for = " ( itemx , index ) in oilSitePriceDetailsVo " :key ="index"
v - if = "itemx.sitePrice>0" >
< label class = "flex justify-between align-center flex-sub" >
< label class = "flex justify-between align-center flex-sub" >
< radio class = "round red" : class = "radio=='radio' + index?'checked':''" : checked = " radio ==index?true : false" :value ="index" > < / radio >
< radio class = "round red" : class = "radio=='radio' + index?'checked':''"
: checked = " radio ==index?true : false" : value = "index" > < / radio >
< text class = "cu-tag my-tag line-red text-lg" >
< text class = "cu-tag my-tag line-red text-lg" >
惠
惠
< / text >
< / text >
< text class = "text-bold text-black text-lg" > { { itemx . oilProductCode } } < / text >
< text class = "text-bold text-black text-lg" > { { itemx . oilProductCode } } < / text >
< text class = "text-bold text-red text-lg" > ¥ { { itemx . sitePrice != 0 ? itemx . sitePrice : '-.--' } } / L < / text >
< text class = "text-bold text-red text-lg" > ¥ { { itemx . sitePrice != 0 ? itemx . sitePrice : '-.--' } } / L < / text >
< text class = "text-delete" > ¥ { { itemx . oilSitePrice } } / L < / text >
< text class = "text-delete" > ¥ { { itemx . oilSitePrice } } / L < / text >
< text class = "text-sm" > 预计每100L节省 { { ( 100 * ( itemx . oilSitePrice - itemx . sitePrice ) ) | moneyFormat } } 元 < / text >
< text
class = "text-sm" > 预计每100L节省 { { ( 100 * ( itemx . oilSitePrice - itemx . sitePrice ) ) | moneyFormat } } 元 < / text >
< / label >
< / label >
< / view >
< / view >
< / view >
< / view >
@ -39,14 +43,17 @@
< view class = "padding-top-sm" >
< view class = "padding-top-sm" >
< view class = "grid col-5 " >
< view class = "grid col-5 " >
< view v-for ="(item,index) in checkBar" class="padding-xs" :key ="index" >
< view v-for ="(item,index) in checkBar" class="padding-xs" :key ="index" >
< button class = "cu-btn red block" :class ="item.checked?'bg-red':'line-red'" @tap ="ChooseBar" :data-value ="item.value" >
< button class = "cu-btn red block" :class ="item.checked?'bg-red':'line-red'" @tap ="ChooseBar"
: data - value = "item.value" >
{ { item . name } }
{ { item . name } }
< view class = "cu-tag sm round" : class = "item.checked?'bg-white text-red':'bg-red'" v-if ="item.hot" > HOT < / view >
< view class = "cu-tag sm round" : class = "item.checked?'bg-white text-red':'bg-red'"
v - if = "item.hot" > HOT < / view >
< / button >
< / button >
< / view >
< / view >
< view class = "padding-xs" style = "width:40% ;" v-if ="activeChannelCode!='TY'" >
< view class = "padding-xs" style = "width:40% ;" v-if ="activeChannelCode!='TY'" >
< input type = "number" @input ="onInputBar" v -model = " inputBar " class = "cu-btn red block" placeholder = "其他油枪" value = "" / >
< input type = "number" @input ="onInputBar" v -model = " inputBar " class = "cu-btn red block"
placeholder = "其他油枪" value = "" / >
< / view >
< / view >
< / view >
< / view >
< / view >
< / view >
@ -96,7 +103,8 @@
油机金额
油机金额
< / view >
< / view >
< view class = "text-center" style = "width: 60%;margin: 0 2%;" >
< view class = "text-center" style = "width: 60%;margin: 0 2%;" >
< input v -model = " vol " @ input = 'checkNumber' @blur ="getMoneyVol" type = "digit" class = "block" placeholder = "请输入油机金额" value = "" style = "border-bottom: 1px solid #efefef;" / >
< input v -model = " vol " @ input = 'checkNumber' @blur ="getMoneyVol" type = "digit" class = "block"
placeholder = "请输入油机金额" value = "" style = "border-bottom: 1px solid #efefef;" / >
< / view >
< / view >
< view class = "" >
< view class = "" >
< text class = " padding-right-sm" >
< text class = " padding-right-sm" >
@ -107,9 +115,12 @@
< / view >
< / view >
< view class = "grid col-5 padding-sm" >
< view class = "grid col-5 padding-sm" >
< view v-for ="(item,index) in checkMoney" class="padding-xs" :key ="index" >
< view v-for ="(item,index) in checkMoney" class="padding-xs" :key ="index" >
< button class = "cu-btn red block" style = " padding: 0;" :class ="item.checked?'bg-red':'line-red'" @tap ="ChooseCheckMoney(item.value)" :data-value ="item.value" >
< button class = "cu-btn red block" style = " padding: 0;"
: class = "item.checked?'bg-red':'line-red'" @ tap = "ChooseCheckMoney(item.value)"
: data - value = "item.value" >
{ { item . name } } & yen ;
{ { item . name } } & yen ;
< view class = "cu-tag sm round" : class = "item.checked?'bg-white text-red':'bg-red'" v-if ="item.hot" > HOT < / view >
< view class = "cu-tag sm round" : class = "item.checked?'bg-white text-red':'bg-red'"
v - if = "item.hot" > HOT < / view >
< / button >
< / button >
< / view >
< / view >
< / view >
< / view >
@ -124,7 +135,8 @@
加油金额
加油金额
< / view >
< / view >
< view class = "text-center" >
< view class = "text-center" >
< input v -model = " ty.realMoney " @input ="onInputTyMoney" type = "digit" class = "block" placeholder = "加油金额" value = "" / >
< input v -model = " ty.realMoney " @input ="onInputTyMoney" type = "digit" class = "block"
placeholder = "加油金额" value = "" / >
< / view >
< / view >
< view class = "" >
< view class = "" >
< text class = "text-bold padding-right-sm" >
< text class = "text-bold padding-right-sm" >
@ -135,9 +147,11 @@
< / view >
< / view >
< view class = "grid col-5 padding-sm" >
< view class = "grid col-5 padding-sm" >
< view v-for ="(item,index) in checkVol" class="padding-xs" :key ="index" >
< view v-for ="(item,index) in checkVol" class="padding-xs" :key ="index" >
< button class = "cu-btn red block" :class ="item.checked?'bg-red':'line-red'" @tap ="ChooseCheckVol" :data-value ="item.value" >
< button class = "cu-btn red block" :class ="item.checked?'bg-red':'line-red'"
@ tap = "ChooseCheckVol" : data - value = "item.value" >
{ { item . name } }
{ { item . name } }
< view class = "cu-tag sm round" : class = "item.checked?'bg-white text-red':'bg-red'" v-if ="item.hot" > HOT < / view >
< view class = "cu-tag sm round" : class = "item.checked?'bg-white text-red':'bg-red'"
v - if = "item.hot" > HOT < / view >
< / button >
< / button >
< / view >
< / view >
@ -181,8 +195,10 @@
< view class = "margin cu-list pay-bar menu radius solid-top solid-bottom solid-left" >
< view class = "margin cu-list pay-bar menu radius solid-top solid-bottom solid-left" >
< view class = "cu-item " >
< view class = "cu-item " >
< view class = "" >
< view class = "" >
合计 : < text class = "text-red fr" v-if ="activeChannelCode!='TY'" > {{ realMoney > 0 ? realMoney : 'xxx.x' | moneyFormat } } < / text >
合计 : < text class = "text-red fr"
< text class = "text-red fr" v-else > {{ ty.realMoney > 0 ? ty . realMoney - tyRes . depreciateAmount : 'xxx.x' | moneyFormat } } < / text >
v - if = "activeChannelCode!='TY'" > { { realMoney > 0 ? realMoney : 'xxx.x' | moneyFormat } } < / text >
< text class = "text-red fr"
v - else > { { ty . realMoney > 0 ? ty . realMoney - tyRes . depreciateAmount : 'xxx.x' | moneyFormat } } < / text >
< / view >
< / view >
< view class = "" @tap ="showOrderMsg" >
< view class = "" @tap ="showOrderMsg" >
明细 < text class = "cuIcon-unfold padding-left-xs" > < / text >
明细 < text class = "cuIcon-unfold padding-left-xs" > < / text >
@ -238,7 +254,8 @@
< / view >
< / view >
< view class = "padding-tb-xs text-left" >
< view class = "padding-tb-xs text-left" >
直降金额 :
直降金额 :
< text class = "text-red fr" > { { tyRes . depreciateAmount > 0 ? tyRes . depreciateAmount : 'xxx.x' | moneyFormat } } < / text >
< text
class = "text-red fr" > { { tyRes . depreciateAmount > 0 ? tyRes . depreciateAmount : 'xxx.x' | moneyFormat } } < / text >
< / view >
< / view >
< / view >
< / view >
< view class = "padding-tb-xs text-left" >
< view class = "padding-tb-xs text-left" >
@ -247,7 +264,8 @@
< / view >
< / view >
< view class = "padding-tb-xs text-left" >
< view class = "padding-tb-xs text-left" >
合计 :
合计 :
< text class = "text-red fr" v-if ="activeChannelCode!='TY'" > {{ realMoney > 0 ? realMoney : 'xxx.x' | moneyFormat } } < / text >
< text class = "text-red fr"
v - if = "activeChannelCode!='TY'" > { { realMoney > 0 ? realMoney : 'xxx.x' | moneyFormat } } < / text >
< text class = "text-red fr" v-else > {{ ty.realMoney > 0 ? ty . realMoney : 'xxx.x' | moneyFormat } } < / text >
< text class = "text-red fr" v-else > {{ ty.realMoney > 0 ? ty . realMoney : 'xxx.x' | moneyFormat } } < / text >
< / view >
< / view >
< / view >
< / view >
@ -255,8 +273,10 @@
< view class = "cu-list margin pay-bar menu radius solid-top solid-bottom solid-left" >
< view class = "cu-list margin pay-bar menu radius solid-top solid-bottom solid-left" >
< view class = "cu-item " >
< view class = "cu-item " >
< view class = "" >
< view class = "" >
合计 : < text class = "text-red" v-if ="activeChannelCode!='TY'" > {{ realMoney > 0 ? realMoney : 'xxx.x' | moneyFormat } } 元 < / text >
合计 : < text class = "text-red"
< text class = "text-red" v-else > {{ ty.realMoney > 0 ? ty . realMoney - tyRes . depreciateAmount : 'xxx.x' | moneyFormat } } 元 < / text >
v - if = "activeChannelCode!='TY'" > { { realMoney > 0 ? realMoney : 'xxx.x' | moneyFormat } } 元 < / text >
< text class = "text-red"
v - else > { { ty . realMoney > 0 ? ty . realMoney - tyRes . depreciateAmount : 'xxx.x' | moneyFormat } } 元 < / text >
< / view >
< / view >
< view class = "" @tap ="showOrder=''" >
< view class = "" @tap ="showOrder=''" >
明细 < text class = "cuIcon-fold padding-left-xs" > < / text >
明细 < text class = "cuIcon-fold padding-left-xs" > < / text >
@ -285,8 +305,8 @@
< / view >
< / view >
< input type = "text" value = "" placeholder = "请选择或输入车牌号" v -model = " plateNumber " / >
< input type = "text" value = "" placeholder = "请选择或输入车牌号" v -model = " plateNumber " / >
< / view >
< / view >
< picker -view :indicator-style ="indicatorStyle" v -if = " plateNumbers.length " :value ="plateIndex" @change ="pickPlate"
< picker -view :indicator-style ="indicatorStyle" v -if = " plateNumbers.length " :value ="plateIndex"
class = "picker-view" >
@ change = "pickPlate" class = "picker-view" >
< picker -view -column >
< picker -view -column >
< view class = "item" v-for ="(item,index) in plateNumbers" :key ="index" > {{ item }} < / view >
< view class = "item" v-for ="(item,index) in plateNumbers" :key ="index" > {{ item }} < / view >
< / p i c k e r - v i e w - c o l u m n >
< / p i c k e r - v i e w - c o l u m n >
@ -435,7 +455,7 @@
checkbox : [ {
checkbox : [ {
value : 1 ,
value : 1 ,
name : '1' ,
name : '1' ,
checked : fals e,
checked : tru e,
hot : false ,
hot : false ,
} , {
} , {
value : 2 ,
value : 2 ,
@ -487,33 +507,34 @@
watch : {
watch : {
activeChannelCode : {
activeChannelCode : {
handler ( newval ) {
handler ( newval ) {
this . oilBar = ''
setTimeout ( ( ) => {
setTimeout ( ( ) => {
this . oilBar = 1
this . checkBar = this . calcBar ( )
this . checkBar = this . calcBar ( )
} , 2 )
} , 0 )
}
}
} ,
} ,
priceId : {
priceId : {
handler ( newval ) {
handler ( newval ) {
this . oilBar = ' '
/ / t h i s . o i l B a r = ' '
setTimeout ( ( ) => {
/ / s e t T i m e o u t ( ( ) = > {
this . checkBar = this . calcBar ( )
/ / t h i s . c h e c k B a r = t h i s . c a l c B a r ( )
} , 2 )
/ / } , 2 )
}
}
} ,
} ,
radio : {
radio : {
handler ( n , o ) {
handler ( n , o ) {
console . log ( n , o , 'handler' ) ;
/ / c o n s o l e . l o g ( n , o , ' h a n d l e r ' ) ;
this . checkBar . forEach ( item => {
/ / t h i s . c h e c k B a r . f o r E a c h ( i t e m = > {
item . checked = fals e
/ / i t e m . c h e c k e d = f a l s e
} ) ;
/ / } ) ;
this . oilBar = ' '
/ / t h i s . o i l B a r = ' '
}
}
}
}
} ,
} ,
computed : {
computed : {
priceId ( ) {
priceId ( ) {
if ( this . channelList . length && this . channelList [ this . activeCur ] && this . oilSitePriceDetailsVo [ this . radio ] ) {
if ( this . channelList . length && this . channelList [ this . activeCur ] && this . oilSitePriceDetailsVo [ this
. radio ] ) {
return this . oilSitePriceDetailsVo [ this . radio ] . priceId
return this . oilSitePriceDetailsVo [ this . radio ] . priceId
}
}
} ,
} ,
@ -881,14 +902,18 @@
'clientBelong' : 'BAICHUAN' ,
'clientBelong' : 'BAICHUAN' ,
"amountGun" : this . activeChannelCode == 'TY' ? this . ty . realMoney : '' ,
"amountGun" : this . activeChannelCode == 'TY' ? this . ty . realMoney : '' ,
"shareCompanyQuota" : 0 , / / 共 享 标 识
"shareCompanyQuota" : 0 , / / 共 享 标 识
"priceId" : this . oilSitePriceDetailsVo [ this . radio ] . priceId , / / 类 型 : S t r i n g 必 有 字 段 备 注 : 油 价 主 键
"priceId" : this . oilSitePriceDetailsVo [ this . radio ]
. priceId , / / 类 型 : S t r i n g 必 有 字 段 备 注 : 油 价 主 键
"orderType" : "REAL_ORDER" , / / 类 型 : S t r i n g 必 有 字 段 备 注 : 订 单 类 型 ( R E A L _ O R D E R : 真 实 订 单 V I R T U A L _ O R D E R : 虚 拟 订 单 )
"orderType" : "REAL_ORDER" , / / 类 型 : S t r i n g 必 有 字 段 备 注 : 订 单 类 型 ( R E A L _ O R D E R : 真 实 订 单 V I R T U A L _ O R D E R : 虚 拟 订 单 )
"orderSource" : "WECHAT_MINIAPPS" , / / 类 型 : S t r i n g 必 有 字 段 备 注 : 订 单 来 源 ( W E C H A T _ M I N I A P P S )
"orderSource" : "WECHAT_MINIAPPS" , / / 类 型 : S t r i n g 必 有 字 段 备 注 : 订 单 来 源 ( W E C H A T _ M I N I A P P S )
"plateNumber" : this . plateNumber ? this . plateNumber : this . plateNumberSel , / / 类 型 : S t r i n g 必 有 字 段 备 注 : 车 牌 号
"plateNumber" : this . plateNumber ? this . plateNumber : this
. plateNumberSel , / / 类 型 : S t r i n g 必 有 字 段 备 注 : 车 牌 号
"siteUserName" : this . jober , / / 类 型 : S t r i n g 必 有 字 段 备 注 : 加 油 员
"siteUserName" : this . jober , / / 类 型 : S t r i n g 必 有 字 段 备 注 : 加 油 员
"oilsBar" : this . oilBar , / / 类 型 : N u m b e r 必 有 字 段 备 注 : 油 枪
"oilsBar" : this . oilBar , / / 类 型 : N u m b e r 必 有 字 段 备 注 : 油 枪
"volume" : this . activeChannelCode == 'TY' ? this . tyRes . liter : this . vol , / / 类 型 : N u m b e r 必 有 字 段 备 注 : 加 油 升 数
"volume" : this . activeChannelCode == 'TY' ? this . tyRes . liter : this
"realPrice" : this . oilSitePriceDetailsVo [ this . radio ] . sitePrice , / / 类 型 : N u m b e r 必 有 字 段 备 注 : 实 际 加 油 价 格
. vol , / / 类 型 : N u m b e r 必 有 字 段 备 注 : 加 油 升 数
"realPrice" : this . oilSitePriceDetailsVo [ this . radio ]
. sitePrice , / / 类 型 : N u m b e r 必 有 字 段 备 注 : 实 际 加 油 价 格
"suppleMark" : 0 , / / 类 型 : N u m b e r 必 有 字 段 备 注 : 补 录 标 识 ( 0 : 实 时 订 单 1 : 补 录 订 单 )
"suppleMark" : 0 , / / 类 型 : N u m b e r 必 有 字 段 备 注 : 补 录 标 识 ( 0 : 实 时 订 单 1 : 补 录 订 单 )
"createSource" : "XOIL_DRIVER_WECHAT_APPLET" , / / 类 型 : S t r i n g 必 有 字 段 备 注 : 创 建 来 源 ( X O I L _ D R I V E R _ W E C H A T _ A P P L E T )
"createSource" : "XOIL_DRIVER_WECHAT_APPLET" , / / 类 型 : S t r i n g 必 有 字 段 备 注 : 创 建 来 源 ( X O I L _ D R I V E R _ W E C H A T _ A P P L E T )
/ / " d e v i c e I m e i " : " m o c k " , / / 类 型 : S t r i n g 可 有 字 段 备 注 : 设 备 唯 一 码
/ / " d e v i c e I m e i " : " m o c k " , / / 类 型 : S t r i n g 可 有 字 段 备 注 : 设 备 唯 一 码
@ -901,7 +926,8 @@
clearTimeout ( this . timer )
clearTimeout ( this . timer )
uni . setStorageSync ( 'orderMade' , res . data )
uni . setStorageSync ( 'orderMade' , res . data )
uni . redirectTo ( {
uni . redirectTo ( {
url : '/BagStation/pages/makeOrder/orderPaying?payMethod=' + res . data . payMethod
url : '/BagStation/pages/makeOrder/orderPaying?payMethod=' + res
. data . payMethod
} )
} )
}
}
} ) . finally ( msg => {
} ) . finally ( msg => {
@ -1031,7 +1057,8 @@
} else {
} else {
return value
return value
}
}
} }
}
}
}
}
< / script >
< / script >
@ -1065,14 +1092,17 @@
. picker - view {
. picker - view {
min - height : 300 upx ;
min - height : 300 upx ;
}
}
. close - icon {
. close - icon {
position : absolute ;
position : absolute ;
right : 2 % ;
right : 2 % ;
top : 2 % ;
top : 2 % ;
}
}
. dialog - box {
. dialog - box {
position : relative ;
position : relative ;
}
}
. site - icon {
. site - icon {
width : 2 rem ;
width : 2 rem ;
vertical - align : middle ;
vertical - align : middle ;
@ -1102,23 +1132,28 @@
. picker - view {
. picker - view {
min - height : 300 upx ;
min - height : 300 upx ;
}
}
. text - centerS {
. text - centerS {
display : flex ;
display : flex ;
justify - content : center ;
justify - content : center ;
align - items : center ;
align - items : center ;
text - align : center ;
text - align : center ;
}
}
. red _btn {
. red _btn {
color : # FFFFFF ;
color : # FFFFFF ;
background - color : # fe0505 ;
background - color : # fe0505 ;
}
}
. box - paddings {
. box - paddings {
padding : 40 rpx 0 ;
padding : 40 rpx 0 ;
}
}
. headShow {
. headShow {
font - size : 36 rpx ;
font - size : 36 rpx ;
font - weight : 600 ;
font - weight : 600 ;
}
}
. showtext {
. showtext {
line - height : 2 ;
line - height : 2 ;
font - size : 30 rpx ;
font - size : 30 rpx ;
@ -1128,12 +1163,14 @@
letter - spacing : 3 px ;
letter - spacing : 3 px ;
text - align : left ;
text - align : left ;
}
}
. checklocation _box _button {
. checklocation _box _button {
display : flex ;
display : flex ;
justify - content : space - between ;
justify - content : space - between ;
align - items : center ;
align - items : center ;
padding : 0 5 % ;
padding : 0 5 % ;
}
}
. btn - box {
. btn - box {
width : 45 % ;
width : 45 % ;
flex : 0 0 auto ;
flex : 0 0 auto ;
@ -1144,6 +1181,7 @@
box - sizing : border - box ;
box - sizing : border - box ;
border : 2 rpx solid # bfbfbf ;
border : 2 rpx solid # bfbfbf ;
}
}
. box - panding {
. box - panding {
padding : 10 0 ;
padding : 10 0 ;
}
}