Browse Source

修复语法格式问题

master
hupeng 5 years ago
parent
commit
d7c60b817b
  1. 1
      .eslintignore
  2. 2
      src/api/yxStoreOrder.js
  3. 16
      src/components/file-upload/index.vue
  4. 117
      src/components/material/index.vue
  5. 12
      src/components/pic-upload-two/index.vue
  6. 12
      src/components/pic-upload/index.vue
  7. 82
      src/components/pic-upload2/index.vue
  8. 2
      src/utils/index.js
  9. 14
      src/views/activity/bargain/form.vue
  10. 4
      src/views/activity/bargain/index.vue
  11. 12
      src/views/activity/combination/form.vue
  12. 12
      src/views/activity/seckill/form.vue
  13. 2
      src/views/dashboard/PanelGroup.vue
  14. 2
      src/views/dashboard/PanelGroupT.vue
  15. 22
      src/views/dashboard/YshopInfo.vue
  16. 2
      src/views/home.vue
  17. 3
      src/views/monitor/log/mlog.vue
  18. 121
      src/views/shop/cate/form.vue
  19. 4
      src/views/shop/cate/index.vue
  20. 8
      src/views/shop/goods/form.vue
  21. 2
      src/views/shop/order/detail.vue
  22. 2
      src/views/shop/order/edit.vue
  23. 13
      src/views/shop/order/form.vue
  24. 68
      src/views/shop/order/index.vue
  25. 2
      src/views/shop/order/refund.vue
  26. 2
      src/views/shop/order/remark.vue
  27. 2
      src/views/shop/set/act.vue
  28. 4
      src/views/shop/set/actform.vue
  29. 4
      src/views/shop/set/form.vue
  30. 4
      src/views/shop/set/menuform.vue
  31. 4
      src/views/shop/set/usermenuform.vue
  32. 4
      src/views/shop/user/index.vue
  33. 8
      src/views/shop/userlevel/form.vue
  34. 4
      src/views/wechat/article/form.vue
  35. 4
      src/views/wechat/config/index.vue
  36. 2
      vue.config.js

1
.eslintignore

