Showing
10 changed files
with
190 additions
and
95 deletions
| ... | @@ -12,11 +12,10 @@ declare module '@vue/runtime-core' { | ... | @@ -12,11 +12,10 @@ declare module '@vue/runtime-core' { |
| 12 | CalendarSelect: typeof import('./src/components/calendarSelect.vue')['default'] | 12 | CalendarSelect: typeof import('./src/components/calendarSelect.vue')['default'] |
| 13 | Counter: typeof import('./src/components/Counter.vue')['default'] | 13 | Counter: typeof import('./src/components/Counter.vue')['default'] |
| 14 | NavBar: typeof import('./src/components/navBar.vue')['default'] | 14 | NavBar: typeof import('./src/components/navBar.vue')['default'] |
| 15 | + NutAvatar: typeof import('@nutui/nutui-taro')['Avatar'] | ||
| 15 | NutCalendar: typeof import('@nutui/nutui-taro')['Calendar'] | 16 | NutCalendar: typeof import('@nutui/nutui-taro')['Calendar'] |
| 16 | NutCol: typeof import('@nutui/nutui-taro')['Col'] | 17 | NutCol: typeof import('@nutui/nutui-taro')['Col'] |
| 17 | NutConfigProvider: typeof import('@nutui/nutui-taro')['ConfigProvider'] | 18 | NutConfigProvider: typeof import('@nutui/nutui-taro')['ConfigProvider'] |
| 18 | - NutForm: typeof import('@nutui/nutui-taro')['Form'] | ||
| 19 | - NutFormItem: typeof import('@nutui/nutui-taro')['FormItem'] | ||
| 20 | NutInput: typeof import('@nutui/nutui-taro')['Input'] | 19 | NutInput: typeof import('@nutui/nutui-taro')['Input'] |
| 21 | NutInputNumber: typeof import('@nutui/nutui-taro')['InputNumber'] | 20 | NutInputNumber: typeof import('@nutui/nutui-taro')['InputNumber'] |
| 22 | NutNumberKeyboard: typeof import('@nutui/nutui-taro')['NumberKeyboard'] | 21 | NutNumberKeyboard: typeof import('@nutui/nutui-taro')['NumberKeyboard'] |
| ... | @@ -25,8 +24,6 @@ declare module '@vue/runtime-core' { | ... | @@ -25,8 +24,6 @@ declare module '@vue/runtime-core' { |
| 25 | NutRow: typeof import('@nutui/nutui-taro')['Row'] | 24 | NutRow: typeof import('@nutui/nutui-taro')['Row'] |
| 26 | NutSwiper: typeof import('@nutui/nutui-taro')['Swiper'] | 25 | NutSwiper: typeof import('@nutui/nutui-taro')['Swiper'] |
| 27 | NutSwiperItem: typeof import('@nutui/nutui-taro')['SwiperItem'] | 26 | NutSwiperItem: typeof import('@nutui/nutui-taro')['SwiperItem'] |
| 28 | - NutTabbar: typeof import('@nutui/nutui-taro')['Tabbar'] | ||
| 29 | - NutTabbarItem: typeof import('@nutui/nutui-taro')['TabbarItem'] | ||
| 30 | NutTabPane: typeof import('@nutui/nutui-taro')['TabPane'] | 27 | NutTabPane: typeof import('@nutui/nutui-taro')['TabPane'] |
| 31 | NutTabs: typeof import('@nutui/nutui-taro')['Tabs'] | 28 | NutTabs: typeof import('@nutui/nutui-taro')['Tabs'] |
| 32 | NutTextarea: typeof import('@nutui/nutui-taro')['Textarea'] | 29 | NutTextarea: typeof import('@nutui/nutui-taro')['Textarea'] | ... | ... |
| ... | @@ -48,6 +48,9 @@ const config = { | ... | @@ -48,6 +48,9 @@ const config = { |
| 48 | data: `@import "@nutui/nutui-taro/dist/styles/variables.scss";` | 48 | data: `@import "@nutui/nutui-taro/dist/styles/variables.scss";` |
| 49 | }, | 49 | }, |
| 50 | mini: { | 50 | mini: { |
| 51 | + miniCssExtractPluginOption: { | ||
| 52 | + ignoreOrder: true, | ||
| 53 | + }, | ||
| 51 | webpackChain(chain) { | 54 | webpackChain(chain) { |
| 52 | chain.plugin('unplugin-vue-components').use(Components({ | 55 | chain.plugin('unplugin-vue-components').use(Components({ |
| 53 | resolvers: [NutUIResolver({taro: true})] | 56 | resolvers: [NutUIResolver({taro: true})] | ... | ... |
| 1 | { | 1 | { |
| 2 | - "name": "meihuaApp", | 2 | + "name": "meihuaApp", |
| 3 | - "version": "1.0.0", | 3 | + "version": "1.0.0", |
| 4 | - "private": true, | 4 | + "private": true, |
| 5 | - "description": "梅花岛小程序", | 5 | + "description": "梅花岛小程序", |
| 6 | - "templateInfo": { | 6 | + "templateInfo": { |
| 7 | - "name": "vue3-NutUI4", | 7 | + "name": "vue3-NutUI4", |
| 8 | - "typescript": false, | 8 | + "typescript": false, |
| 9 | - "css": "less" | 9 | + "css": "less" |
| 10 | - }, | 10 | + }, |
| 11 | - "scripts": { | 11 | + "scripts": { |
| 12 | - "build:weapp": "taro build --type weapp", | 12 | + "build:weapp": "taro build --type weapp", |
| 13 | - "build:swan": "taro build --type swan", | 13 | + "build:swan": "taro build --type swan", |
| 14 | - "build:alipay": "taro build --type alipay", | 14 | + "build:alipay": "taro build --type alipay", |
| 15 | - "build:tt": "taro build --type tt", | 15 | + "build:tt": "taro build --type tt", |
| 16 | - "build:h5": "taro build --type h5", | 16 | + "build:h5": "taro build --type h5", |
| 17 | - "build:rn": "taro build --type rn", | 17 | + "build:rn": "taro build --type rn", |
| 18 | - "build:qq": "taro build --type qq", | 18 | + "build:qq": "taro build --type qq", |
| 19 | - "build:jd": "taro build --type jd", | 19 | + "build:jd": "taro build --type jd", |
| 20 | - "build:quickapp": "taro build --type quickapp", | 20 | + "build:quickapp": "taro build --type quickapp", |
| 21 | - "dev:weapp": "npm run build:weapp -- --watch", | 21 | + "dev:weapp": "npm run build:weapp -- --watch", |
| 22 | - "dev:swan": "npm run build:swan -- --watch", | 22 | + "dev:swan": "npm run build:swan -- --watch", |
| 23 | - "dev:alipay": "npm run build:alipay -- --watch", | 23 | + "dev:alipay": "npm run build:alipay -- --watch", |
| 24 | - "dev:tt": "npm run build:tt -- --watch", | 24 | + "dev:tt": "npm run build:tt -- --watch", |
| 25 | - "dev:h5": "npm run build:h5 -- --watch", | 25 | + "dev:h5": "npm run build:h5 -- --watch", |
| 26 | - "dev:rn": "npm run build:rn -- --watch", | 26 | + "dev:rn": "npm run build:rn -- --watch", |
| 27 | - "dev:qq": "npm run build:qq -- --watch", | 27 | + "dev:qq": "npm run build:qq -- --watch", |
| 28 | - "dev:jd": "npm run build:jd -- --watch", | 28 | + "dev:jd": "npm run build:jd -- --watch", |
| 29 | - "dev:quickapp": "npm run build:quickapp -- --watch" | 29 | + "dev:quickapp": "npm run build:quickapp -- --watch" |
| 30 | - }, | 30 | + }, |
| 31 | - "browserslist": [ | 31 | + "browserslist": [ |
| 32 | - "last 3 versions", | 32 | + "last 3 versions", |
| 33 | - "Android >= 4.1", | 33 | + "Android >= 4.1", |
| 34 | - "ios >= 8" | 34 | + "ios >= 8" |
| 35 | - ], | 35 | + ], |
| 36 | - "author": "", | 36 | + "author": "", |
| 37 | - "dependencies": { | 37 | + "dependencies": { |
| 38 | - "@babel/runtime": "^7.7.7", | 38 | + "@babel/runtime": "^7.7.7", |
| 39 | - "@nutui/icons-vue-taro": "^0.0.9", | 39 | + "@nutui/icons-vue-taro": "^0.0.9", |
| 40 | - "@nutui/nutui-taro": "^4.0.4", | 40 | + "@nutui/nutui-taro": "^4.0.4", |
| 41 | - "@tarojs/components": "3.6.5", | 41 | + "@tarojs/components": "3.6.20", |
| 42 | - "@tarojs/extend": "^3.6.20", | 42 | + "@tarojs/extend": "3.6.20", |
| 43 | - "@tarojs/helper": "3.6.5", | 43 | + "@tarojs/helper": "3.6.20", |
| 44 | - "@tarojs/plugin-framework-react": "^3.6.20", | 44 | + "@tarojs/plugin-framework-react": "3.6.20", |
| 45 | - "@tarojs/plugin-framework-vue3": "3.6.5", | 45 | + "@tarojs/plugin-framework-vue3": "3.6.20", |
| 46 | - "@tarojs/plugin-html": "3.6.5", | 46 | + "@tarojs/plugin-html": "3.6.20", |
| 47 | - "@tarojs/plugin-platform-alipay": "3.6.5", | 47 | + "@tarojs/plugin-platform-alipay": "3.6.20", |
| 48 | - "@tarojs/plugin-platform-h5": "3.6.5", | 48 | + "@tarojs/plugin-platform-h5": "3.6.20", |
| 49 | - "@tarojs/plugin-platform-jd": "3.6.5", | 49 | + "@tarojs/plugin-platform-jd": "3.6.20", |
| 50 | - "@tarojs/plugin-platform-qq": "3.6.5", | 50 | + "@tarojs/plugin-platform-qq": "3.6.20", |
| 51 | - "@tarojs/plugin-platform-swan": "3.6.5", | 51 | + "@tarojs/plugin-platform-swan": "3.6.20", |
| 52 | - "@tarojs/plugin-platform-tt": "3.6.5", | 52 | + "@tarojs/plugin-platform-tt": "3.6.20", |
| 53 | - "@tarojs/plugin-platform-weapp": "3.6.5", | 53 | + "@tarojs/plugin-platform-weapp": "3.6.20", |
| 54 | - "@tarojs/runtime": "3.6.5", | 54 | + "@tarojs/runtime": "3.6.20", |
| 55 | - "@tarojs/shared": "3.6.5", | 55 | + "@tarojs/shared": "3.6.20", |
| 56 | - "@tarojs/taro": "3.6.5", | 56 | + "@tarojs/taro": "3.6.20", |
| 57 | - "axios-miniprogram": "^2.7.0", | 57 | + "axios-miniprogram": "^2.7.0", |
| 58 | - "pinia": "^2.1.7", | 58 | + "pinia": "^2.1.7", |
| 59 | - "qs": "^6.11.2", | 59 | + "qs": "^6.11.2", |
| 60 | - "taro-plugin-pinia": "^1.0.0", | 60 | + "taro-plugin-pinia": "^1.0.0", |
| 61 | - "vue": "^3.2.40" | 61 | + "vue": "^3.2.40" |
| 62 | - }, | 62 | + }, |
| 63 | - "devDependencies": { | 63 | + "devDependencies": { |
| 64 | - "@babel/core": "^7.8.0", | 64 | + "@babel/core": "^7.8.0", |
| 65 | - "@tarojs/cli": "3.6.5", | 65 | + "@tarojs/cli": "3.6.20", |
| 66 | - "@tarojs/taro-loader": "3.6.5", | 66 | + "@tarojs/taro-loader": "3.6.20", |
| 67 | - "@tarojs/webpack5-runner": "3.6.5", | 67 | + "@tarojs/webpack5-runner": "3.6.20", |
| 68 | - "@types/node": "^18.15.11", | 68 | + "@types/node": "^18.15.11", |
| 69 | - "@types/webpack-env": "^1.13.6", | 69 | + "@types/webpack-env": "^1.13.6", |
| 70 | - "@vue/babel-plugin-jsx": "^1.0.6", | 70 | + "@vue/babel-plugin-jsx": "^1.0.6", |
| 71 | - "@vue/compiler-sfc": "^3.2.40", | 71 | + "@vue/compiler-sfc": "^3.2.40", |
| 72 | - "babel-preset-taro": "3.6.5", | 72 | + "babel-preset-taro": "3.6.20", |
| 73 | - "css-loader": "3.4.2", | 73 | + "css-loader": "3.4.2", |
| 74 | - "eslint": "^8.12.0", | 74 | + "eslint": "^8.12.0", |
| 75 | - "eslint-config-taro": "3.6.5", | 75 | + "eslint-config-taro": "3.6.20", |
| 76 | - "eslint-plugin-vue": "^8.0.0", | 76 | + "eslint-plugin-vue": "^8.0.0", |
| 77 | - "style-loader": "1.3.0", | 77 | + "style-loader": "1.3.0", |
| 78 | - "stylelint": "9.3.0", | 78 | + "stylelint": "9.3.0", |
| 79 | - "ts-node": "^10.9.1", | 79 | + "ts-node": "^10.9.1", |
| 80 | - "typescript": "^4.1.0", | 80 | + "typescript": "^4.1.0", |
| 81 | - "unplugin-vue-components": "^0.23.0", | 81 | + "unplugin-vue-components": "^0.23.0", |
| 82 | - "vue-loader": "^17.0.0", | 82 | + "vue-loader": "^17.0.0", |
| 83 | - "webpack": "^5.78.0" | 83 | + "webpack": "^5.78.0" |
| 84 | - } | 84 | + } |
| 85 | } | 85 | } | ... | ... |
| 1 | /* | 1 | /* |
| 2 | * @Date: 2023-12-14 17:45:15 | 2 | * @Date: 2023-12-14 17:45:15 |
| 3 | * @LastEditors: hookehuyr hookehuyr@gmail.com | 3 | * @LastEditors: hookehuyr hookehuyr@gmail.com |
| 4 | - * @LastEditTime: 2023-12-14 17:59:42 | 4 | + * @LastEditTime: 2023-12-16 15:03:36 |
| 5 | * @FilePath: /meihuaApp/src/app.js | 5 | * @FilePath: /meihuaApp/src/app.js |
| 6 | * @Description: 文件描述 | 6 | * @Description: 文件描述 |
| 7 | */ | 7 | */ | ... | ... |
| 1 | <!-- | 1 | <!-- |
| 2 | * @Date: 2022-09-19 14:11:06 | 2 | * @Date: 2022-09-19 14:11:06 |
| 3 | * @LastEditors: hookehuyr hookehuyr@gmail.com | 3 | * @LastEditors: hookehuyr hookehuyr@gmail.com |
| 4 | - * @LastEditTime: 2023-12-15 13:32:01 | 4 | + * @LastEditTime: 2023-12-18 10:16:03 |
| 5 | * @FilePath: /meihuaApp/src/pages/book/index.vue | 5 | * @FilePath: /meihuaApp/src/pages/book/index.vue |
| 6 | * @Description: 文件描述 | 6 | * @Description: 文件描述 |
| 7 | --> | 7 | --> | ... | ... |
| 1 | <!-- | 1 | <!-- |
| 2 | * @Date: 2022-09-19 14:11:06 | 2 | * @Date: 2022-09-19 14:11:06 |
| 3 | * @LastEditors: hookehuyr hookehuyr@gmail.com | 3 | * @LastEditors: hookehuyr hookehuyr@gmail.com |
| 4 | - * @LastEditTime: 2023-12-15 17:10:25 | 4 | + * @LastEditTime: 2023-12-16 08:29:08 |
| 5 | * @FilePath: /meihuaApp/src/pages/confirm/index.vue | 5 | * @FilePath: /meihuaApp/src/pages/confirm/index.vue |
| 6 | * @Description: 文件描述 | 6 | * @Description: 文件描述 |
| 7 | --> | 7 | --> | ... | ... |
| 1 | <!-- | 1 | <!-- |
| 2 | * @Date: 2023-12-13 11:13:13 | 2 | * @Date: 2023-12-13 11:13:13 |
| 3 | * @LastEditors: hookehuyr hookehuyr@gmail.com | 3 | * @LastEditors: hookehuyr hookehuyr@gmail.com |
| 4 | - * @LastEditTime: 2023-12-15 13:26:42 | 4 | + * @LastEditTime: 2023-12-18 10:26:00 |
| 5 | * @FilePath: /meihuaApp/src/pages/my/index.vue | 5 | * @FilePath: /meihuaApp/src/pages/my/index.vue |
| 6 | * @Description: 文件描述 | 6 | * @Description: 文件描述 |
| 7 | --> | 7 | --> |
| 8 | <template> | 8 | <template> |
| 9 | - <div> | 9 | + <view> |
| 10 | + <view id="avator" style="position: relative; display: flex; align-items: center; background-color: #3A2013; color: #FFF; padding: 40rpx 0 40rpx 25rpx;"> | ||
| 11 | + <view style="flex: 6; display: flex; align-items: center;"> | ||
| 12 | + <nut-avatar size="60" style="border: 1px solid #fff;"> | ||
| 13 | + <img src="https://img12.360buyimg.com/imagetools/jfs/t1/196430/38/8105/14329/60c806a4Ed506298a/e6de9fb7b8490f38.png" /> | ||
| 14 | + </nut-avatar> | ||
| 15 | + <text style="margin-left: 30rpx;">阿忆妞妞</text> | ||
| 16 | + </view> | ||
| 17 | + <view style="flex: 1;"> | ||
| 18 | + <IconFont name="edit"></IconFont> | ||
| 19 | + </view> | ||
| 20 | + <view style="position: absolute; left: 0%; right: 0%; bottom: 0%; height: 20rpx; width: 100%; background-color: #FFF; border-top-left-radius: 20rpx;border-top-right-radius: 20rpx;"></view> | ||
| 21 | + </view> | ||
| 22 | + <view> | ||
| 23 | + <view id="title" style="padding-left: 1.5rem; font-size: 35rpx; font-weight: bold;">我的订单</view> | ||
| 24 | + <view> | ||
| 25 | + <nut-tabs v-model="value" title-scroll title-gutter="10" name="tabName" background="#FFF" color="#6A4925" animated-time="0"> | ||
| 26 | + <nut-tab-pane v-for="item in tabList" :title="item.title" :pane-key="item.key"> | ||
| 27 | + <view class="book-list"> | ||
| 28 | + <scroll-view :style="scrollStyle" :scroll-y="true" :scroll-with-animation="true" @scrolltolower="onScrollToLower"> | ||
| 29 | + <view v-for="(item, index) in 10" :key="index"> | ||
| 30 | + <room-card :key="index"></room-card> | ||
| 31 | + <view v-if="index === 9" style="height: 2rem;"></view> | ||
| 32 | + </view> | ||
| 33 | + </scroll-view> | ||
| 34 | + </view> | ||
| 35 | + </nut-tab-pane> | ||
| 36 | + </nut-tabs> | ||
| 37 | + </view> | ||
| 38 | + </view> | ||
| 10 | <nav-bar activated="my" /> | 39 | <nav-bar activated="my" /> |
| 11 | - </div> | 40 | + </view> |
| 12 | </template> | 41 | </template> |
| 13 | 42 | ||
| 14 | <script setup> | 43 | <script setup> |
| 15 | import Taro from '@tarojs/taro' | 44 | import Taro from '@tarojs/taro' |
| 16 | import { ref } from "vue"; | 45 | import { ref } from "vue"; |
| 46 | +import { IconFont } from '@nutui/icons-vue-taro'; | ||
| 17 | import navBar from '@/components/navBar.vue' | 47 | import navBar from '@/components/navBar.vue' |
| 48 | +import roomCard from '@/components/roomCard.vue' | ||
| 49 | + | ||
| 50 | +const value = ref('0'); | ||
| 51 | +const tabList = ref([{ | ||
| 52 | + title: '全部订单', | ||
| 53 | + key: '0', | ||
| 54 | +}, { | ||
| 55 | + title: '待入住', | ||
| 56 | + key: '1', | ||
| 57 | +}, { | ||
| 58 | + title: '待支付', | ||
| 59 | + key: '2', | ||
| 60 | +}, { | ||
| 61 | + title: '已取消', | ||
| 62 | + key: '3', | ||
| 63 | +}]) | ||
| 18 | </script> | 64 | </script> |
| 19 | 65 | ||
| 20 | <script> | 66 | <script> |
| 21 | import "./index.less"; | 67 | import "./index.less"; |
| 68 | +import { $ } from '@tarojs/extend' | ||
| 22 | 69 | ||
| 23 | export default { | 70 | export default { |
| 24 | name: "myPage", | 71 | name: "myPage", |
| 72 | + computed: { | ||
| 73 | + scrollStyle() { | ||
| 74 | + return { | ||
| 75 | + height: this.indexCoverHeight + 'px', | ||
| 76 | + // paddingBottom: 50 + 'px', | ||
| 77 | + }; | ||
| 78 | + }, | ||
| 79 | + }, | ||
| 80 | + mounted () { | ||
| 81 | + // 设置首页封面高度 | ||
| 82 | + const windowHeight = wx.getSystemInfoSync().windowHeight; | ||
| 83 | + // 处理切换显示白屏问题 | ||
| 84 | + setTimeout(() => { | ||
| 85 | + this.showContent = true; | ||
| 86 | + }, 100); | ||
| 87 | + setTimeout(async () => { | ||
| 88 | + const navHeight = await $('#navbar-page').height(); | ||
| 89 | + const avatorHeight = await $('#avator').height(); | ||
| 90 | + const titleHeight = await $('#title').height(); | ||
| 91 | + this.indexCoverHeight = windowHeight - navHeight - avatorHeight - titleHeight - 50; | ||
| 92 | + }, 500); | ||
| 93 | + }, | ||
| 94 | + data() { | ||
| 95 | + return { | ||
| 96 | + showContent: false, | ||
| 97 | + indexCoverHeight: 0, | ||
| 98 | + }; | ||
| 99 | + }, | ||
| 100 | + methods: { | ||
| 101 | + onScrollToLower () { | ||
| 102 | + // if(!this.flag){ | ||
| 103 | + // return | ||
| 104 | + // } | ||
| 105 | + // this.flag = false; | ||
| 106 | + // this.getList(); | ||
| 107 | + console.warn('onScrollToLower'); | ||
| 108 | + }, | ||
| 109 | + } | ||
| 25 | }; | 110 | }; |
| 26 | </script> | 111 | </script> | ... | ... |
This diff could not be displayed because it is too large.
-
Please register or login to post a comment