Commit 3aad30bc by 张卓

小程序验证智能表单进入

parent 4cc35580
...@@ -14,8 +14,10 @@ ...@@ -14,8 +14,10 @@
<script> <script>
let forUrlAddKey; let forUrlAddKey;
let getUrlKey;
if(process.browser) { if(process.browser) {
forUrlAddKey = require("mayi-front-tools/forUrlAddKey").default forUrlAddKey = require("mayi-front-tools/forUrlAddKey").default
getUrlKey = require("mayi-front-tools/getUrlKey").default
} }
import { serialize, getQueryVariable, DFSImg } from "@/utils/index"; import { serialize, getQueryVariable, DFSImg } from "@/utils/index";
export default { export default {
...@@ -28,9 +30,9 @@ export default { ...@@ -28,9 +30,9 @@ export default {
} }
}, },
onLoad(options){ onLoad(options){
console.log(decodeURIComponent(options.link),'地址',forUrlAddKey(decodeURIComponent(options.link),{token: wx.getStorageSync("sessionid"),jwt: 1})) console.log(decodeURIComponent(options.link),'地址',wx.getStorageSync("sessionid"),forUrlAddKey(decodeURIComponent(options.link),{token: wx.getStorageSync("sessionid"),jwt: 1}))
if(options.login != '1') { if(getUrlKey(decodeURIComponent(options.link),'login') != '1') {
this.link = decodeURIComponent(options.link) this.link = decodeURIComponent(options.link)
}else { }else {
if(wx.getStorageSync("sessionid")) { if(wx.getStorageSync("sessionid")) {
......
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