step2.js 6.88 KB
"use strict";
const common_vendor = require("../../common/vendor.js");
const config = require("../../config.js");
if (!Array) {
  const _easycom_uni_easyinput2 = common_vendor.resolveComponent("uni-easyinput");
  const _easycom_uni_forms_item2 = common_vendor.resolveComponent("uni-forms-item");
  const _easycom_uni_data_checkbox2 = common_vendor.resolveComponent("uni-data-checkbox");
  const _easycom_uni_data_select2 = common_vendor.resolveComponent("uni-data-select");
  const _easycom_uni_forms2 = common_vendor.resolveComponent("uni-forms");
  (_easycom_uni_easyinput2 + _easycom_uni_forms_item2 + _easycom_uni_data_checkbox2 + _easycom_uni_data_select2 + _easycom_uni_forms2)();
}
const _easycom_uni_easyinput = () => "../../uni_modules/uni-easyinput/components/uni-easyinput/uni-easyinput.js";
const _easycom_uni_forms_item = () => "../../uni_modules/uni-forms/components/uni-forms-item/uni-forms-item.js";
const _easycom_uni_data_checkbox = () => "../../uni_modules/uni-data-checkbox/components/uni-data-checkbox/uni-data-checkbox.js";
const _easycom_uni_data_select = () => "../../uni_modules/uni-data-select/components/uni-data-select/uni-data-select.js";
const _easycom_uni_forms = () => "../../uni_modules/uni-forms/components/uni-forms/uni-forms.js";
if (!Math) {
  (_easycom_uni_easyinput + _easycom_uni_forms_item + _easycom_uni_data_checkbox + _easycom_uni_data_select + _easycom_uni_forms)();
}
const _sfc_main = {
  __name: "step2",
  props: {
    personal: {
      type: Object,
      default: () => {
      }
    }
  },
  emits: ["prev", "next"],
  setup(__props, { emit }) {
    const props = __props;
    const baseFormData = common_vendor.computed(() => props.personal);
    const sexs = common_vendor.ref([{
      value: "0",
      text: "女"
    }, {
      value: "1",
      text: "男"
    }]);
    const certificates = common_vendor.ref([
      {
        text: "身份证",
        value: "0"
      },
      {
        text: "港澳台通行证 ",
        value: "1"
      },
      {
        text: "中国护照",
        value: "2"
      },
      {
        text: "外国护照",
        value: "3"
      },
      {
        text: "其它",
        value: "4"
      },
      {
        text: "户口本",
        value: "5"
      }
    ]);
    common_vendor.onLoad((options) => {
    });
    function prev() {
      emit("prev");
    }
    function next() {
      emit("next");
    }
    return (_ctx, _cache) => {
      return common_vendor.e({
        a: common_vendor.unref(baseFormData).photo
      }, common_vendor.unref(baseFormData).photo ? {
        b: common_vendor.unref(config.config).baseUrl_api + common_vendor.unref(baseFormData).photo
      } : {}, {
        c: common_vendor.o(($event) => common_vendor.unref(baseFormData).perCode = $event),
        d: common_vendor.p({
          disabled: true,
          placeholder: "请输入会员编号",
          modelValue: common_vendor.unref(baseFormData).perCode
        }),
        e: common_vendor.p({
          label: "会员编号",
          required: true,
          name: "perCode"
        }),
        f: common_vendor.o(($event) => common_vendor.unref(baseFormData).validityDate = $event),
        g: common_vendor.p({
          disabled: true,
          placeholder: "请输入会员编号",
          modelValue: common_vendor.unref(baseFormData).validityDate
        }),
        h: common_vendor.p({
          label: "有效期",
          required: true,
          name: "validityDate"
        }),
        i: common_vendor.o(($event) => common_vendor.unref(baseFormData).name = $event),
        j: common_vendor.p({
          disabled: true,
          placeholder: "请输入姓名",
          modelValue: common_vendor.unref(baseFormData).name
        }),
        k: common_vendor.p({
          label: "姓名",
          required: true,
          name: "name"
        }),
        l: common_vendor.o(($event) => common_vendor.unref(baseFormData).sex = $event),
        m: common_vendor.p({
          disabled: true,
          localdata: sexs.value,
          modelValue: common_vendor.unref(baseFormData).sex
        }),
        n: common_vendor.p({
          label: "性别",
          required: true,
          name: "sex"
        }),
        o: common_vendor.o(($event) => common_vendor.unref(baseFormData).idcType = $event),
        p: common_vendor.p({
          disabled: true,
          localdata: certificates.value,
          modelValue: common_vendor.unref(baseFormData).idcType
        }),
        q: common_vendor.p({
          label: "证件类型",
          required: true,
          name: "idcType"
        }),
        r: common_vendor.o(($event) => common_vendor.unref(baseFormData).idcCode = $event),
        s: common_vendor.p({
          placeholder: "请输入证件号码",
          disabled: true,
          modelValue: common_vendor.unref(baseFormData).idcCode
        }),
        t: common_vendor.p({
          label: "证件号码",
          required: true,
          name: "idcCode"
        }),
        v: common_vendor.o(($event) => common_vendor.unref(baseFormData).birth = $event),
        w: common_vendor.p({
          disabled: true,
          modelValue: common_vendor.unref(baseFormData).birth
        }),
        x: common_vendor.p({
          label: "出生日期",
          required: true,
          name: "birth"
        }),
        y: common_vendor.o(($event) => common_vendor.unref(baseFormData).phone = $event),
        z: common_vendor.p({
          disabled: true,
          placeholder: "请输入联系方式",
          modelValue: common_vendor.unref(baseFormData).phone
        }),
        A: common_vendor.p({
          label: "联系方式",
          required: true,
          name: "phone"
        }),
        B: common_vendor.o(($event) => common_vendor.unref(baseFormData).cityName = $event),
        C: common_vendor.p({
          disabled: true,
          placeholder: "请输入所在地区",
          modelValue: common_vendor.unref(baseFormData).cityName
        }),
        D: common_vendor.p({
          label: "所在地区",
          required: true,
          name: "cityName"
        }),
        E: common_vendor.o(($event) => common_vendor.unref(baseFormData).address = $event),
        F: common_vendor.p({
          disabled: true,
          placeholder: "请输入详细地址",
          modelValue: common_vendor.unref(baseFormData).address
        }),
        G: common_vendor.p({
          label: "详细地址",
          required: true,
          name: "address"
        }),
        H: common_vendor.sr("baseForm", "d4a2c402-0"),
        I: common_vendor.p({
          modelValue: common_vendor.unref(baseFormData),
          ["label-width"]: "80"
        }),
        J: common_vendor.o(prev),
        K: common_vendor.o(next)
      });
    };
  }
};
const Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-d4a2c402"], ["__file", "/Users/yangyang/ztx_wx_minapp/training/components/step2.vue"]]);
wx.createComponent(Component);