Browse Source

作品详情页主题样式不符合修改

lyb 4 years ago
parent
commit
7927173c49
1 changed files with 5 additions and 4 deletions
  1. 5 4
      pages/activity/activityDetail.vue

+ 5 - 4
pages/activity/activityDetail.vue

@@ -593,16 +593,17 @@
 
 			//获取活动参数
 			async getActivitySetting() {
-				if (this.$isNotEmpty(this.vuex_active_setting)) { //有缓存直接从缓存获取
-					this.activitySetting = this.vuex_active_setting;
-					return;
-				}
+				// if (this.$isNotEmpty(this.vuex_active_setting)) { //有缓存直接从缓存获取
+				// 	this.activitySetting = this.vuex_active_setting;
+				// 	return;
+				// }
 
 				let params = {
 					activeId: this.activity.activeId,
 					platformSettingEnum: 'ACTIVE_SETTING'
 				}
 				let activeSetting = JSON.parse((await this.$api.platform.getPlatformValue(params)).data.data);
+				this.$config.setTheme(activeSetting.theme, this);
 				this.activitySetting = activeSetting;
 				activeSetting.defaultActiveId = this.activity.activeId
 				this.$u.vuex('vuex_active_setting', activeSetting);