bug
This commit is contained in:
parent
26c8c6544e
commit
de79de4b58
@ -123,7 +123,7 @@ public class CardValueServiceImpl extends ServiceImpl<CardValueMapper, CardValue
|
||||
if (ObjectUtils.isNotEmpty(cardValue.getStoreId())){
|
||||
queryWrapper.eq(CardValue::getStoreId,cardValue.getStoreId());
|
||||
}
|
||||
queryWrapper.orderByDesc(CardValue::getCreateTime);
|
||||
queryWrapper.orderByAsc(CardValue::getRechargeBalance);
|
||||
List<CardValue> records = list(queryWrapper);
|
||||
//IPage page1 = page(page, queryWrapper);
|
||||
//List<CardValue> records = page1.getRecords();
|
||||
|
@ -38,7 +38,7 @@
|
||||
style="border-bottom: 1px solid #e7f1ff; box-sizing: border-box; padding-bottom: 15px;"
|
||||
v-if="types == 1">
|
||||
<view class="cadname" style="width: 38%;">自定义金额</view>
|
||||
<input type="text" v-model="balance" placeholder="请输入自定义金额" />
|
||||
<input type="text" v-model="balance" @input="changeBalance" placeholder="请输入自定义金额" />
|
||||
</view>
|
||||
|
||||
<view class="box-cz" v-if="types == 0">
|
||||
@ -282,7 +282,20 @@
|
||||
this.getStaffList()
|
||||
},
|
||||
methods: {
|
||||
|
||||
changeBalance(){
|
||||
if (this.cardValueList.length>0) {
|
||||
this.cardValueList.forEach((item,index) => {
|
||||
console.log(this.balance>=item.rechargeBalance,111);
|
||||
if (this.balance>=item.rechargeBalance){
|
||||
this.xzindex(index,this.balance,item.fringeBenefit,item.giftBalance,item.points,item.growthValue,item.count,item.id);
|
||||
}
|
||||
})
|
||||
if (this.balance<this.cardValueList[0].rechargeBalance){
|
||||
this.text = ""
|
||||
this.shuomingList = []
|
||||
}
|
||||
}
|
||||
},
|
||||
activen() {
|
||||
request({
|
||||
url: 'business/marketingActivity/cardValue/appletList?storeId='+uni.getStorageSync("storeId")+"&&activeStatus=1",
|
||||
@ -582,9 +595,12 @@
|
||||
// if (index == 0) {
|
||||
// this.getValueCars();
|
||||
// }
|
||||
// if (index == 1) {
|
||||
// this.getFuelCars();
|
||||
// }
|
||||
if (index == 1) {
|
||||
// this.getFuelCars();
|
||||
this.text = ""
|
||||
this.shuomingList = []
|
||||
}
|
||||
console.log(index);
|
||||
},
|
||||
goback() {
|
||||
uni.navigateBack()
|
||||
|
Loading…
Reference in New Issue
Block a user