Merge remote-tracking branch 'origin/master'

This commit is contained in:
@QQNZX 2023-12-18 11:32:54 +08:00
commit 1b9036ffb0
4 changed files with 17 additions and 4 deletions

View File

@ -36,7 +36,7 @@ public interface CardExchangeRecordService extends IService<CardExchangeRecord>
/** /**
* 核销记录小程序端 * 核销记录小程序端
* @param page * @param page
* @param cardExchangeRecord * @param cardExchangeRecordDTO
* @return * @return
*/ */
IPage<CardExchangeRecordVO> selectCancelRecords (Page page, CardExchangeRecordDTO cardExchangeRecordDTO); IPage<CardExchangeRecordVO> selectCancelRecords (Page page, CardExchangeRecordDTO cardExchangeRecordDTO);

View File

@ -196,6 +196,13 @@
}, },
onLoad(option) { onLoad(option) {
this.actinput = option.id this.actinput = option.id
if (option.id == 0) {
this.getValueCars();
}
if (option.id == 1) {
this.getFuelCars();
}
}, },
onShow() { onShow() {
this.getValueCars(); this.getValueCars();
@ -287,6 +294,7 @@
this.cardValueList = [] this.cardValueList = []
if (res.code == 200) { if (res.code == 200) {
this.cardFuleList = res.data.records this.cardFuleList = res.data.records
console.log('213');
this.fuleindex(0, this.cardValueList[0].rechargeBalance, this.cardValueList[0] this.fuleindex(0, this.cardValueList[0].rechargeBalance, this.cardValueList[0]
.fringeBenefit, .fringeBenefit,
this.cardFuleList[0].rechargeBalance, this.cardFuleList[0].points, this this.cardFuleList[0].rechargeBalance, this.cardFuleList[0].points, this

View File

@ -26,7 +26,7 @@
<view class="hui-size">{{item.couponContent}}</view> <view class="hui-size">{{item.couponContent}}</view>
<view class="dis-bt"> <view class="dis-bt">
<view class="hui-size">有效期2023-11-30</view> <view class="hui-size">有效期2023-11-30</view>
<view class="anniu"> <view class="anniu" v-if="item.couponType == '优惠券'" @click="goRecharge()">
<text>立即使用</text> <text>立即使用</text>
</view> </view>
</view> </view>
@ -85,6 +85,11 @@
this.getGiftRecords() this.getGiftRecords()
}, },
methods: { methods: {
goRecharge() {
uni.navigateTo({
url: '/pagesHome/oilRecharge/oilRecharge'
})
},
click(item) { click(item) {
console.log('item', item); console.log('item', item);

View File

@ -60,7 +60,7 @@
return { return {
cardsList: [], cardsList: [],
query: { query: {
cardType: '', cardType: '兑换券',
pageNo: 1, pageNo: 1,
pageSize: 10 pageSize: 10
}, },
@ -250,4 +250,4 @@
font-size: 14px; font-size: 14px;
border-radius: 15px; border-radius: 15px;
} }
</style> </style>