|
@@ -111,6 +111,25 @@
|
|
|
</el-icon>
|
|
</el-icon>
|
|
|
</el-upload>
|
|
</el-upload>
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
|
|
+ <el-form-item label="芳香生活背景图" :rules="[
|
|
|
|
|
+ { required: true, message: '上传芳香生活背景图', trigger: 'change' },
|
|
|
|
|
+ ]">
|
|
|
|
|
+ <div class="img-box" v-for="(item, i) in fxshBgList" :key="i">
|
|
|
|
|
+ <img :src="item.url" alt="" />
|
|
|
|
|
+
|
|
|
|
|
+ <div class="occlusion">
|
|
|
|
|
+ <el-icon class="del" @click="handleRemove(10, i)">
|
|
|
|
|
+ <IEpDelete />
|
|
|
|
|
+ </el-icon>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ <el-upload action="#" list-type="picture-card" :auto-upload="false" :show-file-list="false"
|
|
|
|
|
+ :file-list="fxshBgList" :on-change="onChange(10)">
|
|
|
|
|
+ <el-icon>
|
|
|
|
|
+ <IEpPlus />
|
|
|
|
|
+ </el-icon>
|
|
|
|
|
+ </el-upload>
|
|
|
|
|
+ </el-form-item>
|
|
|
<el-form-item label="个人中心背景图" :rules="[
|
|
<el-form-item label="个人中心背景图" :rules="[
|
|
|
{ required: true, message: '上传个人中心背景图', trigger: 'change' },
|
|
{ required: true, message: '上传个人中心背景图', trigger: 'change' },
|
|
|
]">
|
|
]">
|
|
@@ -237,7 +256,8 @@ let CSWeChatList = ref([]);
|
|
|
// 优惠券
|
|
// 优惠券
|
|
|
let couponBgList = ref([]);
|
|
let couponBgList = ref([]);
|
|
|
|
|
|
|
|
-
|
|
|
|
|
|
|
+// 芳香生活
|
|
|
|
|
+let fxshBgList = ref([]);
|
|
|
// 加入会员广告图
|
|
// 加入会员广告图
|
|
|
let joinVipAdList = ref([]);
|
|
let joinVipAdList = ref([]);
|
|
|
|
|
|
|
@@ -351,6 +371,15 @@ const onChange = (type) => {
|
|
|
couponBgList.value.push(obj);
|
|
couponBgList.value.push(obj);
|
|
|
}
|
|
}
|
|
|
break;
|
|
break;
|
|
|
|
|
+ case 10:
|
|
|
|
|
+ // 上传芳香生活
|
|
|
|
|
+ if (fxshBgList.value.length > 0) {
|
|
|
|
|
+ fxshBgList.value = [];
|
|
|
|
|
+ fxshBgList.value.push(obj);
|
|
|
|
|
+ } else {
|
|
|
|
|
+ fxshBgList.value.push(obj);
|
|
|
|
|
+ }
|
|
|
|
|
+ break;
|
|
|
}
|
|
}
|
|
|
loading.value = false;
|
|
loading.value = false;
|
|
|
//
|
|
//
|
|
@@ -394,7 +423,9 @@ const handleRemove = (type, index) => {
|
|
|
case 9:
|
|
case 9:
|
|
|
couponBgList.value.splice(index, 1);
|
|
couponBgList.value.splice(index, 1);
|
|
|
break;
|
|
break;
|
|
|
-
|
|
|
|
|
|
|
+ case 10:
|
|
|
|
|
+ fxshBgList.value.splice(index, 1);
|
|
|
|
|
+ break;
|
|
|
default:
|
|
default:
|
|
|
break;
|
|
break;
|
|
|
}
|
|
}
|
|
@@ -406,6 +437,7 @@ const submit = () => {
|
|
|
const shop_bgimg = mainBgList.value && mainBgList.value.length ? mainBgList.value[0].url.replace(import.meta.env.VITE_APP_BASE_API, '') : null
|
|
const shop_bgimg = mainBgList.value && mainBgList.value.length ? mainBgList.value[0].url.replace(import.meta.env.VITE_APP_BASE_API, '') : null
|
|
|
const wx_bgimg = CSWeChatList.value && CSWeChatList.value.length ? CSWeChatList.value[0].url.replace(import.meta.env.VITE_APP_BASE_API, '') : null
|
|
const wx_bgimg = CSWeChatList.value && CSWeChatList.value.length ? CSWeChatList.value[0].url.replace(import.meta.env.VITE_APP_BASE_API, '') : null
|
|
|
const youhuiquan_bgimg= couponBgList.value && couponBgList.value.length ? couponBgList.value[0].url.replace(import.meta.env.VITE_APP_BASE_API, '') : null
|
|
const youhuiquan_bgimg= couponBgList.value && couponBgList.value.length ? couponBgList.value[0].url.replace(import.meta.env.VITE_APP_BASE_API, '') : null
|
|
|
|
|
+ const cs_fxsh_bgimg= fxshBgList.value && fxshBgList.value.length ? fxshBgList.value[0].url.replace(import.meta.env.VITE_APP_BASE_API, '') : null
|
|
|
const ucenter_bg =mineBgList.value && mineBgList.value.length ? mineBgList.value[0].url.replace(import.meta.env.VITE_APP_BASE_API, '') : null
|
|
const ucenter_bg =mineBgList.value && mineBgList.value.length ? mineBgList.value[0].url.replace(import.meta.env.VITE_APP_BASE_API, '') : null
|
|
|
const user_grade_bg = levelBgList.value && levelBgList.value.length ? levelBgList.value[0].url.replace(import.meta.env.VITE_APP_BASE_API, '') : null
|
|
const user_grade_bg = levelBgList.value && levelBgList.value.length ? levelBgList.value[0].url.replace(import.meta.env.VITE_APP_BASE_API, '') : null
|
|
|
const user_in_bg = joinVipAdList.value && joinVipAdList.value.length ? joinVipAdList.value[0].url.replace(import.meta.env.VITE_APP_BASE_API, '') : null
|
|
const user_in_bg = joinVipAdList.value && joinVipAdList.value.length ? joinVipAdList.value[0].url.replace(import.meta.env.VITE_APP_BASE_API, '') : null
|
|
@@ -429,7 +461,11 @@ const submit = () => {
|
|
|
conf_value: youhuiquan_bgimg,
|
|
conf_value: youhuiquan_bgimg,
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
- conf_name: "wechat.shop_logo",
|
|
|
|
|
|
|
+ conf_name: "wechat.cs_fxsh_bgimg",
|
|
|
|
|
+ conf_value: cs_fxsh_bgimg,
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ conf_name: "wechat.shop_home_logo",
|
|
|
conf_value: siteLogo.value,
|
|
conf_value: siteLogo.value,
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
@@ -485,11 +521,11 @@ const getConfigApi = () => {
|
|
|
formData.value.shop_share_title = data.wechat.shop_share_title;
|
|
formData.value.shop_share_title = data.wechat.shop_share_title;
|
|
|
formData.value.btn_color = data.wechat.btn_color;
|
|
formData.value.btn_color = data.wechat.btn_color;
|
|
|
//商城logo
|
|
//商城logo
|
|
|
- if (data.wechat.shop_logo) {
|
|
|
|
|
- siteLogo.value = data.wechat.shop_logo;
|
|
|
|
|
|
|
+ if (data.wechat.shop_home_logo) {
|
|
|
|
|
+ siteLogo.value = data.wechat.shop_home_logo;
|
|
|
imgList.value = [];
|
|
imgList.value = [];
|
|
|
imgList.value.push({
|
|
imgList.value.push({
|
|
|
- url: import.meta.env.VITE_APP_BASE_API + data.wechat.shop_logo,
|
|
|
|
|
|
|
+ url: import.meta.env.VITE_APP_BASE_API + data.wechat.shop_home_logo,
|
|
|
});
|
|
});
|
|
|
}
|
|
}
|
|
|
// 分享图片
|
|
// 分享图片
|
|
@@ -521,6 +557,16 @@ const getConfigApi = () => {
|
|
|
url: import.meta.env.VITE_APP_BASE_API + data.wechat.cs_youhuiquan_bgimg,
|
|
url: import.meta.env.VITE_APP_BASE_API + data.wechat.cs_youhuiquan_bgimg,
|
|
|
});
|
|
});
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
|
|
+ // 芳香生活背景图
|
|
|
|
|
+ if (data?.wechat?.cs_fxsh_bgimg) {
|
|
|
|
|
+ fxshBgList.value = [];
|
|
|
|
|
+ fxshBgList.value.push({
|
|
|
|
|
+ url: import.meta.env.VITE_APP_BASE_API + data.wechat.cs_fxsh_bgimg,
|
|
|
|
|
+ });
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
// 个人中心背景图
|
|
// 个人中心背景图
|
|
|
if (data?.wechat?.ucenter_bg) {
|
|
if (data?.wechat?.ucenter_bg) {
|
|
|
mineBgList.value = [];
|
|
mineBgList.value = [];
|