Commit 86f7d1e0 authored by Mac's avatar Mac

1

parent 228fcbf1
...@@ -451,6 +451,8 @@ ...@@ -451,6 +451,8 @@
"path":"share_qrcode" "path":"share_qrcode"
},{ },{
"path":"offline-success" "path":"offline-success"
},{
"path":"draw"
} }
] ]
}, },
......
...@@ -168,10 +168,6 @@ ...@@ -168,10 +168,6 @@
}, },
onLoad(options) { onLoad(options) {
let that = this; let that = this;
options={
storeId:8,id:6,JumpType:8,
}
uni.getSystemInfo({ uni.getSystemInfo({
success(res) { success(res) {
that.titleStyle = { that.titleStyle = {
...@@ -246,7 +242,7 @@ ...@@ -246,7 +242,7 @@
this.getjump(options.scene); this.getjump(options.scene);
} }
if (options && options.storeId) { if (options && options.storeId) {
this.fxstoreId = options.storeId this.fxstoreId = options.storeId;
} }
// #ifdef MP-WEIXIN // #ifdef MP-WEIXIN
wx.showShareMenu({ wx.showShareMenu({
...@@ -307,48 +303,8 @@ ...@@ -307,48 +303,8 @@
}; };
that.updateuserinfo(msg); that.updateuserinfo(msg);
that.getPageType() that.getPageType()
that.sharejump();
// 如果登录的情况下直接跳转商品详情或者直播列表 // 如果登录的情况下直接跳转商品详情或者直播列表
setTimeout(() => {
if (that.JumpType == 1) {
//商品详情
uni.navigateTo({
url: "/pages/goods/goods?GoodsId=" + that.GoodsId,
});
} else if (that.JumpType == 2) {
//直播列表
uni.navigateTo({
url: "/pages/live/index"
});
} else if (that.JumpType == 3) {
//司导详情
that.goguidecar()
} else if (that.JumpType == 4) {
//代付页面
uni.navigateTo({
url: "/pages/order/payment-order?GoodsId=" + that.OrderId
});
} else if (that.JumpType == 5) {
//课程详情
uni.navigateTo({
url: "/pages/school/courseInfo?GoodsId=" + that.GoodsId
});
} else if (that.JumpType == 6) {
//课程代付页面
uni.navigateTo({
url: "/pages/school/personal/payment-order?OrderId=" + that.OrderId
});
} else if (that.JumpType == 7) {
//线下服务门店详情
uni.navigateTo({
url: "/pages/reserve/storeDetails?id="+that.GoodsId,
});
} else if (that.JumpType == 8) {
//服务人员详情
uni.navigateTo({
url: "/pages/reserve/designerDetail?ID="+that.GoodsId+'&storeId='+that.fxstoreId,
})
}
}, 500);
} else { } else {
//静默登录操作 //静默登录操作
uni.login({ uni.login({
...@@ -561,49 +517,9 @@ ...@@ -561,49 +517,9 @@
that.init() that.init()
} }
// 如果登录的情况下直接跳转商品详情或者直播列表 // 如果登录的情况下直接跳转商品详情或者直播列表
setTimeout(() => { that.sharejump()
if (that.JumpType == 1) {
//商品详情
uni.navigateTo({
url: "/pages/goods/goods?GoodsId=" + that.GoodsId,
});
} else if (that.JumpType == 2) {
//直播列表
uni.navigateTo({
url: "/pages/live/index"
});
} else if (that.JumpType == 3) {
//司导详情
that.goguidecar()
} else if (that.JumpType == 4) {
//代付页面
uni.navigateTo({
url: "/pages/order/payment-order?GoodsId=" + that.OrderId
});
} else if (that.JumpType == 5) {
//课程详情
uni.navigateTo({
url: "/pages/school/courseInfo?GoodsId=" + that.GoodsId
});
} else if (that.JumpType == 6) {
//课程代付页面
uni.navigateTo({
url: "/pages/school/personal/payment-order?OrderId=" + that.OrderId
});
} else if (that.JumpType == 7) {
//线下服务门店详情
uni.navigateTo({
url: "/pages/reserve/storeDetails?id="+that.GoodsId,
});
} else if (that.JumpType == 8) {
//服务人员详情
uni.navigateTo({
url: "/pages/reserve/designerDetail?ID="+that.GoodsId+'&storeId='+that.fxstoreId,
})
}
}, 500);
} else { } else {
if (!that.u) { if (!that.u) {
that.u = { that.u = {
...@@ -616,6 +532,60 @@ ...@@ -616,6 +532,60 @@
} }
); );
}, },
sharejump(){//分享的总跳转
let that = this
setTimeout(() => {
if (that.JumpType == 1) {
//商品详情
uni.navigateTo({
url: "/pages/goods/goods?GoodsId=" + that.GoodsId,
});
} else if (that.JumpType == 2) {
//直播列表
uni.navigateTo({
url: "/pages/live/index"
});
} else if (that.JumpType == 3) {
//司导详情
that.goguidecar()
} else if (that.JumpType == 4) {
//代付页面
uni.navigateTo({
url: "/pages/order/payment-order?GoodsId=" + that.OrderId
});
} else if (that.JumpType == 5) {
//课程详情
uni.navigateTo({
url: "/pages/school/courseInfo?GoodsId=" + that.GoodsId
});
} else if (that.JumpType == 6) {
//课程代付页面
uni.navigateTo({
url: "/pages/school/personal/payment-order?OrderId=" + that.OrderId
});
} else if (that.JumpType == 7) {
//线下服务门店详情
uni.navigateTo({
url: "/pages/reserve/storeDetails?id="+that.GoodsId,
});
} else if (that.JumpType == 8) {
//服务人员详情
uni.navigateTo({
url: "/pages/reserve/designerDetail?ID="+that.GoodsId+'&storeId='+that.fxstoreId,
})
} else if (that.JumpType == 9) {
//线下服务商品
try {
uni.setStorageSync("storeId", {storeId:that.fxstoreId});
} catch (e) {
console.log(e)
}
uni.navigateTo({ url: "/pages/reserve/goodsDetails?GoodsId=" + that.GoodsId });
}
}, 500);
},
updateuserinfo(msg) { updateuserinfo(msg) {
this.request2({ this.request2({
url: "/api/MemberUser/SetMemberPhoto", url: "/api/MemberUser/SetMemberPhoto",
...@@ -979,48 +949,7 @@ ...@@ -979,48 +949,7 @@
this.init() this.init()
} }
// 如果登录的情况下直接跳转商品详情或者直播列表 // 如果登录的情况下直接跳转商品详情或者直播列表
setTimeout(() => { this.sharejump();
if (this.JumpType == 1) {
//商品详情
uni.navigateTo({
url: "/pages/goods/goods?GoodsId=" + this.GoodsId
});
} else if (this.JumpType == 2) {
//直播列表
uni.navigateTo({
url: "/pages/live/index"
});
} else if (this.JumpType == 3) {
//司导详情
this.goguidecar()
} else if (this.JumpType == 4) {
//代付页面
uni.navigateTo({
url: "/pages/order/payment-order?GoodsId=" + this.OrderId
});
} else if (this.JumpType == 5) {
//课程详情
uni.navigateTo({
url: "/pages/school/courseInfo?GoodsId=" + this.GoodsId
});
} else if (this.JumpType == 6) {
//课程代付页面
uni.navigateTo({
url: "/pages/school/personal/payment-order?OrderId=" + this.OrderId
});
} else if (this.JumpType == 7) {
//线下服务门店详情
uni.navigateTo({
url: "/pages/reserve/storeDetails?id="+this.GoodsId,
});
} else if (this.JumpType == 8) {
//服务人员详情
uni.navigateTo({
url: "/pages/reserve/designerDetail?ID="+this.GoodsId+'&storeId='+this.fxstoreId,
})
}
}, 500);
}, },
getPageType() { getPageType() {
this.request2({ this.request2({
......
...@@ -113,7 +113,7 @@ export default { ...@@ -113,7 +113,7 @@ export default {
genernalHandler() { genernalHandler() {
//this.goodId //this.goodId
uni.navigateTo({ uni.navigateTo({
url: "/pages/goods/draw?id="+this.goodId, url: "/pages/reserve/draw?id="+this.goodId,
}); });
}, },
sendQuanHandler() { sendQuanHandler() {
......
This diff is collapsed.
...@@ -374,8 +374,7 @@ export default { ...@@ -374,8 +374,7 @@ export default {
this.g.app_share_title != null && this.g.app_share_title != "" this.g.app_share_title != null && this.g.app_share_title != ""
? this.g.app_share_title ? this.g.app_share_title
: this.g.name, : this.g.name,
// path: "/pages/goods/goods?id=" + this.id + "&user_id=" + uid+ "&SmallShopId=" + SmallShopId, path: "/pages/index/index?id=" + this.id + "&user_id=" + uid+ "&SmallShopId=" + SmallShopId+ "&Up=" + this.Up+'&JumpType=9',
path: "/pages/index/index?id=" + this.id + "&user_id=" + uid+ "&SmallShopId=" + SmallShopId+ "&Up=" + this.Up+'&JumpType=1',
imageUrl: imageUrl:
this.g.app_share_pic != null && this.g.app_share_pic != "" this.g.app_share_pic != null && this.g.app_share_pic != ""
? this.g.app_share_pic ? this.g.app_share_pic
...@@ -571,11 +570,14 @@ export default { ...@@ -571,11 +570,14 @@ export default {
getReceive() { getReceive() {
//分享进入调取领券接口 //分享进入调取领券接口
// 1-分享,2-购买并付款 // 1-分享,2-购买并付款
let storeId = uni.getStorageSync("storeId") && uni.getStorageSync("storeId").storeId ? uni.getStorageSync("storeId")
.storeId : 0;
this.request2( this.request2(
{ {
url: "/api/AppletUser/ShareCoupon", url: "/api/AppletStores/ShareEducationCoupon",
data: { data: {
TriggerType: 1, TriggerType: 1,
StoreId:storeId
}, },
}, },
(res) => { (res) => {
...@@ -590,7 +592,7 @@ export default { ...@@ -590,7 +592,7 @@ export default {
goLook() { goLook() {
this.showCoupons = true; this.showCoupons = true;
uni.navigateTo({ uni.navigateTo({
url: "/pages/coupon/index/index", url: "/pages/reserve/personal/cardList",
}); });
}, },
closeBtn() { closeBtn() {
......
...@@ -892,10 +892,9 @@ ...@@ -892,10 +892,9 @@
}, },
goLook() { goLook() {
this.showCoupons = true; this.showCoupons = true;
// TODO套餐卡页面还没建 uni.navigateTo({
// uni.navigateTo({ url: "/pages/reserve/personal/cardList",
// url: "/pages/coupon/index/index", });
// });
}, },
closeBtn() { closeBtn() {
this.showCoupons = false; this.showCoupons = false;
......
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