Merge remote-tracking branch 'origin/master'
This commit is contained in:
commit
350570a56c
@ -211,6 +211,7 @@ public class CardFuelRecordServiceImpl implements CardFuelRecordService {
|
||||
cardFuelRecordDTO.setStoreId(nowAccountInfo.getStoreId());
|
||||
cardFuelRecordDTO.setChainStoreId(nowAccountInfo.getChainStoreId());
|
||||
cardFuelRecordDTO.setPayAmount(cardFuelRecordDTO.getRechargeBalance());
|
||||
cardFuelRecordDTO.setMtStaffId(nowAccountInfo.getStaffId());
|
||||
|
||||
|
||||
LambdaQueryWrapper<CardFuelRecord> queryWrapper = new LambdaQueryWrapper<>();
|
||||
|
@ -41,9 +41,15 @@
|
||||
<view class="title_lan">充值记录</view>
|
||||
</view>
|
||||
<view class="wrap-box">
|
||||
<view class="w-box" v-for="(item,index) in numList " :key="index" @click="getindex(index)">
|
||||
<view class="w-box" v-for="(item,index) in numList " :key="index" @click="getindex(index,item)">
|
||||
<view class="hezi" :class="{ 'acv' : listindex == index }">
|
||||
{{item}}
|
||||
{{item.rechargeBalance}}元
|
||||
</view>
|
||||
</view>
|
||||
<view class="w-box" @click="getindex(numList.length,null)">
|
||||
<view class="hezi" :class="{ 'acv' : listindex == numList.length }">
|
||||
<!-- 自定义金额 -->
|
||||
<input placeholder="自定义金额" v-model="value" @input="custom()"></input>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
@ -56,7 +62,7 @@
|
||||
<view class="">微信扫码支付</view>
|
||||
</view>
|
||||
|
||||
<view class="qiu" v-if="memberId != 0" @click="getmemberId(0)"></view>
|
||||
<view class="qiu" v-if="memberId != 0" @click="getmemberId(0,'WECHAT')"></view>
|
||||
<view class="qiux" v-if="memberId == 0">
|
||||
<u-icon name="checkmark" color="#fff" size="16"></u-icon>
|
||||
</view>
|
||||
@ -69,7 +75,7 @@
|
||||
<view class="">支付宝扫码支付</view>
|
||||
</view>
|
||||
|
||||
<view class="qiu" v-if="memberId != 1" @click="getmemberId(1)"></view>
|
||||
<view class="qiu" v-if="memberId != 1" @click="getmemberId(1,'ALIPAY')"></view>
|
||||
<view class="qiux" v-if="memberId == 1">
|
||||
<u-icon name="checkmark" color="#fff" size="16"></u-icon>
|
||||
</view>
|
||||
@ -82,7 +88,7 @@
|
||||
<view class="">银联扫码支付</view>
|
||||
</view>
|
||||
|
||||
<view class="qiu" v-if="memberId != 2" @click="getmemberId(2)"></view>
|
||||
<view class="qiu" v-if="memberId != 2" @click="getmemberId(2,'UNIONPAY')"></view>
|
||||
<view class="qiux" v-if="memberId == 2">
|
||||
<u-icon name="checkmark" color="#fff" size="16"></u-icon>
|
||||
</view>
|
||||
@ -95,7 +101,7 @@
|
||||
<view class="">现金支付</view>
|
||||
</view>
|
||||
|
||||
<view class="qiu" v-if="memberId != 3" @click="getmemberId(3)"></view>
|
||||
<view class="qiu" v-if="memberId != 3" @click="getmemberId(3,'CASH')"></view>
|
||||
<view class="qiux" v-if="memberId == 3">
|
||||
<u-icon name="checkmark" color="#fff" size="16"></u-icon>
|
||||
</view>
|
||||
@ -131,6 +137,12 @@
|
||||
isChooseUser: false,
|
||||
userId: "",
|
||||
userInfo: "",
|
||||
order: {
|
||||
paymentType: "WECHAT"
|
||||
},
|
||||
value: "",
|
||||
realyPayBills: 0,
|
||||
authCode: "",
|
||||
}
|
||||
},
|
||||
onLoad(e) {
|
||||
@ -143,6 +155,7 @@
|
||||
onShow() {
|
||||
// this.actList = ["1", "1", "1", "1", "1", ]
|
||||
// this.status = "nomore" 底部刷新结束
|
||||
this.getRechargeAmount()
|
||||
},
|
||||
onPullDownRefresh() {
|
||||
console.log("刷新");
|
||||
@ -158,9 +171,27 @@
|
||||
headers
|
||||
},
|
||||
methods: {
|
||||
getmemberId(num) {
|
||||
// 自定义金额
|
||||
custom(val) {
|
||||
this.order.amount = val
|
||||
this.realyPayBills = this.order.amount
|
||||
},
|
||||
// 获取充值金额列表
|
||||
getRechargeAmount() {
|
||||
request({
|
||||
url: 'business/marketingActivity/cardFuelDiesel',
|
||||
method: 'get',
|
||||
params: {
|
||||
pageNo: 1,
|
||||
pageSize: 10000
|
||||
}
|
||||
}).then((res) => {
|
||||
this.numList = res.data.records
|
||||
})
|
||||
},
|
||||
getmemberId(num, payType) {
|
||||
this.memberId = num
|
||||
console.log(this.memberId);
|
||||
this.order.paymentType = payType
|
||||
},
|
||||
// 获取用户信息
|
||||
getUser() {
|
||||
@ -176,13 +207,64 @@
|
||||
url: "/pagesHome/searchVip/searchVip?type=1"
|
||||
})
|
||||
},
|
||||
getindex(index) {
|
||||
getindex(index,data) {
|
||||
this.listindex = index
|
||||
if (data){
|
||||
this.order.amount = data.rechargeBalance
|
||||
this.order.rechargeBalance = data.rechargeBalance
|
||||
this.order.points = data.points
|
||||
this.realyPayBills = data.rechargeBalance
|
||||
}
|
||||
},
|
||||
// 二维码
|
||||
scanQrcode() {
|
||||
if (!this.userInfo) {
|
||||
uni.showToast({
|
||||
title: "请先选择会员",
|
||||
icon: "none"
|
||||
})
|
||||
}
|
||||
if (!this.order.amount){
|
||||
uni.showToast({
|
||||
title:"请先选择充值金额",
|
||||
icon:"none"
|
||||
})
|
||||
}
|
||||
let _this = this
|
||||
uni.scanCode({
|
||||
onlyFromCamera: true,
|
||||
success: (res) => {
|
||||
console.log('扫描二维码成功,结果:' + JSON.stringify(res) + res.result);
|
||||
_this.authCode = res.result
|
||||
_this.govipjs()
|
||||
},
|
||||
error: (res) => {
|
||||
console.log('扫描二维码出现错误')
|
||||
}
|
||||
})
|
||||
},
|
||||
govipjs() {
|
||||
// uni.navigateTo({
|
||||
// url: '/pagesHome/MemberRecharge/list'
|
||||
// })
|
||||
let actualPayment = 0
|
||||
if (this.order.paymentType == "CASH") actualPayment = this.authCode
|
||||
// 会员id 会员名字会员手机号码
|
||||
this.order.mtUserId = this.userInfo.id
|
||||
this.order.name = this.userInfo.name
|
||||
this.order.mobile = this.userInfo.mobile
|
||||
// 支付码
|
||||
this.order.authCode = this.authCode
|
||||
this.order.realyPayBills = this.realyPayBills
|
||||
this.order.actualPayment = actualPayment
|
||||
|
||||
request({
|
||||
url: 'business/marketingActivity/cardFuelRecord/prepaidFuelTopUp',
|
||||
method: 'post',
|
||||
data:this.order
|
||||
}).then((res) => {
|
||||
// uni.navigateTo({
|
||||
// url: '/pagesHome/PaymentResults/PaymentResults'
|
||||
// })
|
||||
})
|
||||
|
||||
},
|
||||
goback() {
|
||||
uni.navigateBack()
|
||||
|
Loading…
Reference in New Issue
Block a user