diff --git a/components/inputAndSwiper/inputAndSwiper.vue b/components/InputAndSwiper/InputAndSwiper.vue similarity index 99% rename from components/inputAndSwiper/inputAndSwiper.vue rename to components/InputAndSwiper/InputAndSwiper.vue index 6492322..6697869 100644 --- a/components/inputAndSwiper/inputAndSwiper.vue +++ b/components/InputAndSwiper/InputAndSwiper.vue @@ -51,7 +51,7 @@ // this.getLocation() }, methods: { - getLocation(){ + getLocation() { uni.getLocation({ type: 'wgs84', // geocode: true, // 返回城市信息 diff --git a/components/TabBar/TabBar.vue b/components/TabBar/TabBar.vue index e9a3a18..ba0daa1 100644 --- a/components/TabBar/TabBar.vue +++ b/components/TabBar/TabBar.vue @@ -58,7 +58,7 @@ path: "/pages/my/my", icon: "/static/tabbar/di_icon_wdh.png", selectIcon: "/static/tabbar/di_icon_wd.png", - text: "店铺转让", + text: "我的", centerItem: false }] diff --git a/pages.json b/pages.json index 4a76590..44ee586 100644 --- a/pages.json +++ b/pages.json @@ -1,104 +1,121 @@ { - "easycom": { - "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": [ //pages数组中第一项表示应用启动页,参考:https://uniapp.dcloud.io/collocation/pages - { - "path": "pages/index/index", - "style": { - "navigationBarTitleText": "速配商铺", - "navigationBarTextStyle": "black", - "navigationBarBackgroundColor": "#FFFFFF", - //导航栏取消 - // "navigationStyle": "custom", - //是否开启下拉刷新 - "enablePullDownRefresh": true + "easycom" : { + "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" : [ + //pages数组中第一项表示应用启动页,参考:https://uniapp.dcloud.io/collocation/pages + { + "path" : "pages/index/index", + "style" : { + "navigationBarTitleText" : "速配商铺", + "navigationBarTextStyle" : "black", + "navigationBarBackgroundColor" : "#FFFFFF", + //导航栏取消 + // "navigationStyle": "custom", + //是否开启下拉刷新 + "enablePullDownRefresh" : true + } + }, + { + "path" : "pages/shopTransfer/shopTransfer", + "style" : { + "navigationBarTitleText" : "店铺转让", + "navigationBarTextStyle" : "black", + "navigationBarBackgroundColor" : "#FFFFFF", + "enablePullDownRefresh" : false + } + }, + //+ + { + "path" : "pages/shopAddress/shopAddress", + "style" : { + "navigationBarTitleText" : "找店地址", + "navigationBarTextStyle" : "black", + "navigationBarBackgroundColor" : "#FFFFFF", + "enablePullDownRefresh" : false + } + }, + { + "path" : "pages/my/my", + "style" : { + "navigationBarTitleText" : "我的", + "navigationBarTextStyle" : "black", + "navigationBarBackgroundColor" : "#FFFFFF", + "enablePullDownRefresh" : false + } + }, + { + "path" : "pages/publish/publish", + "style" : { + "navigationBarTitleText" : "", + "enablePullDownRefresh" : false + } + }, + { + "path" : "pages/detail/detail", + "style" : { + "navigationBarTitleText" : "商品详情" } - }, - { - "path": "pages/shopTransfer/shopTransfer", - "style": { - "navigationBarTitleText": "店铺转让", - "navigationBarTextStyle": "black", - "navigationBarBackgroundColor": "#FFFFFF", - "enablePullDownRefresh": false - } - }, - //+ - { - "path": "pages/shopAddress/shopAddress", - "style": { - "navigationBarTitleText": "找店地址", - "navigationBarTextStyle": "black", - "navigationBarBackgroundColor": "#FFFFFF", - "enablePullDownRefresh": false - } - }, - { - "path": "pages/my/my", - "style": { - "navigationBarTitleText": "我的", - "navigationBarTextStyle": "black", - "navigationBarBackgroundColor": "#FFFFFF", - "enablePullDownRefresh": false - } - }, - { - "path" : "pages/publish/publish", - "style" : + } + ], + "tabBar" : { + "color" : "#CCCCCC", + "borderStyle" : "white", + "backgroundColor" : "#FFFFFF", + "custom" : true, + "list" : [ + { + "pagePath" : "pages/index/index", + "text" : "首页", + "iconPath" : "static/tabbar/di_icon_syh.png", + "selectedIconPath" : "static/tabbar/di_icon_sy.png" + }, + { + "pagePath" : "pages/shopTransfer/shopTransfer", + "text" : "店铺转让", + "iconPath" : "static/tabbar/di_icon_zrh.png", + "selectedIconPath" : "static/tabbar/di_icon_zr.png" + }, + { + "pagePath" : "pages/publish/publish", + "text" : "发布", + "iconPath" : "static/tabbar/di_icon_fb.png", + "selectedIconPath" : "static/tabbar/di_icon_fb.png" + }, + { + "pagePath" : "pages/shopAddress/shopAddress", + "text" : "找店地址", + "iconPath" : "static/tabbar/di_icon_dzh.png", + "selectedIconPath" : "static/tabbar/di_icon_dz.png" + }, + { + "pagePath" : "pages/my/my", + "text" : "店铺转让", + "iconPath" : "static/tabbar/di_icon_wdh.png", + "selectedIconPath" : "static/tabbar/di_icon_wd.png" + } + ] + }, + "globalStyle" : { + "navigationBarTextStyle" : "black", + "navigationBarTitleText" : "uni-app", + "navigationBarBackgroundColor" : "#F8F8F8", + "backgroundColor" : "#F8F8F8" + }, + "uniIdRouter" : {}, + "condition" : { //模式配置,仅开发期间生效 + "current": 0, //当前激活的模式(list 的索引项) + "list": [ { - "navigationBarTitleText" : "", - "enablePullDownRefresh" : false - } - } - ], - "tabBar": { - "color": "#CCCCCC", - "borderStyle": "white", - "backgroundColor": "#FFFFFF", - "custom":true, - "list": [{ - "pagePath": "pages/index/index", - "text": "首页", - "iconPath": "static/tabbar/di_icon_syh.png", - "selectedIconPath": "static/tabbar/di_icon_sy.png" - }, - { - "pagePath": "pages/shopTransfer/shopTransfer", - "text": "店铺转让", - "iconPath": "static/tabbar/di_icon_zrh.png", - "selectedIconPath": "static/tabbar/di_icon_zr.png" - }, - { - "pagePath": "pages/publish/publish", - "text": "发布", - "iconPath": "static/tabbar/di_icon_fb.png", - "selectedIconPath": "static/tabbar/di_icon_fb.png" - }, - { - "pagePath": "pages/shopAddress/shopAddress", - "text": "找店地址", - "iconPath": "static/tabbar/di_icon_dzh.png", - "selectedIconPath": "static/tabbar/di_icon_dz.png" - }, - { - "pagePath": "pages/my/my", - "text": "店铺转让", - "iconPath": "static/tabbar/di_icon_wdh.png", - "selectedIconPath": "static/tabbar/di_icon_wd.png" + "name": "", //模式名称 + "path": "", //启动页面,必选 + "query": "" //启动参数,在页面的onLoad函数里面得到 } ] - }, - "globalStyle": { - "navigationBarTextStyle": "black", - "navigationBarTitleText": "uni-app", - "navigationBarBackgroundColor": "#F8F8F8", - "backgroundColor": "#F8F8F8" - }, - "uniIdRouter": {} -} \ No newline at end of file + } +} diff --git a/pages/detail/detail.vue b/pages/detail/detail.vue new file mode 100644 index 0000000..8329b3a --- /dev/null +++ b/pages/detail/detail.vue @@ -0,0 +1,149 @@ + + + + + \ No newline at end of file diff --git a/pages/index/index.vue b/pages/index/index.vue index e4e498f..026bb9b 100644 --- a/pages/index/index.vue +++ b/pages/index/index.vue @@ -1,5 +1,11 @@