seam 8 년 전
부모
커밋
0a99389cc9

+ 3 - 1
www/webapp/common/js/native.js

@@ -55,7 +55,8 @@ define(function (require) {
           //此处有一个循环引用
           require('api').getO2oUserInfo({
             request_from: 'weixin',
-            user_id: localStorage.getItem('wxUserID')
+            user_id: localStorage.getItem('wxUserID'),
+            user_xyh_id: localStorage.getItem('xyhwxUserID')
           }, function (res) {
             if (typeof(that.getUserInfoCallback) == 'function') {
               that.getUserInfoCallback(res);
@@ -249,6 +250,7 @@ define(function (require) {
         wx: function () {
           //目前加上参数,绕过验证,后面再加上相关的验证
           param['user_id'] = localStorage.getItem('wxUserID');
+          param['user_xyh_id'] = localStorage.getItem('xyhwxUserID');
           param['request_from'] = 'weixin';
           if (that.getSignCallback) {
             that.getSignCallback(param);

파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
+ 0 - 0
www/webapp/moonclub/dist/js/main.js


파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
+ 0 - 0
www/webapp/moonclub/dist/js/model/user.js


파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
+ 0 - 0
www/webapp/moonclub/dist/js/native.js


파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
+ 0 - 0
www/webapp/moonclub/dist/js/page/userInfo.js


+ 5 - 0
www/webapp/moonclub/js/model/user.js

@@ -15,6 +15,7 @@ define(['base', '$', 'native', 'api', 'order', 'config', 'address'], function (b
 		this.mobile = '';
 		this.balance = 0;
 		this.info = {};
+		this.userData = null;
 		this.orders = {
 			1: {
 				data: [],
@@ -115,7 +116,9 @@ define(['base', '$', 'native', 'api', 'order', 'config', 'address'], function (b
 	//获取用户信息
 	User.prototype.getUserInfo = function (callback) {
 		var that = this;
+		console.log(that)
 		native.getUserInfo(function (res) {
+			this.userData = res;
 			loginWithData.call(that, res);//loginWithData-登录数据
 			if (typeof(callback) == 'function') {//判断callback是否为函数.
 				callback();//调用函数
@@ -185,8 +188,10 @@ define(['base', '$', 'native', 'api', 'order', 'config', 'address'], function (b
 		var that = this;
 		console.log(that);
 		this.getUserInfo(function (res) {//在获取用户信息
+			this.userData = res
 			if (that.id == '') {
 				native.login(function (resA) {//本地中读取是否存在登陆数据
+
 					loginWithData.call(that, resA);//调用登录数据
 
 					if (typeof(callback) == 'function') {//判断callback是否为函数,true让其回调

+ 1 - 0
www/webapp/moonclub/js/page/userInfo.js

@@ -190,6 +190,7 @@ define(['$', 'template', 'recharge', 'native', 'config', 'user', 'product', 'api
   },
   beforeopen: function (pageData, dtd) {
     var $view = this;
+    console.log(user.userData)
     var $doc = $(document);
     $doc.trigger('spa:openloader');
     if ($doc) {

이 변경점에서 너무 많은 파일들이 변경되어 몇몇 파일들은 표시되지 않았습니다.