Compare commits

..

No commits in common. "ee5dc84b493efe5df3719294dd656a2f6b8bf1de" and "b5063a59fd8638965e49cc33f139f9dc1a2df5e5" have entirely different histories.

3 changed files with 15 additions and 52 deletions

View File

@ -17,11 +17,11 @@
NO.xxxxxxxxxxxxxxxxxx NO.xxxxxxxxxxxxxxxxxx
</view> --> </view> -->
</view> </view>
<view class="card_1" @click="goDetails('oilCard')" v-for="(item,index) in cardsList" :key="index"> <view class="card_1" @click="goDetails('oilCard')">
<view class="top_card"> <view class="top_card">
<view class="">囤油卡</view> <view class="">囤油卡</view>
<view style="display: flex;" @click="goCode()"> <view style="display: flex;" @click="goCode()">
<view style="margin-right: 5px;">{{item.oilName}} 7.28/L</view> <view style="margin-right: 5px;">汽油92# 7.28/L</view>
<image src="../../static/new/rwm.png" style="width: 25px; height: 25px; "></image> <image src="../../static/new/rwm.png" style="width: 25px; height: 25px; "></image>
</view> </view>
</view> </view>
@ -29,7 +29,7 @@
剩余油量 剩余油量
</view> </view>
<view class="card-num"> <view class="card-num">
{{item.fuelAmount}}L 0L
</view> </view>
<!-- <view class="r-box"> <!-- <view class="r-box">
NO.xxxxxxxxxxxxxxxxxx NO.xxxxxxxxxxxxxxxxxx
@ -99,6 +99,7 @@
}, },
onShow() { onShow() {
this.query.chainStoreId = uni.getStorageSync('chainStoreId'); this.query.chainStoreId = uni.getStorageSync('chainStoreId');
// this.getCardFuleRecords();
this.getUserBalance() this.getUserBalance()
this.getFleetInfo() this.getFleetInfo()
}, },
@ -159,8 +160,6 @@
}).then(res => { }).then(res => {
if (res.code == 200) { if (res.code == 200) {
this.cardBalance = res.data this.cardBalance = res.data
console.log(res,163);
this.cardsList = res.data.userFuel
} }
}) })
}, },

View File

