Browse Source

fix(merchant): 移除个人中心相关页面和功能

EvilDragon 5 months ago
parent
commit
a849f02c85

+ 0 - 23
packages/merchant/src/pages.json

@@ -151,35 +151,12 @@
       }
     },
     {
-      "path": "pages/mine/authentication/index",
-      "type": "page",
-      "style": {
-        "navigationBarTitleText": "设计师认证",
-        "navigationStyle": "custom"
-      }
-    },
-    {
-      "path": "pages/mine/homepage/index",
-      "type": "page",
-      "layout": "back",
-      "style": {
-        "navigationStyle": "custom"
-      }
-    },
-    {
       "path": "pages/home/tasks/detail/index",
       "type": "page",
       "style": {
         "navigationBarTitleText": "任务详情",
         "navigationBarBackgroundColor": "#fff"
       }
-    },
-    {
-      "path": "pages/mine/authentication/submit/success/index",
-      "type": "page",
-      "style": {
-        "navigationBarTitleText": "提交成功"
-      }
     }
   ],
   "subPackages": []

+ 0 - 1
packages/merchant/src/pages/designer/detail.vue

@@ -7,7 +7,6 @@ style:
 <script setup lang="ts">
 import {
   desinTopBg,
-  merchantPageHeaderBg,
   rightArrowIcon,
   vipIcon,
   locationIcon,

+ 0 - 3
packages/merchant/src/pages/designer/index.vue

@@ -6,9 +6,6 @@ style:
 
 <script setup lang="ts">
 import Card from '@/components/card.vue'
-import { integral, interact, system } from '@/core/libs/svgs'
-import { beforeNow } from '@/utils/date-util'
-import dayjs from 'dayjs'
 import { vipIcon, rightArrowIcon } from '@designer-hub/assets/src/svgs'
 const searchText = ref('')
 const msgs = ref([

+ 0 - 113
packages/merchant/src/pages/mine/authentication/index.vue

@@ -1,113 +0,0 @@
-<route lang="yaml">
-style:
-  navigationBarTitleText: 设计师认证
-  navigationStyle: custom
-</route>
-<script lang="ts" setup>
-import Card from '@/components/card.vue'
-import DataForm from '@/components/data-form.vue'
-import SectionHeading from '@/components/section-heading.vue'
-import StartMenuButton from '@/components/start-menu-button.vue'
-import { createUserAuthInfo, getByDictType } from '@/core/libs/requests'
-import { scan } from '@/core/libs/svgs'
-import { useUserStore } from '@/store'
-import { storeToRefs } from 'pinia'
-import { useMessage, useToast } from 'wot-design-uni'
-
-const userStore = useUserStore()
-const { userInfo } = storeToRefs(userStore)
-const { alert } = useMessage()
-const { error } = useToast()
-const formData = ref({})
-const schema = ref({
-  channelSource: {
-    type: 'Select',
-    label: '来源',
-    props: {
-      labelWidth: '126rpx',
-      placeholder: '请选择通过哪个渠道入驻的筑巢荟',
-      columns: [],
-    },
-  },
-  referrer: {
-    type: 'TextField',
-    label: '推荐人',
-    props: {
-      labelWidth: '126rpx',
-      placeholder: '请如实填写推荐人编号,设计师会员编号或渠道编号',
-    },
-  },
-  designerName: {
-    type: 'TextField',
-    label: '姓名',
-    props: {
-      labelWidth: '126rpx',
-      placeholder: '请输入真实姓名',
-    },
-  },
-  mobile: {
-    type: 'TextField',
-    label: '电话',
-    props: {
-      labelWidth: '126rpx',
-      placeholder: '请输入电话号码',
-    },
-  },
-  employer: {
-    type: 'TextField',
-    label: '公司',
-    props: {
-      labelWidth: '126rpx',
-      placeholder: '请输入所在公司或自己公司名称',
-    },
-  },
-  spatialExpertiseType: {
-    type: 'TextField',
-    label: '擅长空间类型',
-    props: {
-      placeholder: ' ',
-    },
-  },
-})
-const handleSubmit = async () => {
-  const { code, msg } = await createUserAuthInfo({
-    gender: userInfo.value.sex,
-    attachment: 'https://via.placeholder.com/319x204',
-    userId: userInfo.value.userId,
-    ...formData.value,
-  })
-  if (code === 0) {
-    uni.navigateTo({ url: '/pages/mine/authentication/submit/success/index' })
-  } else {
-    error(msg)
-  }
-}
-onMounted(async () => {
-  const { data } = await getByDictType('member_channel_source')
-  console.log()
-  schema.value.channelSource.props.columns = data
-  alert({ title: '提示', msg: '您的认证申请已提交,请耐心等待审核,审核通过后您将获得通知' })
-})
-</script>
-<template>
-  <div class="flex-grow flex flex-col p-3.5 gap-3.5">
-    <StartMenuButton>
-      1
-      <!-- <wd-button type="icon">
-        <wd-img wdith="25" height="25" :src="scan"></wd-img>
-      </wd-button> -->
-    </StartMenuButton>
-    <Card>
-      <SectionHeading size="base" title="基本信息"></SectionHeading>
-      <DataForm v-model="formData" :schema="schema" direction="horizontal"></DataForm>
-    </Card>
-    <Card>
-      <SectionHeading size="base" title="上传附件"></SectionHeading>
-      <wd-upload></wd-upload>
-    </Card>
-    <div class="flex-1"></div>
-    <div>
-      <wd-button block :round="false" @click="handleSubmit">提交</wd-button>
-    </div>
-  </div>
-</template>

+ 0 - 22
packages/merchant/src/pages/mine/authentication/submit/success/index.vue

@@ -1,22 +0,0 @@
-<route lang="yaml">
-style:
-  navigationBarTitleText: 提交成功
-</route>
-<script setup lang="ts">
-import { success } from '@/core/libs/svgs'
-</script>
-<template>
-  <div class="flex-grow flex flex-col justify-center items-center">
-    <wd-img width="60" height="60" :src="success" custom-class="mb-4.5"></wd-img>
-    <div class="mb-10 text-black/90 text-xl font-normal font-['PingFang SC'] leading-none">
-      提交成功
-    </div>
-    <div
-      class="text-center text-black/40 text-base font-normal font-['PingFang SC'] leading-relaxed"
-    >
-      我们会有专属客户与您联系
-      <br />
-      请您注意接听电话
-    </div>
-  </div>
-</template>

+ 0 - 108
packages/merchant/src/pages/mine/homepage/index.vue

@@ -1,108 +0,0 @@
-<route lang="yaml">
-layout: back
-style:
-  navigationStyle: custom
-</route>
-<script setup lang="ts">
-import MomentItem from '@/components/moment-item.vue'
-import { getByDictType, getCircles } from '../../../core/libs/requests'
-import { useUserStore } from '../../../store'
-import { storeToRefs } from 'pinia'
-
-const userStore = useUserStore()
-const { userInfo } = storeToRefs(userStore)
-const tab = ref('2')
-const { data: circleTypes, run: getCircleType } = useRequest(() =>
-  getByDictType('member_circle_type'),
-)
-const circlesData = ref({ list: [] })
-// const { data: circlesData, run } = useRequest(
-//   () =>
-//     getCircles({
-//       circleType: tab.value,
-//       // stylistName: userInfo.value.nickname,
-//       stylistId: userInfo.value.userId,
-//     }),
-//   { initialData: { list: [] } },
-// )
-const setCirclesData = async (circleType) => {
-  const { data } = await getCircles({
-    circleType,
-    stylistId: userInfo.value.userId,
-  })
-  circlesData.value = data
-}
-const tabs = ref([
-  { label: '案例', value: '2' },
-  { label: '动态', value: '1' },
-  { label: '视频', value: '0' },
-])
-const handleTabsChange = async ({ name }: any) => {
-  if (['1', '2'].includes(name)) {
-    await setCirclesData(name)
-  }
-}
-onMounted(async () => {
-  // await getCircleType()
-  await setCirclesData(tab.value)
-  console.log(circleTypes.value)
-
-  // await run()
-})
-defineExpose({
-  navBarFixed: false,
-})
-</script>
-<template>
-  <div class="">
-    <div class="relative">
-      <wd-img
-        width="100%"
-        :src="'https://via.placeholder.com/375x329'"
-        mode="widthFix"
-        custom-class="aspect-[1.14/1]"
-      />
-      <div class="absolute bottom-0 left-0 right-0">
-        <div class="h-[107px] bg-gradient-to-t from-black to-transparent">
-          <div class="flex">
-            <div
-              class="w-18 h-18 border-white border border-solid mx-3.5 rounded-full overflow-hidden"
-            >
-              <wd-img width="100%" height="100%" :src="userInfo?.avatar"></wd-img>
-            </div>
-            <div>
-              <div class="text-white text-2xl font-normal font-['PingFang SC'] leading-normal">
-                {{ userInfo?.nickname }}
-              </div>
-              <div>
-                <div
-                  class="h-6 px-2 bg-black/10 rounded-[30px] border border-white/60 justify-center items-center gap-2.5 inline-flex"
-                >
-                  <div
-                    class="text-center text-white text-[10px] font-normal font-['PingFang SC'] leading-normal"
-                  >
-                    创设空间事务所创始人
-                  </div>
-                </div>
-              </div>
-            </div>
-          </div>
-        </div>
-      </div>
-    </div>
-    <div class="bg-white rounded-t-2xl relative bottom-4">
-      <wd-tabs v-model="tab" @change="handleTabsChange">
-        <template v-for="({ label, value }, index) in tabs" :key="index">
-          <wd-tab :title="label" :name="value"></wd-tab>
-        </template>
-      </wd-tabs>
-      <div class="p-3.5 flex flex-col bg-[#f6f6f6] gap-3.5">
-        <template v-for="it of circlesData.list" :key="it.id">
-          <view class="">
-            <MomentItem :options="it"></MomentItem>
-          </view>
-        </template>
-      </div>
-    </div>
-  </div>
-</template>

+ 1 - 39
packages/merchant/src/pages/mine/index.vue

@@ -4,9 +4,7 @@
 
 <script setup lang="ts">
 import { onMounted, ref } from 'vue'
-import { designer, settled, treaty } from '../../core/libs/pngs'
-import { integral, coupon, order, agent, setting, scan } from '../../core/libs/svgs'
-import { getMemberUserInfo, getTasks } from '../../core/libs/requests'
+import { getMemberUserInfo } from '../../core/libs/requests'
 import { useUserStore } from '../../store'
 import { storeToRefs } from 'pinia'
 import { isEmpty } from 'radash'
@@ -18,42 +16,6 @@ const userStore = useUserStore()
 const { isLogined, userInfo } = storeToRefs(userStore)
 const { setUserInfo } = userStore
 const { data, run } = useRequest(getMemberUserInfo)
-const { data: taskData, run: getTaskData } = useRequest(() => getTasks({}), {
-  initialData: { list: [] },
-})
-const menus = ref([
-  { title: '积分明细', icon: integral },
-  { title: '优惠券包', icon: coupon },
-  { title: '我的订单', icon: order },
-  { title: '专属客服', icon: agent },
-  { title: '个人设置', icon: setting },
-])
-const pieces = ref([
-  {
-    title: '设计师成长计划',
-    desc: '赋能设计共同成长',
-    icon: designer,
-    class: 'items-start! pb-0 pr-0',
-    iconSize: 102,
-    gridItemClass: 'col-start-1 row-start-1 row-end-3',
-  },
-  {
-    title: '材料商入驻',
-    desc: '提供优质材料商',
-    icon: settled,
-    class: 'flex-row! pb-0 pr-0',
-    iconSize: 68,
-    gridItemClass: 'col-start-2 row-start-1',
-  },
-  {
-    title: '筑巢荟公约',
-    desc: '共同遵守平台公约',
-    icon: treaty,
-    class: 'col-start-2 row-start-2 flex-row! pb-0',
-    iconSize: 44,
-    gridItemClass: 'col-start-2 row-start-2',
-  },
-])
 const avatar = computed(() =>
   !isEmpty(userInfo.value.avatar) ? userInfo.value.avatar : 'https://via.placeholder.com/72x72',
 )

+ 0 - 1
packages/merchant/src/pages/scan_code/order_detail.vue

@@ -4,7 +4,6 @@ sstyle:
   navigationBarBackgroundColor: '#fff'
 </route>
 <script lang="ts" setup>
-import { desinTopBg } from '@designer-hub/assets/src/svgs'
 const collapseValue = ref<string[]>(['item1'])
 </script>
 

+ 1 - 3
packages/merchant/src/pages/scan_code/settlement.vue

@@ -4,9 +4,7 @@ style:
   navigationBarTitleText: 积分结账
   navigationBarBackgroundColor: '#fff'
 </route>
-<script lang="ts" setup>
-import { bookIcon, scanIcon } from '@designer-hub/assets/src/svgs'
-</script>
+<script lang="ts" setup></script>
 
 <template>
   <view>

+ 1 - 4
packages/merchant/src/types/uni-pages.d.ts

@@ -16,10 +16,7 @@ interface NavigateToOptions {
        "/pages/scan_code/order_detail" |
        "/pages/scan_code/settlement" |
        "/pages/home/tasks/index" |
-       "/pages/mine/authentication/index" |
-       "/pages/mine/homepage/index" |
-       "/pages/home/tasks/detail/index" |
-       "/pages/mine/authentication/submit/success/index";
+       "/pages/home/tasks/detail/index";
 }
 interface RedirectToOptions extends NavigateToOptions {}