|
@@ -11,7 +11,7 @@
|
|
</template>
|
|
</template>
|
|
|
|
|
|
<script>
|
|
<script>
|
|
-import { getContent } from '@/api/guide'
|
|
|
|
|
|
+import { detail } from '@/api/guide'
|
|
export default {
|
|
export default {
|
|
data() {
|
|
data() {
|
|
return {
|
|
return {
|
|
@@ -19,8 +19,12 @@ export default {
|
|
}
|
|
}
|
|
},
|
|
},
|
|
onLoad(e) {
|
|
onLoad(e) {
|
|
- if (e.deviceModel) {
|
|
|
|
- getContent({ clientType: e.deviceModel }).then(res => {
|
|
|
|
|
|
+ if (e) {
|
|
|
|
+ let data = {
|
|
|
|
+ clientType: e.deviceModel,
|
|
|
|
+ id: e.id
|
|
|
|
+ }
|
|
|
|
+ detail(data).then(res => {
|
|
if (res.data.code === 0) {
|
|
if (res.data.code === 0) {
|
|
this.content = res.data.data.guidePageContent
|
|
this.content = res.data.data.guidePageContent
|
|
}
|
|
}
|
|
@@ -44,7 +48,7 @@ export default {
|
|
overflow-y: scroll;
|
|
overflow-y: scroll;
|
|
}
|
|
}
|
|
|
|
|
|
- .no-data{
|
|
|
|
|
|
+ .no-data {
|
|
position: absolute;
|
|
position: absolute;
|
|
top: 50%;
|
|
top: 50%;
|
|
left: 50%;
|
|
left: 50%;
|
|
@@ -60,7 +64,7 @@ export default {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
-img{
|
|
|
|
|
|
+img {
|
|
width: 100%;
|
|
width: 100%;
|
|
}
|
|
}
|
|
</style>
|
|
</style>
|