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.

48 lines
1.6 KiB

4 months ago
3 months 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 }) {
  22. function changeRadio(val) {
  23. console.log(val);
  24. emit("changeRadio", val);
  25. }
  26. function goPage(type) {
  27. common_vendor.index.navigateTo({
  28. url: "/pages/subPage/privacyAgreement/privacyAgreement?type=" + type
  29. });
  30. }
  31. return (_ctx, _cache) => {
  32. return {
  33. a: common_vendor.o(changeRadio),
  34. b: common_vendor.p({
  35. checked: __props.isCheck,
  36. shape: "circle",
  37. label: "已阅读并同意",
  38. activeColor: "#DE3A26",
  39. labelSize: 12
  40. }),
  41. c: common_vendor.o(($event) => goPage(2)),
  42. d: common_vendor.o(($event) => goPage(1))
  43. };
  44. };
  45. }
  46. };
  47. const Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-64dff09c"], ["__file", "D:/work/xinjiangMiniProgram/components/privacyRadion/privacyRadion.vue"]]);
  48. wx.createComponent(Component);