Commit 84f8d798 authored by 黄奎's avatar 黄奎

页面修改

parent e085853c
......@@ -74,7 +74,7 @@
<!--<div>版本号:{{Version}}</div> <div>描述:</div>-->
</div>
<div>
<img src="http://wx.weibaoge.cn/plugins/wxapp/assets/upload-tip.png" style="max-width: 100%; height: auto; border: 1px dashed rgb(53, 182, 53);">
<img :src="getIconLink('/Static/icon-close.png')" style="max-width: 100%; height: auto; border: 1px dashed rgb(53, 182, 53);">
</div>
</div>
</div>
......
......@@ -381,8 +381,8 @@
<div flex="dir:left cross:center"
style="margin: 10px 0px; padding: 0px 12px; height: 48px; background: rgb(255, 255, 255);">
<div>{{addMsg.UserNotesName}}</div>
<div class="app-image"
style="background-image: url(http://wx.weibaoge.cn/web/statics/img/mall/customize_jp.png;); background-size: cover; background-position: center center; width: 8px; height: 13px; border-radius: 0%; margin-left: auto;">
<div class="app-image" style="background-size: cover; background-position: center center; width: 8px; height: 13px; border-radius: 0%; margin-left: auto;"
:style="{backgroundImage: 'url('+getIconLink('/Static/customize_jp.png')+')'}" >
</div>
</div>
<div flex="main:center" style="margin: 20px auto; color: rgb(255, 255, 255);">
......
......@@ -87,7 +87,7 @@
maxHeight:'calc('+height+' - '+item.top+'px)', backgroundColor: index == key ? 'rgba(92, 179, 253, 0.2)' : ''}"
@click="select(key)" v-for="(item, key) in hotspotList" :key="key" :data-index="key">
<div class="close" @click.stop="del(key)" v-if="item.is_close">
<img style="width: 32px;height: 32px" src="http://wx.weibaoge.cn/web/statics/img/mall/icon-close.png">
<img style="width: 32px;height: 32px" :src="getIconLink('/Static/icon-close.png')">
</div>
</div>
<div class="pic-list" :style="style" v-if="picList && picList.length > 0">
......@@ -95,7 +95,7 @@
<div :style="item" :key="index">
<img :src="item.pic_url" style="width: 100%;visibility: hidden;display: block;">
</div>
<img :src="item.pic_url" style="width: 100%;visibility: hidden;display: block;">
<img :src="item.pic_url" :key="index" style="width: 100%;visibility: hidden;display: block;">
</template>
</div>
<div :style="style" flex="dir:left main:center cross:center" v-else>
......
......@@ -30,11 +30,11 @@
</div>
</el-form-item>
<el-form-item label="热区">
<choiceArea ref="choiceArea" :multiple="true" :max="2" :pic-url="getIconLink(addMsg.AuthUrl)"
<choiceAreaAuth ref="choiceAreaAuth" :multiple="true" :max="2" :pic-url="getIconLink(addMsg.AuthUrl)"
mode='auth' :hotspotArray="addMsg.AuthDataList" width="650px" height="700px"
@confirm="selectHotspot" :is-link="false">
<el-button size="mini">划分热区</el-button>
</choiceArea>
</choiceAreaAuth>
<div>注:需要划分两个热区:一个是登录按钮热区,一个是暂不登录按钮热区</div>
</el-form-item>
</el-form>
......@@ -53,7 +53,7 @@
</template>
<script>
import ChooseImg from "@/components/global/ChooseImg.vue";
import choiceArea from "../common/choiceArea.vue";
import choiceAreaAuth from "../common/choiceAreaAuth.vue";
export default {
data() {
return {
......@@ -68,7 +68,7 @@
MallBaseId: 0,
IsOpenAuth: 0, //是否开启
AuthUrl: this.domainManager().ImageUrl + '/Static/auth-default.png', //图片
AuthDataList: [] //热区
AuthDataList: [ ] //热区
},
};
},
......@@ -77,7 +77,7 @@
},
components: {
ChooseImg,
choiceArea
choiceAreaAuth
},
methods: {
GetData() {
......@@ -90,15 +90,41 @@
if (res.data.data.AuthUrl) {
this.addMsg.AuthUrl = res.data.data.AuthUrl;
}
if (res.data.data.AuthDataList && res.data.data.AuthDataList.length > 0) {
this.addMsg.AuthDataList = res.data.data.AuthDataList;
} else {
this.GetDefaultSpot();
}
} else {
this.Info(res.data.message);
}
})
},
//热区设置默认值
GetDefaultSpot() {
var objLogin = {
width: 224,
height: 80,
left: 340,
top: 566,
defaultX: 340,
defaultY: 566,
link: "",
open_type: "login"
};
this.addMsg.AuthDataList.push(objLogin);
var objCancel = {
width: 224,
height: 80,
left: 84,
top: 566,
defaultX: 84,
defaultY: 566,
link: "",
open_type: "cancel"
};
this.addMsg.AuthDataList.push(objCancel);
},
//保存
saveMsg() {
this.apipost("/api/Tenant/SetMiniProgramMallAuth", this.addMsg, res => {
......@@ -118,7 +144,7 @@
// 热区选择(edit)
selectHotspot(list) {
this.addMsg.AuthDataList = list;
this.$refs.choiceArea.clearAll();
this.$refs.choiceAreaAuth.clearAll();
},
},
mounted() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment