|
@@ -2,11 +2,20 @@ const app = getApp();
|
|
|
|
|
|
Page({
|
|
|
cashdialog: null,
|
|
|
+ pid: '',
|
|
|
pg: 1,
|
|
|
data: {
|
|
|
isShowNull: false
|
|
|
},
|
|
|
onLoad: function (options) {
|
|
|
+
|
|
|
+ if (options != null && typeof options.scene != 'undefined') {
|
|
|
+ let str = decodeURIComponent(options.scene);
|
|
|
+ let arr = str.split(',');
|
|
|
+ let uid = arr[0];
|
|
|
+ this.pid = arr[1];
|
|
|
+ app.saveInviteUid(uid);
|
|
|
+ }
|
|
|
if (app.isLogin){
|
|
|
this.getHomeData(this);
|
|
|
}else{
|
|
@@ -31,6 +40,9 @@ Page({
|
|
|
* 获取首页数据
|
|
|
*/
|
|
|
getHomeData: function(that){
|
|
|
+ if(that.pid != ''){
|
|
|
+ app.location('view/index?id=' + that.pid);
|
|
|
+ }
|
|
|
if (that.pg == 1) {
|
|
|
app.showLoading();
|
|
|
}
|