bug
This commit is contained in:
parent
a43012cda0
commit
25cd5cb003
@ -3,7 +3,7 @@
|
|||||||
<el-card class="card">
|
<el-card class="card">
|
||||||
<el-form :model="queryParams" ref="queryForm" size="small" :inline="true" label-width="68px">
|
<el-form :model="queryParams" ref="queryForm" size="small" :inline="true" label-width="68px">
|
||||||
<el-form-item label="店铺" prop="storeId">
|
<el-form-item label="店铺" prop="storeId">
|
||||||
<el-select v-model="queryParams.storeId" placeholder="请选择店铺" style="width: 100%">
|
<el-select v-model="queryParams.storeId" filterable placeholder="请选择店铺" clearable style="width: 100%">
|
||||||
<el-option v-for="item in storeList"
|
<el-option v-for="item in storeList"
|
||||||
:key="item.id" clearable
|
:key="item.id" clearable
|
||||||
:label="item.name" :value="item.id"
|
:label="item.name" :value="item.id"
|
||||||
@ -87,10 +87,10 @@
|
|||||||
:visible.sync="dialogVisible">
|
:visible.sync="dialogVisible">
|
||||||
<el-form ref="form" :model="form" :rules="rules" label-width="120px">
|
<el-form ref="form" :model="form" :rules="rules" label-width="120px">
|
||||||
<el-form-item label="店铺" prop="storeId">
|
<el-form-item label="店铺" prop="storeId">
|
||||||
<el-select v-model="form.storeId" placeholder="请选择店铺" style="width: 100%">
|
<el-select v-model="form.storeId" filterable placeholder="请选择店铺" style="width: 100%">
|
||||||
<el-option v-for="item in storeList"
|
<el-option v-for="item in storeList"
|
||||||
:key="item.id"
|
:key="item.id"
|
||||||
:label="item.name" :value="item.id"></el-option>
|
:label="item.name" :value="item.id+''"></el-option>
|
||||||
</el-select>
|
</el-select>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="轮播图" prop="bannerUrl">
|
<el-form-item label="轮播图" prop="bannerUrl">
|
||||||
@ -235,18 +235,17 @@ export default {
|
|||||||
if (valid) {
|
if (valid) {
|
||||||
if (this.form.id){
|
if (this.form.id){
|
||||||
updateIndexBanner(this.form).then(res => {
|
updateIndexBanner(this.form).then(res => {
|
||||||
console.log(res)
|
|
||||||
if (res.data==1){
|
if (res.data==1){
|
||||||
this.$modal.msgSuccess("修改成功")
|
this.$modal.msgSuccess("修改成功")
|
||||||
this.dialogVisible = false
|
this.dialogVisible = false
|
||||||
this.flag = false
|
this.flag = false
|
||||||
|
this.queryParams.page = 1
|
||||||
this.getList()
|
this.getList()
|
||||||
this.getStoreList()
|
this.getStoreList()
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}else {
|
}else {
|
||||||
addIndexBanner(this.form).then(res => {
|
addIndexBanner(this.form).then(res => {
|
||||||
console.log(res)
|
|
||||||
if (res.data==1){
|
if (res.data==1){
|
||||||
this.$modal.msgSuccess("添加成功")
|
this.$modal.msgSuccess("添加成功")
|
||||||
this.dialogVisible = false
|
this.dialogVisible = false
|
||||||
|
@ -56,7 +56,7 @@ public class IndexBannerController extends BaseController {
|
|||||||
*/
|
*/
|
||||||
@PostMapping
|
@PostMapping
|
||||||
public ResponseObject add(@RequestBody IndexBanner indexBanner){
|
public ResponseObject add(@RequestBody IndexBanner indexBanner){
|
||||||
return getSuccessResult(indexBannerService.insertIndexBanner(indexBanner,null));
|
return getSuccessResult(indexBannerService.insertIndexBanner(indexBanner,indexBanner.getStoreId()));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -9,8 +9,10 @@
|
|||||||
<swiper class="swiper" style="width: 100%;height: 300px;" circular :indicator-dots="indicatorDots"
|
<swiper class="swiper" style="width: 100%;height: 300px;" circular :indicator-dots="indicatorDots"
|
||||||
:autoplay="autoplay" :interval="interval" :duration="duration">
|
:autoplay="autoplay" :interval="interval" :duration="duration">
|
||||||
<swiper-item v-for="(item,index) in list1" :key="index" @click="goPage(item.routeUrl)">
|
<swiper-item v-for="(item,index) in list1" :key="index" @click="goPage(item.routeUrl)">
|
||||||
<view class="swiper-item uni-bg-red"></view>
|
<view class="swiper-item uni-bg-red">
|
||||||
|
|
||||||
<image style="width: 100%;" :src="item.bannerUrl"></image>
|
<image style="width: 100%;" :src="item.bannerUrl"></image>
|
||||||
|
</view>
|
||||||
<!-- <image style="width: 100%;" :src="getBannerUrl(item.bannerUrl)"></image> -->
|
<!-- <image style="width: 100%;" :src="getBannerUrl(item.bannerUrl)"></image> -->
|
||||||
</swiper-item>
|
</swiper-item>
|
||||||
</swiper>
|
</swiper>
|
||||||
@ -271,6 +273,7 @@ import { callWithErrorHandling } from "vue"
|
|||||||
_this.list1[i].bannerUrl = _this.baseUrl + res.data[i].bannerUrl
|
_this.list1[i].bannerUrl = _this.baseUrl + res.data[i].bannerUrl
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
console.log(_this.list1);
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
@ -8,7 +8,7 @@
|
|||||||
<view class="top-box">
|
<view class="top-box">
|
||||||
<view class="dis" style="width: 78%;">
|
<view class="dis" style="width: 78%;">
|
||||||
<view class="top-img">
|
<view class="top-img">
|
||||||
<image v-if="store.logo==''||store.logo==null||store.logo==undefined" src="../../static/logo.png" mode="aspectFit"></image>
|
<image v-if="!store.logo" src="../../static/logo.png" mode="aspectFit"></image>
|
||||||
<image v-else :src="baseUrl+store.logo" mode="aspectFit"></image>
|
<image v-else :src="baseUrl+store.logo" mode="aspectFit"></image>
|
||||||
</view>
|
</view>
|
||||||
<view style="width: 80%;">
|
<view style="width: 80%;">
|
||||||
|
Loading…
Reference in New Issue
Block a user