Commit 5dafcb02 authored by 黄奎's avatar 黄奎

页面修改

parent 7eccb72e
...@@ -27,9 +27,8 @@ ...@@ -27,9 +27,8 @@
class="module-icon"> class="module-icon">
</el-tooltip> </el-tooltip>
<el-tooltip class="item" effect="dark" content="编辑" placement="top-start"> <el-tooltip class="item" effect="dark" content="编辑" placement="top-start">
<img v-if="item.is_edit==1&&item.key=='video'" @click="comCkVideo=index,isShowVideo=true" <img v-if="item.is_edit==1" @click="ShowDialog(item)" style="left:20px;"
style="left:20px;" :src="domainManager().ImageUrl+'/Static/icon-edit.png'" :src="domainManager().ImageUrl+'/Static/icon-edit.png'" class="module-icon">
class="module-icon">
</el-tooltip> </el-tooltip>
</div> </div>
</template> </template>
...@@ -50,10 +49,6 @@ ...@@ -50,10 +49,6 @@
<div class="home_Add" @click="addPlugn(childItem)"> <div class="home_Add" @click="addPlugn(childItem)">
<img :src="domainManager().ImageUrl+'/Static/plus.png'" alt=""> <img :src="domainManager().ImageUrl+'/Static/plus.png'" alt="">
</div> </div>
<div class="home_Add" style="margin-left:10px;" @click="isShowDialog(childItem)"
v-if="childItem.is_edit==1&&childItem.key!='video'">
<img src="../../assets/img/userman/edit.png" alt="" />
</div>
</div> </div>
</div> </div>
</template> </template>
...@@ -174,7 +169,7 @@ ...@@ -174,7 +169,7 @@
<el-option label="2个" value="2"></el-option> <el-option label="2个" value="2"></el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item :label="topicMsg.topic_num==1?'图标(1个专题)':'图标(2个专题)'" prop="topic_url"> <el-form-item label="专题1图标" prop="topic_url">
<el-tooltip class="item" effect="dark" content="建议尺寸104*32" placement="top"> <el-tooltip class="item" effect="dark" content="建议尺寸104*32" placement="top">
<el-button size="mini" @click="choicImg=true,chooseImg='topicOne'">选择文件</el-button> <el-button size="mini" @click="choicImg=true,chooseImg='topicOne'">选择文件</el-button>
</el-tooltip> </el-tooltip>
...@@ -185,8 +180,8 @@ ...@@ -185,8 +180,8 @@
</div> </div>
</div> </div>
</el-form-item> </el-form-item>
<el-form-item label="专题标签" prop="topic_url_2"> <el-form-item v-if="topicMsg.topic_num==2" label="专题2图标" prop="topic_url_2">
<el-tooltip class="item" effect="dark" content="建议尺寸54*28" placement="top"> <el-tooltip class="item" effect="dark" content="建议尺寸104*32" placement="top">
<el-button size="mini" @click="choicImg=true,chooseImg='topicTwo'">选择文件</el-button> <el-button size="mini" @click="choicImg=true,chooseImg='topicTwo'">选择文件</el-button>
</el-tooltip> </el-tooltip>
<div class="customize-share-title"> <div class="customize-share-title">
...@@ -196,6 +191,17 @@ ...@@ -196,6 +191,17 @@
</div> </div>
</div> </div>
</el-form-item> </el-form-item>
<el-form-item label="专题标签" prop="label_url">
<el-tooltip class="item" effect="dark" content="建议尺寸54*28" placement="top">
<el-button size="mini" @click="choicImg=true,chooseImg='topicLabel'">选择文件</el-button>
</el-tooltip>
<div class="customize-share-title">
<div class="zk_pic_box" style="width:80px;height:80px;" flex="main:center cross:center"
:style="{backgroundImage:'url(' + getIconLink(topicMsg.label_url) + ')'}">
<i v-if="topicMsg.label_url==''" class="el-icon-picture-outline"></i>
</div>
</div>
</el-form-item>
</el-form> </el-form>
<span slot="footer" class="dialog-footer"> <span slot="footer" class="dialog-footer">
<el-button size="small" @click="isShowTotic=false">取 消</el-button> <el-button size="small" @click="isShowTotic=false">取 消</el-button>
...@@ -276,7 +282,6 @@ ...@@ -276,7 +282,6 @@
export default { export default {
data() { data() {
return { return {
comCkVideo: -1,
//选择图片 //选择图片
chooseImg: '', chooseImg: '',
//导航图标 //导航图标
...@@ -295,11 +300,6 @@ ...@@ -295,11 +300,6 @@
radio: '4', radio: '4',
activeName: 'first', activeName: 'first',
dataList: [], dataList: [],
addMsg: {
RoleName: '', //角色名称
RoleIntro: '', //备注/描述
RoleAuth: '', //角色权限
},
//导航图标msg //导航图标msg
navMsg: { navMsg: {
row_num: 4 row_num: 4
...@@ -407,7 +407,7 @@ ...@@ -407,7 +407,7 @@
this.dataList.splice(index, 1); this.dataList.splice(index, 1);
}, },
//编辑 //编辑
isShowDialog(item) { ShowDialog(item) {
switch (item.key) { switch (item.key) {
case 'home_nav': case 'home_nav':
this.isShowNav = true; this.isShowNav = true;
...@@ -423,7 +423,11 @@ ...@@ -423,7 +423,11 @@
break; break;
case 'coupon': case 'coupon':
this.isShowCoupon = true; this.isShowCoupon = true;
this. this.couopnMsg = item;
break;
case "video":
this.isShowVideo = true;
this.videoMsg = item;
break; break;
} }
}, },
...@@ -465,7 +469,7 @@ ...@@ -465,7 +469,7 @@
x.coupon_url = this.couopnMsg.coupon_url; x.coupon_url = this.couopnMsg.coupon_url;
} }
}) })
this.isShowCoupon=false; this.isShowCoupon = false;
}, },
//保存公告 //保存公告
saveNotice(addMsg) { saveNotice(addMsg) {
...@@ -488,7 +492,7 @@ ...@@ -488,7 +492,7 @@
x.notice_url = this.noticeMsg.notice_url; x.notice_url = this.noticeMsg.notice_url;
} }
}) })
this.isShowNotice=false; this.isShowNotice = false;
}, },
//确定保存专题 //确定保存专题
setTopic() { setTopic() {
...@@ -499,14 +503,14 @@ ...@@ -499,14 +503,14 @@
x.topic_url_2 = this.topicMsg.topic_url_2; x.topic_url_2 = this.topicMsg.topic_url_2;
} }
}) })
this.isShowTotic=false; this.isShowTotic = false;
}, },
GetMiniProgramMallIndex() { GetMiniProgramMallIndex() {
this.apipost("/api/Tenant/GetMiniProgramMallIndex", {}, res => { this.apipost("/api/Tenant/GetMiniProgramMallIndex", {}, res => {
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
this.PlusInData = res.data.data.PlusInData; this.PlusInData = res.data.data.PlusInData;
if (res.data.data.HomeDataList && res.data.data.HomeDataList.length > 0) { if (res.data.data.HomeDataList && res.data.data.HomeDataList.length > 0) {
this.dataList= res.data.data.HomeDataList;; this.dataList = res.data.data.HomeDataList;;
} }
} else { } else {
this.Info(res.data.message); this.Info(res.data.message);
...@@ -525,35 +529,38 @@ ...@@ -525,35 +529,38 @@
}); });
}, },
baocunVideo() { baocunVideo() {
this.dataList[this.comCkVideo].video_url = this.videoMsg.video_url;
this.dataList[this.comCkVideo].video_pic_url = this.videoMsg.video_pic_url;
this.isShowVideo = false; this.isShowVideo = false;
this.videoMsg.video_pic_url = '';
this.videoMsg.video_url = '';
}, },
//选择图片 //选择图片
SelectId(msg) { SelectId(msg) {
//专题一
if (this.chooseImg == 'topicOne') { if (this.chooseImg == 'topicOne') {
this.topicMsg.topic_url = msg.url; this.topicMsg.topic_url = msg.url;
} }
//专题二
if (this.chooseImg == 'topicTwo') { if (this.chooseImg == 'topicTwo') {
this.topicMsg.topic_url_2 = msg.url; this.topicMsg.topic_url_2 = msg.url;
} }
//专题标签
if (this.chooseImg == 'topicLabel') {
this.topicMsg.label_url = msg.url;
}
if (this.chooseImg == 'video') { if (this.chooseImg == 'video') {
this.videoMsg.video_pic_url = msg.url; this.videoMsg.video_pic_url = msg.url;
} }
if (this.chooseImg == 'notice') { if (this.chooseImg == 'notice') {
this.noticeMsg.notice_url = msg.url; this.noticeMsg.notice_url = msg.url;
} }
if(this.chooseImg=='couponOne'){ if (this.chooseImg == 'couponOne') {
this.couopnMsg.coupon_not_url=msg.url; this.couopnMsg.coupon_not_url = msg.url;
} }
if(this.chooseImg=='couponTwo'){ if (this.chooseImg == 'couponTwo') {
this.couopnMsg.coupon_url=msg.url; this.couopnMsg.coupon_url = msg.url;
} }
this.choicImg = false; this.choicImg = false;
}, },
//选择视频文件
Selectvideo(val) { Selectvideo(val) {
this.videoMsg.video_url = val.Path; this.videoMsg.video_url = val.Path;
this.isChoiceVideo = false; this.isChoiceVideo = false;
...@@ -564,7 +571,6 @@ ...@@ -564,7 +571,6 @@
MallBaseId: this.getLocalStorage().MallBaseId, MallBaseId: this.getLocalStorage().MallBaseId,
HomeDataList: this.dataList HomeDataList: this.dataList
}; };
console.log("msg",msg);
this.apipost("/api/Tenant/SetMiniProgramMallHome", msg, res => { this.apipost("/api/Tenant/SetMiniProgramMallHome", msg, res => {
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
this.Success(res.data.message); this.Success(res.data.message);
......
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