|
@@ -106,9 +106,9 @@
|
|
|
</p>
|
|
|
|
|
|
</div>
|
|
|
- <div class="status">
|
|
|
- <router-link v-if="item.status == 1" to="/home/pointsMall" class="use-btn">
|
|
|
- 去使用
|
|
|
+ <div v-if="item.status == 1" class="status">
|
|
|
+ <router-link to="/home/pointsMall" class="use-btn">
|
|
|
+ <span @click="setTab">去使用</span>
|
|
|
<i class="el-icon-arrow-right"></i>
|
|
|
</router-link>
|
|
|
</div>
|
|
@@ -127,6 +127,7 @@
|
|
|
</template>
|
|
|
<script scoped>
|
|
|
import { orderList, welfareList,notice,integralTypes,userlogs, } from "@/api/allApi";
|
|
|
+import { getTab,setTab } from '@/utils/auth'
|
|
|
export default {
|
|
|
data() {
|
|
|
return {
|
|
@@ -186,11 +187,23 @@ export default {
|
|
|
};
|
|
|
},
|
|
|
created() {
|
|
|
+ const Tab = getTab();
|
|
|
+ if(Tab == 'exchange'){
|
|
|
+ this.activeName = 'second';
|
|
|
+ this.getSecondList('0,1,2,3,4');
|
|
|
+ };
|
|
|
+ if(Tab == 'welfare'){
|
|
|
+ this.activeName = 'third';
|
|
|
+ this.getThirdList();
|
|
|
+ };
|
|
|
this.getIntegralTypes();
|
|
|
this.getFirstList();
|
|
|
this.getIntegralNotice();
|
|
|
},
|
|
|
methods: {
|
|
|
+ setTab(){
|
|
|
+ setTab('gift');
|
|
|
+ },
|
|
|
getIntegralNotice(){
|
|
|
notice({noticeType:'integralNotice'}).then(response=>{
|
|
|
this.integralRules = response.data.data.content;
|