no message

This commit is contained in:
wangh 2023-12-01 16:40:20 +08:00
parent ef2ef63234
commit a913c83238
5 changed files with 57 additions and 35 deletions

View File

@ -1,6 +1,7 @@
package com.fuint.repository.model; package com.fuint.repository.model;
import com.baomidou.mybatisplus.annotation.IdType; import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId; import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName; import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable; import java.io.Serializable;
@ -28,8 +29,8 @@ public class MtUserGrade implements Serializable {
@TableId(value = "ID", type = IdType.AUTO) @TableId(value = "ID", type = IdType.AUTO)
private Integer id; private Integer id;
@ApiModelProperty("商户ID") // @ApiModelProperty("商户ID")
private Integer merchantId; // private Integer merchantId;
@ApiModelProperty("等级") @ApiModelProperty("等级")
private Integer grade; private Integer grade;
@ -37,19 +38,23 @@ public class MtUserGrade implements Serializable {
@ApiModelProperty("等级名称") @ApiModelProperty("等级名称")
private String name; private String name;
@ApiModelProperty("升级会员等级条件描述") // @ApiModelProperty("升级会员等级条件描述")
private String catchCondition; // private String catchCondition;
@ApiModelProperty("升级会员等级条件init:默认获取;pay:付费升级frequency:消费次数amount:累积消费金额升级") @ApiModelProperty("升级会员等级条件init:默认获取;pay:付费升级frequency:消费次数amount:累积消费金额升级")
@TableField(exist = false)
private String catchType; private String catchType;
@ApiModelProperty("达到升级条件的值") @ApiModelProperty("达到升级条件的值")
@TableField(exist = false)
private BigDecimal catchValue; private BigDecimal catchValue;
@ApiModelProperty("会员权益描述") @ApiModelProperty("会员权益描述")
@TableField(exist = false)
private String userPrivilege; private String userPrivilege;
@ApiModelProperty("有效期") @ApiModelProperty("有效期")
@TableField(exist = false)
private Integer validDay; private Integer validDay;
@ApiModelProperty("享受折扣") @ApiModelProperty("享受折扣")

View File

@ -47,6 +47,11 @@
"integrity": "sha512-vyL2OymJxmarO8gxMr0mhChsO9QGwhynfuu4+MHTAW6czfq9humCB7rKpUjDd9YUiDPU4mzpyupFSvOClAwbmQ==", "integrity": "sha512-vyL2OymJxmarO8gxMr0mhChsO9QGwhynfuu4+MHTAW6czfq9humCB7rKpUjDd9YUiDPU4mzpyupFSvOClAwbmQ==",
"dev": true "dev": true
}, },
"bignumber.js": {
"version": "9.1.2",
"resolved": "https://registry.npmjs.org/bignumber.js/-/bignumber.js-9.1.2.tgz",
"integrity": "sha512-2/mKyZH9K85bzOEfhXDBFZTGd1CTs+5IHpeFQo9luiBG7hghdC851Pj2WAhb6E3R6b9tZj/XKhbg4fum+Kepug=="
},
"binary-extensions": { "binary-extensions": {
"version": "2.2.0", "version": "2.2.0",
"resolved": "https://registry.npmjs.org/binary-extensions/-/binary-extensions-2.2.0.tgz", "resolved": "https://registry.npmjs.org/binary-extensions/-/binary-extensions-2.2.0.tgz",

View File

@ -1,6 +1,7 @@
{ {
"dependencies": { "dependencies": {
"@dcloudio/uni-ui": "^1.4.28", "@dcloudio/uni-ui": "^1.4.28",
"bignumber.js": "^9.1.2",
"uview-ui": "^2.0.36" "uview-ui": "^2.0.36"
}, },
"devDependencies": { "devDependencies": {

View File

@ -109,10 +109,11 @@
<script> <script>
import config from '@/config' import config from '@/config'
import request from '../../utils/request' import request from '../../utils/request'
// import BigNumber from BigNumber import BigNumber from 'bignumber.js';
export default { export default {
data() { data() {
return { return {
myPoints: 0, // myPoints: 0, //
@ -201,21 +202,22 @@
console.log("hhhhhhhhhhhhhhhhhhhhhhhhh") console.log("hhhhhhhhhhhhhhhhhhhhhhhhh")
this.allPoints = 0 this.allPoints = 0
this.allAmout = 0 this.allAmout = 0
let allPoints = new BigNumber(this.allPoints) let allPoints = new BigNumber(this.goodsInfo.exchangePoints)
let allAmout = new BigNumber(this.allAmout) let allAmout = new BigNumber(this.goodsInfo.exchangeAmount)
// //
if (this.value < 1) { if (this.value < 1) {
this.value = 1 this.value = 1
} }
let value = new BigNumber(this.value) let value = new BigNumber(this.value)
allPoints.times(value) allPoints = allPoints.times(value)
if (this.goodsInfo.exchangeMethod == '积分+金额') { if (this.goodsInfo.exchangeMethod == '积分+金额') {
allPoints.times(value) allAmout = allAmout.times(value)
} }
console.log("hhhhhhhhhhhhhhhhhhhhhhhhh11", allPoints)
// //
this.allPoints = Number(allPoints).toFixed(2); this.allPoints = Number(allPoints).toFixed(2);

View File

@ -9,7 +9,8 @@
</view> </view>
<!-- 顶部区域 --> <!-- 顶部区域 -->
<view style="background-color: white;width: 94%;margin: 15px auto;"> <view style="background-color: white;width: 94%;margin: 15px auto;">
<view style="font-weight: bold;height: 40px;line-height: 40px;margin-left: 10px;margin-top: 20px;">订单详情</view> <view style="font-weight: bold;height: 40px;line-height: 40px;margin-left: 10px;margin-top: 20px;">订单详情
</view>
<view class="desc"> <view class="desc">
<view>油站名称</view> <view>油站名称</view>
<view>{{store.name}}{{store.description ? "("+store.description+")" : ""}}</view> <view>{{store.name}}{{store.description ? "("+store.description+")" : ""}}</view>
@ -45,14 +46,16 @@
<view class="desc"> <view class="desc">
<view style="display: flex;"> <view style="display: flex;">
加油金 加油金
<span style="color: red;display: flex;">(余额0.00)<u-icon name="question-circle" color="red"></u-icon></span> <span style="color: red;display: flex;">(余额0.00)<u-icon name="question-circle"
color="red"></u-icon></span>
</view> </view>
<view>未选择优惠券</view> <view>未选择优惠券</view>
</view> </view>
</view> </view>
<view style="background-color: white;width: 94%;margin: 15px auto;"> <view style="background-color: white;width: 94%;margin: 15px auto;">
<view style="font-weight: bold;height: 40px;line-height: 40px;margin-left: 10px;margin-top: 20px;">支付方式</view> <view style="font-weight: bold;height: 40px;line-height: 40px;margin-left: 10px;margin-top: 20px;">支付方式
</view>
<view class="desc"> <view class="desc">
<view>微信支付</view> <view>微信支付</view>
<u-radio-group v-model="value"> <u-radio-group v-model="value">
@ -69,7 +72,8 @@
</view> </view>
<view style="color: red;font-size: 12px;">应付金额</view> <view style="color: red;font-size: 12px;">应付金额</view>
</view> </view>
<view style="margin-right: 20px;width: 30%;border-radius:30px;background-color: #1879ff;height: 40px;line-height: 40px;text-align: center;color: white"> <view
style="margin-right: 20px;width: 30%;border-radius:30px;background-color: #1879ff;height: 40px;line-height: 40px;text-align: center;color: white">
确认支付 确认支付
</view> </view>
</view> </view>
@ -83,17 +87,17 @@
data() { data() {
return { return {
title: '', title: '',
value:'', value: '',
orderNo:"", orderNo: "",
// //
oilOrder:{}, oilOrder: {},
// //
staff: {}, staff: {},
// //
store:{}, store: {},
oilPrice:0, oilPrice: 0,
// //
oilName:"", oilName: "",
} }
}, },
onLoad(e) { onLoad(e) {
@ -108,13 +112,15 @@
}, },
methods: { methods: {
// //
getOilOrder(){ getOilOrder() {
let _this = this; let _this = this;
request({ request({
url: "business/oilOrder/orderNo", url: "business/oilOrder/orderNo",
method: 'post', method: 'post',
data: {orderNo:_this.orderNo}, data: {
}).then((res)=>{ orderNo: _this.orderNo
},
}).then((res) => {
_this.oilOrder = res.data _this.oilOrder = res.data
_this.getStaffList(res.data.staffId) _this.getStaffList(res.data.staffId)
_this.getStore(res.data.storeId) _this.getStore(res.data.storeId)
@ -122,36 +128,38 @@
}) })
}, },
// //
getStore(id){ getStore(id) {
let _this = this; let _this = this;
request({ request({
url: "business/storeInformation/store/queryStoreById", url: "business/storeInformation/store/queryStoreById",
method: 'post', method: 'post',
data:{"storeId":id}, data: {
}).then((res)=>{ "storeId": id
},
}).then((res) => {
_this.store = res.data; _this.store = res.data;
}) })
}, },
// id // id
getStaffList(staffId){ getStaffList(staffId) {
let _this = this; let _this = this;
request({ request({
url: "business/member/staff/" + staffId, url: "business/member/staff/" + staffId,
method: 'get', method: 'get',
}).then((res)=>{ }).then((res) => {
_this.staff = res.data _this.staff = res.data
console.log(res,1) console.log(res, 1)
}) })
}, },
// //
getOilNumber(storeId){ getOilNumber(storeId) {
let _this = this; let _this = this;
request({ request({
url: "business/petrolStationManagement/oilNumber/getOilNumberName/" + storeId, url: "business/petrolStationManagement/oilNumber/getOilNumberName/" + storeId,
method: 'get', method: 'get',
}).then((res)=>{ }).then((res) => {
res.data.forEach(item => { res.data.forEach(item => {
if (item.oilName == _this.oilOrder.oils){ if (item.oilName == _this.oilOrder.oils) {
_this.oilPrice = item.gbPrice; _this.oilPrice = item.gbPrice;
_this.oilName = item.oilNames; _this.oilName = item.oilNames;
} }
@ -166,7 +174,7 @@
</script> </script>
<style scoped lang="scss"> <style scoped lang="scss">
.desc{ .desc {
height: 35px; height: 35px;
line-height: 35px; line-height: 35px;
margin-left: 20px; margin-left: 20px;
@ -176,6 +184,7 @@
font-size: 15px; font-size: 15px;
color: rgba(0, 0, 0, 0.65); color: rgba(0, 0, 0, 0.65);
} }
.bar { .bar {
width: 100%; width: 100%;
height: 70px; height: 70px;