teacher.js 6.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147
  1. "use strict";
  2. const common_vendor = require("../../../common/vendor.js");
  3. if (!Array) {
  4. const _easycom_up_upload2 = common_vendor.resolveComponent("up-upload");
  5. const _easycom_up_radio2 = common_vendor.resolveComponent("up-radio");
  6. const _easycom_up_radio_group2 = common_vendor.resolveComponent("up-radio-group");
  7. (_easycom_up_upload2 + _easycom_up_radio2 + _easycom_up_radio_group2)();
  8. }
  9. const _easycom_up_upload = () => "../../../node-modules/uview-plus/components/u-upload/u-upload.js";
  10. const _easycom_up_radio = () => "../../../node-modules/uview-plus/components/u-radio/u-radio.js";
  11. const _easycom_up_radio_group = () => "../../../node-modules/uview-plus/components/u-radio-group/u-radio-group.js";
  12. if (!Math) {
  13. (_easycom_up_upload + _easycom_up_radio + _easycom_up_radio_group)();
  14. }
  15. const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
  16. __name: "teacher",
  17. setup(__props) {
  18. const form = common_vendor.inject("form");
  19. const errors = common_vendor.inject("errors");
  20. const genderList = common_vendor.inject("genderList");
  21. const gradeList = common_vendor.inject("gradeList");
  22. const cardTypeList = common_vendor.inject("cardTypeList");
  23. const educationList = common_vendor.inject("educationList");
  24. const learnStatusList = common_vendor.inject("learnStatusList");
  25. const subjectList = common_vendor.inject("subjectList");
  26. const showList = common_vendor.inject("showList");
  27. const deletePic = common_vendor.inject("deletePic");
  28. const afterRead = common_vendor.inject("afterRead");
  29. const formSubmit = common_vendor.inject("formSubmit");
  30. const cardChange = common_vendor.inject("cardChange");
  31. const educationChange = common_vendor.inject("educationChange");
  32. const learnStatusChange = common_vendor.inject("learnStatusChange");
  33. const gradeChange = common_vendor.inject("gradeChange");
  34. const subjectChange = common_vendor.inject("subjectChange");
  35. return (_ctx, _cache) => {
  36. return common_vendor.e({
  37. a: common_vendor.unref(form)._id,
  38. b: common_vendor.o(common_vendor.unref(afterRead)),
  39. c: common_vendor.o(common_vendor.unref(deletePic)),
  40. d: common_vendor.p({
  41. fileList: common_vendor.unref(form).icon,
  42. name: "icon",
  43. multiple: true,
  44. maxCount: 1
  45. }),
  46. e: common_vendor.unref(form).nick_name,
  47. f: common_vendor.unref(errors).nick_name
  48. }, common_vendor.unref(errors).nick_name ? {
  49. g: common_vendor.t(common_vendor.unref(errors).nick_name)
  50. } : {}, {
  51. h: common_vendor.f(common_vendor.unref(genderList), (item, index, i0) => {
  52. return {
  53. a: index,
  54. b: "70f918ed-2-" + i0 + ",70f918ed-1",
  55. c: common_vendor.p({
  56. customStyle: {
  57. marginRight: "16px"
  58. },
  59. label: item.label,
  60. name: item.value
  61. })
  62. };
  63. }),
  64. i: common_vendor.o(($event) => common_vendor.unref(form).gender = $event),
  65. j: common_vendor.p({
  66. placement: "row",
  67. modelValue: common_vendor.unref(form).gender
  68. }),
  69. k: common_vendor.unref(errors).gender
  70. }, common_vendor.unref(errors).gender ? {
  71. l: common_vendor.t(common_vendor.unref(errors).gender)
  72. } : {}, {
  73. m: common_vendor.unref(form).age,
  74. n: common_vendor.unref(errors).age
  75. }, common_vendor.unref(errors).age ? {
  76. o: common_vendor.t(common_vendor.unref(errors).age)
  77. } : {}, {
  78. p: common_vendor.t(common_vendor.unref(form).cardType_name || "请选择身份证类型"),
  79. q: common_vendor.o(
  80. //@ts-ignore
  81. (...args) => common_vendor.unref(cardChange) && common_vendor.unref(cardChange)(...args)
  82. ),
  83. r: common_vendor.unref(cardTypeList),
  84. s: common_vendor.unref(form).card,
  85. t: common_vendor.unref(errors).card
  86. }, common_vendor.unref(errors).card ? {
  87. v: common_vendor.t(common_vendor.unref(errors).card)
  88. } : {}, {
  89. w: common_vendor.unref(form).phone,
  90. x: common_vendor.unref(errors).phone
  91. }, common_vendor.unref(errors).phone ? {
  92. y: common_vendor.t(common_vendor.unref(errors).phone)
  93. } : {}, {
  94. z: common_vendor.t(common_vendor.unref(form).education_name || "请选择学历"),
  95. A: common_vendor.o(
  96. //@ts-ignore
  97. (...args) => common_vendor.unref(educationChange) && common_vendor.unref(educationChange)(...args)
  98. ),
  99. B: common_vendor.unref(educationList),
  100. C: common_vendor.unref(form).college,
  101. D: common_vendor.t(common_vendor.unref(form).learnStatus_name || "请选择学业状态"),
  102. E: common_vendor.o(
  103. //@ts-ignore
  104. (...args) => common_vendor.unref(learnStatusChange) && common_vendor.unref(learnStatusChange)(...args)
  105. ),
  106. F: common_vendor.unref(learnStatusList),
  107. G: common_vendor.t(common_vendor.unref(form).grade_name || "请选择所教年级"),
  108. H: common_vendor.o(
  109. //@ts-ignore
  110. (...args) => common_vendor.unref(gradeChange) && common_vendor.unref(gradeChange)(...args)
  111. ),
  112. I: common_vendor.unref(gradeList),
  113. J: common_vendor.t(common_vendor.unref(form).subject_name || "请选择学科"),
  114. K: common_vendor.o(
  115. //@ts-ignore
  116. (...args) => common_vendor.unref(subjectChange) && common_vendor.unref(subjectChange)(...args)
  117. ),
  118. L: common_vendor.unref(subjectList),
  119. M: common_vendor.f(common_vendor.unref(showList), (item, index, i0) => {
  120. return {
  121. a: index,
  122. b: "70f918ed-4-" + i0 + ",70f918ed-3",
  123. c: common_vendor.p({
  124. customStyle: {
  125. marginRight: "16px"
  126. },
  127. label: item.label,
  128. name: item.value
  129. })
  130. };
  131. }),
  132. N: common_vendor.o(($event) => common_vendor.unref(form).is_show = $event),
  133. O: common_vendor.p({
  134. placement: "row",
  135. modelValue: common_vendor.unref(form).is_show
  136. }),
  137. P: common_vendor.unref(form).brief,
  138. Q: common_vendor.o(
  139. //@ts-ignore
  140. (...args) => common_vendor.unref(formSubmit) && common_vendor.unref(formSubmit)(...args)
  141. )
  142. });
  143. };
  144. }
  145. });
  146. const Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-70f918ed"], ["__file", "D:/project/学吧/learn_applet/pagesMy/account/path/teacher.vue"]]);
  147. wx.createComponent(Component);