|
|
@@ -58,19 +58,16 @@
|
|
|
<el-form-item label="图片" prop="shopImg">
|
|
|
<div class="list-wrap">
|
|
|
<!--<cl-upload v-model="ruleForm.shopImg" :props="{multiple:true}"></cl-upload>-->
|
|
|
-
|
|
|
<elxUpload
|
|
|
:limit="4"
|
|
|
:fileList.sync="fileList_show"
|
|
|
- :disabled="ruleForm.categoryIdList.length == 0"
|
|
|
:category="ruleForm.categoryIdList"
|
|
|
@success="fromToData"
|
|
|
@handleRemove="fromToData"
|
|
|
></elxUpload>
|
|
|
- <p style="color: red" v-show="ruleForm.categoryIdList.length == 0">请先选择分类</p>
|
|
|
</div>
|
|
|
<div>
|
|
|
- <el-button type="primary" size="small" @click="openStore">从图库选择</el-button>
|
|
|
+ <el-button type="primary" size="small" @click="openStore">图库选择</el-button>
|
|
|
</div>
|
|
|
<el-dialog :visible.sync="dialogVisible">
|
|
|
<img width="100%" :src="dialogImageUrl" alt />
|
|
|
@@ -108,9 +105,7 @@
|
|
|
<span>按距离收费</span>
|
|
|
</el-radio>
|
|
|
<el-popover placement="top" width="100" trigger="hover" v-model="chargePopover">
|
|
|
- <p>
|
|
|
- {{ shopInfo.extend.freeDistance }}公里内免运费,超过每增加1公里运费增加{{shopInfo.extend.freight}}元
|
|
|
- </p>
|
|
|
+ <p>{{ shopInfo.extend.freeDistance }}公里内免运费,超过每增加1公里运费增加{{shopInfo.extend.freight}}元</p>
|
|
|
<div style="text-align: right; margin-top: 10px">
|
|
|
<el-button size="mini" type="primary" @click="$util.pageTo({url: '/goods/freight'})">修改</el-button>
|
|
|
</div>
|
|
|
@@ -169,7 +164,7 @@
|
|
|
<div class="list-checkbox" v-for="(item, index) in imgStoreData" :key="index">
|
|
|
<el-checkbox :label="item.imgUrl + ''">
|
|
|
<div class="list-img">
|
|
|
- <img :src="item.imgUrl" alt="图库图片" />
|
|
|
+ <img :src="item.imgUrl" />
|
|
|
</div>
|
|
|
</el-checkbox>
|
|
|
</div>
|
|
|
@@ -196,6 +191,7 @@
|
|
|
<script>
|
|
|
import { mapGetters } from 'vuex';
|
|
|
import elxUpload from '@/components/common/elx-upload.vue';
|
|
|
+import imgStore from '@/service/img-store/index';
|
|
|
|
|
|
export default {
|
|
|
name: 'goods-add',
|
|
|
@@ -275,7 +271,7 @@ export default {
|
|
|
this._getImgStore();
|
|
|
},
|
|
|
_getImgStore() {
|
|
|
- return this.$service.imgStore
|
|
|
+ return imgStore
|
|
|
.list({
|
|
|
page: 1,
|
|
|
categoryId: this.imgStoreVal
|
|
|
@@ -284,7 +280,6 @@ export default {
|
|
|
this.imgStoreData = res.list;
|
|
|
});
|
|
|
},
|
|
|
- // api
|
|
|
addFn(type) {
|
|
|
let form = JSON.parse(JSON.stringify(this.ruleForm));
|
|
|
|
|
|
@@ -440,10 +435,9 @@ export default {
|
|
|
this.styleStoreData.push(form);
|
|
|
},
|
|
|
openStore() {
|
|
|
- if (this.ruleForm.categoryIdList.length == 0) {
|
|
|
- return this.$message.error('请先选择分类');
|
|
|
- }
|
|
|
- this.imgStoreModal = true;
|
|
|
+ this.$message.success('即将启用')
|
|
|
+ return false
|
|
|
+ this.imgStoreModal = true
|
|
|
}
|
|
|
}
|
|
|
};
|