@ -116,7 +116,7 @@
export default { export default {
data() { data() {
return { return {
type: 'balance', type: 'oilCard',
show: false, show: false,
windex: 0, windex: 0,
storeId: uni.getStorageSync("storeId"), storeId: uni.getStorageSync("storeId"),
@ -319,7 +319,6 @@
}, },
setIndex(index, data) { setIndex(index, data) {
this.windex = index this.windex = index
this.isEdit = true
if (this.type == 'balance') { if (this.type == 'balance') {
if (index != this.rechargeList.length) { if (index != this.rechargeList.length) {
this.rechargeOrder.balance = data.rechargeBalance this.rechargeOrder.balance = data.rechargeBalance
@ -334,7 +333,6 @@
this.rechargeOrder.bidBalance = 0 this.rechargeOrder.bidBalance = 0
this.rechargeOrder.rechargeBalance = 0 this.rechargeOrder.rechargeBalance = 0
this.rechargeOrder.giftBalance = 0 this.rechargeOrder.giftBalance = 0
this.isEdit = false
} }
} }
if (this.type == 'oilCard') { if (this.type == 'oilCard') {

View File

@ -12,35 +12,26 @@
<image src="../../static/icon/zfcg.png" style="width: 80px; height: 80px; "></image> <image src="../../static/icon/zfcg.png" style="width: 80px; height: 80px; "></image>
</view> </view>
<view style="margin: 20px auto;font-size: 16px;color: #22AF5B;">支付成功</view> <view style="margin: 20px auto;font-size: 16px;color: #22AF5B;">支付成功</view>
<view class="m_num">{{orderInfo.goodsMoney}}</view> <view class="m_num">190.00</view>
<view class="m_bs"> <view class="m_bs">
<view class="">门店名称</view> <view class="">门店名称</view>
<view class="">{{orderInfo.storeName}}</view> <view class="">中建锦绣二期站</view>
</view> </view>
<view class="x_"></view> <view class="x_"></view>
<view class="m_bs"> <view class="m_bs">
<view class="">交易类型</view> <view class="">交易类型</view>
<view class="">{{orderInfo.content}}</view> <view class="">油品</view>
</view> </view>
<view class="m_bs"> <view class="m_bs">
<view class="">支付方式</view> <view class="">支付方式</view>
<view class="" v-if="orderInfo.payType=='ALIPAY'">支付宝</view> <view class="">会员储值卡</view>
<view class="" v-if="orderInfo.payType=='WECHAT'">微信</view>
<view class="" v-if="orderInfo.payType=='UNIONPAY'">银联二维码</view>
<view class="" v-if="orderInfo.payType=='CASH'">现金</view>
<view class="" v-if="orderInfo.payType=='APPLET_CODE'">小程序码</view>
<view class="" v-if="orderInfo.payType=='card_value'">储值卡</view>
<view class="" v-if="orderInfo.payType=='fule_card'">囤油卡</view>
<view class="" v-if="orderInfo.payType=='car_card_value'">车队卡</view>
<view class="" v-if="orderInfo.payType=='car_fule_card'">车队囤油卡</view>
<view class="" v-if="orderInfo.payType=='after_pay'">挂账</view>
</view> </view>
<view class="m_bs"> <view class="m_bs">
<view class="">流水编号</view> <view class="">流水编号</view>
<view class="">{{orderInfo.orderNo}}</view> <view class="">xxxxxxxxxxxxxxxx</view>
</view> </view>
<view v-if="orderInfo.type==1" @click="goOrderInfo" style="border: solid 1px #FA6400;margin: 20px auto;width: 70%; <view v-if="orderNo" @click="goOrderInfo" style="border: solid 1px #FA6400;margin: 20px auto;width: 70%;
height: 40px;line-height: 40px;color: #FA6400;">{{timestamp}}s后去评价</view> height: 40px;line-height: 40px;color: #FA6400;">{{timestamp}}s后去评价</view>
<view v-else @click="goBack" style="border: solid 1px #FA6400;margin: 20px auto;width: 70%; <view v-else @click="goBack" style="border: solid 1px #FA6400;margin: 20px auto;width: 70%;
height: 40px;line-height: 40px;color: #FA6400;">{{timestamp}}s后返回首页</view> height: 40px;line-height: 40px;color: #FA6400;">{{timestamp}}s后返回首页</view>
@ -50,50 +41,25 @@
</template> </template>
<script> <script>
import request from '../../utils/request'
export default { export default {
data() { data() {
return { return {
timestamp: 3, timestamp: 3,
timer: {}, timer: {},
orderNo: "234520241008171716e578f0", orderNo: "",
orderInfo: {},
oilOrder:{},
} }
}, },
onLoad(e) { onLoad(e) {
if (e.orderNo) { if (e.orderNo) {
this.orderNo = e.orderNo this.orderNo = e.orderNo
} }
this.getOrder() // this.countdown()
this.countdown()
}, },
methods: { methods: {
getOrder() {
request({
url: "/business/allOrderInfo/queryByOrderNo",
method: 'get',
params: {
orderNo: this.orderNo,
},
}).then((res) => {
this.orderInfo = res.data
if (res.data.type == 1){
request({
url: "business/oilOrder/oilOrderId/" + this.orderNo,
method: 'get',
}).then((res) => {
if(res.data){
this.oilOrder = res.data
}
})
}
})
},
goOrderInfo() { goOrderInfo() {
clearInterval(this.timer) clearInterval(this.timer)
uni.navigateTo({ uni.navigateTo({
url: '/pagesMy/comment/comment?orderId=' + this.oilOrder.id url: '/pagesMy/details/details?orderNo=' + this.orderNo,
}) })
}, },
// //
@ -104,7 +70,7 @@
_this.timestamp--; _this.timestamp--;
// 0 // 0
if (_this.timestamp === 0) { if (_this.timestamp === 0) {
if (_this.orderInfo.type==1) { if (_this.orderNo) {
_this.goOrderInfo() _this.goOrderInfo()
} else { } else {
_this.goBack() _this.goBack()