123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127 |
- "use strict";
- const common_vendor = require("../common/vendor.js");
- require("../utils/storage.js");
- const store_index = require("../store/index.js");
- require("../utils/constant.js");
- require("../store/modules/user.js");
- require("../config.js");
- require("../api/login.js");
- require("../utils/request.js");
- require("../utils/auth.js");
- require("../utils/errorCode.js");
- require("../utils/common.js");
- require("../store/getters.js");
- if (!Array) {
- 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");
- (_easycom_up_grid_item2 + _easycom_up_grid2 + _easycom_up_toast2)();
- }
- 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";
- if (!Math) {
- (_easycom_up_grid_item + _easycom_up_grid + _easycom_up_toast)();
- }
- const _sfc_main = {
- __name: "mine",
- setup(__props) {
- const name = store_index.store.state.user.name;
- const avatar = common_vendor.ref(store_index.store.state.user.avatar);
- const windowHeight = common_vendor.ref(common_vendor.index.getSystemInfoSync().windowHeight - 50);
- common_vendor.ref(null);
- const imagePath = "/static/设置.png";
- common_vendor.index.$on("refresh", () => {
- avatar.value = store_index.store.state.user.avatar;
- });
- const serviceList = common_vendor.ref([
- {
- icon: "/static/my/待付款.png",
- name: "待付款"
- },
- {
- icon: "/static/my/待服务.png",
- name: "待服务"
- },
- {
- icon: "/static/my/已完成.png",
- name: "已完成"
- },
- {
- icon: "/static/my/评论.png",
- name: "评论"
- },
- {
- icon: "/static/my/钱包.png",
- name: "钱包"
- },
- {
- icon: "/static/my/浏览记录.png",
- name: "浏览记录"
- },
- {
- icon: "/static/my/收藏.png",
- name: "收藏"
- },
- {
- icon: "/static/my/客服.png",
- name: "帮助与客服"
- }
- ]);
- function handleToInfo() {
- common_vendor.index.navigateTo({
- url: "/pages_mine/pages/info/index"
- });
- }
- function handleToAvatar() {
- common_vendor.index.navigateTo({
- url: "/pages_mine/pages/avatar/index"
- });
- }
- return (_ctx, _cache) => {
- return common_vendor.e({
- a: !avatar.value
- }, !avatar.value ? {} : {}, {
- b: avatar.value
- }, avatar.value ? {
- c: common_vendor.o(handleToAvatar),
- d: avatar.value
- } : {}, {
- e: !common_vendor.unref(name)
- }, !common_vendor.unref(name) ? {
- f: common_vendor.o((...args) => _ctx.handleToLogin && _ctx.handleToLogin(...args))
- } : {}, {
- g: common_vendor.unref(name)
- }, common_vendor.unref(name) ? {
- h: common_vendor.t(common_vendor.unref(name)),
- i: common_vendor.o(handleToInfo)
- } : {}, {
- j: imagePath,
- k: common_vendor.o(handleToInfo),
- l: common_vendor.f(serviceList.value, (item, index, i0) => {
- return {
- a: item.icon,
- b: common_vendor.t(item.name),
- c: index,
- d: "645199aa-1-" + i0 + ",645199aa-0"
- };
- }),
- m: common_vendor.p({
- ["custom-style"]: {
- padding: "20rpx"
- }
- }),
- n: common_vendor.o(_ctx.handleGridClick),
- o: common_vendor.p({
- border: false,
- col: "4"
- }),
- p: common_vendor.sr("uToastRef", "645199aa-2"),
- q: `${windowHeight.value}px`
- });
- };
- }
- };
- const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__file", "C:/Users/Administrator/Desktop/srcaaa/pages/mine.vue"]]);
- wx.createPage(MiniProgramPage);
|