agreement.js 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. "use strict";
  2. const common_vendor = require("../../common/vendor.js");
  3. const _sfc_main = {
  4. data() {
  5. return {
  6. statusBarHeight: 20,
  7. agreementNodes: `
  8. <div style="line-height: 1.8; color: #444; font-size: 14px;">
  9. <h3 style="color: #000; margin-top: 20px;">1. 账户注册与安全</h3>
  10. <p>您必须使用真实手机号进行授权登录。您应对账号下的所有活动负责,严禁将账号转借或转让他人使用。</p>
  11. <h3 style="color: #000; margin-top: 20px;">2. 订购规范</h3>
  12. <p>用户在提交订单前应核实型号、规格及数量。订单一旦系统确认进入生产环节,不可随意撤回。</p>
  13. <h3 style="color: #000; margin-top: 20px;">3. 知识产权</h3>
  14. <p>本平台所有技术文档、图纸及界面设计均受法律保护,未经许可不得擅自抓取或仿造。</p>
  15. </div>
  16. `
  17. };
  18. },
  19. computed: {
  20. scrollHeight() {
  21. return `calc(100vh - ${this.statusBarHeight + 44}px)`;
  22. }
  23. },
  24. onLoad() {
  25. const info = common_vendor.index.getSystemInfoSync();
  26. this.statusBarHeight = info.statusBarHeight;
  27. },
  28. methods: {
  29. goBack() {
  30. common_vendor.index.navigateBack();
  31. }
  32. }
  33. };
  34. function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
  35. return {
  36. a: common_vendor.o((...args) => $options.goBack && $options.goBack(...args), "8c"),
  37. b: $data.statusBarHeight + "px",
  38. c: $data.agreementNodes,
  39. d: $options.scrollHeight
  40. };
  41. }
  42. const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-85e80c25"]]);
  43. wx.createPage(MiniProgramPage);
  44. //# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/mine/agreement.js.map