爱简收旧衣按件回收前端代码仓库
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.

168 lines
6.5 KiB

  1. "use strict";
  2. const common_vendor = require("../../common/vendor.js");
  3. const pages_mixins_pullRefreshMixin = require("../mixins/pullRefreshMixin.js");
  4. const _sfc_main = {
  5. mixins: [pages_mixins_pullRefreshMixin.pullRefreshMixin],
  6. data() {
  7. return {
  8. showPopup: false,
  9. currentItem: null,
  10. ruleList: [
  11. {
  12. title: "破损衣服",
  13. desc: "品相较好的旧衣更适合进行二次流转或制作其他产品",
  14. detailDesc: "品相较好的旧衣更适合进行二次流转制作成其他产品。破损衣物可能无法满足是利用的标准,还请您谅解。",
  15. icon: "/static/rules/broken-clothes.png",
  16. detailImage: "/static/rules/broken-clothes-detail.png"
  17. },
  18. {
  19. title: "潮湿异味",
  20. desc: "这类衣物易滋生细菌霉菌,可能传播疾病",
  21. icon: "/static/rules/wet-clothes.png",
  22. detailImage: "/static/rules/wet-clothes-detail.png",
  23. detailDesc: "这类衣物易滋生细菌霉菌,可能传播疾病。"
  24. },
  25. {
  26. title: "单只鞋靴",
  27. desc: "这类衣物易滋生细菌霉菌,可能传播疾病",
  28. icon: "/static/rules/single-shoe.png",
  29. detailImage: "/static/rules/single-shoe-detail.png",
  30. detailDesc: "这类衣物易滋生细菌霉菌,可能传播疾病。"
  31. },
  32. {
  33. title: "单只鞋靴",
  34. desc: "这类衣物易滋生细菌霉菌,可能传播疾病",
  35. icon: "/static/rules/single-shoe.png",
  36. detailImage: "/static/rules/single-shoe-detail.png",
  37. detailDesc: "这类衣物易滋生细菌霉菌,可能传播疾病。"
  38. },
  39. {
  40. title: "单只鞋靴",
  41. desc: "这类衣物易滋生细菌霉菌,可能传播疾病",
  42. icon: "/static/rules/single-shoe.png",
  43. detailImage: "/static/rules/single-shoe-detail.png",
  44. detailDesc: "这类衣物易滋生细菌霉菌,可能传播疾病。"
  45. },
  46. {
  47. title: "单只鞋靴",
  48. desc: "这类衣物易滋生细菌霉菌,可能传播疾病",
  49. icon: "/static/rules/single-shoe.png",
  50. detailImage: "/static/rules/single-shoe-detail.png",
  51. detailDesc: "这类衣物易滋生细菌霉菌,可能传播疾病。"
  52. },
  53. {
  54. title: "单只鞋靴",
  55. desc: "这类衣物易滋生细菌霉菌,可能传播疾病",
  56. icon: "/static/rules/single-shoe.png",
  57. detailImage: "/static/rules/single-shoe-detail.png",
  58. detailDesc: "这类衣物易滋生细菌霉菌,可能传播疾病。"
  59. },
  60. {
  61. title: "单只鞋靴",
  62. desc: "这类衣物易滋生细菌霉菌,可能传播疾病",
  63. icon: "/static/rules/single-shoe.png",
  64. detailImage: "/static/rules/single-shoe-detail.png",
  65. detailDesc: "这类衣物易滋生细菌霉菌,可能传播疾病。"
  66. },
  67. {
  68. title: "单只鞋靴",
  69. desc: "这类衣物易滋生细菌霉菌,可能传播疾病",
  70. icon: "/static/rules/single-shoe.png",
  71. detailImage: "/static/rules/single-shoe-detail.png",
  72. detailDesc: "这类衣物易滋生细菌霉菌,可能传播疾病。"
  73. },
  74. {
  75. title: "单只鞋靴",
  76. desc: "这类衣物易滋生细菌霉菌,可能传播疾病",
  77. icon: "/static/rules/single-shoe.png",
  78. detailImage: "/static/rules/single-shoe-detail.png",
  79. detailDesc: "这类衣物易滋生细菌霉菌,可能传播疾病。"
  80. },
  81. {
  82. title: "单只鞋靴",
  83. desc: "这类衣物易滋生细菌霉菌,可能传播疾病",
  84. icon: "/static/rules/single-shoe.png",
  85. detailImage: "/static/rules/single-shoe-detail.png",
  86. detailDesc: "这类衣物易滋生细菌霉菌,可能传播疾病。"
  87. },
  88. {
  89. title: "单只鞋靴",
  90. desc: "这类衣物易滋生细菌霉菌,可能传播疾病",
  91. icon: "/static/rules/single-shoe.png",
  92. detailImage: "/static/rules/single-shoe-detail.png",
  93. detailDesc: "这类衣物易滋生细菌霉菌,可能传播疾病。"
  94. },
  95. {
  96. title: "单只鞋靴",
  97. desc: "这类衣物易滋生细菌霉菌,可能传播疾病",
  98. icon: "/static/rules/single-shoe.png",
  99. detailImage: "/static/rules/single-shoe-detail.png",
  100. detailDesc: "这类衣物易滋生细菌霉菌,可能传播疾病。"
  101. }
  102. ]
  103. };
  104. },
  105. methods: {
  106. async onRefresh() {
  107. await new Promise((resolve) => setTimeout(resolve, 1e3));
  108. common_vendor.index.stopPullRefresh();
  109. },
  110. goBack() {
  111. common_vendor.index.navigateBack();
  112. },
  113. showDetail(item) {
  114. this.currentItem = item;
  115. this.showPopup = true;
  116. },
  117. closePopup() {
  118. this.showPopup = false;
  119. }
  120. }
  121. };
  122. if (!Array) {
  123. const _easycom_uni_icons2 = common_vendor.resolveComponent("uni-icons");
  124. _easycom_uni_icons2();
  125. }
  126. const _easycom_uni_icons = () => "../../uni_modules/uni-icons/components/uni-icons/uni-icons.js";
  127. if (!Math) {
  128. _easycom_uni_icons();
  129. }
  130. function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
  131. return common_vendor.e({
  132. a: common_vendor.p({
  133. type: "left",
  134. size: "25"
  135. }),
  136. b: common_vendor.o((...args) => $options.goBack && $options.goBack(...args)),
  137. c: common_vendor.p({
  138. type: "close",
  139. size: "25"
  140. }),
  141. d: common_vendor.f($data.ruleList, (item, index, i0) => {
  142. return {
  143. a: item.icon,
  144. b: common_vendor.t(item.title),
  145. c: common_vendor.t(item.desc),
  146. d: "a363b673-2-" + i0,
  147. e: index,
  148. f: common_vendor.o(($event) => $options.showDetail(item), index)
  149. };
  150. }),
  151. e: common_vendor.p({
  152. type: "right",
  153. size: "25"
  154. }),
  155. f: $data.showPopup
  156. }, $data.showPopup ? {
  157. g: common_vendor.t($data.currentItem.title),
  158. h: common_vendor.t($data.currentItem.detailDesc),
  159. i: $data.currentItem.detailImage,
  160. j: common_vendor.o((...args) => $options.closePopup && $options.closePopup(...args)),
  161. k: common_vendor.o(() => {
  162. }),
  163. l: common_vendor.o((...args) => $options.closePopup && $options.closePopup(...args))
  164. } : {});
  165. }
  166. const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-a363b673"]]);
  167. wx.createPage(MiniProgramPage);
  168. //# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/subcomponent/recycle_rules.js.map