wechatOperateConfig.html
5.47 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
<div>
<div class="operate-wrapper">
<div class="operate-left" style="width: 377px;">
<span>预览</span>
<div style="border: 1px solid #CECECE; margin-top: 13px;width: 377px;border-radius: 2px;">
<img src="images/wechantConfigHead.png">
<div class="home-banner wechant-conf-box home-bg" style="border: none;margin-top: 0;">
<ul ng-show="addListDemo5.length != 0" class="home-banner-box wechant-config"
ng-style="{'width':addListDemo5.length * 100 + '%'}">
<li ng-repeat="item in addListDemo5" ng-show="item.img">
<img ng-src="{{item.img}}" ng-click="bannerJump(item.url)" />
</li>
</ul>
<img ng-show="(addListDemo5.length == 1 && !addListDemo5[0].img) || addListDemo5.length == 0 || !addListDemo5"
style="width: 100%;height: 100%;" src="images/upload.png" alt="">
<ul class="indicator-dots-box align-center" ng-show="addListDemo5[0].length != 0 && addListDemo5.length != 1">
<li class="indicator-dots-box-radius" ng-show="item.img" ng-class="{'active':$index == 0}"
ng-click="bannerClick($index, 1)" ng-repeat="item in addListDemo5"></li>
</ul>
</div>
<div class="wechant-notice">
<img src="images/notice.png">
通知:<span>
<marquee width="280px" height="14px" scrolldelay="160">{{noticeData}}</marquee>
</span>
</div>
<img src="images/wechantConfigFooter.png">
</div>
</div>
<div ng-show="tabActive == 6" class="operate-right">
<ul class="operate-ul">
<li class="operate-li" ng-repeat="item in addList5">
<div ng-show="addList5.length > 1" class="operate-delete" ng-click="deleteList(5, $index)"></div>
<div class="operate-line">
<span class="operate-label">上传封面:</span>
<div class="operate-upload">
<div ng-show="item.img" class="operate-img" ng-click="delImg(5, $index, 1)">
<img ng-src="{{item.img}}" alt="">
<img src="images/close.png" class="del-img">
</div>
<div ng-show="!item.img" class="operate-add">+</div>
<div ng-show="!item.img" class="operate-files">
<input type="file" accept="image/*" data-id="configImg{{$index}}" name="img" ng-model="item.img"
onchange="angular.element(this).scope().choseUploadFile(5, this)">
</div>
</div>
<div class="m-t-xs operate-error" ng-show="!item.img && submitFlag6[$index][0]">
<small class="text-danger">请上传封面图片</small>
</div>
</div>
<div class="operate-line">
<span class="operate-label">链接地址:</span>
<input type="text" class="operate-input" placeholder="请输入链接地址" required ng-model="item.url"
ng-change="checkout('url', $index, 1, 5)">
<div class="m-t-xs operate-error" ng-show="!item.url && submitFlag6[$index][1]">
<small class="text-danger">请输入链接地址</small>
</div>
</div>
<div class="operate-line">
<span class="operate-label">优先级:</span>
<select class="operate-input" placeholder="请输入1~9的整数,优先级按照从小到大从上往下排" required ng-model="item.orderNo"
ng-change="checkout('orderNo', $index, 2, 5)">
<option value=""></option>
<option ng-repeat="item in selectList6" ng-show="item.value">{{item.key}}</option>
</select>
<div class="m-t-xs operate-error" ng-show="!item.orderNo && submitFlag6[$index][2]">
<small class="text-danger">请输入优先级</small>
</div>
</div>
</li>
</ul>
<div ng-show="addList5.length < 5" class="operate-addmore" ng-click="addmore(5)">
<span>+</span>
<span>添加</span>
</div>
</div>
<div ng-show="tabActive == 7" class="operate-right">
<p>小程序公告</p>
<form class="form-inline">
<!-- <div class="form-group col-lg-12"> -->
<!-- <label class="control-label required col-lg-2 col-md-2">电子围栏半径:</label> -->
<!-- <div class="col-lg-8 col-md-8"> -->
<div style="position: relative;">
<textarea type="text" style="width: 100%;" name="radius" class="form-control textarea" ng-change="handleWechantChange(noticeData)"
maxlength="40" required rows="4" autocomplete="off" ng-model="noticeData" placeholder="请输入公告内容">
</textarea>
<span class="limit-word-num">{{noticeData.length || 0}}/40</span>
</div>
<p ng-show="noticeData && noticeSubmitted" class="text-danger form-text">小程序公告是必填项</p>
<!-- </div> -->
<!-- </div> -->
</form>
</div>
</div>
</div>
<style>
.operate-left {
display: inline-block;
width: 375px;
margin-right: 20px;
}
.home-banner .home-banner-box.wechant-config li {
width: 375px;
}
.home-banner .home-banner-box.wechant-config li img {
width: 375px;
}
.operate-wrapper .wechant-notice {
height: 30px;
padding: 6px 15px;
background-color: #f5dfd0;
}
.operate-wrapper .wechant-notice img {
width: 14px;
height: 14px;
margin-top: -3px;
}
.operate-wrapper .limit-word-num {
position: absolute;
bottom: 8px;
right: 8px;
color: #676a6c;
}
</style>