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

No Description

joinus.html 2.6KB

    <!doctype html> <html> <head> <meta charset="UTF-8"> <title>拍爱 PAI.AI 加入拍爱</title> <meta name="keywords" content="摄影 图片 影像 分享 交流 社交 交友 摄影师 女性 孩子 亲子 旅行 旅游 约拍 iphone android app" /> <link href="css/layout.css" rel="stylesheet" type="text/css" /> <script type="text/javascript" src="js/jquery.min.js"></script> </head> <body> <div id="header"> <div class="content"> <a href="index.html" target="_self" class="logo"></a> <div class="navigation"> <a href="contactus.html" target="_self" >联系我们</a> <a href="joinus.html" target="_self" class="current" >加入拍爱</a> <a href="aboutus.html" target="_self" >关于我们</a> <a href="index.html" target="_self" >首页</a> </div> </div> </div> <div id="container" ><div class="content joinus"> <p> 在我们这里,你可以参与到一个火热的创业项目,未来很有可能看到自己作品满大街的人都在使用...如果您喜欢摄影...除了会有各种相机把玩,还会有同好可以畅聊...最重要的,你还会发现...... 你将成为——软件工程师中最懂摄影的人 来和我们一起做一份激动人心的事业吧 </p> <p> <strong>职位名称:iOS软件工程师</strong><br> <strong>岗位职责:</strong><br> 负责iOS平台下应用的开发<br> <strong>任职要求:</strong><br> 1、至少1年的iOS平台开发经验;<br> 2、具备扎实的数据结构、算法等技术功底;<br> 3、具备良好的编程风格与团队合作意识,可承担较大的工作压力;<br> 4、正直、优秀、有上进心,经验丰富的同时没有丧失开发NB产品的热情;<br> 5、年轻;<br> 6、期待您喜欢摄影,喜欢相机;<br> </p> <p> <strong>职位名称:专利工程师</strong><br> <strong>岗位职责:</strong><br> 1、撰写高质量的专利申请文件、答复审查意见;<br> 2、专利检索咨询、专利挖掘、以及撰写专利分析报告。<br> <strong>任职要求:</strong><br> 1、具有一年以上独立撰写专利文件经验,熟悉专利申请相关知识;<br> 2、理工科,大学本科以上毕业,物理、数学、电子、通讯、互联网等技术专业背景之一;<br> 3、有专利代理人资格证优先考虑;<br> 4、期待您喜欢摄影,喜欢相机; </p> </div></div> <div id="footer"> <div class="content foot"> <a href="aboutus.html" target="_self" >关于我们</a> <span>|</span> <a href="contactus.html" target="_self" >联系我们</a> ©2016 拍爱 PAI.AI 琼ICP备16000076号 </div> </div> </body> </html>