shuguanshubanintro.vue
1.3 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
<template>
<div class="box">
<div class="intro">
<rich-text class="conRich" :nodes="content"></rich-text>
</div>
</div>
</template>
<script>
import app from "../../App.vue"
export default {
data() {
return {
intro: '',
introid: '',
content: ''
}
},
methods: {
// 获取数板数管简介详情
getintroduce() {
let param = {
id: this.introid
}
console.log(param)
app.post("api/index/getDetail", param, 'get')
.then(res => {
console.log(res, "数控数板的说明");
this.content = res.description;
})
.catch(err => {
console.log(err)
// uni.showToast({
// title: '请先登录',
// icon: 'none'
// });
//
// setTimeout(function() {
// uni.navigateTo({
// url: '/pages/qidong/qidong'
// });
// }, 1000)
});
}
},
onLoad(options) {
console.log(options)
this.introid = options.id;
this.getintroduce()
},
mounted() {
//获取简介详情
// this.getintroduce()
},
created() {
}
}
</script>
<style>
.box {
background: #F5F5F5;
padding: 40rpx 34rpx;
box-sizing: border-box;
}
.intro {
background: #fff;
height: 1112rpx;
overflow-y: scroll;
padding: 30rpx;
box-sizing: border-box;
font-size: 28rpx;
color: #404040;
}
</style>