diff --git a/README.md b/README.md index ccc39a8..5a1f5d8 100644 --- a/README.md +++ b/README.md @@ -32,14 +32,17 @@ pnpm install :: 微信小程序编译运行 npm run dev:mp-weixin ``` + 成功后使用微信小程序打开:dist\dev\mp-weixin ### 代码压缩 + 默认是启动代码压缩的, 如果需要关闭代码压缩,可以将vite.config.js中的build.minify赋值为false。 如果需要打开代码压缩,可以将vite.config.js中的build.minify赋值为true。 + # 作者建议 ### 对于选项式 @@ -67,6 +70,7 @@ import modal from '@/plugins/modal' // 建议使用modal打开弹窗,理由: (主包最低809kb左右) ### 删除geek组件 + 1. 删除pages_geek和components/geek-xd文件夹 2. 删除pages.json中subPackages的root值为“pages_geek/pages”的配置 3. 删除pages/template.config.js中geek组件 @@ -82,7 +86,6 @@ import modal from '@/plugins/modal' // 建议使用modal打开弹窗,理由: 5. 删除static中的uview,里面都是示例图片。 6. 删除plugins中的config.js和common.js,并在plugins/index.js中删除相关配置 - ### 删除uchart (占用主包175kb左右,不建议删除,以防以后会用) @@ -107,7 +110,6 @@ app.use(uviewPlus) 3. App.vue中删除 @import '@/static/scss/index.scss'; 4. package.json中删除 "clipboard": "^2.0.11","dayjs": "^1.11.9","uview-plus": "^3.1.36", - # 附录 [Vue3官网](https://cn.vuejs.org/); diff --git a/src/components/geek-xd/components/geek-color-picker/geek-color-picker.vue b/src/components/geek-xd/components/geek-color-picker/geek-color-picker.vue index b918a72..5cd7b8e 100644 --- a/src/components/geek-xd/components/geek-color-picker/geek-color-picker.vue +++ b/src/components/geek-xd/components/geek-color-picker/geek-color-picker.vue @@ -103,12 +103,7 @@ export default { hsb: { h: 0, s: 0, b: 0 }, site: [{ top: 0, left: 0 }, { left: 0 }, { left: 0 }], index: 0, - bgcolor: { - r: 255, - g: 0, - b: 0, - a: 1 - }, + bgcolor: { r: 255, g: 0, b: 0, a: 1 }, hex: '#000000', mode: true, colorList: [ @@ -119,67 +114,20 @@ export default { { r: 63, g: 81, b: 181, a: 1 }, { r: 33, g: 150, b: 243, a: 1 }, { r: 3, g: 169, b: 244, a: 1 }, - { r: 0, g: 188, b: 212, a: 1 }, { - r: 0, - g: 150, - b: 136, - a: 1 - }, { - r: 76, - g: 175, - b: 80, - a: 1 - }, { - r: 139, - g: 195, - b: 74, - a: 1 - }, { - r: 205, - g: 220, - b: 57, - a: 1 - }, { - r: 255, - g: 235, - b: 59, - a: 1 - }, { - r: 255, - g: 193, - b: 7, - a: 1 - }, { - r: 255, - g: 152, - b: 0, - a: 1 - }, { - r: 255, - g: 87, - b: 34, - a: 1 - }, { - r: 121, - g: 85, - b: 72, - a: 1 - }, { - r: 158, - g: 158, - b: 158, - a: 1 - }, { - r: 0, - g: 0, - b: 0, - a: 0.5 - }, { - r: 0, - g: 0, - b: 0, - a: 0 - },] + { r: 0, g: 188, b: 212, a: 1 }, + { r: 0, g: 150, b: 136, a: 1 }, + { r: 76, g: 175, b: 80, a: 1 }, + { r: 139, g: 195, b: 74, a: 1 }, + { r: 205, g: 220, b: 57, a: 1 }, + { r: 255, g: 235, b: 59, a: 1 }, + { r: 255, g: 193, b: 7, a: 1 }, + { r: 255, g: 152, b: 0, a: 1 }, + { r: 255, g: 87, b: 34, a: 1 }, + { r: 121, g: 85, b: 72, a: 1 }, + { r: 158, g: 158, b: 158, a: 1 }, + { r: 0, g: 0, b: 0, a: 0.5 }, + { r: 0, g: 0, b: 0, a: 0 }, + ] }; }, created() { diff --git a/src/components/geek-xd/types/index.ts b/src/components/geek-xd/types/index.ts new file mode 100644 index 0000000..8e1fb5e --- /dev/null +++ b/src/components/geek-xd/types/index.ts @@ -0,0 +1,17 @@ +export interface Menu { + icon: string, + label: string +} + +export interface Commodity { + img: string, + title: string, + subTitle: string, + price: number +} + +export interface CommodityOrder extends Commodity { + shop: string, + status: string, + num: number +} \ No newline at end of file diff --git a/src/pages_geek/pages/index/index.vue b/src/pages_geek/pages/index/index.vue index 383f8f0..2a3bd38 100644 --- a/src/pages_geek/pages/index/index.vue +++ b/src/pages_geek/pages/index/index.vue @@ -12,7 +12,7 @@ - + @@ -22,16 +22,15 @@ - - + + - + @@ -39,22 +38,21 @@ - - +