|
@@ -48,7 +48,8 @@
|
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
</div>
|
|
|
- <div v-else class="integralRules" v-html="integralRules"></div>
|
|
|
|
|
|
|
+ <div v-if="firstTabPosition == 'integralRules'" class="integralRules" v-html="integralRules"></div>
|
|
|
|
|
+ <div v-if="firstTabPosition == 'activityRules'" class="integralRules" v-html="activityRules"></div>
|
|
|
</el-tab-pane>
|
|
</el-tab-pane>
|
|
|
<el-tab-pane label="我的兑换" name="second">
|
|
<el-tab-pane label="我的兑换" name="second">
|
|
|
<el-radio-group v-model="secondTabPosition" @change="handleClickSecondTabs">
|
|
<el-radio-group v-model="secondTabPosition" @change="handleClickSecondTabs">
|
|
@@ -324,6 +325,10 @@ export default {
|
|
|
value: 'integralRules',
|
|
value: 'integralRules',
|
|
|
name: '积分规则',
|
|
name: '积分规则',
|
|
|
},
|
|
},
|
|
|
|
|
+ {
|
|
|
|
|
+ value: 'activityRules',
|
|
|
|
|
+ name: '活跃度判定规则',
|
|
|
|
|
+ },
|
|
|
],
|
|
],
|
|
|
fourthTabPosition: '1',
|
|
fourthTabPosition: '1',
|
|
|
fourthTabsList: [
|
|
fourthTabsList: [
|
|
@@ -382,6 +387,7 @@ export default {
|
|
|
tableData: [],
|
|
tableData: [],
|
|
|
currentPage: 1,
|
|
currentPage: 1,
|
|
|
integralRules: '',
|
|
integralRules: '',
|
|
|
|
|
+ activityRules: '',
|
|
|
activeName: 'first',
|
|
activeName: 'first',
|
|
|
total: 0,
|
|
total: 0,
|
|
|
listQuery: {
|
|
listQuery: {
|
|
@@ -399,14 +405,15 @@ export default {
|
|
|
if (Tab == 'exchange') {
|
|
if (Tab == 'exchange') {
|
|
|
this.activeName = 'second';
|
|
this.activeName = 'second';
|
|
|
this.getSecondList('0,1,2,3,4');
|
|
this.getSecondList('0,1,2,3,4');
|
|
|
- };
|
|
|
|
|
|
|
+ }
|
|
|
if (Tab == 'welfare') {
|
|
if (Tab == 'welfare') {
|
|
|
this.activeName = 'third';
|
|
this.activeName = 'third';
|
|
|
this.getThirdList();
|
|
this.getThirdList();
|
|
|
- };
|
|
|
|
|
|
|
+ }
|
|
|
this.getIntegralTypes();
|
|
this.getIntegralTypes();
|
|
|
this.getFirstList();
|
|
this.getFirstList();
|
|
|
this.getIntegralNotice();
|
|
this.getIntegralNotice();
|
|
|
|
|
+ this.getActivityRules();
|
|
|
},
|
|
},
|
|
|
methods: {
|
|
methods: {
|
|
|
getAnswerList() {
|
|
getAnswerList() {
|
|
@@ -460,6 +467,11 @@ export default {
|
|
|
this.integralRules = response.data.data.content;
|
|
this.integralRules = response.data.data.content;
|
|
|
})
|
|
})
|
|
|
},
|
|
},
|
|
|
|
|
+ getActivityRules() {
|
|
|
|
|
+ notice({ noticeType: 'activityRules' }).then(response => {
|
|
|
|
|
+ this.activityRules = response.data.data.content;
|
|
|
|
|
+ })
|
|
|
|
|
+ },
|
|
|
getIntegralTypes() {
|
|
getIntegralTypes() {
|
|
|
integralTypes({ dictType: 'integral_rule_type' }).then(response => {
|
|
integralTypes({ dictType: 'integral_rule_type' }).then(response => {
|
|
|
this.options = response.data.data;
|
|
this.options = response.data.data;
|