• 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 = "";
            }
          }
        }
      },
  • 相关阅读:
    [GoogleAppEngine]编译问题-locale zh_CN
    [Android]Webview中JS接口调用Java-版本问题
    [HTTP基础]3. HTTP链接
    [WebView]简单总结
    [HTTP基础]1.网络开发必备的HTTP协议知识
    [HTTP基础]2.Http和Socket区别
    [HTTP]Android抓包方法(Wireshark)
    [Android]Process&Thread-基本原理
    [Android]Thread两种实现方法
    [Android]消息队列模型——Thread,Handler,Looper,Massage Queue
  • 原文地址:https://www.cnblogs.com/ylblogs/p/13901121.html
Copyright © 2020-2023  润新知