|
|
@ -212,7 +212,6 @@ |
|
|
</div> |
|
|
</div> |
|
|
<!-- <div class="config-remarks">双击输入框可进行编辑。</div> --> |
|
|
<!-- <div class="config-remarks">双击输入框可进行编辑。</div> --> |
|
|
</div> |
|
|
</div> |
|
|
<bookRecommend ref="bookRecommendRef" @ready="initScreenBookRecommend" /> |
|
|
|
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
@ -221,12 +220,10 @@ |
|
|
<script> |
|
|
<script> |
|
|
import { FetchInitScreenSetting, FetchEditScreenSetting } from '@/api/digitalScreen/index' |
|
|
import { FetchInitScreenSetting, FetchEditScreenSetting } from '@/api/digitalScreen/index' |
|
|
import { mapGetters } from 'vuex' |
|
|
import { mapGetters } from 'vuex' |
|
|
import bookRecommend from '../digitalScreen/module/bookRecommend' |
|
|
|
|
|
|
|
|
|
|
|
export default { |
|
|
export default { |
|
|
name: 'WeChatMiniProgram', |
|
|
name: 'WeChatMiniProgram', |
|
|
components: { |
|
|
components: { |
|
|
bookRecommend |
|
|
|
|
|
}, |
|
|
}, |
|
|
data() { |
|
|
data() { |
|
|
return { |
|
|
return { |
|
|
@ -280,14 +277,7 @@ export default { |
|
|
this.initScreenSetting() |
|
|
this.initScreenSetting() |
|
|
}) |
|
|
}) |
|
|
}, |
|
|
}, |
|
|
methods: { |
|
|
|
|
|
initScreenBookRecommend() { |
|
|
|
|
|
this.$refs.bookRecommendRef.initScreenBookRecommend() |
|
|
|
|
|
if (this.$refs.bookRecommendRef) { |
|
|
|
|
|
this.$refs.bookRecommendRef.updateBookSwiper() |
|
|
|
|
|
} |
|
|
|
|
|
}, |
|
|
|
|
|
// 初始化智慧大屏基本数据 |
|
|
|
|
|
|
|
|
methods: { // 初始化智慧大屏基本数据 |
|
|
initScreenSetting() { |
|
|
initScreenSetting() { |
|
|
FetchInitScreenSetting({ 'libcode': this.user.fonds.fondsNo }).then(res => { |
|
|
FetchInitScreenSetting({ 'libcode': this.user.fonds.fondsNo }).then(res => { |
|
|
Object.values(res).forEach(item => { |
|
|
Object.values(res).forEach(item => { |
|
|
|