|
@@ -1,8 +1,9 @@
|
|
|
<template>
|
|
|
<!-- 轮播详情 -->
|
|
|
<view>
|
|
|
- <u-navbar back-text="" title="" back-icon-color="#FFFFFF" :background="{ background: '#3D5D4C' }" :border-bottom="false"></u-navbar>
|
|
|
- <u-parse :html="dom"></u-parse>
|
|
|
+ <u-navbar back-text="" title="" back-icon-color="#FFFFFF" :background="{ background: '#3D5D4C' }"
|
|
|
+ :border-bottom="false"></u-navbar>
|
|
|
+ <u-parse class="ql-editor" :html="dom"></u-parse>
|
|
|
<u-toast ref="uToast" />
|
|
|
</view>
|
|
|
</template>
|
|
@@ -16,15 +17,18 @@
|
|
|
}
|
|
|
},
|
|
|
onLoad(page) {
|
|
|
+ console.log(page);
|
|
|
if (page.id) {
|
|
|
- this.getDetails(page.id);
|
|
|
this.type = page.type
|
|
|
+ this.getDetails(page.id);
|
|
|
}
|
|
|
},
|
|
|
methods: {
|
|
|
// 获取详情
|
|
|
getDetails(id) {
|
|
|
- this.$u.api.indexApi.indexBannerListApi({ type: this.type }).then(res => {
|
|
|
+ this.$u.api.indexApi.indexBannerListApi({
|
|
|
+ type: this.type
|
|
|
+ }).then(res => {
|
|
|
if (res.code === 200) {
|
|
|
const list = res.data
|
|
|
list.forEach(item => {
|