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

页面修改

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