From 25ab600679bd81a68ae6fe74f963db2e1c40e4d3 Mon Sep 17 00:00:00 2001 From: wangliang Date: Tue, 26 Jul 2022 16:59:15 +0800 Subject: [PATCH] =?UTF-8?q?=E5=85=91=E6=8D=A2=E8=AE=B0=E5=BD=95,=E5=90=88?= =?UTF-8?q?=E4=BD=9C=E4=BC=81=E4=B8=9A=E9=A1=B5=E9=9D=A2=E5=AE=9E=E7=8E=B0?= =?UTF-8?q?=E5=AE=8C=E6=AF=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main.ts | 2 +- src/router/workbench.routing.ts | 7 +++++ src/views/workbench/ExchangeDetail.vue | 31 ++++++++++++++++++++ src/views/workbench/ExchangeRecord.vue | 40 ++++++++++++++++++++++---- 4 files changed, 73 insertions(+), 7 deletions(-) create mode 100644 src/views/workbench/ExchangeDetail.vue diff --git a/src/main.ts b/src/main.ts index c6481eb..d689dec 100644 --- a/src/main.ts +++ b/src/main.ts @@ -26,7 +26,7 @@ import "@dhccmobile/common-style"; import "vant/lib/index.css"; import "@/assets/css/index.scss"; import nativeService from "@/services/native.service"; - + import { Step, Steps } from 'vant'; import vueEsign from 'vue-esign'; diff --git a/src/router/workbench.routing.ts b/src/router/workbench.routing.ts index d3f8c9d..329335d 100644 --- a/src/router/workbench.routing.ts +++ b/src/router/workbench.routing.ts @@ -60,5 +60,12 @@ const workbenchRoutes = [ props: propsConvert, meta: { keepAlive: false, requiresAuth: true, name: "兑换记录" }, }, + { + path: `/ExchangeDetail`, + name: 'ExchangeDetail', + component: () => import(/* webpackChunkName: "customer-mgt" */ "@/views/workbench/ExchangeDetail.vue"), + props: propsConvert, + meta: { keepAlive: false, requiresAuth: true, name: "兑换详情" }, + }, ]; export default workbenchRoutes; diff --git a/src/views/workbench/ExchangeDetail.vue b/src/views/workbench/ExchangeDetail.vue new file mode 100644 index 0000000..5f849a6 --- /dev/null +++ b/src/views/workbench/ExchangeDetail.vue @@ -0,0 +1,31 @@ + + + + + diff --git a/src/views/workbench/ExchangeRecord.vue b/src/views/workbench/ExchangeRecord.vue index 7e7dbf4..fc61b6c 100644 --- a/src/views/workbench/ExchangeRecord.vue +++ b/src/views/workbench/ExchangeRecord.vue @@ -27,20 +27,30 @@ {{ item.text }} - 本月获取积分3842 已消耗3400 + 本月获取积分{{num}} 已消耗3400
- + 存款积分奖励 - 3211 + + {{numA}} - + 2022-07-24 15:38 +
+ + 过期积分 + + {{numB}} + + + 2022-07-24 15:38 +
-
+
@@ -48,7 +58,7 @@
本月
-
+
@@ -78,23 +88,36 @@ import {Component, Vue} from "vue-property-decorator"; name: "ExchangeRecord", }) export default class ExchangeRecord extends Vue { + showNow=true; + showPast=true; + active=""; + num=3842; + numA="+3200"; + numB="-2000"; titleName="积分收支明细"; titleflag= true; + daijinquan=[{},{},{}]; all(params:number){ if(params ==0){//点击全部 this.btn[0].flage=true; this.btn[1].flage=false; this.btn[2].flage=false; + this.showNow=true; + this.showPast=true; //todo } else if(params ==1){//点击全部 this.btn[0].flage=false; this.btn[1].flage=true; this.btn[2].flage=false; + this.showPast=false; + this.showNow=true; //todo }if(params ==2){//点击全部 this.btn[0].flage=false; this.btn[1].flage=false; this.btn[2].flage=true; + this.showNow=false; + this.showPast=true; //todo } } @@ -103,6 +126,11 @@ export default class ExchangeRecord extends Vue { {text:'已获取',flage:false}, {text:'已消耗',flage:false}, ]; + changePage() { + this.$router.push({ + name: "ExchangeDetail", + }); + } } -- 2.22.0