@@ -40,7 +40,7 @@ SOFTWARE.
40
40
<!-- 左边配置菜单-->
41
41
<div class =" left" >
42
42
<div class =" weixin-hd" >
43
- <div class =" weixin-title" >{{menuName }}</div >
43
+ <div class =" weixin-title" >{{ name }}</div >
44
44
</div >
45
45
<div class =" weixin-menu menu_main clearfix" >
46
46
<div class =" menu_bottom" v-for =" (item, i) of menuList" :key =" i" >
@@ -75,18 +75,19 @@ SOFTWARE.
75
75
</div >
76
76
<div >
77
77
<span >菜单名称:</span >
78
- <el-input class =" input_width" v-model =" tempObj.name" placeholder =" 请输入菜单名称" :maxlength =nameMaxLength clearable ></el-input >
78
+ <el-input class =" input_width" v-model =" tempObj.name" placeholder =" 请输入菜单名称" :maxlength =" nameMaxLength"
79
+ clearable />
79
80
</div >
80
81
<div v-if =" showConfigureContent" >
81
82
<div class =" menu_content" >
82
83
<span >菜单内容:</span >
83
84
<el-select v-model =" tempObj.type" clearable placeholder =" 请选择" class =" menu_option" >
84
- <el-option v-for =" item in menuOptions" :label =" item.label" :value =" item.value" :key =" item.value" ></ el-option >
85
+ <el-option v-for =" item in menuOptions" :label =" item.label" :value =" item.value" :key =" item.value" / >
85
86
</el-select >
86
87
</div >
87
88
<div class =" configur_content" v-if =" tempObj.type === 'view'" >
88
89
<span >跳转链接:</span >
89
- <el-input class =" input_width" v-model =" tempObj.url" placeholder =" 请输入链接" clearable ></ el-input >
90
+ <el-input class =" input_width" v-model =" tempObj.url" placeholder =" 请输入链接" clearable / >
90
91
</div >
91
92
<div class =" configur_content" v-if =" tempObj.type === 'miniprogram'" >
92
93
<div class =" applet" >
@@ -103,7 +104,7 @@ SOFTWARE.
103
104
</div >
104
105
<p class =" blue" >tips:需要和公众号进行关联才可以把小程序绑定带微信菜单上哟!</p >
105
106
</div >
106
- <div class =" configur_content" v-if =" tempObj.type == 'article_view_limited'" >
107
+ <div class =" configur_content" v-if =" tempObj.type === 'article_view_limited'" >
107
108
<el-row >
108
109
<div class =" select-item" v-if =" tempObj && tempObj.content && tempObj.content.articles" >
109
110
<WxNews :objData =" tempObj.content.articles" ></WxNews >
@@ -123,7 +124,7 @@ SOFTWARE.
123
124
</el-dialog >
124
125
</el-row >
125
126
</div >
126
- <div class =" configur_content" v-if =" tempObj.type == 'click' || tempObj.type == 'scancode_waitmsg'" >
127
+ <div class =" configur_content" v-if =" tempObj.type === 'click' || tempObj.type = == 'scancode_waitmsg'" >
127
128
<WxReplySelect :objData =" tempObj" v-if =" hackResetWxReplySelect" ></WxReplySelect >
128
129
</div >
129
130
</div >
@@ -160,6 +161,7 @@ export default {
160
161
showSearch: true ,
161
162
// 查询参数
162
163
accountId: undefined ,
164
+ name: ' ' , // 公众号名
163
165
menuList: {
164
166
children: [],
165
167
},
@@ -180,28 +182,27 @@ export default {
180
182
},
181
183
visible2: false , // 素材内容 "选择素材"按钮弹框显示隐藏
182
184
tableData: [], // 素材内容弹框数据,
183
- menuName: ' ' ,
184
185
menuOptions: [{
185
- value: ' view' ,
186
- label: ' 跳转网页'
186
+ value: ' view' ,
187
+ label: ' 跳转网页'
187
188
}, {
188
- value: ' miniprogram' ,
189
- label: ' 跳转小程序'
189
+ value: ' miniprogram' ,
190
+ label: ' 跳转小程序'
190
191
}, {
191
- value: ' click' ,
192
- label: ' 点击回复'
192
+ value: ' click' ,
193
+ label: ' 点击回复'
193
194
}, {
194
- value: ' article_view_limited' ,
195
- label: ' 跳转图文消息'
195
+ value: ' article_view_limited' ,
196
+ label: ' 跳转图文消息'
196
197
}, {
197
- value: ' scancode_push' ,
198
- label: ' 扫码直接返回结果'
198
+ value: ' scancode_push' ,
199
+ label: ' 扫码直接返回结果'
199
200
}, {
200
- value: ' scancode_waitmsg' ,
201
- label: ' 扫码回复'
201
+ value: ' scancode_waitmsg' ,
202
+ label: ' 扫码回复'
202
203
}, {
203
- value: ' pic_sysphoto' ,
204
- label: ' 系统拍照发图'
204
+ value: ' pic_sysphoto' ,
205
+ label: ' 系统拍照发图'
205
206
}, {
206
207
value: ' pic_photo_or_album' ,
207
208
label: ' 拍照或者相册'
@@ -234,7 +235,7 @@ export default {
234
235
/** 设置账号编号 */
235
236
setAccountId (accountId ) {
236
237
this .accountId = accountId;
237
- // this.uploadData.accountId = accountId;
238
+ this . name = this .accounts . find ( item => item . id === accountId) ? . name ;
238
239
},
239
240
getList () {
240
241
this .loading = false ;
@@ -296,7 +297,7 @@ export default {
296
297
this .isSubMenuActive = index + " " + k; // 二级菜单选中样式
297
298
},
298
299
// 添加横向一级菜单
299
- addMenu (){
300
+ addMenu () {
300
301
const menuKeyLength = this .menuList .length ;
301
302
const addButton = {
302
303
name: " 菜单名称" ,
@@ -345,6 +346,7 @@ export default {
345
346
this .isSubMenuActive = - 1 ;
346
347
}).catch (() => {});
347
348
},
349
+ // TODO 切换公众号时,清空;或者清空菜单时,也要清空表单;
348
350
349
351
// ======================== 菜单编辑 ========================
350
352
handleSave () {
@@ -405,7 +407,7 @@ export default {
405
407
}
406
408
< / script>
407
409
<!-- 本组件样式-->
408
- <style lang="less " scoped="scoped">
410
+ < style lang= " scss " scoped= " scoped" >
409
411
/* 公共颜色变量 */
410
412
.clearfix {* zoom: 1 ;}
411
413
.clearfix : : after{content: " " ;display: table; clear: both;}
@@ -515,29 +517,29 @@ div{
515
517
}
516
518
}
517
519
/* 右边菜单内容*/
518
- .right {
520
+ .right {
519
521
float: left;
520
522
width: 63 % ;
521
523
background- color: #e8e7e7;
522
524
padding: 20px ;
523
525
margin- left: 20px ;
524
526
- webkit- box- sizing: border- box;
525
527
box- sizing: border- box;
526
- .configure_page {
527
- .delete_btn {
528
+ .configure_page {
529
+ .delete_btn {
528
530
text- align: right;
529
531
margin- bottom: 15px ;
530
532
}
531
- .menu_content {
533
+ .menu_content {
532
534
margin- top: 20px ;
533
535
}
534
- .configur_content {
536
+ .configur_content {
535
537
margin- top: 20px ;
536
538
background- color: #fff;
537
539
padding: 20px 10px ;
538
540
border- radius: 5px
539
541
}
540
- .blue {
542
+ .blue {
541
543
color: #29b6f6 ;
542
544
margin- top: 10px ;
543
545
}
547
549
width: 20 % ;
548
550
}
549
551
}
552
+ .input_width {
553
+ width: 40 % ;
554
+ }
550
555
.material {
551
556
.input_width {
552
557
width: 30 % ;
@@ -557,17 +562,12 @@ div{
557
562
}
558
563
}
559
564
}
565
+ .el - input {
566
+ width: 70 % ;
567
+ margin- right: 2 % ;
568
+ }
560
569
}
561
570
< / style>
562
- <!-- 修改UI框架样式-->
563
- <!-- <style lang="less" scoped>-->
564
- <!-- .public-account-management{-->
565
- <!-- .el-input{-->
566
- <!-- width: 70%;-->
567
- <!-- margin-right: 2%;-->
568
- <!-- }-->
569
- <!-- }-->
570
- <!-- </style>-->
571
571
<!-- 素材样式-->
572
572
< style lang= " scss" scoped>
573
573
.pagination {
0 commit comments