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

View File

@ -47,6 +47,11 @@
"integrity": "sha512-vyL2OymJxmarO8gxMr0mhChsO9QGwhynfuu4+MHTAW6czfq9humCB7rKpUjDd9YUiDPU4mzpyupFSvOClAwbmQ==",
"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": {
"version": "2.2.0",
"resolved": "https://registry.npmjs.org/binary-extensions/-/binary-extensions-2.2.0.tgz",

View File

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

View File

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

View File

@ -9,7 +9,8 @@
</view>
<!-- 顶部区域 -->
<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>油站名称</view>
<view>{{store.name}}{{store.description ? "("+store.description+")" : ""}}</view>
@ -35,7 +36,7 @@
<view>{{staff.realName}}</view>
</view>
</view>
<view style="background-color: white;width: 94%;margin: 15px auto;">
<view class="desc">
<view>优惠券</view>
@ -45,14 +46,16 @@
<view class="desc">
<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 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>微信支付</view>
<u-radio-group v-model="value">
@ -69,7 +72,8 @@
</view>
<view style="color: red;font-size: 12px;">应付金额</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>
@ -83,17 +87,17 @@
data() {
return {
title: '',
value:'',
orderNo:"",
value: '',
orderNo: "",
//
oilOrder:{},
oilOrder: {},
//
staff: {},
//
store:{},
oilPrice:0,
store: {},
oilPrice: 0,
//
oilName:"",
oilName: "",
}
},
onLoad(e) {
@ -108,13 +112,15 @@
},
methods: {
//
getOilOrder(){
getOilOrder() {
let _this = this;
request({
url: "business/oilOrder/orderNo",
method: 'post',
data: {orderNo:_this.orderNo},
}).then((res)=>{
data: {
orderNo: _this.orderNo
},
}).then((res) => {
_this.oilOrder = res.data
_this.getStaffList(res.data.staffId)
_this.getStore(res.data.storeId)
@ -122,36 +128,38 @@
})
},
//
getStore(id){
getStore(id) {
let _this = this;
request({
url: "business/storeInformation/store/queryStoreById",
method: 'post',
data:{"storeId":id},
}).then((res)=>{
data: {
"storeId": id
},
}).then((res) => {
_this.store = res.data;
})
},
// id
getStaffList(staffId){
getStaffList(staffId) {
let _this = this;
request({
url: "business/member/staff/" + staffId,
method: 'get',
}).then((res)=>{
}).then((res) => {
_this.staff = res.data
console.log(res,1)
console.log(res, 1)
})
},
//
getOilNumber(storeId){
getOilNumber(storeId) {
let _this = this;
request({
url: "business/petrolStationManagement/oilNumber/getOilNumberName/" + storeId,
method: 'get',
}).then((res)=>{
}).then((res) => {
res.data.forEach(item => {
if (item.oilName == _this.oilOrder.oils){
if (item.oilName == _this.oilOrder.oils) {
_this.oilPrice = item.gbPrice;
_this.oilName = item.oilNames;
}
@ -166,7 +174,7 @@
</script>
<style scoped lang="scss">
.desc{
.desc {
height: 35px;
line-height: 35px;
margin-left: 20px;
@ -176,6 +184,7 @@
font-size: 15px;
color: rgba(0, 0, 0, 0.65);
}
.bar {
width: 100%;
height: 70px;
@ -186,7 +195,7 @@
align-items: center;
justify-content: space-between;
}
.content {
background: #f4f5f6;
}