hookehuyr

refactor: 移除未使用的NutEllipsis组件并清理sell页面代码

清理未使用的NutEllipsis组件声明
注释掉sell页面中未使用的顶部导航配置
简化导航标题设置逻辑
...@@ -17,7 +17,6 @@ declare module 'vue' { ...@@ -17,7 +17,6 @@ declare module 'vue' {
17 NutConfigProvider: typeof import('@nutui/nutui-taro')['ConfigProvider'] 17 NutConfigProvider: typeof import('@nutui/nutui-taro')['ConfigProvider']
18 NutDatePicker: typeof import('@nutui/nutui-taro')['DatePicker'] 18 NutDatePicker: typeof import('@nutui/nutui-taro')['DatePicker']
19 NutDialog: typeof import('@nutui/nutui-taro')['Dialog'] 19 NutDialog: typeof import('@nutui/nutui-taro')['Dialog']
20 - NutEllipsis: typeof import('@nutui/nutui-taro')['Ellipsis']
21 NutForm: typeof import('@nutui/nutui-taro')['Form'] 20 NutForm: typeof import('@nutui/nutui-taro')['Form']
22 NutFormItem: typeof import('@nutui/nutui-taro')['FormItem'] 21 NutFormItem: typeof import('@nutui/nutui-taro')['FormItem']
23 NutImagePreview: typeof import('@nutui/nutui-taro')['ImagePreview'] 22 NutImagePreview: typeof import('@nutui/nutui-taro')['ImagePreview']
......
1 <template> 1 <template>
2 <view class="sell-page"> 2 <view class="sell-page">
3 <!-- 顶部导航 --> 3 <!-- 顶部导航 -->
4 - <nut-config-provider :theme-vars="themeVars"> 4 + <!-- <nut-config-provider :theme-vars="themeVars">
5 <nut-sticky top="0"> 5 <nut-sticky top="0">
6 <nut-navbar v-if="!isAuthMode && !isMyCarMode" left-show @on-click-back="goBack"> 6 <nut-navbar v-if="!isAuthMode && !isMyCarMode" left-show @on-click-back="goBack">
7 <template #content> 7 <template #content>
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
14 </template> 14 </template>
15 </nut-navbar> 15 </nut-navbar>
16 </nut-sticky> 16 </nut-sticky>
17 - </nut-config-provider> 17 + </nut-config-provider> -->
18 18
19 <!-- 表单内容 --> 19 <!-- 表单内容 -->
20 <view class="form-container"> 20 <view class="form-container">
...@@ -1048,15 +1048,19 @@ onMounted(async () => { ...@@ -1048,15 +1048,19 @@ onMounted(async () => {
1048 // wx.setNavigationBarTitle({ 1048 // wx.setNavigationBarTitle({
1049 // title: isEditMode.value ? '编辑车源' : '发布车源' 1049 // title: isEditMode.value ? '编辑车源' : '发布车源'
1050 // }); 1050 // });
1051 - if (isAuthMode.value) { 1051 + // if (isAuthMode.value) {
1052 - wx.setNavigationBarTitle({ 1052 + // wx.setNavigationBarTitle({
1053 - title: '发布车源' 1053 + // title: '发布车源'
1054 - }); 1054 + // });
1055 - } 1055 + // }
1056 if (isMyCarMode.value) { 1056 if (isMyCarMode.value) {
1057 wx.setNavigationBarTitle({ 1057 wx.setNavigationBarTitle({
1058 title: '编辑车源' 1058 title: '编辑车源'
1059 }); 1059 });
1060 + } else {
1061 + wx.setNavigationBarTitle({
1062 + title: '发布车源'
1063 + });
1060 } 1064 }
1061 }) 1065 })
1062 </script> 1066 </script>
......