diff --git a/components/uni-searchbar.vue b/components/uni-searchbar.vue new file mode 100644 index 0000000..7b37d01 --- /dev/null +++ b/components/uni-searchbar.vue @@ -0,0 +1,116 @@ + + + + + diff --git a/manifest.json b/manifest.json index 228c541..3b8eb92 100644 --- a/manifest.json +++ b/manifest.json @@ -1,74 +1,74 @@ { - "name": "shitong-app", - "appid": "", - "description": "", - "versionName": "1.0.0", - "versionCode": "100", - "transformPx": false, - /* 5+App特有相关 */ - "app-plus": { - "usingComponents": true, - "nvueStyleCompiler": "uni-app", - "compilerVersion": 3, - "splashscreen": { - "alwaysShowBeforeRender": true, - "waiting": true, - "autoclose": true, - "delay": 0 - }, - /* 模块配置 */ - "modules": {}, - /* 应用发布信息 */ - "distribute": { - /* android打包配置 */ - "android": { - "permissions": [ - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "" - ] - }, - /* ios打包配置 */ - "ios": {}, - /* SDK配置 */ - "sdkConfigs": {} - } - }, - /* 快应用特有相关 */ - "quickapp": {}, - /* 小程序特有相关 */ - "mp-weixin": { - "appid": "wx4c2099a19c69664f", - "setting": { - "urlCheck": false, - "es6": false, - "postcss": false - }, - "usingComponents": true - }, - "mp-alipay": { - "usingComponents": true - }, - "mp-baidu": { - "usingComponents": true - }, - "mp-toutiao": { - "usingComponents": true - }, - "uniStatistics": { - "enable": false - }, - "vueVersion": "2" + "name" : "shitong-app", + "appid" : "__UNI__CB00746", + "description" : "", + "versionName" : "1.0.0", + "versionCode" : "100", + "transformPx" : false, + /* 5+App特有相关 */ + "app-plus" : { + "usingComponents" : true, + "nvueStyleCompiler" : "uni-app", + "compilerVersion" : 3, + "splashscreen" : { + "alwaysShowBeforeRender" : true, + "waiting" : true, + "autoclose" : true, + "delay" : 0 + }, + /* 模块配置 */ + "modules" : {}, + /* 应用发布信息 */ + "distribute" : { + /* android打包配置 */ + "android" : { + "permissions" : [ + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "" + ] + }, + /* ios打包配置 */ + "ios" : {}, + /* SDK配置 */ + "sdkConfigs" : {} + } + }, + /* 快应用特有相关 */ + "quickapp" : {}, + /* 小程序特有相关 */ + "mp-weixin" : { + "appid" : "wx4c2099a19c69664f", + "setting" : { + "urlCheck" : false, + "es6" : false, + "postcss" : false + }, + "usingComponents" : true + }, + "mp-alipay" : { + "usingComponents" : true + }, + "mp-baidu" : { + "usingComponents" : true + }, + "mp-toutiao" : { + "usingComponents" : true + }, + "uniStatistics" : { + "enable" : false + }, + "vueVersion" : "2" } diff --git a/package-lock.json b/package-lock.json index b23d8bd..fd7e9d5 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,22 @@ { + "name": "shitong-app", + "lockfileVersion": 2, "requires": true, - "lockfileVersion": 1, + "packages": { + "": { + "dependencies": { + "uview-ui": "^2.0.35" + } + }, + "node_modules/uview-ui": { + "version": "2.0.35", + "resolved": "https://registry.npmmirror.com/uview-ui/-/uview-ui-2.0.35.tgz", + "integrity": "sha512-OfMttN3XkHvQosXfd8bjz8ASTvypPoGzBWmQZBJ871bYMCA7t2bDFPlzjbxUj/5ykAjKnZ8zMUapSwSisVt99g==", + "engines": { + "HBuilderX": "^3.1.0" + } + } + }, "dependencies": { "uview-ui": { "version": "2.0.35", diff --git a/pages.json b/pages.json index ec89ba5..37a8d05 100644 --- a/pages.json +++ b/pages.json @@ -1,6 +1,11 @@ { "easycom": { - "^u-(.*)": "uview-ui/components/u-$1/u-$1.vue" + "autoscan": true, //是否自动扫描组件 + "custom": { + "^u-(.*)": "uview-ui/components/u-$1/u-$1.vue", + "^ua-(.*)": "@/components/uview-ui/components/u-$1/u-$1.vue", + "^customer-(.*)": "@/components/uni-$1.vue" // 匹配components目录内的vue文件 + } }, "pages": [{ "path": "pages/index/index", @@ -40,6 +45,26 @@ "navigationBarBackgroundColor": "#12CA64", "enablePullDownRefresh": false } + }, + { + "path": "pages/index/search/search", + "style": { + "navigationBarTitleText": "顶部搜索", + "navigationBarTextStyle": "white", + "navigationBarBackgroundColor": "#12CA64", + "enablePullDownRefresh": false, + "navigationStyle": "custom" + } + }, + { + "path": "pages/index/goods-category-search/category-index", + "style": { + "navigationBarTitleText": "分类详情", + "navigationBarTextStyle": "white", + "navigationBarBackgroundColor": "#12CA64", + "enablePullDownRefresh": false, + "navigationStyle": "custom" + } } ], "tabBar": { @@ -77,7 +102,7 @@ "globalStyle": { "navigationBarTextStyle": "black", "navigationBarTitleText": "uni-app", - "navigationBarBackgroundColor": "#F8F8F8", + "navigationBarBackgroundColor": "#12CA64", "backgroundColor": "#F8F8F8" }, "uniIdRouter": {}, diff --git a/pages/index/goods-category-search/category-index - 副本.vue b/pages/index/goods-category-search/category-index - 副本.vue new file mode 100644 index 0000000..266bc01 --- /dev/null +++ b/pages/index/goods-category-search/category-index - 副本.vue @@ -0,0 +1,876 @@ + + + + + diff --git a/pages/index/goods-category-search/category-index.vue b/pages/index/goods-category-search/category-index.vue new file mode 100644 index 0000000..e830469 --- /dev/null +++ b/pages/index/goods-category-search/category-index.vue @@ -0,0 +1,849 @@ + + + + + diff --git a/pages/index/index.vue b/pages/index/index.vue index 07c44c2..ea07eb0 100644 --- a/pages/index/index.vue +++ b/pages/index/index.vue @@ -3,9 +3,12 @@ - + + + @@ -18,7 +21,12 @@ } }, methods: { - + toSearch() { + console.log('--search') + uni.navigateTo({ + url: '/pages/index/search/search' + }) + } } } diff --git a/pages/index/search/search.vue b/pages/index/search/search.vue new file mode 100644 index 0000000..12253dd --- /dev/null +++ b/pages/index/search/search.vue @@ -0,0 +1,171 @@ + + + + + diff --git a/static/category/fl_icon_qb.png b/static/category/fl_icon_qb.png new file mode 100644 index 0000000..29be830 Binary files /dev/null and b/static/category/fl_icon_qb.png differ diff --git a/static/category/fl_icon_xl.png b/static/category/fl_icon_xl.png new file mode 100644 index 0000000..005bedc Binary files /dev/null and b/static/category/fl_icon_xl.png differ diff --git a/static/category/sy_icon_cy.png b/static/category/sy_icon_cy.png new file mode 100644 index 0000000..a2acfcd Binary files /dev/null and b/static/category/sy_icon_cy.png differ diff --git a/static/category/sy_icon_gs.png b/static/category/sy_icon_gs.png new file mode 100644 index 0000000..8f44e63 Binary files /dev/null and b/static/category/sy_icon_gs.png differ diff --git a/static/category/sy_icon_hp.png b/static/category/sy_icon_hp.png new file mode 100644 index 0000000..48dee17 Binary files /dev/null and b/static/category/sy_icon_hp.png differ diff --git a/static/category/sy_icon_hz.png b/static/category/sy_icon_hz.png new file mode 100644 index 0000000..c97a1bd Binary files /dev/null and b/static/category/sy_icon_hz.png differ diff --git a/static/category/sy_icon_ls.png b/static/category/sy_icon_ls.png new file mode 100644 index 0000000..06e04a0 Binary files /dev/null and b/static/category/sy_icon_ls.png differ diff --git a/static/category/sy_icon_np.png b/static/category/sy_icon_np.png new file mode 100644 index 0000000..862c400 Binary files /dev/null and b/static/category/sy_icon_np.png differ diff --git a/static/category/sy_icon_rs.png b/static/category/sy_icon_rs.png new file mode 100644 index 0000000..bc436ed Binary files /dev/null and b/static/category/sy_icon_rs.png differ diff --git a/static/category/sy_icon_sj.png b/static/category/sy_icon_sj.png new file mode 100644 index 0000000..6d98d0d Binary files /dev/null and b/static/category/sy_icon_sj.png differ diff --git a/static/category/sy_icon_tw.png b/static/category/sy_icon_tw.png new file mode 100644 index 0000000..b36813d Binary files /dev/null and b/static/category/sy_icon_tw.png differ diff --git a/static/category/sy_icon_yp.png b/static/category/sy_icon_yp.png new file mode 100644 index 0000000..7ed9d2a Binary files /dev/null and b/static/category/sy_icon_yp.png differ