Authored by htoooth

fix

@@ -92,6 +92,8 @@ const bind = { @@ -92,6 +92,8 @@ const bind = {
92 } 92 }
93 93
94 req.ctx(BindService).bindMobile(openId, sourceType, mobile, area, nickName, code).then(result => { 94 req.ctx(BindService).bindMobile(openId, sourceType, mobile, area, nickName, code).then(result => {
  95 + console.log(openId, sourceType, mobile);
  96 + console.log(result);
95 if (result && result.code) { 97 if (result && result.code) {
96 if (result.code === 200 && result.data && result.data.uid) { 98 if (result.code === 200 && result.data && result.data.uid) {
97 let refer = helpers.urlFormat('/passport/thirdlogin/bindsuccess', { 99 let refer = helpers.urlFormat('/passport/thirdlogin/bindsuccess', {
@@ -110,7 +110,7 @@ module.exports = { @@ -110,7 +110,7 @@ module.exports = {
110 port: '4444' // influxdb port 110 port: '4444' // influxdb port
111 }, 111 },
112 console: { 112 console: {
113 - level: 'info', 113 + level: 'debug',
114 colorize: 'all', 114 colorize: 'all',
115 prettyPrint: true 115 prettyPrint: true
116 } 116 }
@@ -10,7 +10,7 @@ exports.showBind = function(goLoginCb, goNextCb) { @@ -10,7 +10,7 @@ exports.showBind = function(goLoginCb, goNextCb) {
10 content: infoTpl(), 10 content: infoTpl(),
11 btns: [{ 11 btns: [{
12 id: 'login', 12 id: 'login',
13 - btnClass: ['btn-cancel'], 13 + btnClass: ['bind-btn-cancel'],
14 name: '去登录', 14 name: '去登录',
15 cb: function() { 15 cb: function() {
16 console.log('login'); 16 console.log('login');
@@ -18,7 +18,7 @@ exports.showBind = function(goLoginCb, goNextCb) { @@ -18,7 +18,7 @@ exports.showBind = function(goLoginCb, goNextCb) {
18 } 18 }
19 }, { 19 }, {
20 id: 'next', 20 id: 'next',
21 - btnClass: ['btn-ok'], 21 + btnClass: ['bind-btn-ok'],
22 name: '继续', 22 name: '继续',
23 cb: function() { 23 cb: function() {
24 console.log('next'); 24 console.log('next');
@@ -38,14 +38,14 @@ exports.showBind2 = function(goLoginCb, goNextCb) { @@ -38,14 +38,14 @@ exports.showBind2 = function(goLoginCb, goNextCb) {
38 content: infoTpl2(), 38 content: infoTpl2(),
39 btns: [{ 39 btns: [{
40 id: 'login', 40 id: 'login',
41 - btnClass: ['btn-cancel'], 41 + btnClass: ['bind-btn-cancel'],
42 name: '去登录', 42 name: '去登录',
43 cb: function() { 43 cb: function() {
44 goLoginCb && goLoginCb(); 44 goLoginCb && goLoginCb();
45 } 45 }
46 }, { 46 }, {
47 id: 'next', 47 id: 'next',
48 - btnClass: ['btn-ok'], 48 + btnClass: ['bind-btn-ok'],
49 name: '继续', 49 name: '继续',
50 cb: function() { 50 cb: function() {
51 goNextCb && goNextCb(); 51 goNextCb && goNextCb();
@@ -26,24 +26,24 @@ @@ -26,24 +26,24 @@
26 margin-bottom: 43px; 26 margin-bottom: 43px;
27 } 27 }
28 28
29 - .btn-cancel { 29 + .bind-btn-cancel {
30 border-radius: 3px; 30 border-radius: 3px;
31 width: 120px; 31 width: 120px;
32 - height: 35px;  
33 - line-height: 35px; 32 + height: 35px !important;
  33 + line-height: 35px !important;
34 color: #999; 34 color: #999;
35 - border: solid 1px #999; 35 + border: solid 1px #999 !important;
36 padding: 0 !important; 36 padding: 0 !important;
37 } 37 }
38 38
39 - .btn-ok { 39 + .bind-btn-ok {
40 width: 120px; 40 width: 120px;
41 - height: 35px; 41 + height: 35px !important;
42 color: white; 42 color: white;
43 background: #444; 43 background: #444;
44 border-radius: 3px; 44 border-radius: 3px;
45 - line-height: 35px;  
46 - border: solid 1px #444; 45 + line-height: 35px !important;
  46 + border: solid 1px #444 !important;
47 padding: 0 !important; 47 padding: 0 !important;
48 margin-left: 38px !important; 48 margin-left: 38px !important;
49 } 49 }