Commit a674a603 by 李嘉林

动态表单跳转

parent e6202f02
......@@ -43,6 +43,7 @@ import { wx_decode } from "@/utils/wxIndex.js";
import login from "@/api/login";
import shop from "@/api/shop";
import indexApi from "@/api/index.js";
import { createdUserJWTApi } from "@/api/daoke";
const app = getApp();
export default {
data() {
......@@ -106,6 +107,7 @@ export default {
})
},
onLoad(options) {
console.log(options,'----------------------login-options')
login.getShopUserProtocol().then(res => {
if(res.data.code == '200') {
......@@ -339,6 +341,15 @@ export default {
wx.navigateBack({
delta: 1
});
}else if (this.backPath.includes('formDesignDetail')) {
// 动态表单
createdUserJWTApi().then(res => {
this.backParams += `&token=${res}`;
console.log(this.backParams,`${this.backPath}${this.backParams}`,"-------------------------355")
wx.reLaunch({
url: `../wxArticle/main?link=${this.backPath+this.backParams}`
});
})
}else if (this.scene=='sso' || this.backPath.includes('scene=sso') || this.ossLink.indexOf('scene=sso')>-1) {
let backPath = this.backPath;
console.log(decodeURIComponent(backPath),600000)
......
......@@ -26,6 +26,7 @@ export default {
shareShopName: "", //分享名称
shareLogoUrl: "", //分享图片url
newWindowHref: "", //分享页面url
shopId: this.$store.state.mixid,
};
},
async onLoad(options) {
......@@ -55,6 +56,10 @@ export default {
if(getUrlKey(decodeURIComponent(link), "getMixId") == '1') {//第三方跳转加mixid
link = forUrlAddKey(decodeURIComponent(link),{mixid: this.$store.state.mixid})
}
if(getUrlKey(decodeURIComponent(link), "scene") == 'dynamicForm') {
link = decodeURIComponent(link)
}
console.log(link,'--------------------------57')
if (getUrlKey(decodeURIComponent(link), "scene") == "sso") {
if (!wx.getStorageSync("sessionid")) {
wx.redirectTo({
......@@ -86,7 +91,12 @@ export default {
})
);
} else {
let url = `/pages/login/main?scene=sso&back=${link}`;
let url = "";
if(link.includes('formDesignDetail')){
url = `/pages/login/main?scene=sso&back=${encodeURIComponent(link)}`
} else {
url = `/pages/login/main?scene=sso&back=${link}`
}
wx.navigateTo({
url,
});
......
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