bug
This commit is contained in:
parent
444cf4952d
commit
47c9ffc2d9
@ -89,19 +89,26 @@
|
|||||||
</view>
|
</view>
|
||||||
<!-- 囤油充值 -->
|
<!-- 囤油充值 -->
|
||||||
<view class="boxback" v-if="actinput == 1">
|
<view class="boxback" v-if="actinput == 1">
|
||||||
<view class="box-cz">
|
<swiper class="swiper" style="width: 100%;height: 70px;" circular
|
||||||
<view class="box-jg" :class="{ 'actbox' : actindex == index }" v-for="(item,index) in cardFuleList"
|
:autoplay="autoplay" :interval="interval" :vertical="true" :duration="duration">
|
||||||
|
<swiper-item class="conttainer-box" v-for="(item,index) in cardList" :key="index">
|
||||||
|
<view class="box_s">
|
||||||
|
{{item.discountActiveDescribe || ''}}
|
||||||
|
</view>
|
||||||
|
</swiper-item>
|
||||||
|
</swiper>
|
||||||
|
<view class="box-cz" style="margin-top: 20px;">
|
||||||
|
<view :class="{ 'actbox' : actindex == index }" v-for="(item,index) in cardFuleList"
|
||||||
|
style="display: flex;justify-content: space-around;width: 98%;border-radius: 8px;border: 1px solid #e2e2e2;
|
||||||
|
box-sizing: border-box;padding: 10px;margin: 5px;height: 60px;line-height: 18px;"
|
||||||
:key="index" @click="fuleindex(index,item.rechargeBalance,item.points,item.id)">
|
:key="index" @click="fuleindex(index,item.rechargeBalance,item.points,item.id)">
|
||||||
<view class="s-title" :class="{ 'actsize' : actindex == index }">油品:{{item.type}}
|
<view style="font-size: 16px;font-weight: bold;line-height: 40px;" :class="{ 'actsize' : actindex == index }">{{item.oilType}}</view>
|
||||||
</view>
|
<!-- <view style="font-size: 12px;font-weight: bold;margin: 0 5px;" :class="{ 'actsize' : actindex == index }">:</view> -->
|
||||||
<view class="s-title" :class="{ 'actsize' : actindex == index }">油号:{{item.oilType}}
|
<view class="min-size1" :class="{ 'actsize' : actindex == index }"><view>国标油价</view><view>{{item.gbPrice}}¥/L</view></view>
|
||||||
</view>
|
<view class="min-size1" :class="{ 'actsize' : actindex == index }"><view>本站油价</view><view>{{item.oilPrice}}¥/L</view></view>
|
||||||
<view class="min-size" :class="{ 'actsize' : actindex == index }">单价¥<text
|
<view class="min-size1" :class="{ 'actsize' : actindex == index }"><view>锁价</view><view>{{item.lockupPrice}}¥/L</view></view>
|
||||||
style="font-weight: bold;"></text>{{item.incomeLitres}}元/升</view>
|
<view class="min-size1" :class="{ 'actsize' : actindex == index }"><view>总升数</view><view>{{item.incomeLitres || 0}}L</view></view>
|
||||||
<view class="min-size" :class="{ 'actsize' : actindex == index }">总价¥{{item.rechargeBalance}}元
|
<view class="min-size1" style="color: red;" :class="{ 'actsize' : actindex == index }"><view>总价</view><view>¥{{item.rechargeBalance}}</view></view>
|
||||||
</view>
|
|
||||||
<view class="min-size" :class="{ 'actsize' : actindex == index }">升数:{{item.incomeLitres}}L
|
|
||||||
</view>
|
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="box-hui">
|
<view class="box-hui">
|
||||||
@ -230,6 +237,7 @@
|
|||||||
shuomingFList: [],
|
shuomingFList: [],
|
||||||
columns: [],
|
columns: [],
|
||||||
actList: [],
|
actList: [],
|
||||||
|
cardList: [],
|
||||||
autoplay: true,
|
autoplay: true,
|
||||||
interval: 3000,
|
interval: 3000,
|
||||||
duration: 500,
|
duration: 500,
|
||||||
@ -261,16 +269,17 @@
|
|||||||
console.log('11111111111111', this.cardRecordId);
|
console.log('11111111111111', this.cardRecordId);
|
||||||
if (option.id == 0) {
|
if (option.id == 0) {
|
||||||
this.getValueCars();
|
this.getValueCars();
|
||||||
|
this.activen()
|
||||||
}
|
}
|
||||||
if (option.id == 1) {
|
if (option.id == 1) {
|
||||||
console.log("囤油");
|
console.log("囤油");
|
||||||
this.getFuelCars();
|
this.getFuelCars();
|
||||||
|
this.getFuelCarList()
|
||||||
}
|
}
|
||||||
|
|
||||||
},
|
},
|
||||||
onShow() {
|
onShow() {
|
||||||
this.getStaffList()
|
this.getStaffList()
|
||||||
this.activen()
|
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
|
||||||
@ -625,6 +634,18 @@
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
//囤油卡
|
||||||
|
getFuelCarList() {
|
||||||
|
request({
|
||||||
|
url: 'business/marketingActivity/cardFuelDiesel/appletList?storeId='+uni.getStorageSync("storeId"),
|
||||||
|
method: 'get',
|
||||||
|
}).then(res => {
|
||||||
|
if (res.code == 200) {
|
||||||
|
console.log(res,111);
|
||||||
|
this.cardList = res.data
|
||||||
|
}
|
||||||
|
})
|
||||||
|
},
|
||||||
//礼品卡兑换
|
//礼品卡兑换
|
||||||
exchangeGift() {
|
exchangeGift() {
|
||||||
request({
|
request({
|
||||||
@ -822,6 +843,12 @@
|
|||||||
//color: #e2e2e2;
|
//color: #e2e2e2;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
}
|
}
|
||||||
|
.min-size1 {
|
||||||
|
font-size: 12px;
|
||||||
|
//color: #e2e2e2;
|
||||||
|
text-align: center;
|
||||||
|
margin: 0 5px;
|
||||||
|
}
|
||||||
|
|
||||||
.actbox {
|
.actbox {
|
||||||
border: 1px solid #1678ff;
|
border: 1px solid #1678ff;
|
||||||
|
Loading…
Reference in New Issue
Block a user