在搞加密解密

This commit is contained in:
xk_guohonglei
2020-09-01 10:17:18 +08:00
parent 95d1376376
commit e29760f1cb
29 changed files with 2139 additions and 406 deletions

View File

@@ -1,34 +1,32 @@
<template>
<!-- -->
<div class="img-box">
<div class="img">
<image :src="baseUrl+'static/img/w.png'"></image>
</div>
<p>这里没有相关记录哦~</p>
</div>
<!-- -->
<view class="img-box padding-lg margin-lg text-center">
<view class="bg-img margin radius flex align-center" :style="'background-image: url('+mainURL+'kong.png)'">
</view>
<text>这里没有相关记录哦~</text>
</view>
</template>
<script>
export default {
name: 'Empty',
data() {
return {
baseUrl: this.$baseURL
}
},
}
export default {
name: 'Empty',
data() {
return {
mainURL: this.global.mainURL,
}
},
}
</script>
<style scoped>
/* 空 */
.img-box {
width: 100%;
text-align: center;
color: rgb(148, 147, 147);
font-size: 14px;
padding-bottom: 20%;
}
.img {
width: 30%;
margin: 30% auto 3%;
}
/* 空 */
.img-box {
color: rgb(148, 147, 147);
font-size: 14px;
}
.bg-img{
min-height: 450rpx;
min-width: 200upx;
}
</style>

View File

@@ -20,7 +20,7 @@
</view>
<view class="padding-top-xs padding-left padding-right">
<text class="strong padding-right font-16">
0#柴油
{{selected.oilName}}
</text>
<text class="padding-right">星油价格:<text class="oil-main-color text-bold">{{selected.xkPrice?selected.xkPrice:selected.lvPrice|numberFilter}}/L</text></text>
<text class="s-rich">市场价:{{selected.standardPrice|numberFilter}}/L</text>
@@ -41,13 +41,13 @@
<view class="cu-form-group">
<view class="title">加油升数</view>
<input type="number" v-model="vol" @input="calcMoney" placeholder="请输入加油升数" name="input"></input>
<text>{{money.total}}</text>
<text>{{money.total|numberFilter}}</text>
</view>
<view class="my-cell">
<text class="font-12">星卡优惠金额</text><text class="fr">-{{money.discount}}</text>
<text class="font-12">星卡优惠金额</text><text class="fr">-{{money.discount|numberFilter}}</text>
</view>
<view class="my-cell">
<text class="font-12">实际支付金额</text><text class="oil-main-color fr">{{money.realPay}}</text>
<text class="font-12">实际支付金额</text><text class="oil-main-color fr">{{money.realPay|numberFilter}}</text>
</view>
</view>
<button class="margin round bg-main-oil" @tap="onConfirm">确定</button>
@@ -76,9 +76,9 @@
standardPrice: ''
},
money: {
total: 0,
discount: 0,
realPay: 0
total: '',
discount: '',
realPay: ''
},
price: 1
}
@@ -145,6 +145,8 @@
value = value - 1 + 1
if (value) {
return value.toFixed(2)
}else{
return '0.00'
}
}
}

View File

@@ -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)
}
}

62
components/staff-item.vue Normal file
View File

@@ -0,0 +1,62 @@
<template>
<view class="cu-item">
<view class="cu-avatar round lg" style="background-image:url(https://ossweb-img.qq.com/images/lol/web201310/skin/big10001.jpg);"></view>
<view class="content">
<view class="text-black">{{staff.cUserName}}</view>
<view class="text-gray flex" @tap="callStaff(staff.phone)">
<view class="text-cut text-df">
<text class="cuIcon-phone oil-main-color margin-right-xs"></text>
<text>{{staff.phone}}</text>
</view>
</view>
</view>
<view class="action solid-left" v-show="!staff.cType">
<button class="cu-btn padding-left-xs padding-right-xs bg-white" @tap="toEdit(staff.cUserId)">编辑</button>
</view>
<view class="action" v-show="staff.cType==1">
<view class="cu-tag text-white round my-tag" style="background-color: #FE0505;">超级管理员</view>
</view>
</view>
</template>
<script>
export default {
props: {
staff: {
type: Object,
default () {
}
}
},
data() {
return {
};
},
methods: {
callStaff(phone) {
uni.makePhoneCall({
phoneNumber: phone
})
},
toEdit(Uid) {
uni.setStorageSync('tempUid',{id:Uid,type:'edit'})
uni.navigateTo({
url: '/pages/staff/editStaff/editStaff'
})
}
},
}
</script>
<style scoped>
.cu-tag {
border-radius: 100upx 0 0 100upx;
position: absolute;
right: 0;
top: 30rpx;
}
</style>

File diff suppressed because one or more lines are too long