yshop1.8发布,新增素材管理等,详细查看readme或登录网站后台查看
This commit is contained in:
@ -8,7 +8,7 @@
|
||||
<el-input v-model="form.author" style="width: 370px;" />
|
||||
</el-form-item>
|
||||
<el-form-item label="封面">
|
||||
<pic-upload v-model="form.imageInput" style="width: 370px;" />
|
||||
<MaterialList v-model="form.imageArr" style="width: 370px" type="image" :num=1 :width=150 :height=150></MaterialList>
|
||||
</el-form-item>
|
||||
<el-form-item label="简介">
|
||||
<el-input v-model="form.synopsis" style="width: 370px;" rows="5" type="textarea" />
|
||||
@ -29,8 +29,9 @@ import { add, edit } from '@/api/yxArticle'
|
||||
import picUpload from '@/components/pic-upload'
|
||||
import editor from '../../components/Editor'
|
||||
import yamedit from '@/components/YamlEdit'
|
||||
import MaterialList from '@/components/material'
|
||||
export default {
|
||||
components: { editor, picUpload, yamedit },
|
||||
components: { editor, picUpload, yamedit, MaterialList },
|
||||
props: {
|
||||
isAdd: {
|
||||
type: Boolean,
|
||||
@ -46,6 +47,7 @@ export default {
|
||||
title: '',
|
||||
author: '',
|
||||
imageInput: '',
|
||||
imageArr: [],
|
||||
synopsis: '',
|
||||
content: '',
|
||||
shareTitle: '',
|
||||
@ -65,6 +67,13 @@ export default {
|
||||
}
|
||||
}
|
||||
},
|
||||
watch:{
|
||||
'form.imageArr': function(val) {
|
||||
if(val){
|
||||
this.form.imageInput = val.join(",");
|
||||
}
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
cancel() {
|
||||
this.resetForm()
|
||||
|
@ -152,6 +152,7 @@ export default {
|
||||
title: data.title,
|
||||
author: data.author,
|
||||
imageInput: data.imageInput,
|
||||
imageArr: data.imageInput.split(','),
|
||||
synopsis: data.synopsis,
|
||||
content: data.content,
|
||||
shareTitle: data.shareTitle,
|
||||
|
@ -17,7 +17,7 @@
|
||||
<el-input v-model="form.api" :disabled="true" style="width: 370px;" />
|
||||
</el-form-item>
|
||||
<el-form-item label="微信分享图片">
|
||||
<pic-upload v-model="form.wechat_share_img" style="width: 370px;" />
|
||||
<MaterialList v-model="form.imageArr" style="width: 370px" type="image" :num=1 :width=150 :height=150></MaterialList>
|
||||
</el-form-item>
|
||||
<el-form-item label="微信分享标题">
|
||||
<el-input v-model="form.wechat_share_title" style="width: 370px;" />
|
||||
@ -41,8 +41,9 @@ import { del, add, get } from '@/api/yxSystemConfig'
|
||||
import eForm from './form'
|
||||
import picUpload from '@/components/pic-upload'
|
||||
import { Message } from 'element-ui'
|
||||
import MaterialList from '@/components/material'
|
||||
export default {
|
||||
components: { eForm, picUpload },
|
||||
components: { eForm, picUpload, MaterialList },
|
||||
mixins: [initData],
|
||||
data() {
|
||||
return {
|
||||
@ -57,6 +58,7 @@ export default {
|
||||
wechat_encode: '',
|
||||
wechat_encodingaeskey: '',
|
||||
wechat_share_img: '',
|
||||
imageArr: [],
|
||||
wechat_qrcode: '',
|
||||
wechat_type: '',
|
||||
wechat_share_title: '',
|
||||
@ -68,6 +70,13 @@ export default {
|
||||
}
|
||||
}
|
||||
},
|
||||
watch:{
|
||||
'form.imageArr': function(val) {
|
||||
if(val){
|
||||
this.form.wechat_share_img = val.join(",");
|
||||
}
|
||||
}
|
||||
},
|
||||
created() {
|
||||
get().then(rese => {
|
||||
const newObj = {}
|
||||
@ -77,6 +86,7 @@ export default {
|
||||
})
|
||||
|
||||
this.form = newObj
|
||||
this.form.imageArr =this.form.wechat_share_img.split(',')
|
||||
})
|
||||
},
|
||||
methods: {
|
||||
|
@ -10,6 +10,9 @@
|
||||
<el-form-item label="商户密钥">
|
||||
<el-input v-model="form.wxpay_mchKey" style="width: 370px;" type="password" />
|
||||
</el-form-item>
|
||||
<el-form-item label="微信证书" >
|
||||
<file-upload v-model="form.wxpay_keyPath" style="width: 500px;"/>
|
||||
</el-form-item>
|
||||
<el-form-item label="">
|
||||
<el-button type="primary" @click="doSubmit">提交</el-button>
|
||||
</el-form-item>
|
||||
@ -26,8 +29,9 @@ import { del, add, get } from '@/api/yxSystemConfig'
|
||||
import eForm from './form'
|
||||
import picUpload from '@/components/pic-upload'
|
||||
import { Message } from 'element-ui'
|
||||
import fileUpload from '@/components/file-upload'
|
||||
export default {
|
||||
components: { eForm, picUpload },
|
||||
components: { eForm, picUpload, fileUpload },
|
||||
mixins: [initData],
|
||||
data() {
|
||||
return {
|
||||
@ -35,7 +39,8 @@ export default {
|
||||
form: {
|
||||
wxpay_appId: '',
|
||||
wxpay_mchId: '',
|
||||
wxpay_mchKey: ''
|
||||
wxpay_mchKey: '',
|
||||
wxpay_keyPath: ''
|
||||
},
|
||||
rules: {
|
||||
}
|
||||
|
Reference in New Issue
Block a user