diff --git a/.eslintrc.cjs b/.eslintrc.cjs index a8d4a47..0485972 100644 --- a/.eslintrc.cjs +++ b/.eslintrc.cjs @@ -15,6 +15,7 @@ module.exports = { wx: true, WechatMiniprogram: true, getCurrentPages: true, + UniHelper: true, }, parserOptions: { ecmaVersion: 'latest', diff --git a/.prettierrc.json b/.prettierrc.json index 25fb32d..7469f12 100644 --- a/.prettierrc.json +++ b/.prettierrc.json @@ -1,7 +1,7 @@ { "singleQuote": true, "semi": false, - "printWidth": 80, + "printWidth": 100, "trailingComma": "all", "endOfLine": "auto" } diff --git a/index.html b/index.html index b2860a9..81370df 100644 --- a/index.html +++ b/index.html @@ -10,7 +10,7 @@ '') - + 小兔鲜儿 @@ -22,4 +22,4 @@ - + \ No newline at end of file diff --git a/src/manifest.json b/src/manifest.json index 230fd95..456071e 100644 --- a/src/manifest.json +++ b/src/manifest.json @@ -1,9 +1,9 @@ { - "name": "uni-app-xiaotuxian", + "name": "小兔鲜儿", "appid": "", "description": "", "versionName": "1.0.0", - "versionCode": "100", + "versionCode": 1, "transformPx": false, /* 5+App特有相关 */ "app-plus": { diff --git a/src/static/images/blank_cart.png b/src/static/images/blank_cart.png new file mode 100644 index 0000000..a013cfa Binary files /dev/null and b/src/static/images/blank_cart.png differ diff --git a/src/styles/fonts.scss b/src/styles/fonts.scss index 1268b24..19f1ae2 100644 --- a/src/styles/fonts.scss +++ b/src/styles/fonts.scss @@ -1,140 +1,147 @@ -@font-face {font-family: "erabbit"; - src: url('https://at.alicdn.com/t/font_2232762_u2xb7up9h5.woff?t=1614588039709') format('woff'), - url('https://at.alicdn.com/t/font_2232762_u2xb7up9h5.ttf?t=1614588039709') format('truetype'), /* chrome, firefox, opera, Safari, Android, iOS 4.2+ */ - url('https://at.alicdn.com/t/font_2232762_u2xb7up9h5.svg?t=1614588039709#erabbit') format('svg'); /* iOS 4.1- */ +@font-face { + font-family: 'erabbit'; + src: url('https://at.alicdn.com/t/c/font_4009193_lnbhmo3yos.woff?t=1681201348304') format('woff'), + url('https://at.alicdn.com/t/c/font_4009193_lnbhmo3yos.ttf?t=1681201348304') format('truetype'), + url('https://at.alicdn.com/t/c/font_4009193_lnbhmo3yos.svg?t=1681201348304#erabbit') + format('svg'); } -[class^="icon-"], [class*=" icon-"] { - font-family: "erabbit" !important; +[class^='icon-'], +[class*=' icon-'] { + font-family: 'erabbit' !important; font-style: normal; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; } .icon-mail:before { - content: "\e644"; + content: '\e644'; } .icon-weixin:before { - content: "\e620"; + content: '\e620'; } .icon-phone:before { - content: "\e618"; + content: '\e618'; } .icon-camera-plus:before { - content: "\e636"; + content: '\e636'; } .icon-close:before { - content: "\e6e1"; + content: '\e6e1'; } .icon-help:before { - content: "\e617"; + content: '\e617'; } .icon-cart:before { - content: "\e6d1"; + content: '\e6d1'; } .icon-settings:before { - content: "\e6cf"; + content: '\e6cf'; } .icon-clock:before { - content: "\e609"; + content: '\e609'; } .icon-delete:before { - content: "\e6ce"; + content: '\e6ce'; } .icon-checked:before { - content: "\e6cc"; + content: '\e6cc'; } .icon-ring:before { - content: "\e6cd"; + content: '\e6cd'; } .icon-locate:before { - content: "\e6cb"; + content: '\e6cb'; } .icon-mark:before { - content: "\e6ca"; + content: '\e6ca'; } .icon-check:before { - content: "\e6c9"; + content: '\e6c9'; } .icon-handset:before { - content: "\e6c8"; + content: '\e6c8'; } .icon-gift:before { - content: "\e6c7"; + content: '\e6c7'; } .icon-currency:before { - content: "\e6c6"; + content: '\e6c6'; } .icon-comment:before { - content: "\e6c5"; + content: '\e6c5'; } .icon-caret:before { - content: "\e6c3"; + content: '\e6c3'; } .icon-right:before { - content: "\e6c2"; + content: '\e6c2'; } .icon-left:before { - content: "\e6c1"; + content: '\e6c1'; } .icon-down:before { - content: "\e6c0"; + content: '\e6c0'; } .icon-up:before { - content: "\e6bf"; + content: '\e6bf'; } .icon-sort:before { - content: "\e616"; + content: '\e616'; } .icon-clear:before { - content: "\e6be"; + content: '\e6be'; } .icon-user:before { - content: "\e6bb"; + content: '\e6bb'; } .icon-scan:before { - content: "\e6bc"; + content: '\e6bc'; } .icon-search:before { - content: "\e632"; + content: '\e632'; } .icon-preview:before { - content: "\e61d"; + content: '\e61d'; } .icon-heart:before { - content: "\e647"; + content: '\e647'; } .icon-filter:before { - content: "\e629"; + content: '\e629'; +} + +.icon-home:before { + content: '\e8b9'; } diff --git a/tsconfig.json b/tsconfig.json index 3007d45..74e9c47 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,24 +1,17 @@ { + "extends": "@vue/tsconfig/tsconfig.json", "compilerOptions": { - "target": "esnext", - "useDefineForClassFields": true, - "module": "esnext", - "moduleResolution": "node", - "strict": true, - "jsx": "preserve", "sourceMap": true, - "resolveJsonModule": true, - "esModuleInterop": true, + "baseUrl": ".", + "paths": { + "@/*": ["./src/*"] + }, "lib": ["esnext", "dom"], "types": [ "@dcloudio/types", "@types/wechat-miniprogram", "@uni-helper/uni-app-types" - ], - "baseUrl": ".", - "paths": { - "@/*": ["src/*"] - } + ] }, "vueCompilerOptions": { "nativeTags": ["block", "component", "template", "slot"]