You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

49 lines
1.6 KiB

4 months ago
3 months ago
2 weeks ago
3 months ago
2 weeks ago
4 months ago
  1. "use strict";
  2. const common_vendor = require("../../common/vendor.js");
  3. if (!Array) {
  4. const _easycom_u_checkbox2 = common_vendor.resolveComponent("u-checkbox");
  5. const _easycom_u_checkbox_group2 = common_vendor.resolveComponent("u-checkbox-group");
  6. (_easycom_u_checkbox2 + _easycom_u_checkbox_group2)();
  7. }
  8. const _easycom_u_checkbox = () => "../../uni_modules/uview-plus/components/u-checkbox/u-checkbox.js";
  9. const _easycom_u_checkbox_group = () => "../../uni_modules/uview-plus/components/u-checkbox-group/u-checkbox-group.js";
  10. if (!Math) {
  11. (_easycom_u_checkbox + _easycom_u_checkbox_group)();
  12. }
  13. const _sfc_main = {
  14. __name: "privacyRadion",
  15. props: {
  16. isCheck: {
  17. type: Boolean,
  18. default: false
  19. }
  20. },
  21. setup(__props, { emit: __emit }) {
  22. let emit = __emit;
  23. function changeRadio(val) {
  24. console.log(val);
  25. emit("changeRadio", val);
  26. }
  27. function goPage(type) {
  28. common_vendor.index.navigateTo({
  29. url: "/pages/subPage/privacyAgreement/privacyAgreement?type=" + type
  30. });
  31. }
  32. return (_ctx, _cache) => {
  33. return {
  34. a: common_vendor.o(changeRadio),
  35. b: common_vendor.p({
  36. checked: __props.isCheck,
  37. shape: "circle",
  38. label: "已阅读并同意",
  39. activeColor: "#DE3A26",
  40. labelSize: 12
  41. }),
  42. c: common_vendor.o(($event) => goPage(2)),
  43. d: common_vendor.o(($event) => goPage(1))
  44. };
  45. };
  46. }
  47. };
  48. const Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-64dff09c"]]);
  49. wx.createComponent(Component);