Commit cb548f186b9b79ffae9956092ccd809f2c423065

Authored by yvan.ni
1 parent 70bde620

删除一个没用的文件

app.json
... ... @@ -30,7 +30,6 @@
30 30 "pages/activity/seckill_list/seckill_list",
31 31 "pages/activity/pind_list/pind_list",
32 32 "pages/togoin/togoin",
33   - "pages/getphone/getphone",
34 33 "pages/team/team_success/team_success",
35 34 "pages/team/team_show/team_show",
36 35 "pages/team/team_ping/team_ping",
... ... @@ -97,7 +96,7 @@
97 96 ],
98 97 "plugins": {
99 98 "live-player-plugin": {
100   - "version": "1.2.1",
  99 + "version": "1.2.5",
101 100 "provider": "wx2b03c6e691cd7370"
102 101 }
103 102 },
... ...
pages/getphone/getphone.js deleted
1   -var t = require("../../utils/common.js");var os=getApp().globalData.setting;
2   -Page({
3   - data:{
4   - store:null,
5   - imghots: os.imghost,
6   - },
7   -
8   - onLoad: function (options) {
9   - //--判断是否有接受到邀请人的ID--
10   - if(options.first_leader){
11   - this.setData({first_leader:options.first_leader});
12   - }
13   - },
14   - onShow:function(){
15   - var th=this,app = getApp();
16   - var sessionKey = getApp().globalData.sessionKey;
17   - var openid = getApp().globalData.openid;
18   -
19   - if (openid == "" || openid == null) {
20   -
21   - if (getApp().globalData.userInfo)
22   - openid = getApp().globalData.userInfo.weapp_openid;
23   - }
24   - var r = getApp().globalData.getu;
25   -
26   - if (openid == "" || openid == null || r==null ){
27   - getApp().globalData.user_id=null;
28   - getApp().globalData.userInfo=null;
29   - getApp().goto('/pages/togoin/togoin')
30   - return false;
31   - }
32   - var user_info=getApp().globalData.userInfo;
33   - console.log("getphone");
34   -
35   - if(user_info!=null && user_info.mobile!=undefined && user_info.mobile!="" && user_info.mobile!=null){
36   - wx.navigateBack({
37   - delta: 1
38   - })
39   - }
40   -
41   - app.getConfig(function(e){
42   - th.setData({ store:e});
43   - })
44   - },
45   -
46   - getphone: function(e) {
47   - var that = this;
48   - var app=getApp(),a=app;
49   - //此处授权得到userInfo
50   - console.log("getphone");
51   -
52   - e=e.detail;
53   - console.log(e);
54   - //接下来写业务代码登录
55   - //最后,记得返回刚才的页面
56   - if (e.encryptedData==undefined){
57   - /*---
58   - wx.navigateTo({
59   - url: '/pages/user/binding_info/binding_info',
60   - })--*/
61   - return app.my_warnning("登录需要授权手机号码!", 0, that);
62   - return false;
63   - }
64   - var r=getApp().globalData.getu;
65   - var sessionKey = getApp().globalData.sessionKey;
66   - var openid = getApp().globalData.openid;
67   -
68   - console.log(sessionKey,openid);
69   - that.save_the_data(r,e,sessionKey,openid)
70   -
71   - },
72   -
73   - save_the_data:function (r,e,sessionKey,openid) {
74   - var app=getApp(),a=app,th=this;
75   - var dd = {
76   - oauth: "miniapp",
77   - nickname:a.clear_word(r.nickName),
78   - head_pic: r.avatarUrl,
79   - sex: r.gender,
80   - terminal: "miniapp",
81   - sessionKey: sessionKey,
82   - openid:openid,
83   - encryptedData: e.encryptedData,
84   - iv: e.iv,
85   - store_id: getApp().globalData.setting.stoid,
86   - };
87   - //--如果有邀请人的时候--
88   - if(th.data.first_leader){
89   - dd.first_leader=th.data.first_leader;
90   - }
91   -
92   - console.log(dd);
93   - app.request.get("/api/weshop/users/thirdLogin", {
94   - data: dd,
95   - success: function (e) {
96   - console.log("thirdLogin");
97   - console.log(e);
98   - if (e.data.code == 0) {
99   - app.globalData.user_id = e.data.data.user_id;
100   - } else {
101   - return app.showWarning("授权登入失败!"+e.data.msg);
102   - }
103   -
104   - wx.setStorageSync("userinfo",e.data.data);
105   - wx.setStorageSync("isAuth", !0), app.globalData.userInfo = e.data.data, app.globalData.userInfo.head_pic = t.getFullUrl(a.globalData.userInfo.head_pic);
106   - wx.navigateBack({ delta: 1})
107   -
108   - },
109   - failStatus: function (t) {
110   - /*---
111   - return "100" === t.data.result ? (i.goHome(), wx.navigateTo({
112   - url: "/pages/user/binding_info/binding_info?nickName=" + r.nickName + "&userHeadPic=" + r.avatarUrl
113   - }), !1) : (i.clearAuth(), i.alertLoginErrorAndGoHome(t.data.msg), a.request.post("/api/user/logout", {
114   - isShowLoading: !1,
115   - data: {
116   - token: a.request.getToken()
117   - },
118   - failStatus: function () {
119   - return !1;
120   - }
121   - }), !1);--*/
122   - return app.my_warnning("授权登入失败,请稍后再试!", 0, that);
123   - },
124   - fail: function (t) {
125   - return i.clearAuth(), i.alertLoginErrorAndGoHome(), !1;
126   - }
127   - });
128   - },
129   -
130   - cancle_bind: function () {
131   - getApp().goto('/pages/user/index/index');
132   - }
133   -
134   -
135   -
136   -});
pages/getphone/getphone.json deleted
1   -{
2   - "navigationBarTitleText": "绑定手机",
3   - "usingComponents": {
4   - "warn": "/components/long_warn/long_warn"
5   - }
6   -}
pages/getphone/getphone.wxml deleted
1   -<view class="all_page">
2   - <view class="content">
3   - <view><image class='logo' src="{{imghots+store.store_logo}}"> </image></view>
4   - <view class="title">{{store.store_name}}</view>
5   - <view>{{store.store_desc}}</view>
6   - <button class="btn" open-type="getPhoneNumber" bindgetphonenumber="getphone">绑定会员</button>
7   - <text class="btn2" bindtap="cancle_bind">暂不绑定</text>
8   - </view>
9   -</view>
10   -<warn id="warn"></warn>
11 0 \ No newline at end of file
pages/getphone/getphone.wxss deleted
1   -.all_page{
2   - position: fixed;
3   - height: 100%;
4   - width: 100%;
5   - background: #fff;
6   - justify-content: center;/*水平居中*/
7   -}
8   -.all_page .content{
9   - font-size: 30rpx;
10   - text-align: center;
11   - height: 400px;
12   - width: 100%;
13   - position: absolute;
14   - top: 50%;
15   - margin-top:-200px;
16   -}
17   -.logo{width: 140rpx; height: 140rpx; border-radius:50% }
18   -.all_page .content .title{
19   - font-size: 36rpx; margin: 20rpx 0
20   -}
21   -
22   -.all_page .btn{
23   - height: 80rpx;
24   - line-height: 80rpx;
25   - width: 580rpx;
26   - background: #fc661f;
27   - color:#fff;
28   - font-size: 32rpx;
29   - margin-top: 100rpx;
30   - border-radius: 5rpx;
31   -}
32   -.all_page .btn2{
33   - height: 80rpx;
34   - line-height: 80rpx;
35   - width: 580rpx;
36   - color:#999;
37   - font-size: 32rpx;
38   - border-radius: 5rpx;
39   - margin-top: 10rpx;
40   -}
41 0 \ No newline at end of file