um lines-num-new">
-              return decodeURIComponent((new RegExp('[?|&]' + name + '=' + '([^&;]+?)(&|#|;|$)').exec(location.search) || [null, ''])[1].replace(/\+/g, '%20')) || null;
85
-            }
86
-
87
-            function show_error_dialog(title, content) {
88
-                $('#dialog #title').text(title);
89
-                $('#dialog #content').text(content);
90
-                $('#dialog').show();
91
-            }
92
-            
93
-            function data_check() {
94
-                var unionid = getURLParameter('unionid');
95
-                if (!unionid) {
96
-                    show_error_dialog('微信授权', '微信授权失败,请重新打开页面');
97
-                    return false;
98
-                }
99
-
100
-                var name = $('#name').val();
101
-                if (!name) {
102
-                    show_error_dialog('姓名', '姓名错误,请检查重新输入');
103
-                    return false;
104
-                }
105 79
 
106
-                var phone_valid = $('#phone').is(':valid');
107
-                if (!phone_valid) {
108
-                    show_error_dialog('手机号', '手机号错误,请检查重新输入');
109
-                    return false;
80
+        <script src="//cdn.bootcss.com/zepto/1.1.6/zepto.min.js"></script>
81
+        <script>
82
+            $(function() {
83
+                function getURLParameter(name) {
84
+                  return decodeURIComponent((new RegExp('[?|&]' + name + '=' + '([^&;]+?)(&|#|;|$)').exec(location.search) || [null, ''])[1].replace(/\+/g, '%20')) || null;
110 85
                 }
111 86
 
112
-                var location = $('#location').val();
113
-                if (!location) {
114
-                    show_error_dialog('地址', '地址错误,请检查重新输入');
115
-                    return false;
87
+                function show_error_dialog(title, content) {
88
+                    $('#dialog #title').text(title);
89
+                    $('#dialog #content').text(content);
90
+                    $('#dialog').show();
116 91
                 }
117 92
 
118
-                return {
119
-                    unionid: unionid,
120
-                    name: name,
121
-                    sex: $('#sex option:checked').val(),
122
-                    phone: $('#phone').val(),
123
-                    location: location,
93
+                function data_check() {
94
+                    var unionid = getURLParameter('unionid');
95
+                    if (!unionid) {
96
+                        show_error_dialog('微信授权', '微信授权失败,请重新打开页面');
97
+                        return false;
98
+                    }
99
+
100
+                    var name = $('#name').val();
101
+                    if (!name) {
102
+                        show_error_dialog('姓名', '姓名错误,请检查重新输入');
103
+                        return false;
104
+                    }
105
+
106
+                    var phone_valid = $('#phone').is(':valid');
107
+                    if (!phone_valid) {
108
+                        show_error_dialog('手机号', '手机号错误,请检查重新输入');
109
+                        return false;
110
+                    }
111
+
112
+                    var location = $('#location').val();
113
+                    if (!location) {
114
+                        show_error_dialog('地址', '地址错误,请检查重新输入');
115
+                        return false;
116
+                    }
117
+
118
+                    return {
119
+                        unionid: unionid,
120
+                        name: name,
121
+                        sex: $('#sex option:checked').val(),
122
+                        phone: $('#phone').val(),
123
+                        location: location,
124
+                    }
124 125
                 }
125
-            }
126 126
 
127
-            $('#submit').click(function () {
128
-                var check_result = data_check();
129
-                if (check_result){
130
-                    $.ajax({
131
-                        type: 'POST',
132
-                        url: 'l/submit',
133
-                        data: check_result,
134
-                        success: function(data) {
135
-                            if (data.status == 200) {
136
-                                $('#toast').show();
137
-                                setTimeout(function () {
138
-                                    $('#toast').hide();
139
-                                }, 1000);
140
-                            } else {
141
-                                show_error_dialog('错误', data.description);
127
+                $('#submit').click(function () {
128
+                    var check_result = data_check();
129
+                    if (check_result){
130
+                        $.ajax({
131
+                            type: 'POST',
132
+                            url: 'l/submit',
133
+                            data: check_result,
134
+                            success: function(data) {
135
+                                if (data.status == 200) {
136
+                                    $('#toast').show();
137
+                                    setTimeout(function () {
138
+                                        $('#toast').hide();
139
+                                    }, 1000);
140
+                                } else {
141
+                                    show_error_dialog('错误', data.description);
142
+                                }
142 143
                             }
143
-                        }
144
-                    })
145
-                }
146
-            });
144
+                        })
145
+                    }
146
+                });
147 147
 
148
-            $('#dialog .weui_btn_dialog').click(function () {
149
-                $('#dialog').hide();
150
-            })
151
-        });
152
-    </script>
153
-</body>
148
+                $('#dialog .weui_btn_dialog').click(function () {
149
+                    $('#dialog').hide();
150
+                })
151
+            });
152
+        </script>
153
+        <script type="text/javascript" src="{% static 'pai2/js/jswe.js' %}?v=1"></script>
154
+        <script>
155
+            V.initWxData({
156
+                imgUrl: "http://pai.ai/static/pai2/img/paiai_96_96.png",
157
+                link: 'http://api.pai.ai/get_openid?redirect_url=http://pai.ai/page/lensman&scope=snsapi_base',
158
+                desc: "摄影师授权",
159
+                title: "摄影师授权",
160
+                timeLine: ""
161
+            }, true);
162
+        </script>
163
+    </body>
154 164
 </html>

kodo - Gogs: Go Git Service

Нет описания

Brightcells: b65f84e502 Duplicate entry лет %!s(int64=9): %!d(string=назад)
..
0001_initial.py 4defb80fdc gogs first init лет %!s(int64=10): %!d(string=назад)
0002_auto_20151113_1419.py 4defb80fdc gogs first init лет %!s(int64=10): %!d(string=назад)
0003_uuidinfo.py 52ce35cbfc add api uuid_init/uuid лет %!s(int64=10): %!d(string=назад)
0004_photosinfo_photo_name.py 52ce35cbfc add api uuid_init/uuid лет %!s(int64=10): %!d(string=назад)
0005_auto_20151207_1811.py 4a8b4f8819 add watermark лет %!s(int64=10): %!d(string=назад)
0006_auto_20160120_1830.py a121b75ff2 add db_index=True for status field лет %!s(int64=10): %!d(string=назад)
0007_auto_20160422_1322.py 102152ca4a add api lensman_photo_bought & modify api wx_order_create_api and adjust return field лет %!s(int64=10): %!d(string=назад)
0008_auto_20160901_1439.py 6199c8f7ad add api lensman_origin_wanted_api/lensman_origin_photo_upload_api лет %!s(int64=9): %!d(string=назад)
0009_auto_20160907_1018.py b65f84e502 Duplicate entry лет %!s(int64=9): %!d(string=назад)
__init__.py 4defb80fdc gogs first init лет %!s(int64=10): %!d(string=назад)