index.js 8.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230
  1. "use strict";
  2. const common_vendor = require("../../../common/vendor.js");
  3. const plugins_modal = require("../../../plugins/modal.js");
  4. if (!Array) {
  5. const _easycom_uni_section2 = common_vendor.resolveComponent("uni-section");
  6. const _easycom_geek_statistic2 = common_vendor.resolveComponent("geek-statistic");
  7. const _easycom_u_col2 = common_vendor.resolveComponent("u-col");
  8. const _easycom_u_row2 = common_vendor.resolveComponent("u-row");
  9. const _easycom_geek_menu2 = common_vendor.resolveComponent("geek-menu");
  10. const _easycom_geek_commodity2 = common_vendor.resolveComponent("geek-commodity");
  11. const _easycom_geek_order2 = common_vendor.resolveComponent("geek-order");
  12. const _easycom_geek_color_picker2 = common_vendor.resolveComponent("geek-color-picker");
  13. const _easycom_geek_qrcode2 = common_vendor.resolveComponent("geek-qrcode");
  14. (_easycom_uni_section2 + _easycom_geek_statistic2 + _easycom_u_col2 + _easycom_u_row2 + _easycom_geek_menu2 + _easycom_geek_commodity2 + _easycom_geek_order2 + _easycom_geek_color_picker2 + _easycom_geek_qrcode2)();
  15. }
  16. const _easycom_uni_section = () => "../../../components/uni-section/uni-section.js";
  17. const _easycom_geek_statistic = () => "../../../components/geek-xd/components/geek-statistic/geek-statistic.js";
  18. const _easycom_u_col = () => "../../../node-modules/uview-plus/components/u-col/u-col.js";
  19. const _easycom_u_row = () => "../../../node-modules/uview-plus/components/u-row/u-row.js";
  20. const _easycom_geek_menu = () => "../../../components/geek-xd/components/geek-menu/geek-menu.js";
  21. const _easycom_geek_commodity = () => "../../../components/geek-xd/components/geek-commodity/geek-commodity.js";
  22. const _easycom_geek_order = () => "../../../components/geek-xd/components/geek-order/geek-order.js";
  23. const _easycom_geek_color_picker = () => "../../../components/geek-xd/components/geek-color-picker/geek-color-picker.js";
  24. const _easycom_geek_qrcode = () => "../../../components/geek-xd/components/geek-qrcode/geek-qrcode.js";
  25. if (!Math) {
  26. (_easycom_uni_section + _easycom_geek_statistic + _easycom_u_col + _easycom_u_row + _easycom_geek_menu + _easycom_geek_commodity + _easycom_geek_order + _easycom_geek_color_picker + _easycom_geek_qrcode)();
  27. }
  28. const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
  29. __name: "index",
  30. setup(__props) {
  31. const gk = common_vendor.ref(null);
  32. function open() {
  33. gk.value.open();
  34. }
  35. const menus = common_vendor.reactive([
  36. { icon: "/static/images/icon/rocket.png", label: "抢单" },
  37. { icon: "/static/images/icon/phone.png", label: "回访" },
  38. { icon: "/static/images/icon/message.png", label: "消息" },
  39. { icon: "/static/images/icon/dialogue.png", label: "公告" },
  40. { icon: "/static/images/icon/knowledge.png", label: "知识库" }
  41. ]);
  42. const commodityList = common_vendor.reactive([
  43. {
  44. img: "/static/images/banner/banner01.jpg",
  45. title: "商品1",
  46. subTitle: "商品1简介",
  47. price: 100
  48. },
  49. {
  50. img: "/static/images/banner/banner02.jpg",
  51. title: "商品2",
  52. subTitle: "商品2简介",
  53. price: 300
  54. },
  55. {
  56. img: "/static/images/banner/banner03.jpg",
  57. title: "商品3",
  58. subTitle: "商品3简介",
  59. price: 200
  60. }
  61. ]);
  62. const orderList = [
  63. {
  64. shop: "geek自营旗舰店",
  65. status: "完成",
  66. img: "/static/images/banner/banner01.jpg",
  67. title: "商品1",
  68. subTitle: "商品1简介",
  69. price: 100.32,
  70. num: 10
  71. },
  72. {
  73. shop: "geek自营旗舰店",
  74. status: "已取消",
  75. img: "/static/images/banner/banner03.jpg",
  76. title: "商商商商商商商商商商商商商商商商商商商商商商商商商商商商商商商商商商品3",
  77. subTitle: "商品3简介",
  78. price: 2000.67,
  79. num: 10
  80. },
  81. {
  82. shop: "geek自营旗舰店",
  83. status: "已取消",
  84. img: "/static/images/banner/banner03.jpg",
  85. title: "商商商商商商商商商商商商商商商商商商商商商商商商商商商商商商商商商商品3",
  86. subTitle: "商品3简介",
  87. price: 10.67,
  88. num: 10
  89. }
  90. ];
  91. return (_ctx, _cache) => {
  92. return {
  93. a: common_vendor.p({
  94. title: "数值板",
  95. ["sub-title"]: "statistic",
  96. type: "line"
  97. }),
  98. b: common_vendor.p({
  99. label: "订单数量(个)",
  100. labelColor: "#1f1f1f",
  101. number: 0,
  102. numberColor: "red"
  103. }),
  104. c: common_vendor.p({
  105. span: "6"
  106. }),
  107. d: common_vendor.p({
  108. label: "交易金额(元)",
  109. labelColor: "#1f1f1f",
  110. number: 0,
  111. numberColor: "red"
  112. }),
  113. e: common_vendor.p({
  114. span: "6"
  115. }),
  116. f: common_vendor.p({
  117. gutter: "0"
  118. }),
  119. g: common_vendor.p({
  120. title: "菜单",
  121. ["sub-title"]: "menu",
  122. type: "line"
  123. }),
  124. h: common_vendor.f(menus, (menu, index, i0) => {
  125. return {
  126. a: common_vendor.o(($event) => common_vendor.unref(plugins_modal.modal).msg(menu.label), index),
  127. b: "7f2da3f4-9-" + i0 + "," + ("7f2da3f4-8-" + i0),
  128. c: common_vendor.p({
  129. ...menu,
  130. size: 60,
  131. type: "circle"
  132. }),
  133. d: index,
  134. e: "7f2da3f4-8-" + i0 + ",7f2da3f4-7"
  135. };
  136. }),
  137. i: common_vendor.p({
  138. span: 2.1,
  139. offset: 0.3
  140. }),
  141. j: common_vendor.f(menus, (menu, index, i0) => {
  142. return {
  143. a: common_vendor.o(($event) => common_vendor.unref(plugins_modal.modal).msg(menu.label), index),
  144. b: "7f2da3f4-12-" + i0 + "," + ("7f2da3f4-11-" + i0),
  145. c: common_vendor.p({
  146. icon: menu.icon,
  147. label: menu.label,
  148. size: 60,
  149. type: "rect"
  150. }),
  151. d: index,
  152. e: "7f2da3f4-11-" + i0 + ",7f2da3f4-10"
  153. };
  154. }),
  155. k: common_vendor.p({
  156. span: 2.1,
  157. offset: 0.3
  158. }),
  159. l: common_vendor.p({
  160. title: "商品列表",
  161. ["sub-title"]: "commodity",
  162. type: "line"
  163. }),
  164. m: common_vendor.f(commodityList, (item, index, i0) => {
  165. return {
  166. a: index,
  167. b: common_vendor.o(($event) => common_vendor.unref(plugins_modal.modal).msg(item.title), index),
  168. c: "7f2da3f4-14-" + i0,
  169. d: common_vendor.p({
  170. ...item,
  171. type: "line"
  172. })
  173. };
  174. }),
  175. n: common_vendor.f(commodityList, (item, index, i0) => {
  176. return {
  177. a: index,
  178. b: common_vendor.o(($event) => common_vendor.unref(plugins_modal.modal).msg(item.title), index),
  179. c: "7f2da3f4-15-" + i0,
  180. d: common_vendor.p({
  181. ...item,
  182. type: "rect"
  183. })
  184. };
  185. }),
  186. o: common_vendor.p({
  187. title: "订单列表",
  188. ["sub-title"]: "order",
  189. type: "line"
  190. }),
  191. p: common_vendor.f(orderList, (item, index, i0) => {
  192. return {
  193. a: index,
  194. b: common_vendor.o(($event) => common_vendor.unref(plugins_modal.modal).msg("更多"), index),
  195. c: common_vendor.o(($event) => common_vendor.unref(plugins_modal.modal).msg("再次购买"), index),
  196. d: common_vendor.o(($event) => common_vendor.unref(plugins_modal.modal).msg("退换"), index),
  197. e: common_vendor.o(($event) => common_vendor.unref(plugins_modal.modal).msg("卖了换钱"), index),
  198. f: "7f2da3f4-17-" + i0,
  199. g: common_vendor.p({
  200. ...item
  201. })
  202. };
  203. }),
  204. q: common_vendor.p({
  205. title: "颜色选择器",
  206. ["sub-title"]: "order",
  207. type: "line"
  208. }),
  209. r: common_vendor.sr(gk, "7f2da3f4-19", {
  210. "k": "gk"
  211. }),
  212. s: common_vendor.o(($event) => open()),
  213. t: common_vendor.p({
  214. title: "二维码",
  215. ["sub-title"]: "order",
  216. type: "line"
  217. }),
  218. v: common_vendor.sr("qrcode2", "7f2da3f4-21"),
  219. w: common_vendor.p({
  220. cid: "qrcode2",
  221. val: "二维码",
  222. loadMake: true
  223. })
  224. };
  225. };
  226. }
  227. });
  228. const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__file", "C:/Users/Administrator/Desktop/srcaaa/pages_geek/pages/index/index.vue"]]);
  229. wx.createPage(MiniProgramPage);