美文网首页
小程序扫码链接

小程序扫码链接

作者: 可乐不可乐_6e02 | 来源:发表于2021-01-20 10:21 被阅读0次
    const { q = '' } = options || this.$wxpage.options;
    let url = decodeURIComponent(q);
    const querys = url.substring(url.indexOf('?') + 1).split('&');
    let result = {};
    for(let i = 0; i < querys.length; i++){
      let temp = querys[i].split('=');
      if(temp.length < 2){
        result[temp[0]] = '';
      }else{
        result[temp[0]] = temp[1];
      }
    }
    
    this.patientName = result.patName || '';
    this.parentIdNo = result.idNo || '';
    this.patientAddress = result.patientAddress || '';
    this.patientMobile = result.patientMobile || '';

    相关文章

      网友评论

          本文标题:小程序扫码链接

          本文链接:https://www.haomeiwen.com/subject/ocvqahtx.html