设置-联系我们

master
panqihua 2 years ago
parent a17949fa1a
commit 0b1c033c9e
  1. 60
      src/views/platform/config/contact_us.vue
  2. 44
      src/views/platform/config/other.vue
  3. 3
      src/views/platform/public/upload_img.vue

@ -0,0 +1,60 @@
<template>
<div class="app-container">
<el-form inline label-width="100px">
<el-form-item label="电话">
<el-input placeholder="请输入"/>
</el-form-item>
<br/>
<el-form-item label="微信">
<el-input placeholder="请输入"/>
</el-form-item>
<br/>
<el-form-item label="二维码">
<upload-img @file:change="wechat_qrcode" :limit="1"></upload-img>
</el-form-item>
<br/>
<el-form-item label="QQ">
<el-input placeholder="请输入"/>
</el-form-item>
<br/>
<el-form-item label="二维码">
<upload-img @file:change="qq_qrcode" :limit="1"></upload-img>
</el-form-item>
<br/>
<el-form-item label="邮箱">
<el-input placeholder="请输入"/>
</el-form-item>
</el-form>
<div class="text-center">
<el-button type="primary">保存</el-button>
<el-button>重置</el-button>
</div>
</div>
</template>
<script>
import UploadImg from '@/views/platform/public/upload_img'
export default {
name: 'contact_us',
components: { UploadImg },
data() {
return {
wechatImg: undefined,
qqImg: undefined
}
},
methods: {
wechat_qrcode(file, fileList) {
},
qq_qrcode(file, fileList) {
}
}
}
</script>
<style scoped>
</style>

@ -0,0 +1,44 @@
<template>
<div class="app-container">
<el-form inline label-width="100px">
<el-form-item label="备案号">
<el-input placeholder="请输入"/>
</el-form-item>
<el-form-item label="版本号">
<el-input placeholder="请输入"/>
</el-form-item>
<el-form-item label="自营商城">
<el-radio v-model="self" :label="item.value" :key="item.value" v-for="item in dict.type.config_switch">
{{ item.label }}
</el-radio>
</el-form-item>
<el-form-item label="自营商城">
<el-radio v-model="authorization" :label="item.value" :key="item.value"
v-for="item in dict.type.authorization_settings">{{ item.label }}
</el-radio>
</el-form-item>
</el-form>
<div class="text-center">
<el-button type="primary">保存</el-button>
<el-button>重置</el-button>
</div>
</div>
</template>
<script>
export default {
name: 'other',
dicts: ['config_switch', 'authorization_settings'],
data() {
return {
self: '0',
authorization: '0'
}
}
}
</script>
<style scoped>
</style>

@ -1,6 +1,7 @@
<template>
<el-upload :on-remove="onChange" :file-list="imgList" :on-change="onChange"
list-type="picture" action="#" :auto-upload="false" :limit="limit">
list-type="picture" action="#" :auto-upload="false" :limit="limit"
accept="image/png,image/jpeg">
<i class="el-icon-plus" v-if="imgList.length <limit"></i>
</el-upload>
</template>

Loading…
Cancel
Save