yshop1.8发布,新增素材管理等,详细查看readme或登录网站后台查看

This commit is contained in:
hupeng
2020-01-10 22:59:16 +08:00
parent 509669fe9f
commit 0fade96648
37 changed files with 1025 additions and 77 deletions

View File

@ -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: {

View File

@ -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: {
}