108
|
|
- ifequal
|
|
109
|
|
- clerk_info.clerk_sex
|
|
110
|
|
- 1
|
|
111
|
|
- %}selected{%
|
|
112
|
|
- endifequal
|
|
113
|
|
- %}
|
|
114
|
|
- >
|
|
115
|
|
- 男
|
|
116
|
|
- </option>
|
|
117
|
|
- <option
|
|
118
|
|
- value="0"
|
|
119
|
|
- {%
|
|
120
|
|
- ifequal
|
|
121
|
|
- clerk_info.clerk_sex
|
|
122
|
|
- 0
|
|
123
|
|
- %}selected{%
|
|
124
|
|
- endifequal
|
|
125
|
|
- %}
|
|
126
|
|
- >
|
|
127
|
|
- 女
|
|
128
|
|
- </option>
|
|
|
38
|
+ <select id="sex" class="weui_select" name="select" {% if not modified %}disabled{% endif %}>
|
|
|
39
|
+ <option value="1" {% ifequal clerk_info.clerk_sex 1 %}selected{% endifequal %}>男</option>
|
|
|
40
|
+ <option value="0" {% ifequal clerk_info.clerk_sex 0 %}selected{% endifequal %}>女</option>
|
|
129
|
41
|
</select>
|
|
130
|
42
|
</div>
|
|
131
|
43
|
</div>
|
|
132
|
44
|
<div class="weui_cell">
|
|
133
|
|
- <div class="weui_cell_hd">
|
|
134
|
|
- <label for="" class="weui_label">手机号</label>
|
|
135
|
|
- </div>
|
|
|
45
|
+ <div class="weui_cell_hd"><label for="" class="weui_label">手机号</label></div>
|
|
136
|
46
|
<div class="weui_cell_bd weui_cell_primary">
|
|
137
|
|
- <input
|
|
138
|
|
- id="phone"
|
|
139
|
|
- class="weui_input"
|
|
140
|
|
- type="text"
|
|
141
|
|
- required="required"
|
|
142
|
|
- pattern="[0-9]{11}"
|
|
143
|
|
- value="{{ clerk_info.clerk_phone }}"
|
|
144
|
|
- placeholder="请输入手机号"
|
|
145
|
|
- {%
|
|
146
|
|
- if
|
|
147
|
|
- not
|
|
148
|
|
- modified
|
|
149
|
|
- %}disabled{%
|
|
150
|
|
- endif
|
|
151
|
|
- %}
|
|
152
|
|
- />
|
|
|
47
|
+ <input id="phone" class="weui_input" type="text" required="required" pattern="[0-9]{11}" value="{{ clerk_info.clerk_phone }}" placeholder="请输入手机号" {% if not modified %}disabled{% endif %}>
|
|
153
|
48
|
</div>
|
|
154
|
49
|
</div>
|
|
155
|
50
|
</div>
|
|
|
|
@@ -170,45 +65,36 @@
|
|
170
|
65
|
</div>
|
|
171
|
66
|
</div>
|
|
172
|
67
|
</div>
|
|
173
|
|
- {% endif %} {% ifequal clerk_info.status -1 %}
|
|
|
68
|
+ {% endif %}
|
|
|
69
|
+
|
|
|
70
|
+
|
|
|
71
|
+ {% ifequal clerk_info.status -1 %}
|
|
174
|
72
|
<div class="weui_cells_title">拒绝原因</div>
|
|
175
|
73
|
<div class="weui_cells">
|
|
176
|
74
|
<div class="weui_panel_bd">
|
|
177
|
75
|
<div class="weui_media_box weui_media_text">
|
|
178
|
|
- <p class="weui_media_desc">
|
|
179
|
|
- {{ clerk_info.refused_reason|safe|linebreaks }}
|
|
180
|
|
- </p>
|
|
|
76
|
+ <p class="weui_media_desc">{{ clerk_info.refused_reason|safe|linebreaks }}</p>
|
|
181
|
77
|
</div>
|
|
182
|
78
|
</div>
|
|
183
|
79
|
</div>
|
|
184
|
80
|
{% endifequal %}
|
|
185
|
81
|
|
|
186
|
|
- <br />
|
|
|
82
|
+ <br>
|
|
187
|
83
|
|
|
188
|
|
- {% if modified %}<button id="submit" class="weui_btn weui_btn_warn">
|
|
189
|
|
- {% if clerk_info %}重新提交{% else %}提交{% endif %}</button
|
|
190
|
|
- >{% endif %}
|
|
|
84
|
+ {% if modified %}<button id="submit" class="weui_btn weui_btn_warn">{% if clerk_info %}重新提交{% else %}提交{% endif %}</button>{% endif %}
|
|
191
|
85
|
|
|
192
|
86
|
<div class="weui_dialog_alert" id="dialog" style="display: none">
|
|
193
|
87
|
<div class="weui_mask"></div>
|
|
194
|
88
|
<div class="weui_dialog">
|
|
195
|
|
- <div class="weui_dialog_hd">
|
|
196
|
|
- <strong id="title" class="weui_dialog_title"
|
|
197
|
|
- >弹窗标题</strong
|
|
198
|
|
- >
|
|
199
|
|
- </div>
|
|
200
|
|
- <div id="content" class="weui_dialog_bd">
|
|
201
|
|
- 弹窗内容,告知当前页面信息等
|
|
202
|
|
- </div>
|
|
|
89
|
+ <div class="weui_dialog_hd"><strong id="title" class="weui_dialog_title">弹窗标题</strong></div>
|
|
|
90
|
+ <div id="content" class="weui_dialog_bd">弹窗内容,告知当前页面信息等</div>
|
|
203
|
91
|
<div class="weui_dialog_ft">
|
|
204
|
|
- <a href="javascript:;" class="weui_btn_dialog primary"
|
|
205
|
|
- >确定</a
|
|
206
|
|
- >
|
|
|
92
|
+ <a href="javascript:;" class="weui_btn_dialog primary">确定</a>
|
|
207
|
93
|
</div>
|
|
208
|
94
|
</div>
|
|
209
|
95
|
</div>
|
|
210
|
96
|
|
|
211
|
|
- <div id="toast" style="display: none">
|
|
|
97
|
+ <div id="toast" style="display: none;">
|
|
212
|
98
|
<div class="weui_mask_transparent"></div>
|
|
213
|
99
|
<div class="weui_toast">
|
|
214
|
100
|
<i class="weui_icon_toast"></i>
|
|
|
|
@@ -218,20 +104,9 @@
|
|
218
|
104
|
</div>
|
|
219
|
105
|
|
|
220
|
106
|
<script>
|
|
221
|
|
- window.onerror = function (
|
|
222
|
|
- errorMessage,
|
|
223
|
|
- scriptURI,
|
|
224
|
|
- lineNo,
|
|
225
|
|
- columnNo,
|
|
226
|
|
- error
|
|
227
|
|
- ) {
|
|
228
|
|
- if (
|
|
229
|
|
- [
|
|
230
|
|
- "Uncaught ReferenceError: WeixinJSBridge is not defined",
|
|
231
|
|
- "ResizeObserver loop limit exceeded",
|
|
232
|
|
- ].indexOf(errorMessage) >= 0
|
|
233
|
|
- ) {
|
|
234
|
|
- return;
|
|
|
107
|
+ window.onerror = function(errorMessage, scriptURI, lineNo, columnNo, error) {
|
|
|
108
|
+ if (['Uncaught ReferenceError: WeixinJSBridge is not defined', 'ResizeObserver loop limit exceeded'].indexOf(errorMessage) >= 0) {
|
|
|
109
|
+ return
|
|
235
|
110
|
}
|
|
236
|
111
|
// 构建错误对象
|
|
237
|
112
|
var errorObj = {
|
|
|
|
@@ -241,16 +116,16 @@
|
|
241
|
116
|
columnNo: columnNo || 0,
|
|
242
|
117
|
scriptURI: scriptURI || null,
|
|
243
|
118
|
errorMessage: errorMessage || null,
|
|
244
|
|
- stack: error && error.stack ? error.stack : null,
|
|
|
119
|
+ stack: error && error.stack ? error.stack : null
|
|
245
|
120
|
};
|
|
246
|
121
|
// 构建Http请求
|
|
247
|
122
|
if (XMLHttpRequest) {
|
|
248
|
123
|
var xhr = new XMLHttpRequest();
|
|
249
|
|
- xhr.open("post", "/e/report", true);
|
|
250
|
|
- xhr.setRequestHeader("Content-Type", "application/json"); // 设置请求头
|
|
|
124
|
+ xhr.open('post', '/e/report', true);
|
|
|
125
|
+ xhr.setRequestHeader('Content-Type', 'application/json'); // 设置请求头
|
|
251
|
126
|
xhr.send(JSON.stringify(errorObj)); // 发送参数
|
|
252
|
127
|
}
|
|
253
|
|
- };
|
|
|
128
|
+ }
|
|
254
|
129
|
</script>
|
|
255
|
130
|
<script src="//cdnjs.cloudflare.com/ajax/libs/zepto/1.1.6/zepto.min.js"></script>
|
|
256
|
131
|
<script>
|
|
|
|
@@ -311,7 +186,7 @@
|
|
311
|
186
|
show_error_dialog('错误', data.description);
|
|
312
|
187
|
}
|
|
313
|
188
|
},
|
|
314
|
|
- error: function(xhr,status,error){
|
|
|
189
|
+ error: function(xhr, status, error){
|
|
315
|
190
|
show_error_dialog(`提示${status}`, `${error} ${xhr.statusText}`);
|
|
316
|
191
|
}
|
|
317
|
192
|
})
|
|
|
|
@@ -324,26 +199,17 @@
|
|
324
|
199
|
});
|
|
325
|
200
|
{% endif %}
|
|
326
|
201
|
</script>
|
|
327
|
|
- <script
|
|
328
|
|
- type="text/javascript"
|
|
329
|
|
- src="//res.wx.qq.com/open/js/jweixin-1.2.0.js"
|
|
330
|
|
- ></script>
|
|
331
|
|
- <script
|
|
332
|
|
- type="text/javascript"
|
|
333
|
|
- src="{% static 'kodo/js/jswe-0.0.4.js' %}"
|
|
334
|
|
- ></script>
|
|
|
202
|
+ <script type="text/javascript" src="//res.wx.qq.com/open/js/jweixin-1.2.0.js"></script>
|
|
|
203
|
+ <script type="text/javascript" src="{% static 'kodo/js/jswe-0.0.4.js' %}"></script>
|
|
335
|
204
|
<script>
|
|
336
|
|
- V.initWxData(
|
|
337
|
|
- {
|
|
338
|
|
- imgUrl: "http://pai.ai/static/kodo/img/paiai_96_96.png",
|
|
339
|
|
- link: "http://pai.ai/w/o?r=http%3A%2F%2Fkodo.xfoto.com.cn%2Fp%2Fclerk",
|
|
340
|
|
- desc: "店员授权",
|
|
341
|
|
- title: "店员授权",
|
|
342
|
|
- timeLine: "",
|
|
343
|
|
- },
|
|
344
|
|
- true
|
|
345
|
|
- );
|
|
|
205
|
+ V.initWxData({
|
|
|
206
|
+ imgUrl: 'http://pai.ai/static/kodo/img/paiai_96_96.png',
|
|
|
207
|
+ link: 'http://pai.ai/w/o?r=http%3A%2F%2Fkodo.xfoto.com.cn%2Fp%2Fclerk',
|
|
|
208
|
+ desc: '店员授权',
|
|
|
209
|
+ title: '店员授权',
|
|
|
210
|
+ timeLine: ''
|
|
|
211
|
+ }, true);
|
|
346
|
212
|
V.hideOptionMenu();
|
|
347
|
213
|
</script>
|
|
348
|
214
|
</body>
|
|
349
|
|
-</html>
|
|
|
215
|
+</html>
|