在搞加密解密
This commit is contained in:
@@ -3,26 +3,29 @@
|
||||
<template>
|
||||
<view class="cu-item radius shadow margin-bottom">
|
||||
<!-- <image class="pay-status" :src="baseURL+'static/img/oil-unfinished.png'" alt /> -->
|
||||
<view class="cu-avatar text-sl" :style="'background-image:url('+baseURL+'static/img/order-wjy.png)'"></view>
|
||||
<view class="cu-avatar text-sl" v-if="item.sourceType==='3'" :style="'background-image:url('+baseURL+'static/img/order-wjy.png)'"></view>
|
||||
<view class="cu-avatar text-sl" v-if="item.sourceType==='4'||item.sourceType==='6'" :style="'background-image:url('+baseURL+'static/img/order-xy.png)'"></view>
|
||||
<view class="cu-avatar text-sl" v-if="item.sourceType==='5'" :style="'background-image:url('+baseURL+'static/img/order-lv.png)'"></view>
|
||||
<view class="content">
|
||||
<view class=" solid-bottom padding-bottom-sm">
|
||||
<view class="flex-treble">
|
||||
{{item.orderID}}
|
||||
<view class="flex-treble" @tap="copyId(item.orderID)">
|
||||
{{item.orderID}}<text class="flex-sub padding-left-sm text-right cuIcon-copy text-lg text-red">
|
||||
</text>
|
||||
</view>
|
||||
<view class="flex-sub text-right cuIcon-right">
|
||||
<view class="flex-sub text-right cuIcon-right" @tap="toDetails(item.orderID)">
|
||||
</view>
|
||||
</view>
|
||||
<view class=" text-content text-df">
|
||||
{{item.oilSiteName}}
|
||||
</view>
|
||||
<view class="text-sm padding-top-sm">
|
||||
<view class="text-sm padding-top-sm" @tap="toDetails(item.orderID)">
|
||||
<view class="flex">
|
||||
<view class="details">
|
||||
<view class="top1 text-left">
|
||||
<image class="icon icon-desc " :src="baseURL+'static/img/oil-lf.png'" alt />
|
||||
<text class="padding-left-xs" v-if="item.vol"> {{item.vol|numberFilter}}升</text>
|
||||
<text class="padding-left-xs padding-right-xs" v-if="item.vol"> {{item.vol|numberFilter}}升</text>
|
||||
<text>
|
||||
{{item.oilName}}
|
||||
{{item.oilName}}
|
||||
</text>
|
||||
|
||||
</view>
|
||||
@@ -46,7 +49,7 @@
|
||||
<view class="margin-top-sm flex justify-between">
|
||||
<view class="text-gray text-df">{{item.createDatetime.substring(0, 10)}}</view>
|
||||
<view>
|
||||
<text class="color-000 total-money">¥{{item.realamount|numberFilter}}</text>
|
||||
<text class="color-000 text-lg total-money">¥{{item.realamount|numberFilter}}</text>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
@@ -76,16 +79,25 @@
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
toDetails(item) {
|
||||
this.$store.commit('SET_ORDERDE', item)
|
||||
console.log('item', item)
|
||||
this.$router.push('/OrderDetail')
|
||||
copyId(id) {
|
||||
uni.setClipboardData({
|
||||
data: id,
|
||||
success: () => {
|
||||
uni.showToast({
|
||||
title: '订单号已复制',
|
||||
icon: 'none'
|
||||
})
|
||||
}
|
||||
})
|
||||
},
|
||||
onSelect(item) {
|
||||
console.log('触发', '')
|
||||
this.$emit('onSelectItem')
|
||||
}
|
||||
toDetails(id) {
|
||||
uni.setStorageSync('orderId', id)
|
||||
console.log('id', id)
|
||||
uni.navigateTo({
|
||||
url: '/pages/orderList/OrderDetail/OrderDetail'
|
||||
})
|
||||
|
||||
}
|
||||
},
|
||||
filters: {
|
||||
toT(value) {
|
||||
@@ -99,7 +111,7 @@
|
||||
}
|
||||
},
|
||||
numberFilter(value) {
|
||||
value = value -1+1
|
||||
value = value - 1 + 1
|
||||
return value.toFixed(2)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user