Compare commits

..

No commits in common. "6fdb9d201266992f22ca94dad998c2dbec5f1473" and "cbc9fc0ae20856d2d6a947f359710cfcb7fccef4" have entirely different histories.

3 changed files with 14 additions and 51 deletions

View File

@ -85,16 +85,6 @@ public class CardValueController extends BaseController {
return getSuccessResult(this.cardValueService.cardValueList(cardValue));
}
/**
* 查询本站会员充值卡列表小程序
* @param cardValue
* @return
*/
@GetMapping("cardValueLists")
public ResponseObject cardValueLists(@Param("cardValue") CardValue cardValue) {
return getSuccessResult(this.cardValueService.cardValueList(cardValue));
}
/**
* 通过主键查询单条数据
*

View File

@ -348,12 +348,12 @@ public class LJUserServiceImpl extends ServiceImpl<LJUserMapper, LJUser> impleme
LambdaQueryWrapper<MtUserFuel> queryWrapper =new LambdaQueryWrapper<>();
queryWrapper.eq(MtUserFuel::getStoreId,storeId).eq(MtUserFuel::getMtUserId,nowAccountInfo.getId());
List<MtUserFuel> list = userFuelService.list(queryWrapper);
ljUserVo.setUserFuels(list);
//判断当前用户是否存在车队
List<FleetInfoUniVo> fleetInfoUniVos = fleetInfoService.queryByStoreId(storeId);
if (CollUtil.isNotEmpty(fleetInfoUniVos)) {
ljUserVo.setFleetInfoUniVos(fleetInfoUniVos);
}
ljUserVo.setUserFuels(list);
return ljUserVo;
}

View File

@ -58,7 +58,7 @@
<view class="">会员卡类型</view>
<view class="d-bs" style="align-items: center;border-bottom: none;"
@click="cardType = true">
<view style="font-size: 12px;">储值卡余额{{user.cardBalance}}</view>
<view style="font-size: 12px;">储值卡余额6532.89</view>
<view style="line-height: 20px;">
<u-icon name="arrow-right" size="12px"></u-icon>
</view>
@ -203,29 +203,18 @@
<view class="anniubai">充值</view>
</view>
<view class="c_bs">
<view class="">{{user.cardBalance}}</view>
<!-- <view class="">NO.xxxxxxxxxxxxxxxxx</view> -->
<view class="">123456.98</view>
<view class="">NO.xxxxxxxxxxxxxxxxx</view>
</view>
</view>
<view class="c_pox" style="background: url('../../static/imgs/tyktc.png'); "
v-for="(item,index) in oilCardList" :key="index">
<view class="c_pox" style="background: url('../../static/imgs/tyktc.png'); ">
<view class="c_bs" style="margin-bottom: 15px; ">
<view class="">囤油卡</view>
<view class="anniubai" style="color: #70D0C7;">充值</view>
</view>
<view class="c_bs">
<view class="">{{item.fuelAmount}}</view>
<!-- <view class="">NO.xxxxxxxxxxxxxxxxx</view> -->
</view>
</view>
<view class="c_pox">
<view class="c_bs" style="margin-bottom: 15px;" v-for="(item,index) in fleetList" :key="index">
<view class="">{{item.fleetName}}</view>
<view class="anniubai">充值</view>
</view>
<view class="c_bs">
<view class="">{{item.totalBalance || 0}}</view>
<!-- <view class="">NO.xxxxxxxxxxxxxxxxx</view> -->
<view class="">123456.98</view>
<view class="">NO.xxxxxxxxxxxxxxxxx</view>
</view>
</view>
</view>
@ -273,7 +262,7 @@
<view class="p_ds" style="width: 85%;">
<view class="">
<view class="">消费应支付{{oilOrder.payAmount}}</view>
<view class="sm-size">会员-储值卡余额{{user.cardBalance}}</view>
<view class="sm-size">会员-储值卡余额8900.99</view>
</view>
<view class="anxuan">
<view class="dian"></view>
@ -306,7 +295,7 @@
</view>
<view class="p_bs">
<view class="">加油金额</view>
<view class="">{{oilOrder.orderAmount}}</view>
<view class="">256.89</view>
</view>
<view class="p_x"></view>
<view class="">优惠信息</view>
@ -425,10 +414,7 @@
couponList: [],
//
ifLogin: false,
orderInfo: {},
user: {},
oilCardList: [],
fleetList: []
orderInfo:{},
}
},
components: {
@ -492,22 +478,10 @@
onShow() {
this.getStore(uni.getStorageSync("storeId"));
this.getTheJudgmentIsTheSame()
this.getOilCard()
},
methods: {
//
getOilCard() {
request({
url: "business/userManager/user/storeUserInfo/" + uni.getStorageSync("storeId"),
method: 'get',
}).then(res => {
console.log(res, 491);
this.user = res.data
this.oilCardList = res.data.userFuels
this.fleetList = res.data.fleetInfoUniVos
})
},
//
payment() {
this.ifLogin = this.AppToken ? true : false
@ -603,8 +577,7 @@
success: function(res) {
console.log('success');
uni.redirectTo({
url: '/pagesRefuel/orderSuccess/index?orderNo=' + _this
.oilOrder.orderNo,
url: '/pagesRefuel/orderSuccess/index?orderNo=' + _this.oilOrder.orderNo,
})
},
fail: function(err) {
@ -632,8 +605,7 @@
if (resp.resultCode == '9000') {
console.log("支付成功")
uni.redirectTo({
url: '/pagesRefuel/orderSuccess/index?orderNo=' + _this
.oilOrder.orderNo,
url: '/pagesRefuel/orderSuccess/index?orderNo=' + _this.oilOrder.orderNo,
})
} else {
request({
@ -755,6 +727,7 @@
method: 'post',
data: this.oilOrder,
}).then((res) => {
console.log(res,578);
this.oilOrder = res.data
})
},