diff --git a/components.d.ts b/components.d.ts new file mode 100644 index 0000000..6854026 --- /dev/null +++ b/components.d.ts @@ -0,0 +1,20 @@ +/* eslint-disable */ +/* prettier-ignore */ +// @ts-nocheck +// Generated by vite-plugin-uni-components +// Read more: https://github.com/vuejs/core/pull/3399 +import '@vue/runtime-core' + +export {} + +declare module '@vue/runtime-core' { + export interface GlobalComponents { + AppTest: typeof import('./src/components/AppTest.vue')['default'] + AppTest2: typeof import('./src/components/app-test-dir/AppTest2.vue')['default'] + FlyContent: typeof import('./src/components/fly-content/fly-content.vue')['default'] + FlyHeader: typeof import('./src/components/fly-header/fly-header.vue')['default'] + FlyLogin: typeof import('./src/components/fly-login/fly-login.vue')['default'] + FlyNavbar: typeof import('./src/components/fly-navbar/fly-navbar.vue')['default'] + SvgIcon: typeof import('./src/components/SvgIcon.vue')['default'] + } +} diff --git a/env/.env b/env/.env index 05c8a58..e943714 100644 --- a/env/.env +++ b/env/.env @@ -2,7 +2,7 @@ VITE_APP_TITLE = 'unibest' VITE_APP_PORT = 9000 VITE_UNI_APPID = '__UNI__D1E5001' -VITE_WX_APPID = 'wxa2abb91f64032a2b' +VITE_WX_APPID = 'wxe2428e8fe6767e45' # h5部署网站的base,配置到 manifest.config.ts 里的 h5.router.base VITE_APP_PUBLIC_BASE=/ @@ -10,19 +10,19 @@ VITE_APP_PUBLIC_BASE=/ # 登录页面 VITE_LOGIN_URL = '/pages/login/index' -VITE_SERVER_BASEURL = 'https://ukw0y1.laf.run' -VITE_UPLOAD_BASEURL = 'https://ukw0y1.laf.run/upload' +VITE_SERVER_BASEURL = 'https://test.shop.lihaink.cn/' +VITE_UPLOAD_BASEURL = 'https://test.shop.lihaink.cn//upload' # 有些同学可能需要在微信小程序里面根据 develop、trial、release 分别设置上传地址,参考代码如下。 # 下面的变量如果没有设置,会默认使用 VITE_SERVER_BASEURL or VITE_UPLOAD_BASEURL -VITE_SERVER_BASEURL__WEIXIN_DEVELOP = 'https://ukw0y1.laf.run' -VITE_SERVER_BASEURL__WEIXIN_TRIAL = 'https://ukw0y1.laf.run' -VITE_SERVER_BASEURL__WEIXIN_RELEASE = 'https://ukw0y1.laf.run' +VITE_SERVER_BASEURL__WEIXIN_DEVELOP = 'https://test.shop.lihaink.cn/' +VITE_SERVER_BASEURL__WEIXIN_TRIAL = 'https://test.shop.lihaink.cn/' +VITE_SERVER_BASEURL__WEIXIN_RELEASE = 'https://test.shop.lihaink.cn/' -VITE_UPLOAD_BASEURL__WEIXIN_DEVELOP = 'https://ukw0y1.laf.run/upload' -VITE_UPLOAD_BASEURL__WEIXIN_TRIAL = 'https://ukw0y1.laf.run/upload' -VITE_UPLOAD_BASEURL__WEIXIN_RELEASE = 'https://ukw0y1.laf.run/upload' +VITE_UPLOAD_BASEURL__WEIXIN_DEVELOP = 'https://test.shop.lihaink.cn//upload' +VITE_UPLOAD_BASEURL__WEIXIN_TRIAL = 'https://test.shop.lihaink.cn//upload' +VITE_UPLOAD_BASEURL__WEIXIN_RELEASE = 'https://test.shop.lihaink.cn//upload' # h5是否需要配置代理 -VITE_APP_PROXY=false +VITE_APP_PROXY=true VITE_APP_PROXY_PREFIX = '/api' diff --git a/src/components/fly-content/fly-content.vue b/src/components/fly-content/fly-content.vue new file mode 100644 index 0000000..66d5a0a --- /dev/null +++ b/src/components/fly-content/fly-content.vue @@ -0,0 +1,11 @@ + + + diff --git a/src/components/fly-header/fly-header.vue b/src/components/fly-header/fly-header.vue new file mode 100644 index 0000000..b26c128 --- /dev/null +++ b/src/components/fly-header/fly-header.vue @@ -0,0 +1,3 @@ + diff --git a/src/components/fly-login/README.md b/src/components/fly-login/README.md new file mode 100644 index 0000000..c931549 --- /dev/null +++ b/src/components/fly-login/README.md @@ -0,0 +1,7 @@ +# fly-login + +点击“点击显示微信头像”按钮后,出现的半屏登录弹窗,可以在任意页面引入。 + +仿“掘金小册”小程序。 + +![掘金小册登录](screenshot.png) diff --git a/src/components/fly-login/defaultAvatar.png b/src/components/fly-login/defaultAvatar.png new file mode 100644 index 0000000..e69596a Binary files /dev/null and b/src/components/fly-login/defaultAvatar.png differ diff --git a/src/components/fly-login/fly-login.vue b/src/components/fly-login/fly-login.vue new file mode 100644 index 0000000..d6fe1ed --- /dev/null +++ b/src/components/fly-login/fly-login.vue @@ -0,0 +1,128 @@ + + + + diff --git a/src/components/fly-login/screenshot.png b/src/components/fly-login/screenshot.png new file mode 100644 index 0000000..7ca7a26 Binary files /dev/null and b/src/components/fly-login/screenshot.png differ diff --git a/src/components/fly-navbar/README.md b/src/components/fly-navbar/README.md new file mode 100644 index 0000000..cd5cf97 --- /dev/null +++ b/src/components/fly-navbar/README.md @@ -0,0 +1,3 @@ +# fly-navbar + +建议本导航栏组件在设置 `"navigationStyle": "custom"` 的页面使用,目前支持微信小程序的页面滚动动画。 diff --git a/src/components/fly-navbar/fly-navbar.vue b/src/components/fly-navbar/fly-navbar.vue new file mode 100644 index 0000000..5636cb4 --- /dev/null +++ b/src/components/fly-navbar/fly-navbar.vue @@ -0,0 +1,71 @@ + + + + + diff --git a/src/layouts/fg-tabbar/tabbarList.ts b/src/layouts/fg-tabbar/tabbarList.ts index e6e4c53..0e84b9a 100644 --- a/src/layouts/fg-tabbar/tabbarList.ts +++ b/src/layouts/fg-tabbar/tabbarList.ts @@ -29,17 +29,17 @@ export const tabbarList = [ { iconPath: 'static/images/2-001.png', selectedIconPath: 'static/images/2-002.png', - pagePath: 'pages/about/about', - text: '关于', + pagePath: 'pages/index/home', + text: '榜单', // icon: 'i-carbon-code', // // 注意 unocss 的图标需要在 页面上引入一下,或者配置到 unocss.config.ts 的 safelist 中 // iconType: 'unocss', }, { - pagePath: 'pages/order_addcart/order_addcart', + pagePath: 'pages/about/about', iconPath: 'static/images/3-001.png', selectedIconPath: 'static/images/3-002.png', - text: '购物车', + text: '服务', }, { pagePath: 'pages/my/index', diff --git a/src/manifest.json b/src/manifest.json index 791ddeb..3ae77af 100644 --- a/src/manifest.json +++ b/src/manifest.json @@ -83,7 +83,7 @@ }, "quickapp": {}, "mp-weixin": { - "appid": "wxa2abb91f64032a2b", + "appid": "wxe2428e8fe6767e45", "setting": { "urlCheck": false, "es6": true, diff --git a/src/pages.json b/src/pages.json index 3d61a56..f590a85 100644 --- a/src/pages.json +++ b/src/pages.json @@ -33,14 +33,14 @@ { "iconPath": "static/images/2-001.png", "selectedIconPath": "static/images/2-002.png", - "pagePath": "pages/about/about", - "text": "关于" + "pagePath": "pages/index/home", + "text": "榜单" }, { - "pagePath": "pages/order_addcart/order_addcart", + "pagePath": "pages/about/about", "iconPath": "static/images/3-001.png", "selectedIconPath": "static/images/3-002.png", - "text": "购物车" + "text": "服务" }, { "pagePath": "pages/my/index", @@ -65,7 +65,8 @@ "type": "page", "layout": "tabbar", "style": { - "navigationBarTitleText": "关于" + "navigationStyle": "custom", + "navigationBarTitleText": "服务" } }, { @@ -97,6 +98,7 @@ "path": "pages/my/index", "type": "page", "style": { + "navigationStyle": "custom", "navigationBarTitleText": "我的" } }, diff --git a/src/pages/about/about.vue b/src/pages/about/about.vue index 71ca5fe..3fe6aec 100644 --- a/src/pages/about/about.vue +++ b/src/pages/about/about.vue @@ -2,14 +2,15 @@ { layout: 'tabbar', style: { - navigationBarTitleText: '关于', + navigationStyle: 'custom', + navigationBarTitleText: '服务', }, } diff --git a/src/pages/about/components/request.vue b/src/pages/about/components/request.vue index 60e21f4..7b93467 100644 --- a/src/pages/about/components/request.vue +++ b/src/pages/about/components/request.vue @@ -41,12 +41,8 @@ function reset() { diff --git a/src/pages/index/index.vue b/src/pages/index/index.vue index cbc1013..9e95928 100644 --- a/src/pages/index/index.vue +++ b/src/pages/index/index.vue @@ -24,9 +24,9 @@ autoplay :indicator="{ type: 'dots-bar' }" v-model:current="current" - @click="handleClick" @change="onChange" > + @@ -57,7 +57,7 @@ --> - + - + {{ item.name }} @@ -103,47 +102,13 @@ class="p-1" style="display: inline-block; width: 300rpx" @click="goToShop('https://shop.lihaink.cn/')" - v-for="item in [ - { - name: '农产品', - id: 1, - icon: 'https://img95.699pic.com/photo/50384/2866.jpg_wh860.jpg', - price: '320', - line_price: '320', - }, - { - name: '农资供应', - id: 2, - icon: 'https://img95.699pic.com/photo/50384/2866.jpg_wh860.jpg', - price: '320', - line_price: '320', - }, - { - name: '土地流转', - id: 3, - icon: 'https://img95.699pic.com/photo/50384/2866.jpg_wh860.jpg', - price: '320', - line_price: '320', - }, - { - name: '技术服务', - id: 4, - icon: 'https://img95.699pic.com/photo/50384/2866.jpg_wh860.jpg', - price: '320', - line_price: '320', - }, - ]" + v-for="item in product_30.list" > - + - xxx蔬菜基地 + {{ item.store_name }} 我们这里的食物很新鲜 @@ -461,6 +426,30 @@