zoukankan      html  css  js  c++  java
  • vue watch

    watch: {
        // 当为谁咨询是自己的时候, 将页面信息全初始化为本人信息, 否则, 初始为空
        "form.findfor"(val) {
          if (this.applyloacluserInfo == null) {
            if (this.form.findfor == "自己") {
              this.form.forname = this.loacluserInfo.username;
              this.phone = this.loacluserInfo.phone;
            } else {
              this.form.forname = "";
              this.form.sex = "请选择";
              this.form.age = "";
              this.phone = "";
            }
            return;
          }
          if (this.applyloacluserInfo.findfor == this.form.findfor) {
            this.form.forname = this.applyloacluserInfo.forname;
            this.form.findfor = this.applyloacluserInfo.findfor;
            this.form.age = this.applyloacluserInfo.age;
            this.form.sex = this.applyloacluserInfo.sex;
            var d = this.userworkPhone;
            d = d.replace('"', "").replace('"', "");
            d = d.replace(/"/g, "");
            this.phone = d;
          } else {
            if (this.form.findfor == "自己") {
              this.form.findfor = "自己";
              this.form.sex = "请选择";
              this.form.age = "";
              this.form.forname = this.loacluserInfo.username;
              this.phone = this.loacluserInfo.phone;
            } else {
              this.form.forname = "";
              this.form.sex = "请选择";
              this.form.age = "";
              this.phone = "";
            }
          }
        }
      },
  • 相关阅读:
    2019牛客暑期多校训练营(第六场)
    2019牛客暑期多校训练营(第五场)
    2019牛客暑期多校训练营(第四场)
    2019牛客暑期多校训练营(第三场)
    Codeforces Round #554 (Div. 2) C. Neko does Maths (数论 GCD(a,b) = GCD(a,b-a))
    Codeforces Round #486 (Div. 3) C "Equal Sums" (map+pair<>)
    Count New String
    【模板】后缀自动机 (SAM)
    Watchcow
    二次剩余
  • 原文地址:https://www.cnblogs.com/ylblogs/p/13901121.html
Copyright © 2011-2022 走看看