diff --git a/src/main.ts b/src/main.ts index c6481eb2f96deabf288a0d0b7390cbcda2bd4d21..d689dec135f508589e685c2bd1352bb148257d8f 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 d3f8c9d8b14068b9513d3c6d453c900902b1779c..329335dc2d46133b1905e2b378915f2c55aa2cf9 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 0000000000000000000000000000000000000000..5f849a68a0e95bd5e32174d667d3b0c71bd9db62 --- /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 7e7dbf47f6c27eb99a6cc195fc8451de527b6126..fc61b6c83e0ee386e83ea499caecfe891aba2aa1 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", + }); + } }