123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200 |
- "use strict";
- const common_vendor = require("../common/vendor.js");
- if (!Array) {
- const _easycom_up_input2 = common_vendor.resolveComponent("up-input");
- const _component_vie = common_vendor.resolveComponent("vie");
- const _easycom_up_swiper2 = common_vendor.resolveComponent("up-swiper");
- const _easycom_up_grid_item2 = common_vendor.resolveComponent("up-grid-item");
- const _easycom_up_grid2 = common_vendor.resolveComponent("up-grid");
- const _easycom_up_toast2 = common_vendor.resolveComponent("up-toast");
- const _easycom_up_button2 = common_vendor.resolveComponent("up-button");
- (_easycom_up_input2 + _component_vie + _easycom_up_swiper2 + _easycom_up_grid_item2 + _easycom_up_grid2 + _easycom_up_toast2 + _easycom_up_button2)();
- }
- const _easycom_up_input = () => "../node-modules/uview-plus/components/u-input/u-input.js";
- const _easycom_up_swiper = () => "../node-modules/uview-plus/components/u-swiper/u-swiper.js";
- const _easycom_up_grid_item = () => "../node-modules/uview-plus/components/u-grid-item/u-grid-item.js";
- const _easycom_up_grid = () => "../node-modules/uview-plus/components/u-grid/u-grid.js";
- const _easycom_up_toast = () => "../node-modules/uview-plus/components/u-toast/u-toast.js";
- const _easycom_up_button = () => "../node-modules/uview-plus/components/u-button/u-button.js";
- if (!Math) {
- (_easycom_up_input + _easycom_up_swiper + _easycom_up_grid_item + _easycom_up_grid + _easycom_up_toast + _easycom_up_button)();
- }
- const _sfc_main = {
- __name: "index",
- setup(__props) {
- const value = common_vendor.ref("");
- const uToastRef = common_vendor.ref(null);
- const list3 = common_vendor.ref([
- "/static/img/68c51cda626f732e5a6a782e245ac255.jpeg",
- "/static/img/78f89f319f760ba84a5b86916612a99d.jpeg",
- "/static/img/e88c34398a054556e59659f4b7b83e8e.jpeg"
- ]);
- const serviceList = common_vendor.ref([
- {
- icon: "/static/img/统一知识平台-营运@1x.png",
- name: "家庭辅导"
- },
- {
- icon: "/static/img/编组.png",
- name: "陪伴陪聊"
- },
- {
- icon: "/static/img/清空.png",
- name: "家庭助理"
- },
- {
- icon: "/static/img/报事报修@6x.png",
- name: "家庭助手"
- },
- {
- icon: "/static/img/报事报修@6x.png",
- name: "家庭清洁"
- },
- {
- icon: "/static/img/构建.png",
- name: "健康管理"
- }
- ]);
- const handleGridClick = (index) => {
- if (uToastRef.value) {
- uToastRef.value.success(`点击了:${serviceList.value[index].name}`);
- }
- };
- const list = common_vendor.ref([
- {
- name: "王五",
- category: "保洁",
- title: "北国风光,千里冰封,万里雪飘北国风光,千里冰封,万里雪飘北国风光,千里冰封,万里雪飘",
- score: "4.5",
- image: "/static/img/e88c34398a054556e59659f4b7b83e8e.jpeg"
- },
- {
- name: "赵四",
- category: "医疗",
- title: "望长城内外,惟余莽莽北国风光,千里冰封,万里雪飘、望长城内外,惟余莽莽北国风光,千里冰封,万里雪飘",
- score: "1.1",
- image: "http://pic.sc.chinaz.com/Files/pic/pic9/202002/zzpic23325_s.jpg",
- img: "http://pic.sc.chinaz.com/Files/pic/pic9/202002/zzpic23327_s.jpg"
- },
- {
- name: "王五",
- category: "保洁",
- title: "北国风光,千里冰封,万里雪飘北国风光,千里冰封,万里雪飘北国风光,千里冰封,万里雪飘",
- score: "4.5",
- image: "/static/img/e88c34398a054556e59659f4b7b83e8e.jpeg"
- },
- {
- name: "赵四",
- category: "医疗",
- title: "望长城内外,惟余莽莽北国风光,千里冰封,万里雪飘、望长城内外,惟余莽莽北国风光,千里冰封,万里雪飘",
- score: "1.1",
- image: "http://pic.sc.chinaz.com/Files/pic/pic9/202002/zzpic23325_s.jpg",
- img: "http://pic.sc.chinaz.com/Files/pic/pic9/202002/zzpic23327_s.jpg"
- },
- {
- name: "王五",
- category: "保洁",
- title: "北国风光,千里冰封,万里雪飘北国风光,千里冰封,万里雪飘北国风光,千里冰封,万里雪飘",
- score: "4.5",
- image: "/static/img/e88c34398a054556e59659f4b7b83e8e.jpeg"
- },
- {
- name: "赵四",
- category: "医疗",
- title: "望长城内外,惟余莽莽北国风光,千里冰封,万里雪飘、望长城内外,惟余莽莽北国风光,千里冰封,万里雪飘",
- score: "1.1",
- image: "http://pic.sc.chinaz.com/Files/pic/pic9/202002/zzpic23325_s.jpg",
- img: "http://pic.sc.chinaz.com/Files/pic/pic9/202002/zzpic23327_s.jpg"
- },
- {
- name: "王五",
- category: "保洁",
- title: "北国风光,千里冰封,万里雪飘北国风光,千里冰封,万里雪飘北国风光,千里冰封,万里雪飘",
- score: "4.5",
- image: "/static/img/e88c34398a054556e59659f4b7b83e8e.jpeg"
- },
- {
- name: "赵四",
- category: "医疗",
- title: "望长城内外,惟余莽莽北国风光,千里冰封,万里雪飘、望长城内外,惟余莽莽北国风光,千里冰封,万里雪飘",
- score: "1.1",
- image: "http://pic.sc.chinaz.com/Files/pic/pic9/202002/zzpic23325_s.jpg",
- img: "http://pic.sc.chinaz.com/Files/pic/pic9/202002/zzpic23327_s.jpg"
- }
- ]);
- const inputStyle = {
- //input輸入框樣式設置
- borderRadius: "140rpx",
- border: "1rpx solid #ccc",
- height: "70rpx",
- paddingLeft: "30rpx",
- width: "600rpx"
- };
- const goToDetail = () => {
- console.log(111, "跳轉成功");
- common_vendor.index.navigateTo({
- url: "/pages/search/index"
- // 可以帶參數
- });
- };
- return (_ctx, _cache) => {
- return {
- a: common_vendor.o(goToDetail),
- b: common_vendor.o(($event) => value.value = $event),
- c: common_vendor.p({
- placeholder: "请输入内容",
- prefixIcon: "search",
- customStyle: inputStyle,
- modelValue: value.value
- }),
- d: common_vendor.p({
- list: list3.value,
- indicator: true,
- indicatorMode: "line",
- circular: true
- }),
- e: common_vendor.f(serviceList.value, (item, index, i0) => {
- return {
- a: item.icon,
- b: common_vendor.t(item.name),
- c: index,
- d: "02281a80-4-" + i0 + ",02281a80-3"
- };
- }),
- f: common_vendor.p({
- ["custom-style"]: {
- padding: "20rpx"
- }
- }),
- g: common_vendor.o(handleGridClick),
- h: common_vendor.p({
- border: false,
- col: "4"
- }),
- i: common_vendor.sr(uToastRef, "02281a80-5", {
- "k": "uToastRef"
- }),
- j: common_vendor.f(list.value, (item, index, i0) => {
- return {
- a: item.image,
- b: common_vendor.t(item.name),
- c: common_vendor.t(item.category),
- d: common_vendor.t(item.title),
- e: common_vendor.t(item.score),
- f: "02281a80-6-" + i0,
- g: index
- };
- }),
- k: common_vendor.p({
- type: "error",
- text: "购买",
- size: "mini",
- ["custom-style"]: "\r\n width: 120rpx;\r\n height: 50rpx;\r\n font-size: 24rpx;\r\n border-radius: 25rpx;\r\n margin-left: 40rpx;\r\n "
- })
- };
- };
- }
- };
- const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-02281a80"], ["__file", "C:/Users/Administrator/Desktop/srcaaa/pages/index.vue"]]);
- wx.createPage(MiniProgramPage);
|