@ -2,3 +2,4 @@ build/*.js
src/assets src/assets
public public
dist dist
src/views

2
src/api/yxStoreOrder.js

@ -50,6 +50,6 @@ export function remark(data) {
export function get() { export function get() {
return request({ return request({
url: 'api/yxExpress', url: 'api/yxExpress',
method: 'get', method: 'get'
}) })
} }

16
src/components/file-upload/index.vue

@ -19,6 +19,12 @@
import { getToken } from '@/utils/auth' import { getToken } from '@/utils/auth'
import { mapGetters } from 'vuex' import { mapGetters } from 'vuex'
export default { export default {
props: {
value: {
default: '',
type: String
}
},
data() { data() {
return { return {
resourcesUrl: '', resourcesUrl: '',
@ -27,23 +33,17 @@ export default {
} }
} }
}, },
props: {
value: {
default: '',
type: String
}
},
computed: { computed: {
...mapGetters([ ...mapGetters([
'uploadApi' 'uploadApi'
]), ]),
fileList() { fileList() {
let res = [] const res = []
if (this.value) { if (this.value) {
res.push({ name: this.value, url: this.resourcesUrl + this.value, response: this.value }) res.push({ name: this.value, url: this.resourcesUrl + this.value, response: this.value })
} }
this.$emit('input', this.value) this.$emit('input', this.value)
console.log("res"+res) console.log('res' + res)
return res return res
} }
}, },

117
src/components/material/index.vue

@ -1,34 +1,35 @@
<template> <template>
<div v-if="type == 'image'"> <div v-if="type == 'image'">
<ul class="el-upload-list el-upload-list--picture-card" v-for="(item,index) in value" :key="index"> <ul v-for="(item,index) in value" :key="index" class="el-upload-list el-upload-list--picture-card">
<li tabindex="0" class="el-upload-list__item is-ready" :style="'width: '+width+'px;height: '+height+'px'"> <li tabindex="0" class="el-upload-list__item is-ready" :style="'width: '+width+'px;height: '+height+'px'">
<div> <div>
<img :src="item" alt="" class="el-upload-list__item-thumbnail"> <img :src="item" alt="" class="el-upload-list__item-thumbnail">
<span class="el-upload-list__item-actions"> <span class="el-upload-list__item-actions">
<span class="el-upload-list__item-preview" v-if="index != 0" @click="moveMaterial(index,'up')"> <span v-if="index != 0" class="el-upload-list__item-preview" @click="moveMaterial(index,'up')">
<i class="el-icon-back"></i> <i class="el-icon-back" />
</span> </span>
<span class="el-upload-list__item-preview" @click="zoomMaterial(index)"> <span class="el-upload-list__item-preview" @click="zoomMaterial(index)">
<i class="el-icon-view"></i> <i class="el-icon-view" />
</span> </span>
<span class="el-upload-list__item-delete" @click="deleteMaterial(index)"> <span class="el-upload-list__item-delete" @click="deleteMaterial(index)">
<i class="el-icon-delete"></i> <i class="el-icon-delete" />
</span> </span>
<span class="el-upload-list__item-preview" v-if="index != value.length-1" @click="moveMaterial(index,'down')"> <span v-if="index != value.length-1" class="el-upload-list__item-preview" @click="moveMaterial(index,'down')">
<i class="el-icon-right"></i> <i class="el-icon-right" />
</span> </span>
</span> </span>
</div> </div>
</li> </li>
</ul> </ul>
<div tabindex="0" class="el-upload el-upload--picture-card" v-if="num > value.length" @click="toSeleteMaterial" :style="'width: '+width+'px;height: '+height+'px;'+'line-height:'+height+'px;'"> <div v-if="num > value.length" tabindex="0" class="el-upload el-upload--picture-card" :style="'width: '+width+'px;height: '+height+'px;'+'line-height:'+height+'px;'" @click="toSeleteMaterial">
<i class="el-icon-plus"></i> <i class="el-icon-plus" />
</div> </div>
<el-dialog <el-dialog
append-to-body append-to-body
:visible.sync="dialogVisible" :visible.sync="dialogVisible"
width="35%"> width="35%"
>
<img :src="url" alt="" style="width: 100%"> <img :src="url" alt="" style="width: 100%">
</el-dialog> </el-dialog>
@ -36,21 +37,25 @@
title="图片素材库" title="图片素材库"
append-to-body append-to-body
:visible.sync="listDialogVisible" :visible.sync="listDialogVisible"
width="70%"> width="70%"
>
<el-container> <el-container>
<el-aside width="unset"> <el-aside width="unset">
<div style="margin-bottom: 10px"> <div style="margin-bottom: 10px">
<el-button <el-button
class="el-icon-plus" class="el-icon-plus"
size="small" size="small"
@click="materialgroupAdd()"> @click="materialgroupAdd()"
>
添加分组 添加分组
</el-button> </el-button>
</div> </div>
<el-tabs tab-position="left" v-model="materialgroupObjId" v-loading="materialgroupLoading" @tab-click="tabClick"> <el-tabs v-model="materialgroupObjId" v-loading="materialgroupLoading" tab-position="left" @tab-click="tabClick">
<el-tab-pane v-for="(item,index) in materialgroupList" <el-tab-pane
v-for="(item,index) in materialgroupList"
:key="index" :key="index"
:name="item.id"> :name="item.id"
>
<span slot="label"> {{ item.name }}</span> <span slot="label"> {{ item.name }}</span>
</el-tab-pane> </el-tab-pane>
</el-tabs> </el-tabs>
@ -73,7 +78,8 @@
:file-list="[]" :file-list="[]"
:on-progress="handleProgress" :on-progress="handleProgress"
:before-upload="beforeUpload" :before-upload="beforeUpload"
:on-success="handleSuccess"> :on-success="handleSuccess"
>
<el-button size="small" type="primary">点击上传</el-button> <el-button size="small" type="primary">点击上传</el-button>
</el-upload> </el-upload>
</el-col> </el-col>
@ -86,17 +92,18 @@
type="info" type="info"
:closable="false" :closable="false"
center center
show-icon> show-icon
</el-alert> />
<el-row :gutter="5"> <el-row :gutter="5">
<el-checkbox-group v-model="urls" :max="num - value.length"> <el-checkbox-group v-model="urls" :max="num - value.length">
<el-col :span="4" v-for="(item,index) in tableData" :key="index"> <el-col v-for="(item,index) in tableData" :key="index" :span="4">
<el-card :body-style="{ padding: '5px' }"> <el-card :body-style="{ padding: '5px' }">
<el-image <el-image
style="width: 100%;height: 100px" style="width: 100%;height: 100px"
:src="item.url" :src="item.url"
fit="contain" fit="contain"
:preview-src-list="[item.url]"></el-image> :preview-src-list="[item.url]"
/>
<div> <div>
<el-checkbox class="material-name" :label="item.url"> <el-checkbox class="material-name" :label="item.url">
选择 选择
@ -113,15 +120,15 @@
</el-checkbox-group> </el-checkbox-group>
</el-row> </el-row>
<el-pagination <el-pagination
@size-change="sizeChange"
@current-change="pageChange"
:current-page.sync="page.currentPage" :current-page.sync="page.currentPage"
:page-sizes="[12, 24]" :page-sizes="[12, 24]"
:page-size="page.pageSize" :page-size="page.pageSize"
layout="total, sizes, prev, pager, next, jumper" layout="total, sizes, prev, pager, next, jumper"
:total="page.total" :total="page.total"
class="pagination"> class="pagination"
</el-pagination> @size-change="sizeChange"
@current-change="pageChange"
/>
</div> </div>
</el-card> </el-card>
</el-main> </el-main>
@ -142,25 +149,25 @@
import { mapGetters } from 'vuex' import { mapGetters } from 'vuex'
export default { export default {
name: "materialList", name: 'MaterialList',
props: { props: {
// //
value: { value: {
type: Array, type: Array,
default() { default() {
return [] return []
}, }
}, },
// //
type: { type: {
type: String, type: String
}, },
// 5 // 5
num: { num: {
type: Number, type: Number,
default() { default() {
return 5 return 5
}, }
}, },
// //
width: { width: {
@ -210,12 +217,12 @@
methods: { methods: {
moveMaterial(index, type) { moveMaterial(index, type) {
if (type == 'up') { if (type == 'up') {
let tempOption = this.value[index - 1] const tempOption = this.value[index - 1]
this.$set(this.value, index - 1, this.value[index]) this.$set(this.value, index - 1, this.value[index])
this.$set(this.value, index, tempOption) this.$set(this.value, index, tempOption)
} }
if (type == 'down') { if (type == 'down') {
let tempOption = this.value[index + 1] const tempOption = this.value[index + 1]
this.$set(this.value, index + 1, this.value[index]) this.$set(this.value, index + 1, this.value[index])
this.$set(this.value, index, tempOption) this.$set(this.value, index, tempOption)
} }
@ -225,7 +232,7 @@
this.url = this.value[index] this.url = this.value[index]
}, },
deleteMaterial(index) { deleteMaterial(index) {
let that = this const that = this
this.$confirm('是否确认删除?', '提示', { this.$confirm('是否确认删除?', '提示', {
confirmButtonText: '确定', confirmButtonText: '确定',
cancelButtonText: '取消', cancelButtonText: '取消',
@ -251,7 +258,7 @@
descs: 'create_time'// descs: 'create_time'//
}).then(response => { }).then(response => {
this.materialgroupLoading = false this.materialgroupLoading = false
let materialgroupList = response.content const materialgroupList = response.content
materialgroupList.unshift({ materialgroupList.unshift({
id: '-1', id: '-1',
name: '全部分组' name: '全部分组'
@ -263,7 +270,7 @@
}) })
}, },
materialgroupDelete(materialgroupObj) { materialgroupDelete(materialgroupObj) {
let that = this const that = this
this.$confirm('是否确认删除该分组?', '提示', { this.$confirm('是否确认删除该分组?', '提示', {
confirmButtonText: '确定', confirmButtonText: '确定',
cancelButtonText: '取消', cancelButtonText: '取消',
@ -276,11 +283,11 @@
}) })
}, },
materialgroupEdit(materialgroupObj) { materialgroupEdit(materialgroupObj) {
let that = this const that = this
this.$prompt('请输入分组名', '提示', { this.$prompt('请输入分组名', '提示', {
confirmButtonText: '确定', confirmButtonText: '确定',
cancelButtonText: '取消', cancelButtonText: '取消',
inputValue: materialgroupObj.name, inputValue: materialgroupObj.name
}).then(({ value }) => { }).then(({ value }) => {
materialgroupEdit({ materialgroupEdit({
id: materialgroupObj.id, id: materialgroupObj.id,
@ -294,10 +301,10 @@
}) })
}, },
materialgroupAdd() { materialgroupAdd() {
let that = this const that = this
this.$prompt('请输入分组名', '提示', { this.$prompt('请输入分组名', '提示', {
confirmButtonText: '确定', confirmButtonText: '确定',
cancelButtonText: '取消', cancelButtonText: '取消'
}).then(({ value }) => { }).then(({ value }) => {
materialgroupAdd({ materialgroupAdd({
name: value name: value
@ -310,8 +317,8 @@
}, },
tabClick(tab, event) { tabClick(tab, event) {
this.urls = [] this.urls = []
let index = Number(tab.index) const index = Number(tab.index)
let materialgroupObj = this.materialgroupList[index] const materialgroupObj = this.materialgroupList[index]
materialgroupObj.index = index materialgroupObj.index = index
this.materialgroupObj = materialgroupObj this.materialgroupObj = materialgroupObj
this.materialgroupObjId = materialgroupObj.id this.materialgroupObjId = materialgroupObj.id
@ -330,11 +337,11 @@
page: page.currentPage - 1, page: page.currentPage - 1,
size: page.pageSize, size: page.pageSize,
descs: this.page.descs, descs: this.page.descs,
ascs: this.page.ascs, ascs: this.page.ascs
}, { }, {
groupId: this.groupId groupId: this.groupId
})).then(response => { })).then(response => {
let tableData = response.content const tableData = response.content
this.page.total = response.totalElements this.page.total = response.totalElements
this.page.currentPage = page.currentPage this.page.currentPage = page.currentPage
this.page.pageSize = page.pageSize this.page.pageSize = page.pageSize
@ -357,11 +364,11 @@
this.getPage(this.page) this.getPage(this.page)
}, },
materialRename(item) { materialRename(item) {
let that = this const that = this
this.$prompt('请输入素材名', '提示', { this.$prompt('请输入素材名', '提示', {
confirmButtonText: '确定', confirmButtonText: '确定',
cancelButtonText: '取消', cancelButtonText: '取消',
inputValue: item.name, inputValue: item.name
}).then(({ value }) => { }).then(({ value }) => {
putObj({ putObj({
id: item.id, id: item.id,
@ -374,11 +381,11 @@
}) })
}, },
materialUrl(item) { materialUrl(item) {
let that = this const that = this
this.$prompt('素材链接', '提示', { this.$prompt('素材链接', '提示', {
confirmButtonText: '确定', confirmButtonText: '确定',
cancelButtonText: '取消', cancelButtonText: '取消',
inputValue: item.url, inputValue: item.url
}).then(({ value }) => { }).then(({ value }) => {
}).catch(() => { }).catch(() => {
@ -386,7 +393,7 @@
}) })
}, },
materialDel(item) { materialDel(item) {
let that = this const that = this
this.$confirm('是否确认删除该素材?', '提示', { this.$confirm('是否确认删除该素材?', '提示', {
confirmButtonText: '确定', confirmButtonText: '确定',
cancelButtonText: '取消', cancelButtonText: '取消',
@ -399,8 +406,8 @@
}) })
}, },
handleCommand(command) { handleCommand(command) {
let that = this const that = this
let s = command.split('-') const s = command.split('-')
putObj({ putObj({
id: s[0], id: s[0],
groupId: s[1] groupId: s[1]
@ -413,7 +420,7 @@
// this.uploadProgress = uploadProgress // this.uploadProgress = uploadProgress
}, },
handleSuccess(response, file, fileList) { handleSuccess(response, file, fileList) {
let that = this const that = this
this.uploadProgress = 0 this.uploadProgress = 0
addObj({ addObj({
type: '1', type: '1',
@ -426,13 +433,13 @@
}, },
beforeUpload(file) { beforeUpload(file) {
const isPic = const isPic =
file.type === "image/jpeg" || file.type === 'image/jpeg' ||
file.type === "image/png" || file.type === 'image/png' ||
file.type === "image/gif" || file.type === 'image/gif' ||
file.type === "image/jpg" file.type === 'image/jpg'
const isLt2M = file.size / 1024 / 1024 < 2 const isLt2M = file.size / 1024 / 1024 < 2
if (!isPic) { if (!isPic) {
this.$message.error("上传图片只能是 JPG、JPEG、PNG、GIF 格式!") this.$message.error('上传图片只能是 JPG、JPEG、PNG、GIF 格式!')
return false return false
} }
if (!isLt2M) { if (!isLt2M) {
@ -447,7 +454,7 @@
this.listDialogVisible = false this.listDialogVisible = false
} }
} }
}; }
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>

12
src/components/pic-upload-two/index.vue

@ -18,6 +18,12 @@
import { getToken } from '@/utils/auth' import { getToken } from '@/utils/auth'
import { mapGetters } from 'vuex' import { mapGetters } from 'vuex'
export default { export default {
props: {
value: {
default: '',
type: String
}
},
data() { data() {
return { return {
resourcesUrl: '', resourcesUrl: '',
@ -31,12 +37,6 @@ export default {
'qiNiuUploadApi' 'qiNiuUploadApi'
]) ])
}, },
props: {
value: {
default: '',
type: String
}
},
methods: { methods: {
// //
handleUploadSuccess(response, file, fileList) { handleUploadSuccess(response, file, fileList) {

12
src/components/pic-upload/index.vue

@ -18,6 +18,12 @@
import { getToken } from '@/utils/auth' import { getToken } from '@/utils/auth'
import { mapGetters } from 'vuex' import { mapGetters } from 'vuex'
export default { export default {
props: {
value: {
default: '',
type: String
}
},
data() { data() {
return { return {
resourcesUrl: '', resourcesUrl: '',
@ -31,12 +37,6 @@ export default {
'qiNiuUploadApi' 'qiNiuUploadApi'
]) ])
}, },
props: {
value: {
default: '',
type: String
}
},
methods: { methods: {
// //
handleUploadSuccess(response, file, fileList) { handleUploadSuccess(response, file, fileList) {

82
src/components/pic-upload2/index.vue

@ -1,82 +0,0 @@
<!--<template>-->
<!--<div>-->
<!--<el-upload-->
<!--class="pic-uploader-component"-->
<!--:action="imagesUploadApi"-->
<!--:headers="headers"-->
<!--:show-file-list="false"-->
<!--:on-success="handleUploadSuccess"-->
<!--:before-upload="beforeAvatarUpload">-->
<!--<img v-if="value" :src="resourcesUrl + value" class="pic">-->
<!--<i v-else class="el-icon-plus pic-uploader-icon"></i>-->
<!--</el-upload>-->
<!--</div>-->
<!--</template>-->
<!--<script>-->
<!--import { getToken } from '@/utils/auth'-->
<!--import { mapGetters } from 'vuex'-->
<!--export default {-->
<!--data () {-->
<!--return {-->
<!--resourcesUrl: '',-->
<!--headers: {-->
<!--'Authorization': 'Bearer ' + getToken()-->
<!--}-->
<!--}-->
<!--},-->
<!--computed: {-->
<!--...mapGetters([-->
<!--'imagesUploadApi'-->
<!--])-->
<!--},-->
<!--props: {-->
<!--value: {-->
<!--default: '',-->
<!--type: String-->
<!--}-->
<!--},-->
<!--methods: {-->
<!--// -->
<!--handleUploadSuccess(response, file, fileList) {-->
<!--console.log(file)-->
<!--this.$emit('input', file.response.data[0])-->
<!--},-->
<!--// -->
<!--beforeAvatarUpload(file) {-->
<!--const isLt2M = file.size / 1024 / 1024 < 2-->
<!--if (!isLt2M) {-->
<!--this.$message.error('上传头像图片大小不能超过 2MB!')-->
<!--}-->
<!--return isLt2M-->
<!--}-->
<!--}-->
<!--}-->
<!--</script>-->
<!--<style lang="scss">-->
<!--.pic-uploader-component .el-upload {-->
<!--border: 1px dashed #d9d9d9;-->
<!--border-radius: 6px;-->
<!--cursor: pointer;-->
<!--position: relative;-->
<!--overflow: hidden;-->
<!--.pic-uploader-icon {-->
<!--font-size: 28px;-->
<!--color: #8c939d;-->
<!--width: 100%;-->
<!--height: 40px;-->
<!--//line-height: 178px;-->
<!--text-align: center;-->
<!--}-->
<!--.pic {-->
<!--width: 100%;-->
<!--height: 40px;-->
<!--display: block;-->
<!--}-->
<!--}-->
<!--.pic-uploader-component .el-upload:hover {-->
<!--border-color: #409EFF;-->
<!--}-->
<!--</style>-->

2
src/utils/index.js

@ -105,10 +105,8 @@ export function formatTimeTwo(time) {
d.getMinutes() + d.getMinutes() +
'分' '分'
) )
} }
/** /**
* @param {string} url * @param {string} url
* @returns {Object} * @returns {Object}

14
src/views/activity/bargain/form.vue

@ -30,10 +30,10 @@
</template> </template>
</el-form-item> </el-form-item>
<el-form-item label="砍价产品主图片"> <el-form-item label="砍价产品主图片">
<MaterialList v-model="form.imageArr" style="width: 500px" type="image" :num=1 :width=150 :height=150></MaterialList> <MaterialList v-model="form.imageArr" style="width: 500px" type="image" :num="1" :width="150" :height="150" />
</el-form-item> </el-form-item>
<el-form-item label="砍价产品轮播图"> <el-form-item label="砍价产品轮播图">
<MaterialList v-model="form.sliderImageArr" style="width: 500px" type="image" :num=4 :width=150 :height=150></MaterialList> <MaterialList v-model="form.sliderImageArr" style="width: 500px" type="image" :num="4" :width="150" :height="150" />
</el-form-item> </el-form-item>
<el-form-item label="库存"> <el-form-item label="库存">
<el-input-number v-model="form.stock" /> <el-input-number v-model="form.stock" />
@ -98,13 +98,11 @@
</template> </template>
<script> <script>
import picUpload from '@/components/pic-upload'
import mulpicUpload from '@/components/mul-pic-upload'
import { add, edit } from '@/api/yxStoreBargain' import { add, edit } from '@/api/yxStoreBargain'
import editor from '../../components/Editor' import editor from '../../components/Editor'
import MaterialList from '@/components/material' import MaterialList from '@/components/material'
export default { export default {
components: { editor, picUpload, mulpicUpload, MaterialList }, components: { editor, MaterialList },
props: { props: {
isAdd: { isAdd: {
type: Boolean, type: Boolean,
@ -158,15 +156,13 @@ export default {
watch: { watch: {
'form.imageArr': function(val) { 'form.imageArr': function(val) {
if (val) { if (val) {
this.form.image = val.join(","); this.form.image = val.join(',')
} }
}, },
'form.sliderImageArr': function(val) { 'form.sliderImageArr': function(val) {
if (val) { if (val) {
this.form.sliderImage = val.join(","); this.form.sliderImage = val.join(',')
} }
} }
}, },
methods: { methods: {

4
src/views/activity/bargain/index.vue

@ -1,9 +1,7 @@
<template> <template>
<div class="app-container"> <div class="app-container">
<!--工具栏--> <!--工具栏-->
<div class="head-container"> <div class="head-container" />
</div>
<!--表单组件--> <!--表单组件-->
<eForm ref="form" :is-add="isAdd" /> <eForm ref="form" :is-add="isAdd" />
<!--表格渲染--> <!--表格渲染-->

12
src/views/activity/combination/form.vue

@ -29,10 +29,10 @@
</template> </template>
</el-form-item> </el-form-item>
<el-form-item label="产品主图片"> <el-form-item label="产品主图片">
<MaterialList v-model="form.imageArr" style="width: 500px" type="image" :num=1 :width=150 :height=150></MaterialList> <MaterialList v-model="form.imageArr" style="width: 500px" type="image" :num="1" :width="150" :height="150" />
</el-form-item> </el-form-item>
<el-form-item label="产品轮播图"> <el-form-item label="产品轮播图">
<MaterialList v-model="form.sliderImageArr" style="width: 500px" type="image" :num=4 :width=150 :height=150></MaterialList> <MaterialList v-model="form.sliderImageArr" style="width: 500px" type="image" :num="4" :width="150" :height="150" />
</el-form-item> </el-form-item>
<el-form-item label="拼团时效(单位小时)"> <el-form-item label="拼团时效(单位小时)">
<el-input v-model="form.effectiveTime" style="width: 500px;" /> <el-input v-model="form.effectiveTime" style="width: 500px;" />
@ -81,11 +81,9 @@
<script> <script>
import { add, edit } from '@/api/yxStoreCombination' import { add, edit } from '@/api/yxStoreCombination'
import editor from '../../components/Editor' import editor from '../../components/Editor'
import picUpload from '@/components/pic-upload'
import mulpicUpload from '@/components/mul-pic-upload'
import MaterialList from '@/components/material' import MaterialList from '@/components/material'
export default { export default {
components: { editor, picUpload, mulpicUpload, MaterialList }, components: { editor, MaterialList },
props: { props: {
isAdd: { isAdd: {
type: Boolean, type: Boolean,
@ -137,12 +135,12 @@ export default {
watch: { watch: {
'form.imageArr': function(val) { 'form.imageArr': function(val) {
if (val) { if (val) {
this.form.image = val.join(","); this.form.image = val.join(',')
} }
}, },
'form.sliderImageArr': function(val) { 'form.sliderImageArr': function(val) {
if (val) { if (val) {
this.form.sliderImage = val.join(","); this.form.sliderImage = val.join(',')
} }
} }
}, },

12
src/views/activity/seckill/form.vue

@ -29,10 +29,10 @@
</template> </template>
</el-form-item> </el-form-item>
<el-form-item label="产品主图片"> <el-form-item label="产品主图片">
<MaterialList v-model="form.imageArr" style="width: 500px" type="image" :num=1 :width=150 :height=150></MaterialList> <MaterialList v-model="form.imageArr" style="width: 500px" type="image" :num="1" :width="150" :height="150" />
</el-form-item> </el-form-item>
<el-form-item label="产品轮播图"> <el-form-item label="产品轮播图">
<MaterialList v-model="form.sliderImageArr" style="width: 500px" type="image" :num=4 :width=150 :height=150></MaterialList> <MaterialList v-model="form.sliderImageArr" style="width: 500px" type="image" :num="4" :width="150" :height="150" />
</el-form-item> </el-form-item>
<el-form-item label="秒杀价"> <el-form-item label="秒杀价">
<el-input-number v-model="form.price" /> <el-input-number v-model="form.price" />
@ -80,11 +80,9 @@
<script> <script>
import { add, edit } from '@/api/yxStoreSeckill' import { add, edit } from '@/api/yxStoreSeckill'
import editor from '../../components/Editor' import editor from '../../components/Editor'
import picUpload from '@/components/pic-upload'
import mulpicUpload from '@/components/mul-pic-upload'
import MaterialList from '@/components/material' import MaterialList from '@/components/material'
export default { export default {
components: { editor, picUpload, mulpicUpload, MaterialList }, components: { editor, MaterialList },
props: { props: {
isAdd: { isAdd: {
type: Boolean, type: Boolean,
@ -132,12 +130,12 @@ export default {
watch: { watch: {
'form.imageArr': function(val) { 'form.imageArr': function(val) {
if (val) { if (val) {
this.form.image = val.join(","); this.form.image = val.join(',')
} }
}, },
'form.sliderImageArr': function(val) { 'form.sliderImageArr': function(val) {
if (val) { if (val) {
this.form.sliderImage = val.join(","); this.form.sliderImage = val.join(',')
} }
} }
}, },

2
src/views/dashboard/PanelGroup.vue

@ -48,7 +48,7 @@
</template> </template>
<script> <script>
import CountTo from 'vue-count-to' import CountTo from 'vue-count-to'
import { get, gett } from '@/api/visits' import { gett } from '@/api/visits'
export default { export default {
components: { components: {
CountTo CountTo

2
src/views/dashboard/PanelGroupT.vue

@ -48,7 +48,7 @@
</template> </template>
<script> <script>
import CountTo from 'vue-count-to' import CountTo from 'vue-count-to'
import { get, gett } from '@/api/visits' import { gett } from '@/api/visits'
export default { export default {
components: { components: {
CountTo CountTo

22
src/views/dashboard/YshopInfo.vue

@ -36,7 +36,7 @@
<span style="font-weight: bolder">小程序演示</span>关注上面公众号之后选择yshop小程序体验即可 <span style="font-weight: bolder">小程序演示</span>关注上面公众号之后选择yshop小程序体验即可
</div> </div>
<div class="text item"> <div class="text item">
<span style="font-weight: bolder">H5演示</span><a target="_blank" href="https://h5.yixiang.co">https://h5.yixiang.co</a> <br /> <span style="font-weight: bolder">H5演示</span><a target="_blank" href="https://h5.yixiang.co">https://h5.yixiang.co</a> <br>
<span style="font-weight: bolder">H5测试号</span>hupeng/123456,也可以自行注册 <span style="font-weight: bolder">H5测试号</span>hupeng/123456,也可以自行注册
</div> </div>
</el-card> </el-card>
@ -57,21 +57,21 @@
<span style="font-weight: bolder">VIP版(JAVA++H5+公众号端)</span>包括了开源版还包括了移动端移动端API <span style="font-weight: bolder">VIP版(JAVA++H5+公众号端)</span>包括了开源版还包括了移动端移动端API
</div> </div>
<div class="text item"> <div class="text item">
1VIP为终身制包括JAVA端+H5公众号端后期免费升级迭代及其技术支持<br /> 1VIP为终身制包括JAVA端+H5公众号端后期免费升级迭代及其技术支持<br>
2价格vip会员价248元(JAVA+H5+公众号版)后续的系统升级vip价格会有相应的调整的所以早上车更优惠哦<br /> 2价格vip会员价248元(JAVA+H5+公众号版)后续的系统升级vip价格会有相应的调整的所以早上车更优惠哦<br>
3VIP购买淘宝地址https://item.taobao.com/item.htm?id=607532386325<br /> 3VIP购买淘宝地址https://item.taobao.com/item.htm?id=607532386325<br>
4加入vip群931426444,请输入你的淘宝订单编号即可入群<br /> 4加入vip群931426444,请输入你的淘宝订单编号即可入群<br>
5群里面获取私服git<br /> 5群里面获取私服git<br>
6如果需要小程序需要单独购买看下面<br /> 6如果需要小程序需要单独购买看下面<br>
</div> </div>
<div class="text item"> <div class="text item">
<span style="font-weight: bolder">VIP版如果需要小程序需要另外单独购买</span> <span style="font-weight: bolder">VIP版如果需要小程序需要另外单独购买</span>
</div> </div>
<div class="text item"> <div class="text item">
1小程序是mpvue2.0框架开发<br /> 1小程序是mpvue2.0框架开发<br>
2价格100只是单独的小程序购买小程序请务必要购买上面VIP套餐<br /> 2价格100只是单独的小程序购买小程序请务必要购买上面VIP套餐<br>
3购买淘宝地址https://item.taobao.com/item.htm?id=612007949053<br /> 3购买淘宝地址https://item.taobao.com/item.htm?id=612007949053<br>
4群里面获取私服git<br /> 4群里面获取私服git<br>
</div> </div>
</el-card> </el-card>
</div> </div>

2
src/views/home.vue

@ -29,7 +29,6 @@
import { mapGetters } from 'vuex' import { mapGetters } from 'vuex'
import PanelGroup from './dashboard/PanelGroup' import PanelGroup from './dashboard/PanelGroup'
import PanelGroupT from './dashboard/PanelGroupT' import PanelGroupT from './dashboard/PanelGroupT'
import LineChart from './dashboard/LineChart'
import PieChart from './dashboard/BarChartT' import PieChart from './dashboard/BarChartT'
import BarChart from './dashboard/BarChart' import BarChart from './dashboard/BarChart'
import { count } from '@/api/visits' import { count } from '@/api/visits'
@ -46,7 +45,6 @@ export default {
components: { components: {
PanelGroup, PanelGroup,
PanelGroupT, PanelGroupT,
LineChart,
PieChart, PieChart,
BarChart, BarChart,
YshopInfo YshopInfo

3
src/views/monitor/log/mlog.vue

@ -19,7 +19,8 @@
style="margin-top: 8px;" style="margin-top: 8px;"
layout="total, prev, pager, next, sizes" layout="total, prev, pager, next, sizes"
@size-change="sizeChange" @size-change="sizeChange"
@current-change="pageChange"/> @current-change="pageChange"
/>
</div> </div>
</template> </template>

121
src/views/shop/cate/form.vue

@ -1,121 +0,0 @@
<template>
<el-dialog :append-to-body="true" :close-on-click-modal="false" :before-close="cancel" :visible.sync="dialog" :title="isAdd ? '新增' : '编辑'" width="500px">
<el-form ref="form" :model="form" :rules="rules" size="small" label-width="80px">
<el-form-item v-if="form.pid !== 0" style="margin-bottom: 0px;" label="上级分类">
<treeselect v-model="form.pid" :options="cates" style="width: 370px;" placeholder="选择上级类目" />
</el-form-item>
<el-form-item label="分类名称">
<el-input v-model="form.cateName" style="width: 370px;" />
</el-form-item>
<el-form-item label="分类图片">
<pic-upload v-model="form.pic" style="width: 500px;" />
</el-form-item>
<el-form-item label="排序">
<el-input v-model="form.sort" style="width: 370px;" />
</el-form-item>
<el-form-item label="状态" prop="enabled">
<el-radio v-model="form.isShow" :label="1">显示</el-radio>
<el-radio v-model="form.isShow" :label="0">隐藏</el-radio>
</el-form-item>
</el-form>
<div slot="footer" class="dialog-footer">
<el-button type="text" @click="cancel">取消</el-button>
<el-button :loading="loading" type="primary" @click="doSubmit">确认</el-button>
</div>
</el-dialog>
</template>
<script>
import { add, edit, getCates } from '@/api/yxStoreCategory'
import Treeselect from '@riophae/vue-treeselect'
import '@riophae/vue-treeselect/dist/vue-treeselect.css'
import picUpload from '@/components/pic-upload'
export default {
components: { Treeselect, picUpload },
props: {
isAdd: {
type: Boolean,
required: true
}
},
data() {
return {
loading: false, dialog: false, cates: [],
form: {
id: '',
pid: 1,
cateName: '',
sort: '',
pic: '',
isShow: '',
addTime: ''
},
rules: {
}
}
},
methods: {
cancel() {
this.resetForm()
},
doSubmit() {
this.loading = true
if (this.isAdd) {
this.doAdd()
} else this.doEdit()
},
doAdd() {
add(this.form).then(res => {
this.resetForm()
this.$notify({
title: '添加成功',
type: 'success',
duration: 2500
})
this.loading = false
this.$parent.init()
}).catch(err => {
this.loading = false
console.log(err.response.data.message)
})
},
doEdit() {
edit(this.form).then(res => {
this.resetForm()
this.$notify({
title: '修改成功',
type: 'success',
duration: 2500
})
this.loading = false
this.$parent.init()
}).catch(err => {
this.loading = false
console.log(err.response.data.message)
})
},
resetForm() {
this.dialog = false
this.$refs['form'].resetFields()
this.form = {
id: '',
pid: '',
cateName: '',
sort: '',
pic: '',
isShow: '',
addTime: ''
}
},
getCates() {
getCates({ enabled: true }).then(res => {
this.cates = res.content
})
}
}
}
</script>
<style scoped>
</style>

4
src/views/shop/cate/index.vue

@ -16,7 +16,7 @@
<el-input v-model="form.cateName" style="width: 370px;" /> <el-input v-model="form.cateName" style="width: 370px;" />
</el-form-item> </el-form-item>
<el-form-item label="分类图片"> <el-form-item label="分类图片">
<MaterialList v-model="picArr" type="image" :num=1 :width=150 :height=150></MaterialList> <MaterialList v-model="picArr" type="image" :num="1" :width="150" :height="150" />
</el-form-item> </el-form-item>
<el-form-item label="状态"> <el-form-item label="状态">
<el-radio-group v-model="form.isShow" style="width: 178px"> <el-radio-group v-model="form.isShow" style="width: 178px">
@ -100,7 +100,7 @@ export default {
}, },
watch: { watch: {
picArr: function(val) { picArr: function(val) {
this.form.pic = val.join(","); this.form.pic = val.join(',')
} }
}, },
methods: { methods: {

8
src/views/shop/goods/form.vue

@ -17,10 +17,10 @@
<el-input v-model="form.barCode" style="width: 320px;" /> <el-input v-model="form.barCode" style="width: 320px;" />
</el-form-item> </el-form-item>
<el-form-item label="商品图片"> <el-form-item label="商品图片">
<MaterialList v-model="form.imageArr" style="width: 500px" type="image" :num=1 :width=150 :height=150></MaterialList> <MaterialList v-model="form.imageArr" style="width: 500px" type="image" :num="1" :width="150" :height="150" />
</el-form-item> </el-form-item>
<el-form-item label="轮播图"> <el-form-item label="轮播图">
<MaterialList v-model="form.sliderImageArr" style="width: 500px" type="image" :num=4 :width=150 :height=150></MaterialList> <MaterialList v-model="form.sliderImageArr" style="width: 500px" type="image" :num="4" :width="150" :height="150" />
</el-form-item> </el-form-item>
<el-form-item label="商品简介"> <el-form-item label="商品简介">
<el-input v-model="form.storeInfo" style="width: 500px;" rows="5" type="textarea" /> <el-input v-model="form.storeInfo" style="width: 500px;" rows="5" type="textarea" />
@ -154,12 +154,12 @@ export default {
watch: { watch: {
'form.imageArr': function(val) { 'form.imageArr': function(val) {
if (val) { if (val) {
this.form.image = val.join(","); this.form.image = val.join(',')
} }
}, },
'form.sliderImageArr': function(val) { 'form.sliderImageArr': function(val) {
if (val) { if (val) {
this.form.sliderImage = val.join(","); this.form.sliderImage = val.join(',')
} }
} }
}, },

2
src/views/shop/order/detail.vue

@ -115,7 +115,7 @@ export default {
rules: { rules: {
unique: [ unique: [
{ required: true, message: 'please enter', trigger: 'blur' } { required: true, message: 'please enter', trigger: 'blur' }
], ]
} }
} }
}, },

2
src/views/shop/order/edit.vue

@ -86,7 +86,7 @@ export default {
rules: { rules: {
unique: [ unique: [
{ required: true, message: 'please enter', trigger: 'blur' } { required: true, message: 'please enter', trigger: 'blur' }
], ]
} }
} }
}, },

13
src/views/shop/order/form.vue

@ -8,7 +8,8 @@
v-for="item in express" v-for="item in express"
:key="item.id" :key="item.id"
:label="item.name" :label="item.name"
:value="item.id" /> :value="item.id"
/>
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item label="快递单号"> <el-form-item label="快递单号">
@ -26,10 +27,6 @@
import { add, edit, get } from '@/api/yxStoreOrder' import { add, edit, get } from '@/api/yxStoreOrder'
export default { export default {
created() {
this.get()
},
props: { props: {
isAdd: { isAdd: {
type: Boolean, type: Boolean,
@ -48,10 +45,14 @@ export default {
rules: { rules: {
unique: [ unique: [
{ required: true, message: 'please enter', trigger: 'blur' } { required: true, message: 'please enter', trigger: 'blur' }
], ]
} }
} }
}, },
created() {
this.get()
},
methods: { methods: {
cancel() { cancel() {
this.resetForm() this.resetForm()

68
src/views/shop/order/index.vue

@ -13,8 +13,8 @@
v-for="item in statusOptions" v-for="item in statusOptions"
:key="item.value" :key="item.value"
:label="item.label" :label="item.label"
:value="item.value"> :value="item.value"
</el-option> />
</el-select> </el-select>
<el-button class="filter-item" size="mini" type="success" icon="el-icon-search" @click="toQuery">搜索</el-button> <el-button class="filter-item" size="mini" type="success" icon="el-icon-search" @click="toQuery">搜索</el-button>
<!-- 新增 --> <!-- 新增 -->
@ -37,15 +37,19 @@
<el-table-column prop="cartInfoList" width="300" label="商品信息"> <el-table-column prop="cartInfoList" width="300" label="商品信息">
<template slot-scope="scope"> <template slot-scope="scope">
<div v-for="(item,index) in scope.row.cartInfoList"> <div v-for="(item,index) in scope.row.cartInfoList">
<span><img style="width: 30px;height: 30px;margin:0;cursor: pointer;" <span><img
:src="item.cartInfoMap.productInfo.image"/></span> style="width: 30px;height: 30px;margin:0;cursor: pointer;"
:src="item.cartInfoMap.productInfo.image"
></span>
<span>{{ item.cartInfoMap.productInfo.storeName }}</span> <span>{{ item.cartInfoMap.productInfo.storeName }}</span>
<span> | {{ item.cartInfoMap.truePrice }}×{{ item.cartInfoMap.cartNum }}</span> <span> | {{ item.cartInfoMap.truePrice }}×{{ item.cartInfoMap.cartNum }}</span>
</div> </div>
<div v-if="item.cartInfoMap.productInfo.attrInfo" v-for="(item,index) in scope.row.cartInfoList"> <div v-for="(item,index) in scope.row.cartInfoList" v-if="item.cartInfoMap.productInfo.attrInfo">
<span> <span>
<img style="width: 30px;height: 30px;margin:0;cursor: pointer;" <img
:src="item.cartInfoMap.productInfo.attrInfo.image"> style="width: 30px;height: 30px;margin:0;cursor: pointer;"
:src="item.cartInfoMap.productInfo.attrInfo.image"
>
</span> </span>
<span>{{ item.cartInfoMap.productInfo.storeName }}&nbsp;{{ item.cartInfoMap.productInfo.attrInfo.suk }}</span> <span>{{ item.cartInfoMap.productInfo.storeName }}&nbsp;{{ item.cartInfoMap.productInfo.attrInfo.suk }}</span>
<span> | {{ item.cartInfoMap.truePrice }}×{{ item.cartInfoMap.cartNum }}</span> <span> | {{ item.cartInfoMap.truePrice }}×{{ item.cartInfoMap.cartNum }}</span>
@ -66,38 +70,61 @@
</el-table-column> </el-table-column>
<el-table-column v-if="checkPermission(['admin','YXSTOREORDER_ALL','YXSTOREORDER_EDIT','YXSTOREORDER_DELETE'])" label="操作" width="200" align="center" fixed="right"> <el-table-column v-if="checkPermission(['admin','YXSTOREORDER_ALL','YXSTOREORDER_EDIT','YXSTOREORDER_DELETE'])" label="操作" width="200" align="center" fixed="right">
<template slot-scope="scope"> <template slot-scope="scope">
<el-button v-permission="['admin','YXSTOREORDER_ALL','YXSTOREORDER_EDIT']" size="mini" type="primary" <el-button
@click="detail(scope.row)"> v-permission="['admin','YXSTOREORDER_ALL','YXSTOREORDER_EDIT']"
size="mini"
type="primary"
@click="detail(scope.row)"
>
订单详情</el-button> 订单详情</el-button>
<el-dropdown size="mini" split-button type="primary" trigger="click"> <el-dropdown size="mini" split-button type="primary" trigger="click">
操作 操作
<el-dropdown-menu slot="dropdown"> <el-dropdown-menu slot="dropdown">
<el-dropdown-item> <el-dropdown-item>
<el-button v-permission="['admin','YXSTOREORDER_ALL','YXSTOREORDER_EDIT']" size="mini" type="success" <el-button
@click="remark(scope.row)"> v-permission="['admin','YXSTOREORDER_ALL','YXSTOREORDER_EDIT']"
size="mini"
type="success"
@click="remark(scope.row)"
>
订单备注</el-button> 订单备注</el-button>
</el-dropdown-item> </el-dropdown-item>
<el-dropdown-item> <el-dropdown-item>
<el-button v-if="scope.row._status == 2" v-permission="['admin','YXSTOREORDER_ALL','YXSTOREORDER_EDIT']" size="mini" type="primary" <el-button
@click="edit(scope.row)"> v-if="scope.row._status == 2"
v-permission="['admin','YXSTOREORDER_ALL','YXSTOREORDER_EDIT']"
size="mini"
type="primary"
@click="edit(scope.row)"
>
去发货</el-button> 去发货</el-button>
</el-dropdown-item> </el-dropdown-item>
<el-dropdown-item> <el-dropdown-item>
<el-button v-if="scope.row._status == 3" v-permission="['admin','YXSTOREORDER_ALL','YXSTOREORDER_EDIT']" size="mini" type="primary" <el-button
@click="refund(scope.row)"> v-if="scope.row._status == 3"
v-permission="['admin','YXSTOREORDER_ALL','YXSTOREORDER_EDIT']"
size="mini"
type="primary"
@click="refund(scope.row)"
>
立刻退款</el-button> 立刻退款</el-button>
</el-dropdown-item> </el-dropdown-item>
<el-dropdown-item v-if="scope.row._status == 1"> <el-dropdown-item v-if="scope.row._status == 1">
<el-button v-permission="['admin','YXSTOREORDER_ALL','YXSTOREORDER_EDIT']" size="mini" type="primary" <el-button
@click="editOrder(scope.row)"> v-permission="['admin','YXSTOREORDER_ALL','YXSTOREORDER_EDIT']"
size="mini"
type="primary"
@click="editOrder(scope.row)"
>
修改订单</el-button> 修改订单</el-button>
</el-dropdown-item> </el-dropdown-item>
<el-dropdown-item v-if="scope.row._status == 1"> <el-dropdown-item v-if="scope.row._status == 1">
<el-popover <el-popover
v-permission="['admin','YXSTOREORDER_ALL','YXSTOREORDER_DELETE']"
:ref="scope.row.id" :ref="scope.row.id"
v-permission="['admin','YXSTOREORDER_ALL','YXSTOREORDER_DELETE']"
placement="top" placement="top"
width="180"> width="180"
>
<p>确定删除本条数据吗</p> <p>确定删除本条数据吗</p>
<div style="text-align: right; margin: 0"> <div style="text-align: right; margin: 0">
<el-button size="mini" type="text" @click="$refs[scope.row.id].doClose()">取消</el-button> <el-button size="mini" type="text" @click="$refs[scope.row.id].doClose()">取消</el-button>
@ -119,7 +146,8 @@
style="margin-top: 8px;" style="margin-top: 8px;"
layout="total, prev, pager, next, sizes" layout="total, prev, pager, next, sizes"
@size-change="sizeChange" @size-change="sizeChange"
@current-change="pageChange"/> @current-change="pageChange"
/>
</div> </div>
</template> </template>

2
src/views/shop/order/refund.vue

@ -83,7 +83,7 @@ export default {
rules: { rules: {
unique: [ unique: [
{ required: true, message: 'please enter', trigger: 'blur' } { required: true, message: 'please enter', trigger: 'blur' }
], ]
} }
} }
}, },

2
src/views/shop/order/remark.vue

@ -83,7 +83,7 @@ export default {
rules: { rules: {
unique: [ unique: [
{ required: true, message: 'please enter', trigger: 'blur' } { required: true, message: 'please enter', trigger: 'blur' }
], ]
} }
} }
}, },

2
src/views/shop/set/act.vue

@ -116,7 +116,7 @@ export default {
info: data.map.info, info: data.map.info,
url: data.map.url, url: data.map.url,
pic: data.map.pic, pic: data.map.pic,
imageArr: data.map.pic.split(','), imageArr: data.map.pic.split(',')
} }
_this.dialog = true _this.dialog = true
} }

4
src/views/shop/set/actform.vue

@ -12,7 +12,7 @@
</el-form-item> </el-form-item>
<el-form-item label="图片(260*260/416*214)"> <el-form-item label="图片(260*260/416*214)">
<pic-upload v-model="form.pic" style="width: 500px;" /> <pic-upload v-model="form.pic" style="width: 500px;" />
<MaterialList v-model="form.imageArr" style="width: 500px" type="image" :num=1 :width=150 :height=150></MaterialList> <MaterialList v-model="form.imageArr" style="width: 500px" type="image" :num="1" :width="150" :height="150" />
</el-form-item> </el-form-item>
</el-form> </el-form>
<div slot="footer" class="dialog-footer"> <div slot="footer" class="dialog-footer">
@ -56,7 +56,7 @@ export default {
watch: { watch: {
'form.imageArr': function(val) { 'form.imageArr': function(val) {
if (val) { if (val) {
this.form.pic = val.join(","); this.form.pic = val.join(',')
} }
} }
}, },

4
src/views/shop/set/form.vue

@ -11,7 +11,7 @@
<el-input v-model="form.wxapp_url" style="width: 300px;" /> <el-input v-model="form.wxapp_url" style="width: 300px;" />
</el-form-item> </el-form-item>
<el-form-item label="图片(750*375)"> <el-form-item label="图片(750*375)">
<MaterialList v-model="form.imageArr" style="width: 300px" type="image" :num=1 :width=150 :height=150></MaterialList> <MaterialList v-model="form.imageArr" style="width: 300px" type="image" :num="1" :width="150" :height="150" />
</el-form-item> </el-form-item>
<el-form-item label="排序"> <el-form-item label="排序">
<el-input v-model="form.sort" style="width: 300px;" /> <el-input v-model="form.sort" style="width: 300px;" />
@ -62,7 +62,7 @@ export default {
watch: { watch: {
'form.imageArr': function(val) { 'form.imageArr': function(val) {
if (val) { if (val) {
this.form.pic = val.join(","); this.form.pic = val.join(',')
} }
} }
}, },

4
src/views/shop/set/menuform.vue

@ -11,7 +11,7 @@
<el-input v-model="form.wxapp_url" style="width: 300px;" /> <el-input v-model="form.wxapp_url" style="width: 300px;" />
</el-form-item> </el-form-item>
<el-form-item label="分类图标(90*90)"> <el-form-item label="分类图标(90*90)">
<MaterialList v-model="form.imageArr" style="width: 300px" type="image" :num=1 :width=150 :height=150></MaterialList> <MaterialList v-model="form.imageArr" style="width: 300px" type="image" :num="1" :width="150" :height="150" />
</el-form-item> </el-form-item>
<el-form-item label="排序"> <el-form-item label="排序">
<el-input v-model="form.sort" style="width: 300px;" /> <el-input v-model="form.sort" style="width: 300px;" />
@ -62,7 +62,7 @@ export default {
watch: { watch: {
'form.imageArr': function(val) { 'form.imageArr': function(val) {
if (val) { if (val) {
this.form.pic = val.join(","); this.form.pic = val.join(',')
} }
} }
}, },

4
src/views/shop/set/usermenuform.vue

@ -11,7 +11,7 @@
<el-input v-model="form.wxapp_url" style="width: 300px;" /> <el-input v-model="form.wxapp_url" style="width: 300px;" />
</el-form-item> </el-form-item>
<el-form-item label="图标(52*52)"> <el-form-item label="图标(52*52)">
<MaterialList v-model="form.imageArr" style="width: 300px" type="image" :num=1 :width=150 :height=150></MaterialList> <MaterialList v-model="form.imageArr" style="width: 300px" type="image" :num="1" :width="150" :height="150" />
</el-form-item> </el-form-item>
<el-form-item label="排序"> <el-form-item label="排序">
<el-input v-model="form.sort" style="width: 300px;" /> <el-input v-model="form.sort" style="width: 300px;" />
@ -62,7 +62,7 @@ export default {
watch: { watch: {
'form.imageArr': function(val) { 'form.imageArr': function(val) {
if (val) { if (val) {
this.form.pic = val.join(","); this.form.pic = val.join(',')
} }
} }
}, },

4
src/views/shop/user/index.vue

@ -12,8 +12,8 @@
v-for="item in statusOptions" v-for="item in statusOptions"
:key="item.value" :key="item.value"
:label="item.label" :label="item.label"
:value="item.value"> :value="item.value"
</el-option> />
</el-select> </el-select>
<el-button class="filter-item" size="mini" type="success" icon="el-icon-search" @click="toQuery">搜索</el-button> <el-button class="filter-item" size="mini" type="success" icon="el-icon-search" @click="toQuery">搜索</el-button>
<!-- 新增 --> <!-- 新增 -->

8
src/views/shop/userlevel/form.vue

@ -18,10 +18,10 @@
<el-input v-model="form.discount" style="width: 370px;" /> <el-input v-model="form.discount" style="width: 370px;" />
</el-form-item> </el-form-item>
<el-form-item label="会员背景"> <el-form-item label="会员背景">
<MaterialList v-model="form.imageArr" style="width: 300px" type="image" :num=1 :width=150 :height=150></MaterialList> <MaterialList v-model="form.imageArr" style="width: 300px" type="image" :num="1" :width="150" :height="150" />
</el-form-item> </el-form-item>
<el-form-item label="会员图标"> <el-form-item label="会员图标">
<MaterialList v-model="form.iconArr" style="width: 300px" type="image" :num=1 :width=150 :height=150></MaterialList> <MaterialList v-model="form.iconArr" style="width: 300px" type="image" :num="1" :width="150" :height="150" />
</el-form-item> </el-form-item>
<el-form-item label="是否显示"> <el-form-item label="是否显示">
<el-radio v-model="form.isShow" :label="1"></el-radio> <el-radio v-model="form.isShow" :label="1"></el-radio>
@ -79,12 +79,12 @@ export default {
watch: { watch: {
'form.imageArr': function(val) { 'form.imageArr': function(val) {
if (val) { if (val) {
this.form.image = val.join(","); this.form.image = val.join(',')
} }
}, },
'form.iconArr': function(val) { 'form.iconArr': function(val) {
if (val) { if (val) {
this.form.icon = val.join(","); this.form.icon = val.join(',')
} }
} }
}, },

4
src/views/wechat/article/form.vue

@ -8,7 +8,7 @@
<el-input v-model="form.author" style="width: 370px;" /> <el-input v-model="form.author" style="width: 370px;" />
</el-form-item> </el-form-item>
<el-form-item label="封面"> <el-form-item label="封面">
<MaterialList v-model="form.imageArr" style="width: 370px" type="image" :num=1 :width=150 :height=150></MaterialList> <MaterialList v-model="form.imageArr" style="width: 370px" type="image" :num="1" :width="150" :height="150" />
</el-form-item> </el-form-item>
<el-form-item label="简介"> <el-form-item label="简介">
<el-input v-model="form.synopsis" style="width: 370px;" rows="5" type="textarea" /> <el-input v-model="form.synopsis" style="width: 370px;" rows="5" type="textarea" />
@ -70,7 +70,7 @@ export default {
watch: { watch: {
'form.imageArr': function(val) { 'form.imageArr': function(val) {
if (val) { if (val) {
this.form.imageInput = val.join(","); this.form.imageInput = val.join(',')
} }
} }
}, },

4
src/views/wechat/config/index.vue

@ -17,7 +17,7 @@
<el-input v-model="form.api" :disabled="true" style="width: 370px;" /> <el-input v-model="form.api" :disabled="true" style="width: 370px;" />
</el-form-item> </el-form-item>
<el-form-item label="微信分享图片"> <el-form-item label="微信分享图片">
<MaterialList v-model="form.imageArr" style="width: 370px" type="image" :num=1 :width=150 :height=150></MaterialList> <MaterialList v-model="form.imageArr" style="width: 370px" type="image" :num="1" :width="150" :height="150" />
</el-form-item> </el-form-item>
<el-form-item label="微信分享标题"> <el-form-item label="微信分享标题">
<el-input v-model="form.wechat_share_title" style="width: 370px;" /> <el-input v-model="form.wechat_share_title" style="width: 370px;" />
@ -73,7 +73,7 @@ export default {
watch: { watch: {
'form.imageArr': function(val) { 'form.imageArr': function(val) {
if (val) { if (val) {
this.form.wechat_share_img = val.join(","); this.form.wechat_share_img = val.join(',')
} }
} }
}, },

2
vue.config.js

@ -21,7 +21,7 @@ module.exports = {
open: true, open: true,
overlay: { overlay: {
warnings: false, warnings: false,
errors: true errors: false
}, },
proxy: { proxy: {
'/api': { '/api': {

Loading…
Cancel
Save