202404 免责声明
This commit is contained in:
@@ -23,14 +23,12 @@
|
|||||||
"js-cookie": "2.1.4",
|
"js-cookie": "2.1.4",
|
||||||
"jsonlint": "1.6.2",
|
"jsonlint": "1.6.2",
|
||||||
"less-loader": "^4.0.5",
|
"less-loader": "^4.0.5",
|
||||||
"marked": "^12.0.2",
|
|
||||||
"merge": "^1.2.0",
|
"merge": "^1.2.0",
|
||||||
"mockjs": "1.0.1-beta3",
|
"mockjs": "1.0.1-beta3",
|
||||||
"moment": "^2.22.0",
|
"moment": "^2.22.0",
|
||||||
"normalize.css": "7.0.0",
|
"normalize.css": "7.0.0",
|
||||||
"nprogress": "0.2.0",
|
"nprogress": "0.2.0",
|
||||||
"querystring": "^0.2.0",
|
"querystring": "^0.2.0",
|
||||||
"scandir": "^0.1.2",
|
|
||||||
"screenfull": "3.2.2",
|
"screenfull": "3.2.2",
|
||||||
"showdown": "1.7.1",
|
"showdown": "1.7.1",
|
||||||
"simplemde": "1.11.2",
|
"simplemde": "1.11.2",
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ import http from '@/utils/http'
|
|||||||
* 查询免责声明
|
* 查询免责声明
|
||||||
*/
|
*/
|
||||||
export function find() {
|
export function find() {
|
||||||
return http.post('/notice/disclaimers')
|
return http.get('/notice/disclaimers')
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -9,7 +9,7 @@
|
|||||||
<div class="app-container app-edit">
|
<div class="app-container app-edit">
|
||||||
<el-form class="small-space" :model="form" :rules="rules" ref="form" label-position="right" label-width="120px" style="width: 700px;">
|
<el-form class="small-space" :model="form" :rules="rules" ref="form" label-position="right" label-width="120px" style="width: 700px;">
|
||||||
<!-- 简介 -->
|
<!-- 简介 -->
|
||||||
<el-form-item label="简介" prop="description">
|
<el-form-item label="免责声明" prop="description">
|
||||||
<tinymce :height="300" v-model="form.description" id='tinymce' style="width:900px"></tinymce>
|
<tinymce :height="300" v-model="form.description" id='tinymce' style="width:900px"></tinymce>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-form>
|
</el-form>
|
||||||
@@ -19,7 +19,7 @@
|
|||||||
|
|
||||||
<script>
|
<script>
|
||||||
import Sticky from '@/components/Sticky'
|
import Sticky from '@/components/Sticky'
|
||||||
import { find, save } from '@/api//about/us'
|
import { find, save } from '@/api/disclaimers/edit'
|
||||||
import Tinymce from '@/components/Tinymce'
|
import Tinymce from '@/components/Tinymce'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
@@ -56,18 +56,16 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
this.form.id = 1
|
this.findById()
|
||||||
this.findById(this.form.id)
|
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
/**
|
/**
|
||||||
* 查询关于我们
|
* 查询关于我们
|
||||||
*/
|
*/
|
||||||
findById(id) {
|
findById() {
|
||||||
find(id).then(response => {
|
find().then(response => {
|
||||||
this.form.image = response.aboutUs.image
|
this.form.id = response.disclaimers.id
|
||||||
this.form.description = response.aboutUs.description
|
this.form.description = response.disclaimers.description
|
||||||
this.form.platformId = response.aboutUs.platformId
|
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user