Commit 881fcc3d authored by 黄奎's avatar 黄奎

页面修改

parent 0da2f428
...@@ -736,13 +736,16 @@ ...@@ -736,13 +736,16 @@
TestMiniApp() { TestMiniApp() {
var cmdStr = ""; var cmdStr = "";
//cmdStr = "/api/test/get"; //cmdStr = "/api/test/get";
cmdStr="/api/Mall/GetHome"; //cmdStr="/api/Mall/GetHome";
//cmdStr = "/api/Mall/GetMessageTemplate";
// cmdStr = "/api/Mall/GetWeChatOpenId"; var postData = {
var postData = {}; // "AddressId":154
// this.apipost(cmdStr, postData, res => { };
// console.log("Test", res.data); if (cmdStr != "") {
// }) this.apipost(cmdStr, postData, res => {
console.log("TestMiniApp", res.data);
})
}
}, },
}, },
mounted() { mounted() {
......
...@@ -326,8 +326,8 @@ ...@@ -326,8 +326,8 @@
</el-switch> </el-switch>
</el-form-item> </el-form-item>
<el-form-item label="样式选择" size="mini"> <el-form-item label="样式选择" size="mini">
<div class="block-box" v-for="(item,index) in styleList" :key="index" :class="isActive==item.Id?'active':''" <div class="block-box" v-for="(item,index) in styleList" :key="index" :class="item.Style==msg.Style?'active':''"
@click="getStyleType(item.Id,item.Style)"> @click="getStyleType(item)">
<img src="../../assets/img/storeDesign/select.png" class="Cubeselect" alt="" /> <img src="../../assets/img/storeDesign/select.png" class="Cubeselect" alt="" />
<div class="opacity"></div> <div class="opacity"></div>
<el-button class="imgCube_chooseBtn" type="primary">启用该样式</el-button> <el-button class="imgCube_chooseBtn" type="primary">启用该样式</el-button>
...@@ -434,7 +434,6 @@ ...@@ -434,7 +434,6 @@
initialFrameWidth: null, initialFrameWidth: null,
initialFrameHeight: 350, initialFrameHeight: 350,
}, },
isActive: -1,
msg: { msg: {
GroupByConfigId: 0, //配置编号 GroupByConfigId: 0, //配置编号
Is_Share: 0, //是否开启分销 Is_Share: 0, //是否开启分销
...@@ -454,44 +453,44 @@ ...@@ -454,44 +453,44 @@
}, },
//样式选择枚举 //样式选择枚举
styleList: [{ styleList: [{
Id: 0, Id: 1,
size: ['750*360'], size: ['750*360'],
Style: 1, Style: 1,
ImgUrl: this.domainManager().ImageUrl + '/Static/cube1-1.png' ImgUrl: this.domainManager().ImageUrl + '/Static/cube1-1.png'
}, { }, {
Id: 1, Id: 2,
size: ['300*360', '450*360'], size: ['300*360', '450*360'],
Style: 2, Style: 2,
ImgUrl: this.domainManager().ImageUrl + '/Static/cube1-2.png' ImgUrl: this.domainManager().ImageUrl + '/Static/cube1-2.png'
}, { }, {
Id: 2, Id: 3,
size: ['300*360', '450*180', '450*180'], size: ['300*360', '450*180', '450*180'],
Style: 3, Style: 3,
ImgUrl: this.domainManager().ImageUrl + '/Static/cube1-3.png' ImgUrl: this.domainManager().ImageUrl + '/Static/cube1-3.png'
}, { }, {
Id: 3, Id: 4,
size: ['300*360', '450*180', '225*180', '225*180'], size: ['300*360', '450*180', '225*180', '225*180'],
Style: 4, Style: 4,
ImgUrl: this.domainManager().ImageUrl + '/Static/cube1-4.png' ImgUrl: this.domainManager().ImageUrl + '/Static/cube1-4.png'
}, { }, {
Id: 4, Id: 5,
size: ['375*240', '375*240'], size: ['375*240', '375*240'],
Style: 2, Style: 5,
ImgUrl: this.domainManager().ImageUrl + '/Static/cube2-1.png' ImgUrl: this.domainManager().ImageUrl + '/Static/cube2-1.png'
}, { }, {
Id: 5, Id: 6,
size: ['250*240', '250*240', '250*240'], size: ['250*240', '250*240', '250*240'],
Style: 3, Style: 6,
ImgUrl: this.domainManager().ImageUrl + '/Static/cube2-2.png' ImgUrl: this.domainManager().ImageUrl + '/Static/cube2-2.png'
}, { }, {
Id: 6, Id: 7,
size: ['188*188', '188*188', '188*188', '188*188'], size: ['188*188', '188*188', '188*188', '188*188'],
Style: 4, Style: 7,
ImgUrl: this.domainManager().ImageUrl + '/Static/cube2-3.png' ImgUrl: this.domainManager().ImageUrl + '/Static/cube2-3.png'
}, { }, {
Id: 7, Id: 8,
size: ['375*186', '375*186', '375*186', '375*186'], size: ['375*186', '375*186', '375*186', '375*186'],
Style: 4, Style: 8,
ImgUrl: this.domainManager().ImageUrl + '/Static/cube3-1.png' ImgUrl: this.domainManager().ImageUrl + '/Static/cube3-1.png'
}], }],
defaultMsg: [{ defaultMsg: [{
...@@ -539,16 +538,12 @@ ...@@ -539,16 +538,12 @@
this.checkIndex = tab.name; this.checkIndex = tab.name;
}, },
//点击选择广告 //点击选择广告
getStyleType(Id, Style) { getStyleType(item) {
this.isActive = Id; this.msg.Style = item.Style;
this.msg.Style = Id;
this.msg.MagicDataList = []; this.msg.MagicDataList = [];
for (var i = 0; i < Style; i++) { for (var i = 0; i < item.size.length; i++) {
this.msg.MagicDataList.push(this.defaultMsg[i]); this.msg.MagicDataList.push(this.defaultMsg[i]);
} }
this.msg.MagicDataList.forEach((x, index) => {
x.size = this.styleList[Id].size[index]
})
}, },
//保存拼团配置 //保存拼团配置
saveGroupBuyConfig() { saveGroupBuyConfig() {
......
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