Commit e9eba29f by biao

1111

parent 6ad8e8b0
...@@ -39,8 +39,8 @@ ErrorLogger::doOutput("Compass...ajax_update_user_age.php....End.", 0); ...@@ -39,8 +39,8 @@ ErrorLogger::doOutput("Compass...ajax_update_user_age.php....End.", 0);
$result["recommend"] = false; $result["recommend"] = false;
//已经是会员不用购买 //已经是会员不用购买
if($userMst.is_member==false && $userMst.role==5) { if($userMst.is_member==false && ($userMst.role==1 || $userMst.role==2 || $userMst.role==3|| $userMst.role==5|| $userMst.role==6)) {
$result["recommend"] = false; $result["recommend"] = true;
} }
$result["message"] = "更新成功!"; $result["message"] = "更新成功!";
responseOK($result); responseOK($result);
......
...@@ -70,14 +70,17 @@ Page({ ...@@ -70,14 +70,17 @@ Page({
} else { } else {
//是否为邀请入圈 //是否为邀请入圈
var inviteUrl = wx.getStorageSync('inviteUrl'); var inviteUrl = wx.getStorageSync('inviteUrl');
if (inviteUrl) if (inviteUrl) {
wx.redirectTo({
url: inviteUrl,
});
} else {
//跳转到首页 //跳转到首页
wx.switchTab({ wx.switchTab({
url: '../index/index', url: '../index/index',
}); });
} }
}
}, },
fail: function (res) { fail: function (res) {
......
...@@ -54,7 +54,7 @@ Page({ ...@@ -54,7 +54,7 @@ Page({
Notify("请先注册"); Notify("请先注册");
//跳转到社会人士注册,保存邀请地址 //跳转到社会人士注册,保存邀请地址
var interval = setInterval(function () { var interval = setInterval(function () {
let inviteUrl = '/pages/inviteCircleMember/inviteCircleMember?circleId=' + that.data.circleDat + '&inviteUserName=' + that.data.inviteUserName let inviteUrl = '/pages/inviteCircleMember/inviteCircleMember?circleId=' + that.data.circleId + '&inviteUserName=' + that.data.inviteUserName
wx.setStorageSync("inviteUrl", inviteUrl); wx.setStorageSync("inviteUrl", inviteUrl);
wx.redirectTo({ wx.redirectTo({
url: '../socialUserRegister/socialUserRegister', url: '../socialUserRegister/socialUserRegister',
......
...@@ -116,6 +116,12 @@ Page({ ...@@ -116,6 +116,12 @@ Page({
method: 'GET', method: 'GET',
dataType: 'json', dataType: 'json',
success: function (res) { success: function (res) {
//写入用户注册状态
if (res.data.status == 'OK') {
config.registed = true;
wx.setStorageSync("config", config);
}
//跳转到年龄选择 //跳转到年龄选择
wx.navigateTo({ wx.navigateTo({
url: '../ageChange/ageChange', url: '../ageChange/ageChange',
......
...@@ -24,9 +24,6 @@ Page({ ...@@ -24,9 +24,6 @@ Page({
} }
}, },
}) })
// wx.request({
// url: '',resp.data.result.unionId
// })
}, },
getInfo(unionId){ getInfo(unionId){
var that = this; var that = this;
...@@ -115,9 +112,18 @@ Page({ ...@@ -115,9 +112,18 @@ Page({
paySign: result.paySign, paySign: result.paySign,
success(res) { success(res) {
Toast.success('支付成功'); Toast.success('支付成功');
//是否为邀请入圈
var inviteUrl = wx.getStorageSync('inviteUrl');
if (inviteUrl) {
wx.redirectTo({
url: inviteUrl,
});
} else {
wx.switchTab({ wx.switchTab({
url: '/pages/index/index', url: '/pages/index/index',
}) })
}
}, },
fail(res) { fail(res) {
Toast.fail('支付失败'); Toast.fail('支付失败');
......
...@@ -104,6 +104,12 @@ Page({ ...@@ -104,6 +104,12 @@ Page({
method: 'GET', method: 'GET',
dataType: 'json', dataType: 'json',
success: function (res) { success: function (res) {
//写入用户注册状态
if (res.data.status == 'OK') {
config.registed = true;
wx.setStorageSync("config", config);
}
if (res.data.status == 'OK' && res.data.result.recommend){ if (res.data.status == 'OK' && res.data.result.recommend){
wx.redirectTo({ wx.redirectTo({
url: '/pages/memberChange/memberChange', url: '/pages/memberChange/memberChange',
......
...@@ -239,6 +239,12 @@ Page({ ...@@ -239,6 +239,12 @@ Page({
icon: 'success', icon: 'success',
duration: 2000 duration: 2000
}); });
//写入用户状态
config.registed = true;
wx.setStorageSync("config", config);
//注册成功以后,弹出机构认证对话框 //注册成功以后,弹出机构认证对话框
that.setData({ that.setData({
showRule: true, showRule: true,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment