Commit 175902f6bec8630162e8ef2cd74612314e98e27f
1 parent
235fbfb5
企业联系我
Showing
5 changed files
with
662 additions
and
1 deletions
app.json
@@ -29,7 +29,8 @@ | @@ -29,7 +29,8 @@ | ||
29 | "pages/team/team_ping/team_ping", | 29 | "pages/team/team_ping/team_ping", |
30 | "pages/cart/cart2_pt/cart2_pt", | 30 | "pages/cart/cart2_pt/cart2_pt", |
31 | "pages/cart/cart_wk/cart_wk", | 31 | "pages/cart/cart_wk/cart_wk", |
32 | - | 32 | + "pages/qy/contactMe/contactMe", |
33 | + | ||
33 | 34 | ||
34 | "pages/user/userqy/userqy", | 35 | "pages/user/userqy/userqy", |
35 | "pages/user/user_spsy/user_spsy", | 36 | "pages/user/user_spsy/user_spsy", |
pages/qy/contactMe/contactMe.js
0 → 100644
1 | +var t = require("../../../utils/common.js"); | ||
2 | +const app = getApp(); | ||
3 | +var os = app.globalData.setting; | ||
4 | +var regeneratorRuntime = require('../../../utils/runtime.js'); | ||
5 | + | ||
6 | +Page({ | ||
7 | + data: { | ||
8 | + user: null, | ||
9 | + show_bind: 0, | ||
10 | + imghots: os.imghost, | ||
11 | + store_logo: '', | ||
12 | + first_leader: '', //-- 邀请人 -- | ||
13 | + config2: null, | ||
14 | + sub: 0, | ||
15 | + phone:'', | ||
16 | + id:"", | ||
17 | + }, | ||
18 | + onLoad: function (tt) { | ||
19 | + // tt.scene="0_0_14" | ||
20 | + if (tt && tt.scene) { | ||
21 | + var first_leader_str = decodeURIComponent(tt.scene); | ||
22 | + var f_arr = first_leader_str.split("_"); | ||
23 | + // first_leader = f_arr[0] && parseFloat(f_arr[0]) > 0 ? f_arr[0] : null; | ||
24 | + //注册门店 | ||
25 | + // if (f_arr[1] && parseFloat(f_arr[1]) > 0) { | ||
26 | + // getApp().globalData.store_number = f_arr[1]; | ||
27 | + // } | ||
28 | + //企业微信群id | ||
29 | + if (f_arr && f_arr[2] && parseFloat(f_arr[2]) > 0) { | ||
30 | + this.setData({ | ||
31 | + id:f_arr[2] | ||
32 | + }) | ||
33 | + // this.getopenuserid(f_arr[2]) | ||
34 | + // getApp().globalData.groupchat_id = f_arr[2]; | ||
35 | + } | ||
36 | + | ||
37 | + } | ||
38 | + // if (wx.getUserProfile) { | ||
39 | + // this.setData({ | ||
40 | + // canIUseGetUserProfile: true | ||
41 | + // }) | ||
42 | + // } | ||
43 | + // getApp().globalData.isLoad_ad = 1; | ||
44 | + //--判断是否有接受到邀请人的ID-- | ||
45 | + // if (options.first_leader) { | ||
46 | + // this.setData({ first_leader: options.first_leader }); | ||
47 | + // } else if (getApp().globalData.first_leader) { | ||
48 | + // this.setData({ first_leader: getApp().globalData.first_leader }); | ||
49 | + // } | ||
50 | + var th = this; | ||
51 | + app.getConfig(function (e) { | ||
52 | + var logo = th.data.imghots + e.store_logo; | ||
53 | + th.setData({ store: e, store_logo: logo }); | ||
54 | + }) | ||
55 | + | ||
56 | + //判断注册的条件 | ||
57 | + // app.getConfig2(function (e) { | ||
58 | + // if (e.reg_type == 1) { | ||
59 | + // var arr = JSON.parse(e.reg_info); | ||
60 | + // if (arr['name_state'] == 1) th.data.name_need_go = 1; | ||
61 | + // if (arr['birthday_state'] == 1) th.data.birth_need_go = 1; | ||
62 | + // if (arr['idcard_state'] == 1) th.data.idcard_need_go = 1; | ||
63 | + // if (arr['address_state'] == 1) th.data.address_need_go = 1; | ||
64 | + // if (arr['pick_state'] == 1) th.data.pick_need_go = 1; | ||
65 | + // if (arr['sex_state'] == 1) th.data.sex_need_go = 1; | ||
66 | + // if (arr['introducer_state'] == 1) th.data.introducer_need_go = 1; | ||
67 | + // } | ||
68 | + // var json_d = JSON.parse(e.switch_list); | ||
69 | + // if (json_d.user_label_set == 1) { | ||
70 | + // th.data.is_lable_set = 1 | ||
71 | + // } | ||
72 | + // }, 1) | ||
73 | + | ||
74 | + // getApp().promiseGet("/api/wx/weappSendlist/page", { | ||
75 | + // data: { | ||
76 | + // store_id: os.stoid, | ||
77 | + // typeid: "1007" | ||
78 | + // } | ||
79 | + // }).then(res => { | ||
80 | + // if (res.data.code == 0 && res.data.data.pageData.length > 0) { | ||
81 | + // var template_id = res.data.data.pageData[0].template_id; | ||
82 | + // th.setData({ template_id: template_id }); | ||
83 | + // } | ||
84 | + // }) | ||
85 | + }, | ||
86 | + | ||
87 | + getopenuserid(id){ | ||
88 | + getApp().request.promiseGet("/api/weshop/qyWeChat/qywxStaffcode", { data: {id} }).then(res => { | ||
89 | + console.log(res); | ||
90 | + if (res.data.code == 0) { | ||
91 | + let resdata=JSON.parse(res.data.data); | ||
92 | + | ||
93 | + } | ||
94 | + }) | ||
95 | + }, | ||
96 | + | ||
97 | + //绑定手机号 | ||
98 | + getphone: function (e) { | ||
99 | + //接下来写业务代码登录 | ||
100 | + console.log(e); | ||
101 | + // return | ||
102 | + e = e.detail; | ||
103 | + if (e.code == undefined) { | ||
104 | + this.setData({ show_bind: 0 }) | ||
105 | + return app.my_warnning("登录需要授权手机号码!", 0, this); | ||
106 | + return false; | ||
107 | + } | ||
108 | + // var sessionKey = getApp().globalData.sessionKey; | ||
109 | + var req_data = { | ||
110 | + js_code: e.code, | ||
111 | + store_id: getApp().globalData.setting.stoid, | ||
112 | + } | ||
113 | + //-- 获取一下手机 --/api/weshop/users/getCodeMobile?store_id=1&js_code=b8451556dd98b2eebec5aa6775625bce192a68fc1a4b15b0c6bf3ed046f90da4 | ||
114 | + getApp().request.promiseGet("/api/weshop/users/getCodeMobile", { data: req_data }).then(res => { | ||
115 | + // console.log('手机号码'); | ||
116 | + // console.log(res); | ||
117 | + if (res.data.code == 0) { | ||
118 | + let resdata=JSON.parse(res.data.data); | ||
119 | + this.setData({ | ||
120 | + phone:resdata.phoneNumber | ||
121 | + }) | ||
122 | + // getApp().globalData.zc_dd = dd; | ||
123 | + // wx.redirectTo({ | ||
124 | + // url: "/packageA/pages/profile/profile?is_back=1" | ||
125 | + // }) | ||
126 | + } | ||
127 | + }) | ||
128 | + | ||
129 | + // var sessionKey = getApp().globalData.sessionKey; | ||
130 | + // var openid = getApp().globalData.openid; | ||
131 | + // var r = getApp().globalData.getu; | ||
132 | + // this.save_the_data(r, e, sessionKey, openid) | ||
133 | + }, | ||
134 | + | ||
135 | + | ||
136 | + //-- 会员授权 -- | ||
137 | + bindGetUserInfo: function (ee) { | ||
138 | + if (!this.data.isAgree) { | ||
139 | + wx.showToast({ | ||
140 | + title: '请您先阅读和勾选指定的内容', | ||
141 | + icon: 'none', | ||
142 | + }); | ||
143 | + return false; | ||
144 | + } | ||
145 | + var that = this; | ||
146 | + //-- 点击授权 -- | ||
147 | + that.getUserProfile(function (res) { | ||
148 | + var user = res; | ||
149 | + //--拿下code-- | ||
150 | + wx.login({ | ||
151 | + success: function (o) { | ||
152 | + var dd = { | ||
153 | + js_code: o.code, | ||
154 | + store_id: os.stoid, | ||
155 | + nickname: app.clear_word(app.globalData.getu.nickName), | ||
156 | + head_pic: app.clear_word(app.globalData.getu.avatarUrl) | ||
157 | + }; | ||
158 | + //-- 导购会员ID -- | ||
159 | + if (getApp().globalData.guide_id) { | ||
160 | + dd.guide_id = getApp().globalData.guide_id; | ||
161 | + } | ||
162 | + | ||
163 | + getApp().request.get("/api/weshop/users/openidandkey", { | ||
164 | + data: dd, | ||
165 | + success: function (e) { | ||
166 | + if (e.data.code == 0) { | ||
167 | + that.setData({ user: user }) | ||
168 | + //如果有会员的话,没有sessionKey | ||
169 | + if (!e.data.data.sessionKey) { | ||
170 | + // getApp().showWarning("登录成功"); | ||
171 | + wx.showToast({ | ||
172 | + title: '登录成功', | ||
173 | + icon: 'success', | ||
174 | + duration: 2000 | ||
175 | + }); | ||
176 | + getApp().globalData.userInfo = e.data.data; | ||
177 | + getApp().globalData.user_id = e.data.data.user_id; | ||
178 | + getApp().globalData.openid = e.data.data.weapp_openid; | ||
179 | + //把会员的信息存在内存 | ||
180 | + wx.setStorageSync("userinfo", e.data.data); | ||
181 | + | ||
182 | + //调用接口判断是不是会员 | ||
183 | + app.promiseGet("/api/weshop/shoppingGuide/get/" + os.stoid + "/" + e.data.data.user_id, {}).then(res => { | ||
184 | + if (res.data.code == 0) { | ||
185 | + getApp().globalData.guide_id = res.data.data.id; | ||
186 | + } | ||
187 | + }) | ||
188 | + | ||
189 | + | ||
190 | + setTimeout(function () { | ||
191 | + getApp().globalData.login_back = 1; | ||
192 | + wx.navigateBack({ delta: 1 }) //返回上一页 | ||
193 | + }, 1000) | ||
194 | + } else { | ||
195 | + getApp().globalData.sessionKey = e.data.data.sessionKey; | ||
196 | + getApp().globalData.openid = e.data.data.openid; | ||
197 | + that.setData({ show_bind: 1 }); | ||
198 | + } | ||
199 | + } else { | ||
200 | + getApp().confirmBox(e.data.msg); | ||
201 | + } | ||
202 | + } | ||
203 | + }); | ||
204 | + } | ||
205 | + }) | ||
206 | + | ||
207 | + }) | ||
208 | + }, | ||
209 | + | ||
210 | + //-- 调整后的获取会员信息 -- | ||
211 | + getUserProfile: function (func) { | ||
212 | + var that = this; | ||
213 | + wx.getUserProfile({ | ||
214 | + desc: '获取用户相关信息', | ||
215 | + success: res => { | ||
216 | + console.log("getUserProfile", res); | ||
217 | + //此处授权得到userInfo | ||
218 | + getApp().globalData.getu = res.userInfo; | ||
219 | + func(res.userInfo); | ||
220 | + } | ||
221 | + }); | ||
222 | + }, | ||
223 | + | ||
224 | + //暂不登录,返回上一页 | ||
225 | + cancle_bind: function () { | ||
226 | + wx.navigateBack({ delta: 1 }) | ||
227 | + }, | ||
228 | + | ||
229 | + close_pop: function () { | ||
230 | + this.setData({ show_bind: 0 }) | ||
231 | + }, | ||
232 | + show_bind_mobile: function () { | ||
233 | + let th = this; | ||
234 | + th.sendsm(function () { | ||
235 | + th.setData({ show_bind: 1 }) | ||
236 | + }) | ||
237 | + }, | ||
238 | + | ||
239 | + | ||
240 | + save_the_data: async function (r, e, sessionKey, openid) { | ||
241 | + var app = getApp(), a = app, th = this; | ||
242 | + var dd = { | ||
243 | + oauth: "miniapp", | ||
244 | + nickname: a.clear_word(r.nickName), | ||
245 | + head_pic: r.avatarUrl, | ||
246 | + sex: r.gender, | ||
247 | + terminal: "miniapp", | ||
248 | + sessionKey: sessionKey, | ||
249 | + openid: openid, | ||
250 | + encryptedData: e.encryptedData, | ||
251 | + iv: e.iv, | ||
252 | + store_id: getApp().globalData.setting.stoid, | ||
253 | + }; | ||
254 | + //--如果有邀请人的时候-- | ||
255 | + if (th.data.first_leader) { | ||
256 | + dd.first_leader = th.data.first_leader; | ||
257 | + } | ||
258 | + //-- 导购会员ID -- | ||
259 | + if (getApp().globalData.guide_id) { | ||
260 | + dd.guide_id = getApp().globalData.guide_id; | ||
261 | + } | ||
262 | + | ||
263 | + //门店的扫描识别码 | ||
264 | + if (getApp().globalData.store_number) { | ||
265 | + dd.SunCode = encodeURIComponent(getApp().globalData.store_number.trim()); | ||
266 | + } | ||
267 | + | ||
268 | + console.log("-----会员注册的信息-------"); | ||
269 | + console.log(dd); | ||
270 | + | ||
271 | + | ||
272 | + var need_go = 0; | ||
273 | + //如果有需要完善的信息没有完善,就需要跳转 | ||
274 | + if (th.data.name_need_go) { need_go = 1; } | ||
275 | + if (th.data.birth_need_go) { need_go = 1; } | ||
276 | + if (th.data.idcard_need_go) { need_go = 1; } | ||
277 | + if (th.data.address_need_go) { need_go = 1; } | ||
278 | + if (th.data.pick_need_go) { need_go = 1; } | ||
279 | + if (th.data.sex_need_go) { need_go = 1; } | ||
280 | + if (th.data.introducer_need_go) { need_go = 1; } | ||
281 | + | ||
282 | + if (need_go) { | ||
283 | + | ||
284 | + var req_data = { | ||
285 | + sessionKey: sessionKey, | ||
286 | + encryptedData: e.encryptedData, | ||
287 | + iv: e.iv, | ||
288 | + store_id: getApp().globalData.setting.stoid, | ||
289 | + } | ||
290 | + //-- 获取一下手机 -- | ||
291 | + getApp().request.promiseGet("/api/weshop/users/getmobile", { data: req_data }).then(res => { | ||
292 | + if (res.data.code == 0) { | ||
293 | + dd.mobile = res.data.data; | ||
294 | + getApp().globalData.zc_dd = dd; | ||
295 | + wx.redirectTo({ | ||
296 | + url: "/packageA/pages/profile/profile?is_back=1" | ||
297 | + }) | ||
298 | + } | ||
299 | + }) | ||
300 | + | ||
301 | + } else { | ||
302 | + if (th.data.is_lable_set) { | ||
303 | + var req_data = { | ||
304 | + sessionKey: sessionKey, | ||
305 | + encryptedData: e.encryptedData, | ||
306 | + iv: e.iv, | ||
307 | + store_id: getApp().globalData.setting.stoid, | ||
308 | + } | ||
309 | + //-- 获取一下手机 -- | ||
310 | + getApp().request.promiseGet("/api/weshop/users/getmobile", { data: req_data }).then(res => { | ||
311 | + if (res.data.code == 0) { | ||
312 | + dd.mobile = res.data.data; | ||
313 | + getApp().globalData.zc_dd = dd; | ||
314 | + wx.redirectTo({ | ||
315 | + url: "/packageE/pages/user/labels/labels?pageType=1" | ||
316 | + }) | ||
317 | + } | ||
318 | + }) | ||
319 | + } else { | ||
320 | + this.setData({ sub: 1 }); | ||
321 | + wx.showLoading({ | ||
322 | + title: '处理中.', | ||
323 | + mask: true | ||
324 | + }) | ||
325 | + this.zu_ce(dd); //调用注册的函数 | ||
326 | + } | ||
327 | + } | ||
328 | + | ||
329 | + }, | ||
330 | + | ||
331 | + zu_ce: function (dd) { | ||
332 | + var th = this; | ||
333 | + app.request.get("/api/weshop/users/thirdLogin", { | ||
334 | + data: dd, | ||
335 | + success: function (e) { | ||
336 | + if (e.data.code == 0) { | ||
337 | + app.globalData.user_id = e.data.data.user_id; | ||
338 | + } else { | ||
339 | + return app.showWarning("授权登入失败!" + e.data.msg); | ||
340 | + } | ||
341 | + getApp().globalData.login_back = 1; | ||
342 | + wx.setStorageSync("userinfo", e.data.data); | ||
343 | + wx.setStorageSync("isAuth", !0), app.globalData.userInfo = e.data.data, app.globalData.userInfo.head_pic = t.getFullUrl(app.globalData.userInfo.head_pic); | ||
344 | + //调用接口判断是不是会员 | ||
345 | + app.promiseGet("/api/weshop/shoppingGuide/get/" + os.stoid + "/" + e.data.data.user_id, {}).then(res => { | ||
346 | + if (res.data.code == 0) { | ||
347 | + getApp().globalData.guide_id = res.data.data.id; | ||
348 | + } | ||
349 | + }) | ||
350 | + | ||
351 | + }, | ||
352 | + failStatus: function (t) { | ||
353 | + th.setData({ sub: 0 }); | ||
354 | + return app.my_warnning("授权登入失败,请稍后再试!", 0, th); | ||
355 | + }, | ||
356 | + fail: function (t) { | ||
357 | + th.setData({ sub: 0 }); | ||
358 | + return i.clearAuth(), i.alertLoginErrorAndGoHome(), !1; | ||
359 | + } | ||
360 | + }); | ||
361 | + }, | ||
362 | + | ||
363 | + | ||
364 | + bind_bnerr: function (e) { | ||
365 | + var _errImg = e.target.dataset.errorimg; | ||
366 | + var _errObj = {}; | ||
367 | + _errObj[_errImg] = this.data.imghots + "/miniapp/images/logo.png"; | ||
368 | + this.setData(_errObj) //注意这里的赋值方式,只是将数据列表中的此项图片路径值替换掉 ; | ||
369 | + }, | ||
370 | + | ||
371 | + //-- 会员授权 -- | ||
372 | + bindUserInfo: function (ee) { | ||
373 | + var that = this; | ||
374 | + var user = ee.detail.userInfo; | ||
375 | + //此处授权得到userInfo | ||
376 | + getApp().globalData.getu = user; | ||
377 | + | ||
378 | + //--拿下code-- | ||
379 | + wx.login({ | ||
380 | + success: function (o) { | ||
381 | + var dd = { | ||
382 | + js_code: o.code, | ||
383 | + store_id: os.stoid, | ||
384 | + nickname: app.clear_word(app.globalData.getu.nickName), | ||
385 | + head_pic: app.clear_word(app.globalData.getu.avatarUrl) | ||
386 | + }; | ||
387 | + //-- 导购会员ID -- | ||
388 | + if (getApp().globalData.guide_id) { | ||
389 | + dd.guide_id = getApp().globalData.guide_id; | ||
390 | + } | ||
391 | + | ||
392 | + getApp().request.get("/api/weshop/users/openidandkey", { | ||
393 | + data: dd, | ||
394 | + success: function (e) { | ||
395 | + if (e.data.code == 0) { | ||
396 | + that.setData({ user: user }) | ||
397 | + //如果有会员的话,没有sessionKey | ||
398 | + if (!e.data.data.sessionKey) { | ||
399 | + // getApp().showWarning("登录成功"); | ||
400 | + wx.showToast({ | ||
401 | + title: '登录成功', | ||
402 | + icon: 'success', | ||
403 | + duration: 2000 | ||
404 | + }); | ||
405 | + | ||
406 | + getApp().globalData.userInfo = e.data.data; | ||
407 | + getApp().globalData.user_id = e.data.data.user_id; | ||
408 | + getApp().globalData.openid = e.data.data.weapp_openid; | ||
409 | + //把会员的信息存在内存 | ||
410 | + wx.setStorageSync("userinfo", e.data.data); | ||
411 | + | ||
412 | + //调用接口判断是不是会员 | ||
413 | + app.promiseGet("/api/weshop/shoppingGuide/get/" + os.stoid + "/" + e.data.data.user_id, {}).then(res => { | ||
414 | + if (res.data.code == 0) { | ||
415 | + getApp().globalData.guide_id = res.data.data.id; | ||
416 | + } | ||
417 | + }) | ||
418 | + | ||
419 | + | ||
420 | + setTimeout(function () { | ||
421 | + getApp().globalData.login_back = 1; | ||
422 | + wx.navigateBack({ delta: 1 }) //返回上一页 | ||
423 | + }, 1000) | ||
424 | + } else { | ||
425 | + getApp().globalData.sessionKey = e.data.data.sessionKey; | ||
426 | + getApp().globalData.openid = e.data.data.openid; | ||
427 | + that.setData({ show_bind: 1 }); | ||
428 | + } | ||
429 | + } else { | ||
430 | + getApp().confirmBox(e.data.msg); | ||
431 | + } | ||
432 | + } | ||
433 | + }); | ||
434 | + } | ||
435 | + }) | ||
436 | + | ||
437 | + | ||
438 | + }, | ||
439 | + | ||
440 | + | ||
441 | + close_pop_back: function () { | ||
442 | + this.close_pop(); | ||
443 | + wx.navigateBack({ delta: 1 }) | ||
444 | + }, | ||
445 | + | ||
446 | + | ||
447 | + // 是否同意协议 | ||
448 | + isAgree(e) { | ||
449 | + let isAgree = null; | ||
450 | + if (e.detail.value[0]) { | ||
451 | + isAgree = true; | ||
452 | + } else { | ||
453 | + isAgree = false; | ||
454 | + }; | ||
455 | + // this.data.isAgree = isAgree; | ||
456 | + this.setData({ | ||
457 | + isAgree, | ||
458 | + }); | ||
459 | + }, | ||
460 | + | ||
461 | + | ||
462 | + //通过路径跳转到其他页面 | ||
463 | + goto: function (e) { | ||
464 | + console.log('xxxx', e); | ||
465 | + var url = e.currentTarget.dataset.url; | ||
466 | + getApp().goto(url); | ||
467 | + }, | ||
468 | + | ||
469 | + //订阅消息提醒 | ||
470 | + sendsm: function (func) { | ||
471 | + var template_id = this.data.template_id; | ||
472 | + // //授权订阅 | ||
473 | + wx.requestSubscribeMessage({ | ||
474 | + tmplIds: [template_id], | ||
475 | + success(res) { | ||
476 | + func(); | ||
477 | + }, | ||
478 | + fail(res) { | ||
479 | + func(); | ||
480 | + } | ||
481 | + }) | ||
482 | + | ||
483 | + }, | ||
484 | + | ||
485 | + | ||
486 | +}) |
pages/qy/contactMe/contactMe.json
0 → 100644
pages/qy/contactMe/contactMe.wxml
0 → 100644
1 | +<view wx:if="{{!phone}}"> | ||
2 | + | ||
3 | +<!-- 登录图 --> | ||
4 | +<view > | ||
5 | + <view class="logins flex-center2 ali-c flex" style="padding-top: 120rpx;"> | ||
6 | + <image mode="widthFix" bindtap="go_index" class="login_img_back" src="{{imghots}}/miniapp/images/loginbg.jpg"></image> | ||
7 | + <view class="middle_view"> | ||
8 | + <image bindtap="go_index" class="login_img" src="{{store_logo}}" binderror="bind_bnerr" lazy-load="true" data-errorimg="store_logo"></image> | ||
9 | + <view>{{store.store_name}}</view> | ||
10 | + </view> | ||
11 | + </view> | ||
12 | +</view> | ||
13 | + | ||
14 | +<!-- 登录按钮 --> | ||
15 | +<view> | ||
16 | + <view class="phones"> | ||
17 | + <!-- <button style="height: 100%;" class="g_mobile f2 flex ali-c flex-center2 fs36 txt-red" open-type="getPhoneNumber" bindgetphonenumber="getphone">立即授权</button> --> | ||
18 | + | ||
19 | + <!-- <view bindtap="" class="user-name flex-vertical fs24 jc-center"> | ||
20 | + <checkbox-group bindchange="isAgree"> | ||
21 | + <checkbox value="true"/> | ||
22 | + </checkbox-group> | ||
23 | + <view class="user-name-txt">我已阅读同意 <text class="gray" bindtap="goto" data-url="/packageA/pages/parseHtml/parseHtml?t=0">《用户使用协议》</text>与<text class="gray" bindtap="goto" data-url="/packageA/pages/parseHtml/parseHtml?t=1">《隐私政策》</text></view> | ||
24 | + </view> --> | ||
25 | + | ||
26 | + <!-- 授权获取基础信息 --> | ||
27 | + <block > | ||
28 | + <button hidden="{{user}}" open-type="getPhoneNumber" class="getPhoneNumber" bindgetphonenumber="getphone"> | ||
29 | + <view class="flex flex-center ali-c"> | ||
30 | + <image class="we_chat" src="{{imghots}}/miniapp/images/we_chat.png"></image> | ||
31 | + <view>立即授权获取手机号码</view> | ||
32 | + </view> | ||
33 | + </button> | ||
34 | + </block> | ||
35 | + | ||
36 | + <!-- <block wx:else> | ||
37 | + <button hidden="{{user}}" class="getPhoneNumber" open-type="getUserInfo" bindgetuserinfo="bindUserInfo"> | ||
38 | + <view class="flex flex-center ali-c"> | ||
39 | + <image class="we_chat" src="{{imghots}}/miniapp/images/we_chat.png"></image> | ||
40 | + <view>微信账号快捷登录</view> | ||
41 | + </view> | ||
42 | + </button> | ||
43 | + </block> --> | ||
44 | + | ||
45 | + <!-- 点击显示绑定手机的对话框 --> | ||
46 | + <!-- <button hidden="{{!user}}" class="getPhoneNumber" bindtap="show_bind_mobile"> | ||
47 | + <view class="flex flex-center2 ali-c" > | ||
48 | + <image class="we_chat" src="{{imghots}}/miniapp/images/we_chat.png"></image> | ||
49 | + <view>微信账号快捷登录</view> | ||
50 | + </view> | ||
51 | + </button> --> | ||
52 | + </view> | ||
53 | + | ||
54 | + <!-- <view class="userlongin flex-center2 flex fs30 jc_sb" style="margin: 0 130rpx"> | ||
55 | + <view bindtap="cancle_bind">暂不授权</view> | ||
56 | + </view> --> | ||
57 | + | ||
58 | +</view> | ||
59 | + | ||
60 | +</view> | ||
61 | +<view wx:else class="meBox" > | ||
62 | + <view style="font-weight: bold;margin-bottom: 10rpx;">长按识别二维码</view> | ||
63 | + <view style="margin-bottom: 80rpx;">添加我是企业微信</view> | ||
64 | + <image style="height: 520rpx;" src="https://wework.qpic.cn/wwpic/283015_6NCVj1q1SuOX-kn_1678947907/0" show-menu-by-longpress ></image> | ||
65 | +</view> | ||
66 | + | ||
67 | +<!-- <view wx:if="{{show_bind}}"> | ||
68 | +<view class="cover-layer" bindtap="close_pop"></view> | ||
69 | +<view class="p_content"> | ||
70 | + <view class="p_title flex ali-c fs34"> | ||
71 | + 登录手机号,同步会员信息以及订单记录 | ||
72 | + </view> | ||
73 | + <view class="flex btn_view"> | ||
74 | + <view bindtap="close_pop_back" style="height: 100%; line-height:normal;" class="txt-center f2 flex ali-c flex-center2 fs36 b_right">暂不授权</view> | ||
75 | + <button disabled="{{sub}}" style="height: 100%;" class="g_mobile f2 flex ali-c flex-center2 fs36 txt-red" open-type="getPhoneNumber" bindgetphonenumber="getphone">立即授权</button> | ||
76 | + </view> | ||
77 | + </view> | ||
78 | +</view> | ||
79 | +<warn id="warn"></warn> --> | ||
80 | + |
pages/qy/contactMe/contactMe.wxss
0 → 100644
1 | +page{ | ||
2 | + border-top: 3rpx solid #EAEAEC; | ||
3 | + background-color: #fff; | ||
4 | +} | ||
5 | +.logins { | ||
6 | + width: 100%; | ||
7 | + /* padding-bottom: 130rpx; */ | ||
8 | + background-position: center; | ||
9 | + background-repeat: no-repeat; | ||
10 | + background-size: cover | ||
11 | +} | ||
12 | + | ||
13 | +.login_img { | ||
14 | + width: 192rpx; | ||
15 | + height: 192rpx; | ||
16 | + border-radius: 50%; | ||
17 | +} | ||
18 | +.phones{ | ||
19 | + margin-bottom: 48rpx; | ||
20 | +} | ||
21 | +.getPhoneNumber { | ||
22 | + width: 600rpx; | ||
23 | + height: 94rpx; | ||
24 | + line-height: 94rpx; | ||
25 | + background-color: #57b837; | ||
26 | + border-radius: 48rpx; | ||
27 | + color: rgb(255,255,255); | ||
28 | + font-size: 32rpx; | ||
29 | + margin-top: 40rpx; | ||
30 | +} | ||
31 | +.we_chat{ | ||
32 | + width: 55rpx; | ||
33 | + height: 45rpx; | ||
34 | + margin-right: 15rpx; | ||
35 | +} | ||
36 | +.userlongin{ | ||
37 | + color: #767f8e; | ||
38 | +} | ||
39 | +button{ | ||
40 | + border:none; | ||
41 | +} | ||
42 | +.login_img_back{ width: 100%;} | ||
43 | +.p_content{ | ||
44 | + margin: 10%; | ||
45 | + width: 80%; | ||
46 | + height:340rpx; | ||
47 | + top:50%; | ||
48 | + margin-top: -180rpx; | ||
49 | + background-color: #fff; | ||
50 | + z-index: 12; | ||
51 | + position: fixed; | ||
52 | +} | ||
53 | + | ||
54 | +.btn_view { height: 120rpx; line-height: 120rpx; border-top:1rpx solid #e9e9e9;} | ||
55 | +.p_title{ height:220rpx; padding: 0 40rpx; line-height: 50rpx;} | ||
56 | +.g_mobile{ background: none;line-height: normal;} | ||
57 | +.b_right{border-right:1rpx solid #e9e9e9;} | ||
58 | + | ||
59 | +.ali-c{align-items: center;} | ||
60 | +.flex-center2{ justify-content: center;} | ||
61 | +.f2 { | ||
62 | + flex: 2 0; | ||
63 | +} | ||
64 | + | ||
65 | +.middle_view{ | ||
66 | + position: absolute; left: 0; width: 100%; text-align: center; | ||
67 | +} | ||
68 | + | ||
69 | +/*checkbox 选项框大小 */ | ||
70 | +checkbox .wx-checkbox-input { | ||
71 | + width: 30rpx; | ||
72 | + height: 30rpx; | ||
73 | +} | ||
74 | + | ||
75 | +.gray { | ||
76 | + color: #767f8e; | ||
77 | +} | ||
78 | + | ||
79 | +.meBox{ | ||
80 | + color: rgb(127, 128, 132); | ||
81 | + font-size: 50rpx; | ||
82 | + height: 100vh; | ||
83 | + display: flex; | ||
84 | + align-items: center; | ||
85 | + flex-direction: column; | ||
86 | + justify-content: center; | ||
87 | +} | ||
0 | \ No newline at end of file | 88 | \ No newline at end of file |