From 087440ba61468890329de2c6837213649f082cec Mon Sep 17 00:00:00 2001
From: Wik-T <812952667@qq.com>
Date: Thu, 6 Jan 2022 21:48:16 +0800
Subject: [PATCH] =?UTF-8?q?1.=E6=96=B0=E5=A2=9E=E4=BB=A3=E7=90=86=E5=95=86?=
=?UTF-8?q?=E5=85=91=E6=8D=A2=E7=A0=81=E5=8A=9F=E8=83=BD=202.=E6=96=B0?=
=?UTF-8?q?=E5=A2=9E=E5=B7=A5=E4=BC=9A=E5=8D=A1=E5=85=85=E5=80=BC?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
Utils/Api.js | 5 +-
components/QS-tabs/QS-tabs.vue | 484 ++++++++++++++++++
.../coupons-info-details.vue | 18 +-
pages/pay/payment/payment.vue | 2 +-
pages/user/agentCoupons/agentCoupons.vue | 18 +-
pages/user/cardDes/cardDes.vue | 248 ++++-----
pages/user/minePromotion/minePromotion.vue | 382 +++++++++-----
pages/user/order_list/order_list.vue | 23 +-
pages/userLogin/userLogin.vue | 312 ++++++-----
.../trade-union-recharge.vue | 95 ++--
uni.scss | 4 +
11 files changed, 1121 insertions(+), 470 deletions(-)
create mode 100644 components/QS-tabs/QS-tabs.vue
diff --git a/Utils/Api.js b/Utils/Api.js
index a5a7d9d..8e490ef 100644
--- a/Utils/Api.js
+++ b/Utils/Api.js
@@ -342,7 +342,10 @@ export const generateCode = params => {
export const highremark = params => {
return POSTBREST('POST', `${brestBase}/highCouponAgent/remark`, params).then(res => res.data);
}
-
+//查询兑换码
+export const getAgentConvertCodeCount = params => {
+ return POSTBREST('GET', `${brestBase}/highCouponAgent/getAgentConvertCodeCount`, params).then(res => res.data);
+}
// 查看二维码
export const getCodeById = params => {
return POSTBREST('GET', `${brestBase}/highCouponAgent/getCodeById`, params).then(res => res.data);
diff --git a/components/QS-tabs/QS-tabs.vue b/components/QS-tabs/QS-tabs.vue
new file mode 100644
index 0000000..3f18146
--- /dev/null
+++ b/components/QS-tabs/QS-tabs.vue
@@ -0,0 +1,484 @@
+
+
+
+
+
+
+
+
+ {{item.name || item}}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/pages/goods/coupons-info-details/coupons-info-details.vue b/pages/goods/coupons-info-details/coupons-info-details.vue
index c6c92b5..c8748d8 100644
--- a/pages/goods/coupons-info-details/coupons-info-details.vue
+++ b/pages/goods/coupons-info-details/coupons-info-details.vue
@@ -27,18 +27,26 @@
备注:{{couponDesInfo.couponAgentCode.remark}}
-
- 核销码(商户扫客户)
-
+
+ 核销码(商户扫客户)
+
请告知加油员用码商支付
-
+
-
+
点击下方复制按钮,复制兑换码发送用户
{{couponDesInfo.couponAgentCode.convertCode}}
复制兑换码
+
+
+
+ 请告知加油员用码商支付
+
+
+
+ {{couponDesInfo.couponAgentCode.convertCode}}
diff --git a/pages/pay/payment/payment.vue b/pages/pay/payment/payment.vue
index 42f0118..c29f0e5 100644
--- a/pages/pay/payment/payment.vue
+++ b/pages/pay/payment/payment.vue
@@ -29,7 +29,7 @@
-
+
diff --git a/pages/user/agentCoupons/agentCoupons.vue b/pages/user/agentCoupons/agentCoupons.vue
index e23bd9f..be28572 100644
--- a/pages/user/agentCoupons/agentCoupons.vue
+++ b/pages/user/agentCoupons/agentCoupons.vue
@@ -31,9 +31,9 @@
+ v-if="typeId == 2 && (typeid == 2 || typeid == 3) ">查看详情
+ v-if="typeId == 2 && (typeid == 2 || typeid == 3) && agent.remark !=null ">
备注:{{agent.remark}}
@@ -127,7 +127,7 @@
return false;
}
let pagenum = this.pageNum;
- let params;
+ let params;
if (this.typeId == 1) {
if (this.typeid == 1) {
params = {
@@ -155,11 +155,19 @@
type: 1,
pageSize: this.pageSize
}
- } else {
+ } else if(this.typeid == 2){
params = {
pageNum: pagenum,
couponId: this.couponId,
- status: '2,3',
+ status: 2,
+ type: 2,
+ pageSize: this.pageSize
+ }
+ }else if(this.typeid == 3){
+ params = {
+ pageNum: pagenum,
+ couponId: this.couponId,
+ status: 3,
type: 2,
pageSize: this.pageSize
}
diff --git a/pages/user/cardDes/cardDes.vue b/pages/user/cardDes/cardDes.vue
index 355963b..0bacf1e 100644
--- a/pages/user/cardDes/cardDes.vue
+++ b/pages/user/cardDes/cardDes.vue
@@ -1,121 +1,129 @@
-
-
-
-
- 卡号 : {{user.hltCardNo.cardNo}}
- 余额 : {{tongCardPrice}}¥
-
- 查询明细
- 解绑
-
-
-
-
-
-
diff --git a/pages/user/minePromotion/minePromotion.vue b/pages/user/minePromotion/minePromotion.vue
index fc4d211..037734c 100644
--- a/pages/user/minePromotion/minePromotion.vue
+++ b/pages/user/minePromotion/minePromotion.vue
@@ -18,148 +18,228 @@
今日流水
-
-
-
-
-
- 库存管理
-
-
-
+
+
+
+
-
-
-
-
-
- 剩余库存({{mineproList.laveStockCount}})
-
-
- 总计 ¥{{mineproList.surplusCountPrice}}
+
+
+
+
+
+
+
+ 库存管理
+
+
-
- 暂无数据
-
-
- 面额{{mers.salesPrice}}
+
+
+
+
+
+ 剩余库存({{agentList.laveStockCount}})
+
+
+ 总计 ¥{{agentList.surplusCountPrice}}
+
-
- {{mers.stockCount}}张
+
+ 暂无数据
+
+
+ 面额{{mers.salesPrice}}
+
+
+ {{mers.stockCount}}张
+
+
+ {{mers.salesPrice*mers.stockCount}}
+
-
- {{mers.salesPrice*mers.stockCount}}
-
-
-
-
-
-
-
-
- 销售统计
-
-
-
-
-
-
-
-
- 已销售({{mineproList.soldCount}})
-
-
- 总计 ¥{{mineproList.salesCountPrice}}
+
+
+
+
+
+ 销售统计
+
+
- 暂无数据
-
-
-
- 面额{{mers.salesPrice}}
+
+
+
+
+
+ 已销售({{agentList.soldCount}})
+
+
+ 总计 ¥{{agentList.salesCountPrice}}
+
-
- {{mers.salesCount}}张
-
-
- {{mers.salesPrice*mers.salesCount}}
+ 暂无数据
+
+
+
+ 面额{{mers.salesPrice}}
+
+
+ {{mers.salesCount}}张
+
+
+ {{mers.salesPrice*mers.salesCount}}
+
-
-
-
-
-
- 兑换码库存
-
-
+
+
+
+
+
+ 销售统计
+
+
+
-
-
-
-
-
-
- 待使用({{codeList.laveStockCount}})
+
+
+
+
+
+ 待销售({{couponList.noSalesNum}})
+
+
+ 总计 ¥{{couponList.noSalesPrice}}
+
-
- 总计 ¥{{codeList.surplusCountPrice}}
+ 暂无数据
+
+
+ 面额{{mers.salesPrice}}
+
+
+ {{mers.stockCount}}张
+
+
+ {{mers.salesPrice*mers.stockCount}}
+
-
- 暂无数据
-
-
- 面额{{mers.salesPrice}}
+
+
+
+
+
+
+
+ 已销售({{couponList.salesNum}})
+
+
+ 总计 ¥{{couponList.salesPrice}}
+
-
- {{mers.salesPrice*mers.stockCount}}
+ 暂无数据
+
+
+
+ 面额{{mers.salesPrice}}
+
+
+ {{mers.noUsedNum}}张
+
+
+ {{mers.noUsedPrice}}
+
-
-
-
-
-
-
- 兑换码统计
-
-
+
+
+
+
+
+ 使用统计
+
+
+
-
-
-
-
-
-
- 已使用({{codeList.soldCount}})
+
+
+
+
+
+ 待使用({{couponList.noUsedNum}})
+
+
+ 总计 ¥{{couponList.noUsedPrice}}
+
-
- 总计 ¥{{codeList.salesCountPrice}}
+ 暂无数据
+
+
+ 面额{{mers.salesPrice}}
+
+
+ {{mers.noUsedNum}}张
+
+
+ {{mers.noUsedPrice}}
+
- 暂无数据
-
-
-
- 面额{{mers.salesPrice}}
+
+
+
+
+
+
+
+ 已使用({{couponList.usedNum}})
+
+
+ 总计 ¥{{couponList.usedPrice}}
+
-
- {{mers.salesPrice*mers.salesCount}}
+ 暂无数据
+
+
+
+ 面额{{mers.salesPrice}}
+
+
+ {{mers.usedNum}}张
+
+
+ {{mers.usedPrice}}
+
@@ -169,51 +249,88 @@
-
-
diff --git a/subPages/trade-union-recharge/trade-union-recharge.vue b/subPages/trade-union-recharge/trade-union-recharge.vue
index d07cc27..9125247 100644
--- a/subPages/trade-union-recharge/trade-union-recharge.vue
+++ b/subPages/trade-union-recharge/trade-union-recharge.vue
@@ -3,8 +3,10 @@
- 我的账户余额: {{tongCardPrice}} 个 ( 1:100)
+ 充值账号
+
@@ -24,7 +26,7 @@
自定义充值金额
-
+
@@ -36,17 +38,6 @@
-
@@ -86,88 +77,80 @@
data() {
return {
inputAmount: '', //金额
- amountList: [10, 50, 100], //预设3个可选快捷金额
+ amountList: [50, 100, 200], //预设3个可选快捷金额
paytype: 'wxpay', //支付类型
user: "",
imagewxUrl: app.globalData.imageWxImg,
imgadres: 'wxpay.png',
- tongCardPrice: 0
+ tongCardPrice: 0,
+ cardId: '' //工会卡号
};
},
- onLoad() {
- this.user = app.globalData.userInfo;
+ onLoad(options) {
+ this.cardId = options.cardId;
},
onShow() {
- if (this.user.isSetHltCard) {
- this.getHuiLianTongCardBalance();
- }
+ this.user = app.globalData.userInfo;
},
methods: {
- //查询详情
- getHuiLianTongCardBalance() {
- let params = {
- cardNo: this.user.hltCardNo.cardNo
- }
- getHuiLianTongCardBalance(params).then(res => {
- if (res.return_code == '000000') {
- this.tongCardPrice = res.return_data.balance;
- }
-
- });
- },
select(amount) {
this.inputAmount = amount;
},
doDeposit() {
- if (!this.user.isSetHltCard) {
+ if (!this.cardId) {
uni.showToast({
+ title: '请输入充值工会卡',
icon: 'none',
- title: '当前账号还未绑定,前往绑定',
- duration: 2000,
- success() {
- setTimeout(() => {
- uni.navigateTo({
- url: '../../pages/user/bindingCard/bindingCard'
- })
- }, 1000)
- }
+ duration: 2000
});
return;
}
if (parseFloat(this.inputAmount).toString() == "NaN") {
uni.showToast({
title: '请输入正确金额',
- icon: 'none'
+ icon: 'none',
+ duration: 2000
});
return;
}
if (this.inputAmount <= 0) {
uni.showToast({
title: '请输入大于0的金额',
- icon: 'none'
+ icon: 'none',
+ duration: 2000
+ });
+ return;
+ }
+ if (this.inputAmount > 2000) {
+ uni.showToast({
+ title: '充值金额不能超过大于2000',
+ icon: 'none',
+ duration: 2000
});
return;
}
if (parseFloat(this.inputAmount).toFixed(2) != parseFloat(this.inputAmount)) {
uni.showToast({
title: '最多只能输入两位小数哦~',
- icon: 'none'
+ icon: 'none',
+ duration: 2000
});
return;
}
uni.showLoading({
title: '正在提交订单...'
})
- let goods = {
+ let datas = {
"identificationCode": app.globalData.identificationCode,
+ "memCardNo": this.cardId,
"highChildOrderList": [{
- "goodsType": 2,
+ "goodsType": 8,
"goodsId": app.globalData.userInfo.id,
"saleCount": 1,
"goodsPrice": this.inputAmount
}]
}
- addOrder(goods).then(res => {
+ addOrder(datas).then(res => {
uni.hideLoading();
if (res.return_code == '000000') {
//模板模拟支付,实际应用请调起微信/支付宝
@@ -197,8 +180,7 @@
duration: 2000,
success() {
setTimeout(() => {
- uni.navigateBack({
- })
+ uni.navigateBack({})
}, 1000)
}
});
@@ -217,7 +199,9 @@
// #endif
} else {
uni.showToast({
- title: '支付失败'
+ title: '支付失败',
+ duration: 2000,
+ icon: 'none'
})
}
})
@@ -225,7 +209,9 @@
} else {
uni.showToast({
- title: res.return_msg
+ title: res.return_msg,
+ icon: 'none',
+ duration: 2000
});
}
})
@@ -304,11 +290,10 @@
.content {
.my {
width: 100%;
- height: 120upx;
+ height: 100upx;
display: flex;
align-items: center;
- font-size: 30upx;
- border-bottom: solid 1upx #eee;
+ font-size: 34upx;
}
.amount {
diff --git a/uni.scss b/uni.scss
index 0a178fb..c950983 100644
--- a/uni.scss
+++ b/uni.scss
@@ -486,6 +486,10 @@ $uni-font-size-paragraph:30upx;
.mart80{
margin-top: 80px;
+}
+
+.mart70{
+ margin-top: 70px;
}
.mart60{
margin-top: 60px;