Commit 4c03cf4d authored by Mac's avatar Mac

资料和编辑资料的分享

parent 648be452
......@@ -433,6 +433,24 @@
Jumptype:0,
}
},
onShareAppMessage(res) {
let u = uni.getStorageSync("mall_UserInfo");
let uid = u.UserId ? u.UserId : 0;
if(uid==0){
uid = uni.getStorageSync("pid")?uni.getStorageSync("pid").pid:0
}
let SmallShopId = u.SmallShopId ? u.SmallShopId : 0;
if(SmallShopId == 0){//如果微店id为0 去找所属微店id
SmallShopId = u.UserSmallShopId? u.UserSmallShopId:0
}
let Up = uni.getStorageSync("mall_UserInfo")?uni.getStorageSync("mall_UserInfo").UserPageType:0;
console.log("/pages/index/index?&user_id=" + uid+ "&SmallShopId=" + SmallShopId+ "&Up=" + Up+'&JumpType=14')
return {
title:'邀请填写相亲资料',
path: "/pages/index/index?&user_id=" + uid+ "&SmallShopId=" + SmallShopId+ "&Up=" + Up+'&JumpType=14',
imageUrl:'',
};
},
methods:{
changPicker(arg,e,mode,arr){
if(mode=="selector"){
......
......@@ -519,6 +519,23 @@
this.secondary = this.$uiConfig.secondary;
this.mall_UserInfo = uni.getStorageSync("mall_UserInfo")?uni.getStorageSync("mall_UserInfo"):null;
},
onShareAppMessage(res) {
let u = uni.getStorageSync("mall_UserInfo");
let uid = u.UserId ? u.UserId : 0;
if(uid==0){
uid = uni.getStorageSync("pid")?uni.getStorageSync("pid").pid:0
}
let SmallShopId = u.SmallShopId ? u.SmallShopId : 0;
if(SmallShopId == 0){//如果微店id为0 去找所属微店id
SmallShopId = u.UserSmallShopId? u.UserSmallShopId:0
}
let Up = uni.getStorageSync("mall_UserInfo")?uni.getStorageSync("mall_UserInfo").UserPageType:0;
return {
title:'相亲资料',
path: "/pages/index/index?id=" + this.UserId + "&user_id=" + uid+ "&SmallShopId=" + SmallShopId+ "&Up=" + Up+'&JumpType=13',
imageUrl:'',
};
},
onLoad(options) {
if(options && options.UserId){
this.UserId = options.UserId
......
......@@ -208,7 +208,7 @@
},
onLoad(options) {
let that = this;
// options = {id:3,money:123,JumpType:12}
options = {user_id:123978,SmallShopId:0,Up:0,JumpType:14}
uni.getSystemInfo({
success(res) {
that.titleStyle = {
......@@ -786,6 +786,10 @@
uni.navigateTo({ url: "/pages/blindDate/persondetails?UserId=" + that.GoodsId });
}else if(that.JumpType == 12){//储值卡的领取
uni.navigateTo({ url: "/pages/coupon/cards/cardsreceive?Id=" + that.GoodsId +'&cardsmoney='+this.cardsmoney});
}else if(that.JumpType == 13){//用户资料
uni.navigateTo({ url: "/pages/blindDate/persondetails?UserId=" + that.GoodsId });
}else if(that.JumpType == 14){//用户资料填写
uni.navigateTo({ url: "/pages/blindDate/editData"});
}
}, 500);
......
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