9.21
This commit is contained in:
parent
1f6b51ae20
commit
774f328ea6
@ -100,7 +100,7 @@
|
|||||||
<img src="@/assets/menu_icon/chedui.png" v-if="!activeMenu.includes('/fleet')" style="width: 21px;height: 21px;"/>
|
<img src="@/assets/menu_icon/chedui.png" v-if="!activeMenu.includes('/fleet')" style="width: 21px;height: 21px;"/>
|
||||||
<img src="@/assets/menu_icon/chedui_b.png" v-else style="width: 21px;height: 21px;"/>
|
<img src="@/assets/menu_icon/chedui_b.png" v-else style="width: 21px;height: 21px;"/>
|
||||||
</span>
|
</span>
|
||||||
<span style="margin-right: 10px;" v-if="item.meta.title=='便利店'">
|
<span style="margin-right: 10px;" v-if="item.meta.title=='便利店管理'">
|
||||||
<img src="@/assets/menu_icon/car.png" v-if="!activeMenu.includes('/convenience')" style="width: 25px;height: 25px;"/>
|
<img src="@/assets/menu_icon/car.png" v-if="!activeMenu.includes('/convenience')" style="width: 25px;height: 25px;"/>
|
||||||
<img src="@/assets/menu_icon/car_b.png" v-else style="width: 25px;height: 25px;"/>
|
<img src="@/assets/menu_icon/car_b.png" v-else style="width: 25px;height: 25px;"/>
|
||||||
</span>
|
</span>
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
<template>
|
<template>
|
||||||
<view class="content">
|
<view class="content">
|
||||||
<view class="card_" @click="goDetails()">
|
<view class="card_" @click="goDetails('balance')">
|
||||||
<view class="top_card">
|
<view class="top_card">
|
||||||
<view class="">储值卡</view>
|
<view class="">储值卡</view>
|
||||||
<view class="" @click="goCode()">
|
<view class="" @click="goCode()">
|
||||||
@ -17,10 +17,10 @@
|
|||||||
NO.xxxxxxxxxxxxxxxxxx
|
NO.xxxxxxxxxxxxxxxxxx
|
||||||
</view> -->
|
</view> -->
|
||||||
</view>
|
</view>
|
||||||
<view class="card_1">
|
<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;">
|
<view style="display: flex;" @click="goCode()">
|
||||||
<view style="margin-right: 5px;">汽油92# 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>
|
||||||
@ -94,9 +94,9 @@
|
|||||||
url: '/pagesHome/oilRecharge/oilRecharge?id=' + id
|
url: '/pagesHome/oilRecharge/oilRecharge?id=' + id
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
goDetails() {
|
goDetails(val) {
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
url: '/pagesHome/cardDetails/index'
|
url: '/pagesHome/cardDetails/index?type='+val
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
s_() {
|
s_() {
|
||||||
|
@ -1,15 +1,22 @@
|
|||||||
<template>
|
<template>
|
||||||
<view class="centenr">
|
<view class="centenr">
|
||||||
<view class="Candywrapper">
|
<view class="Candywrapper">
|
||||||
<view class="card_box">
|
<view class="card_box" v-if="type=='balance'">
|
||||||
<view class="r-size">储值卡</view>
|
<view class="r-size">储值卡</view>
|
||||||
<view style="margin-bottom: 10px;">当前余额(元)</view>
|
<view style="margin-bottom: 10px;">当前余额(元)</view>
|
||||||
<view class="r-num">{{cardBalance.cardBalance || 0}}</view>
|
<view class="r-num">{{cardBalance.cardBalance || 0}}</view>
|
||||||
</view>
|
</view>
|
||||||
|
<view class="card_box" v-if="type=='oilCard'">
|
||||||
|
<view class="r-size">囤油卡</view>
|
||||||
|
<view style="margin-bottom: 10px;">剩余升数(L)</view>
|
||||||
|
<view class="r-num">{{cardBalance.cardBalance || 0}}</view>
|
||||||
|
</view>
|
||||||
<view class="tab-bs">
|
<view class="tab-bs">
|
||||||
<view class="w_box" @click="show1 = true">类型筛选 <u-icon name="arrow-down-fill"></u-icon> </view>
|
<view class="w_box" @click="show1 = true">类型筛选 <u-icon name="arrow-down-fill"></u-icon> </view>
|
||||||
<view class="w_box" @click="show = true">全部时间 <u-icon name="arrow-down-fill"></u-icon> </view>
|
<view class="w_box" @click="show = true">全部时间 <u-icon name="arrow-down-fill"></u-icon> </view>
|
||||||
</view>
|
</view>
|
||||||
|
<!-- 储值卡 -->
|
||||||
|
<view v-if="type=='balance'">
|
||||||
<view class="bai_box" v-for="(item,index) in orderList" :key="index">
|
<view class="bai_box" v-for="(item,index) in orderList" :key="index">
|
||||||
<view class="left-img">
|
<view class="left-img">
|
||||||
<image src="../../static/icon/hyxf.png" mode="" v-if="item.changeType==0"></image>
|
<image src="../../static/icon/hyxf.png" mode="" v-if="item.changeType==0"></image>
|
||||||
@ -24,7 +31,7 @@
|
|||||||
</view>
|
</view>
|
||||||
<view class="right-box">
|
<view class="right-box">
|
||||||
<view class="">储值卡</view>
|
<view class="">储值卡</view>
|
||||||
<view class="">余额{{item.afterTheChange}}</view>
|
<view class="">余额{{item.afterTheChange || 0}}</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="right-box">
|
<view class="right-box">
|
||||||
<view class="">{{item.storeName}}</view>
|
<view class="">{{item.storeName}}</view>
|
||||||
@ -36,25 +43,36 @@
|
|||||||
<u-empty mode="list" icon="http://cdn.uviewui.com/uview/empty/list.png">
|
<u-empty mode="list" icon="http://cdn.uviewui.com/uview/empty/list.png">
|
||||||
</u-empty>
|
</u-empty>
|
||||||
</view>
|
</view>
|
||||||
<!-- <view class="bai_box">
|
</view>
|
||||||
|
<!-- 囤油卡 -->
|
||||||
|
<view v-if="type=='oilCard'">
|
||||||
|
<view class="bai_box" v-for="(item,index) in oilCardList" :key="index">
|
||||||
<view class="left-img">
|
<view class="left-img">
|
||||||
<image src="../../static/icon/hycz.png" mode=""></image>
|
<image src="../../static/icon/hyxf.png" mode="" v-if="item.changeType==0"></image>
|
||||||
|
<image src="../../static/icon/hycz.png" mode="" v-if="item.changeType==1"></image>
|
||||||
</view>
|
</view>
|
||||||
<view style="width: 85%;">
|
<view style="width: 85%;">
|
||||||
<view class="right-box">
|
<view class="right-box">
|
||||||
<view class="l-text">会员充值</view>
|
<view class="l-text" v-if="item.changeType==0">会员消费</view>
|
||||||
<view class="r-text">-199.00</view>
|
<view class="l-text" v-if="item.changeType==1">会员充值</view>
|
||||||
|
<view class="r-text">{{item.balance || 0}}
|
||||||
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="right-box">
|
<view class="right-box">
|
||||||
<view class="">储值卡</view>
|
<view class="">囤油卡</view>
|
||||||
<view class="">余额123456.98</view>
|
<view class="">余额{{item.afterTheChange || 0}}</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="right-box">
|
<view class="right-box">
|
||||||
<view class="">中建锦绣二期站</view>
|
<view class="">{{item.storeName}}</view>
|
||||||
<view class="">2024-09-09 16:45:09</view>
|
<view class="">{{item.createTime}}</view>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
<view v-if="!oilCardList || oilCardList.length==0">
|
||||||
|
<u-empty mode="list" icon="http://cdn.uviewui.com/uview/empty/list.png">
|
||||||
|
</u-empty>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view> -->
|
|
||||||
<u-datetime-picker :show="show" v-model="value1" mode="year-month" @cancel="cancel1"
|
<u-datetime-picker :show="show" v-model="value1" mode="year-month" @cancel="cancel1"
|
||||||
@confirm="confirm1"></u-datetime-picker>
|
@confirm="confirm1"></u-datetime-picker>
|
||||||
<u-picker :show="show1" :columns="columns" @cancel="cancel" @confirm="confirm"></u-picker>
|
<u-picker :show="show1" :columns="columns" @cancel="cancel" @confirm="confirm"></u-picker>
|
||||||
@ -67,6 +85,7 @@
|
|||||||
export default {
|
export default {
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
type: "balance",
|
||||||
query: {
|
query: {
|
||||||
chainStoreId: '',
|
chainStoreId: '',
|
||||||
couponType: '',
|
couponType: '',
|
||||||
@ -86,37 +105,72 @@
|
|||||||
pageSize: 30,
|
pageSize: 30,
|
||||||
storeId: uni.getStorageSync('storeId'),
|
storeId: uni.getStorageSync('storeId'),
|
||||||
changeType: '',
|
changeType: '',
|
||||||
startTime: ''
|
startTime: '',
|
||||||
|
createTime: ''
|
||||||
},
|
},
|
||||||
orderList: [],
|
orderList: [],
|
||||||
total: 0
|
total: 0,
|
||||||
|
oilCardList: []
|
||||||
|
}
|
||||||
|
},
|
||||||
|
onLoad(e) {
|
||||||
|
this.type = e.type
|
||||||
|
if (this.type == 'oilCard') {
|
||||||
|
this.getOilCardList()
|
||||||
|
} else {
|
||||||
|
this.getOrderList()
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
onShow() {
|
onShow() {
|
||||||
this.query.chainStoreId = uni.getStorageSync('chainStoreId');
|
this.query.chainStoreId = uni.getStorageSync('chainStoreId');
|
||||||
this.getUserBalance()
|
this.getUserBalance()
|
||||||
this.getOrderList()
|
|
||||||
},
|
},
|
||||||
onPullDownRefresh() {
|
onPullDownRefresh() {
|
||||||
console.log("刷新");
|
console.log("刷新");
|
||||||
this.orderList = []
|
this.orderList = []
|
||||||
|
this.oilCardList = []
|
||||||
this.queryParams = {
|
this.queryParams = {
|
||||||
pageNo: 1,
|
pageNo: 1,
|
||||||
pageSize: 30,
|
pageSize: 30,
|
||||||
storeId: uni.getStorageSync('storeId'),
|
storeId: uni.getStorageSync('storeId'),
|
||||||
changeType: '',
|
changeType: '',
|
||||||
startTime: ''
|
startTime: '',
|
||||||
|
createTime: ''
|
||||||
}
|
}
|
||||||
|
if (this.type == 'oilCard') {
|
||||||
|
this.getOilCardList()
|
||||||
|
} else {
|
||||||
this.getOrderList()
|
this.getOrderList()
|
||||||
|
}
|
||||||
},
|
},
|
||||||
onReachBottom() {
|
onReachBottom() {
|
||||||
// 触底加载
|
// 触底加载
|
||||||
|
if (this.type == 'oilCard') {
|
||||||
|
if (this.oilCardList.length < this.total) {
|
||||||
|
this.queryParams.pageNo++
|
||||||
|
this.getOilCardList()
|
||||||
|
}
|
||||||
|
} else {
|
||||||
if (this.orderList.length < this.total) {
|
if (this.orderList.length < this.total) {
|
||||||
this.queryParams.pageNo++
|
this.queryParams.pageNo++
|
||||||
this.getOrderList()
|
this.getOrderList()
|
||||||
}
|
}
|
||||||
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
getOilCardList() {
|
||||||
|
request({
|
||||||
|
url: '/business/marketingActivity/cardFuelChange/queryByPageUni',
|
||||||
|
method: 'get',
|
||||||
|
params: this.queryParams
|
||||||
|
}).then(res => {
|
||||||
|
if (res.code == 200) {
|
||||||
|
this.oilCardList = res.data.records
|
||||||
|
this.total = res.data.total
|
||||||
|
console.log(res, 130);
|
||||||
|
}
|
||||||
|
})
|
||||||
|
},
|
||||||
// 获取订单信息
|
// 获取订单信息
|
||||||
getOrderList() {
|
getOrderList() {
|
||||||
request({
|
request({
|
||||||
@ -127,7 +181,6 @@
|
|||||||
if (res.code == 200) {
|
if (res.code == 200) {
|
||||||
this.orderList = res.data.records
|
this.orderList = res.data.records
|
||||||
this.total = res.data.total
|
this.total = res.data.total
|
||||||
console.log(res,130);
|
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
@ -152,7 +205,11 @@
|
|||||||
} else {
|
} else {
|
||||||
this.queryParams.changeType = ""
|
this.queryParams.changeType = ""
|
||||||
}
|
}
|
||||||
|
if (this.type == 'oilCard') {
|
||||||
|
this.getOilCardList()
|
||||||
|
} else {
|
||||||
this.getOrderList()
|
this.getOrderList()
|
||||||
|
}
|
||||||
this.show1 = false
|
this.show1 = false
|
||||||
},
|
},
|
||||||
cancel() {
|
cancel() {
|
||||||
@ -170,7 +227,11 @@
|
|||||||
confirm1(e) {
|
confirm1(e) {
|
||||||
this.queryParams.startTime = this.timestampToString(e.value)
|
this.queryParams.startTime = this.timestampToString(e.value)
|
||||||
this.queryParams.pageNo = 1
|
this.queryParams.pageNo = 1
|
||||||
|
if (this.type == 'oilCard') {
|
||||||
|
this.getOilCardList()
|
||||||
|
} else {
|
||||||
this.getOrderList()
|
this.getOrderList()
|
||||||
|
}
|
||||||
this.show = false
|
this.show = false
|
||||||
},
|
},
|
||||||
cancel1() {
|
cancel1() {
|
||||||
|
@ -3,16 +3,18 @@
|
|||||||
<view class="top-box">
|
<view class="top-box">
|
||||||
<view class="t-db">
|
<view class="t-db">
|
||||||
<view class="d-s">
|
<view class="d-s">
|
||||||
<view style="margin-right: 10px;">储值卡</view>
|
<view style="margin-right: 10px;" v-if="type=='balance'">储值卡</view>
|
||||||
<view class="icon_">主卡</view>
|
<view style="margin-right: 10px;" v-if="type=='oilCard'">囤油卡</view>
|
||||||
|
<view class="icon_" v-if="type=='balance'">主卡</view>
|
||||||
</view>
|
</view>
|
||||||
<image src="../../static/new/rwm.png" style="width: 25px; height: 25px; "></image>
|
<image src="../../static/new/rwm.png" style="width: 25px; height: 25px; " @click="goCode()"></image>
|
||||||
</view>
|
</view>
|
||||||
<view class="on-title">可用余额</view>
|
<view class="on-title">可用余额</view>
|
||||||
<view class="on-num">¥{{cardBalance.cardBalance || 0}}</view>
|
<view class="on-num">¥{{cardBalance.cardBalance || 0}}</view>
|
||||||
<view class="d-a">
|
<view class="d-a" v-if="type=='balance'">
|
||||||
<view class="_dj">
|
<view class="_dj">
|
||||||
<view class="" v-if="cardBalance.giveAmount">¥{{cardBalance.cardBalance - cardBalance.giveAmount}}</view>
|
<view class="" v-if="cardBalance.giveAmount">¥{{cardBalance.cardBalance - cardBalance.giveAmount}}
|
||||||
|
</view>
|
||||||
<view class="" v-else>¥{{cardBalance.cardBalance || 0}}</view>
|
<view class="" v-else>¥{{cardBalance.cardBalance || 0}}</view>
|
||||||
<view style="font-size: 14px;">本金金额</view>
|
<view style="font-size: 14px;">本金金额</view>
|
||||||
</view>
|
</view>
|
||||||
@ -125,6 +127,7 @@ import request from "../../utils/request";
|
|||||||
export default {
|
export default {
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
type: "balance",
|
||||||
query: {
|
query: {
|
||||||
chainStoreId: '',
|
chainStoreId: '',
|
||||||
couponType: '',
|
couponType: '',
|
||||||
@ -139,18 +142,30 @@ export default {
|
|||||||
equity: {}
|
equity: {}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
onLoad(e) {
|
||||||
|
this.type = e.type
|
||||||
|
},
|
||||||
onShow() {
|
onShow() {
|
||||||
this.query.chainStoreId = uni.getStorageSync('chainStoreId');
|
this.query.chainStoreId = uni.getStorageSync('chainStoreId');
|
||||||
this.getUserBalance()
|
this.getUserBalance()
|
||||||
this.getEquity()
|
this.getEquity()
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
goCode() {
|
||||||
|
uni.navigateTo({
|
||||||
|
url: '/pagesHome/QRcode/QRcode'
|
||||||
|
})
|
||||||
|
},
|
||||||
// 获取储值卡权益信息
|
// 获取储值卡权益信息
|
||||||
getEquity() {
|
getEquity() {
|
||||||
|
let type = this.type == 'oilCard' ? 1 : 0
|
||||||
request({
|
request({
|
||||||
url: '/cardValueRule/getQyAndGz',
|
url: '/cardValueRule/getQyAndGz',
|
||||||
method: 'get',
|
method: 'get',
|
||||||
params: {storeId:uni.getStorageSync("storeId")}
|
params: {
|
||||||
|
storeId: uni.getStorageSync("storeId"),
|
||||||
|
type: type
|
||||||
|
}
|
||||||
}).then(res => {
|
}).then(res => {
|
||||||
if (res.code == 200) {
|
if (res.code == 200) {
|
||||||
this.equity = res.data
|
this.equity = res.data
|
||||||
@ -161,7 +176,7 @@ export default {
|
|||||||
// 跳转会员充值
|
// 跳转会员充值
|
||||||
goMemberRecharge() {
|
goMemberRecharge() {
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
url: '/pagesHome/memberRecharge/index'
|
url: '/pagesHome/memberRecharge/index?type=' + this.type
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
getUserBalance() {
|
getUserBalance() {
|
||||||
@ -186,7 +201,7 @@ export default {
|
|||||||
},
|
},
|
||||||
godetail() {
|
godetail() {
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
url: '/pagesHome/cardDetails/detailed'
|
url: '/pagesHome/cardDetails/detailed?type=' + this.type
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,10 +1,15 @@
|
|||||||
<template>
|
<template>
|
||||||
<view class="centenr">
|
<view class="centenr">
|
||||||
<view class="vip-top">
|
<view class="vip-top" v-if="type=='balance'">
|
||||||
<view class="t-right">储值卡 <u-icon name="arrow-down-fill" color="#fff" size="12"></u-icon> </view>
|
<view class="t-right">储值卡 <u-icon name="arrow-down-fill" color="#fff" size="12"></u-icon> </view>
|
||||||
<view class="t-title">当前余额(元)</view>
|
<view class="t-title">当前余额(元)</view>
|
||||||
<view class="t-num">{{cardBalance.cardBalance || 0}}</view>
|
<view class="t-num">{{cardBalance.cardBalance || 0}}</view>
|
||||||
</view>
|
</view>
|
||||||
|
<view class="vip-top" v-if="type=='oilCard'">
|
||||||
|
<view class="t-right">囤油卡 <u-icon name="arrow-down-fill" color="#fff" size="12"></u-icon> </view>
|
||||||
|
<view class="t-title">剩余油量(L)</view>
|
||||||
|
<view class="t-num">{{cardBalance.cardBalance || 0}}</view>
|
||||||
|
</view>
|
||||||
<view class="vip-title">
|
<view class="vip-title">
|
||||||
<view class="">{{storeName || "--"}}</view>
|
<view class="">{{storeName || "--"}}</view>
|
||||||
<!-- <image src="../../static/new/qh.png" style="width: 18px; height: 18px;" @click="show = true"></image> -->
|
<!-- <image src="../../static/new/qh.png" style="width: 18px; height: 18px;" @click="show = true"></image> -->
|
||||||
@ -79,6 +84,7 @@ import request from '../../utils/request'
|
|||||||
export default {
|
export default {
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
type: 'balance',
|
||||||
show: false,
|
show: false,
|
||||||
windex: 0,
|
windex: 0,
|
||||||
storeId: uni.getStorageSync("storeId"),
|
storeId: uni.getStorageSync("storeId"),
|
||||||
@ -120,6 +126,13 @@ export default {
|
|||||||
methods: {
|
methods: {
|
||||||
// 调用充值接口
|
// 调用充值接口
|
||||||
goRecharge() {
|
goRecharge() {
|
||||||
|
if (this.type=='oilCard'){
|
||||||
|
uni.showToast({
|
||||||
|
icon:'error',
|
||||||
|
title:"暂未开发!"
|
||||||
|
})
|
||||||
|
return;
|
||||||
|
}
|
||||||
let _this = this
|
let _this = this
|
||||||
request({
|
request({
|
||||||
url: 'business/marketingActivity/cardValueRecord',
|
url: 'business/marketingActivity/cardValueRecord',
|
||||||
|
Loading…
Reference in New Issue
Block a user