diff --git a/public/static/offline/JSON/index.json b/public/static/offline/JSON/index.json index 115cd62..9af377a 100644 --- a/public/static/offline/JSON/index.json +++ b/public/static/offline/JSON/index.json @@ -1 +1,311 @@ -{"code":200,"msg":"操作成功","data":{"temperature":"15","columnList":[{"moduleType":1,"name":"美食","nameEn":"","introduce":"","introduceEn":"","crossFileCode":"","verticalFileCode":""},{"moduleType":2,"name":"游玩","nameEn":"","introduce":"","introduceEn":"","crossFileCode":"","verticalFileCode":""},{"moduleType":3,"name":"购物","nameEn":"","introduce":"","introduceEn":"","crossFileCode":"","verticalFileCode":""}],"hotSearch":[{"logoCode":"Jrw0_ifPRL40HwIJuQMv7","logoUrl":"/iotFile/2023/04/18/Jrw0_ifPRL40HwIJuQMv7.png","shopCode":"N58iWdPNw2wAB0X8BxmW1","shopName":"星巴克","building":"A","buildingCode":"suG1YjUhWnvRBJm3ULnCo","buildingOrder":0,"floor":"L1","floorCode":"-vH5uZXijKrzlJQIIIkba","floorOrder":4,"xaxis":"","yaxis":"","navXaxis":"","navYaxis":""}],"status":"多云转阴"}} \ No newline at end of file +{ + "code": 200, + "msg": "操作成功", + "data": { + "temperature": "15", + "columnList": [ + { + "moduleType": 1, + "name": "美食", + "nameEn": "", + "introduce": "", + "introduceEn": "", + "crossFileCode": "", + "verticalFileCode": "" + }, + { + "moduleType": 2, + "name": "游玩", + "nameEn": "", + "introduce": "", + "introduceEn": "", + "crossFileCode": "", + "verticalFileCode": "" + }, + { + "moduleType": 3, + "name": "购物", + "nameEn": "", + "introduce": "", + "introduceEn": "", + "crossFileCode": "", + "verticalFileCode": "" + } + ], + "hotSearch": [ + { + "logoCode": "Jrw0_ifPRL40HwIJuQMv71", + "logoUrl": "/iotFile/2023/04/18/Jrw0_ifPRL40HwIJuQMv7.png", + "shopCode": "N58iWdPNw2wAB0X8BxmW1", + "shopName": "星巴克", + "building": "A", + "buildingCode": "suG1YjUhWnvRBJm3ULnCo", + "buildingOrder": 0, + "floor": "L1", + "floorCode": "-vH5uZXijKrzlJQIIIkba", + "floorOrder": 4, + "xaxis": "", + "yaxis": "", + "navXaxis": "", + "navYaxis": "" + }, + { + "logoCode": "Jrw0_ifPRL40HwIJuQMv72", + "logoUrl": "/iotFile/2023/04/18/Jrw0_ifPRL40HwIJuQMv7.png", + "shopCode": "N58iWdPNw2wAB0X8BxmW1", + "shopName": "星巴克", + "building": "A", + "buildingCode": "suG1YjUhWnvRBJm3ULnCo", + "buildingOrder": 0, + "floor": "L1", + "floorCode": "-vH5uZXijKrzlJQIIIkba", + "floorOrder": 4, + "xaxis": "", + "yaxis": "", + "navXaxis": "", + "navYaxis": "" + }, + { + "logoCode": "Jrw0_ifPRL40HwIJuQMv73", + "logoUrl": "/iotFile/2023/04/18/Jrw0_ifPRL40HwIJuQMv7.png", + "shopCode": "N58iWdPNw2wAB0X8BxmW1", + "shopName": "星巴克", + "building": "A", + "buildingCode": "suG1YjUhWnvRBJm3ULnCo", + "buildingOrder": 0, + "floor": "L1", + "floorCode": "-vH5uZXijKrzlJQIIIkba", + "floorOrder": 4, + "xaxis": "", + "yaxis": "", + "navXaxis": "", + "navYaxis": "" + }, + { + "logoCode": "Jrw0_ifPRL40HwIJuQMv74", + "logoUrl": "/iotFile/2023/04/18/Jrw0_ifPRL40HwIJuQMv7.png", + "shopCode": "N58iWdPNw2wAB0X8BxmW1", + "shopName": "星巴克", + "building": "A", + "buildingCode": "suG1YjUhWnvRBJm3ULnCo", + "buildingOrder": 0, + "floor": "L1", + "floorCode": "-vH5uZXijKrzlJQIIIkba", + "floorOrder": 4, + "xaxis": "", + "yaxis": "", + "navXaxis": "", + "navYaxis": "" + }, + { + "logoCode": "Jrw0_ifPRL40HwIJuQMv75", + "logoUrl": "/iotFile/2023/04/18/Jrw0_ifPRL40HwIJuQMv7.png", + "shopCode": "N58iWdPNw2wAB0X8BxmW1", + "shopName": "星巴克", + "building": "A", + "buildingCode": "suG1YjUhWnvRBJm3ULnCo", + "buildingOrder": 0, + "floor": "L1", + "floorCode": "-vH5uZXijKrzlJQIIIkba", + "floorOrder": 4, + "xaxis": "", + "yaxis": "", + "navXaxis": "", + "navYaxis": "" + }, + { + "logoCode": "Jrw0_ifPRL40HwIJuQMv76", + "logoUrl": "/iotFile/2023/04/18/Jrw0_ifPRL40HwIJuQMv7.png", + "shopCode": "N58iWdPNw2wAB0X8BxmW1", + "shopName": "星巴克", + "building": "A", + "buildingCode": "suG1YjUhWnvRBJm3ULnCo", + "buildingOrder": 0, + "floor": "L1", + "floorCode": "-vH5uZXijKrzlJQIIIkba", + "floorOrder": 4, + "xaxis": "", + "yaxis": "", + "navXaxis": "", + "navYaxis": "" + }, + { + "logoCode": "Jrw0_ifPRL40HwIJuQMv77", + "logoUrl": "/iotFile/2023/04/18/Jrw0_ifPRL40HwIJuQMv7.png", + "shopCode": "N58iWdPNw2wAB0X8BxmW1", + "shopName": "星巴克", + "building": "A", + "buildingCode": "suG1YjUhWnvRBJm3ULnCo", + "buildingOrder": 0, + "floor": "L1", + "floorCode": "-vH5uZXijKrzlJQIIIkba", + "floorOrder": 4, + "xaxis": "", + "yaxis": "", + "navXaxis": "", + "navYaxis": "" + }, + { + "logoCode": "Jrw0_ifPRL40HwIJuQMv78", + "logoUrl": "/iotFile/2023/04/18/Jrw0_ifPRL40HwIJuQMv7.png", + "shopCode": "N58iWdPNw2wAB0X8BxmW1", + "shopName": "星巴克", + "building": "A", + "buildingCode": "suG1YjUhWnvRBJm3ULnCo", + "buildingOrder": 0, + "floor": "L1", + "floorCode": "-vH5uZXijKrzlJQIIIkba", + "floorOrder": 4, + "xaxis": "", + "yaxis": "", + "navXaxis": "", + "navYaxis": "" + }, + { + "logoCode": "Jrw0_ifPRL40HwIJuQMv79", + "logoUrl": "/iotFile/2023/04/18/Jrw0_ifPRL40HwIJuQMv7.png", + "shopCode": "N58iWdPNw2wAB0X8BxmW1", + "shopName": "星巴克", + "building": "A", + "buildingCode": "suG1YjUhWnvRBJm3ULnCo", + "buildingOrder": 0, + "floor": "L1", + "floorCode": "-vH5uZXijKrzlJQIIIkba", + "floorOrder": 4, + "xaxis": "", + "yaxis": "", + "navXaxis": "", + "navYaxis": "" + }, + { + "logoCode": "Jrw0_ifPRL40HwIJuQMv70", + "logoUrl": "/iotFile/2023/04/18/Jrw0_ifPRL40HwIJuQMv7.png", + "shopCode": "N58iWdPNw2wAB0X8BxmW1", + "shopName": "星巴克", + "building": "A", + "buildingCode": "suG1YjUhWnvRBJm3ULnCo", + "buildingOrder": 0, + "floor": "L1", + "floorCode": "-vH5uZXijKrzlJQIIIkba", + "floorOrder": 4, + "xaxis": "", + "yaxis": "", + "navXaxis": "", + "navYaxis": "" + }, + { + "logoCode": "Jrw0_ifPRL40HwIJuQMv712", + "logoUrl": "/iotFile/2023/04/18/Jrw0_ifPRL40HwIJuQMv7.png", + "shopCode": "N58iWdPNw2wAB0X8BxmW1", + "shopName": "星巴克", + "building": "A", + "buildingCode": "suG1YjUhWnvRBJm3ULnCo", + "buildingOrder": 0, + "floor": "L1", + "floorCode": "-vH5uZXijKrzlJQIIIkba", + "floorOrder": 4, + "xaxis": "", + "yaxis": "", + "navXaxis": "", + "navYaxis": "" + }, + { + "logoCode": "Jrw0_ifPRL40HwIJuQMv713", + "logoUrl": "/iotFile/2023/04/18/Jrw0_ifPRL40HwIJuQMv7.png", + "shopCode": "N58iWdPNw2wAB0X8BxmW1", + "shopName": "星巴克", + "building": "A", + "buildingCode": "suG1YjUhWnvRBJm3ULnCo", + "buildingOrder": 0, + "floor": "L1", + "floorCode": "-vH5uZXijKrzlJQIIIkba", + "floorOrder": 4, + "xaxis": "", + "yaxis": "", + "navXaxis": "", + "navYaxis": "" + }, + { + "logoCode": "Jrw0_ifPRL40HwIJuQMv714", + "logoUrl": "/iotFile/2023/04/18/Jrw0_ifPRL40HwIJuQMv7.png", + "shopCode": "N58iWdPNw2wAB0X8BxmW1", + "shopName": "星巴克", + "building": "A", + "buildingCode": "suG1YjUhWnvRBJm3ULnCo", + "buildingOrder": 0, + "floor": "L1", + "floorCode": "-vH5uZXijKrzlJQIIIkba", + "floorOrder": 4, + "xaxis": "", + "yaxis": "", + "navXaxis": "", + "navYaxis": "" + }, + { + "logoCode": "Jrw0_ifPRL40HwIJuQMv715", + "logoUrl": "/iotFile/2023/04/18/Jrw0_ifPRL40HwIJuQMv7.png", + "shopCode": "N58iWdPNw2wAB0X8BxmW1", + "shopName": "星巴克", + "building": "A", + "buildingCode": "suG1YjUhWnvRBJm3ULnCo", + "buildingOrder": 0, + "floor": "L1", + "floorCode": "-vH5uZXijKrzlJQIIIkba", + "floorOrder": 4, + "xaxis": "", + "yaxis": "", + "navXaxis": "", + "navYaxis": "" + }, + { + "logoCode": "Jrw0_ifPRL40HwIJuQMv716", + "logoUrl": "/iotFile/2023/04/18/Jrw0_ifPRL40HwIJuQMv7.png", + "shopCode": "N58iWdPNw2wAB0X8BxmW1", + "shopName": "星巴克", + "building": "A", + "buildingCode": "suG1YjUhWnvRBJm3ULnCo", + "buildingOrder": 0, + "floor": "L1", + "floorCode": "-vH5uZXijKrzlJQIIIkba", + "floorOrder": 4, + "xaxis": "", + "yaxis": "", + "navXaxis": "", + "navYaxis": "" + }, + { + "logoCode": "Jrw0_ifPRL40HwIJuQMv717", + "logoUrl": "/iotFile/2023/04/18/Jrw0_ifPRL40HwIJuQMv7.png", + "shopCode": "N58iWdPNw2wAB0X8BxmW1", + "shopName": "星巴克", + "building": "A", + "buildingCode": "suG1YjUhWnvRBJm3ULnCo", + "buildingOrder": 0, + "floor": "L1", + "floorCode": "-vH5uZXijKrzlJQIIIkba", + "floorOrder": 4, + "xaxis": "", + "yaxis": "", + "navXaxis": "", + "navYaxis": "" + }, + { + "logoCode": "Jrw0_ifPRL40HwIJuQMv718", + "logoUrl": "/iotFile/2023/04/18/Jrw0_ifPRL40HwIJuQMv7.png", + "shopCode": "N58iWdPNw2wAB0X8BxmW1", + "shopName": "星巴克", + "building": "A", + "buildingCode": "suG1YjUhWnvRBJm3ULnCo", + "buildingOrder": 0, + "floor": "L1", + "floorCode": "-vH5uZXijKrzlJQIIIkba", + "floorOrder": 4, + "xaxis": "", + "yaxis": "", + "navXaxis": "", + "navYaxis": "" + } + ], + "status": "多云转阴" + } +} diff --git a/src/assets/images/search/close.png b/src/assets/images/search/close.png new file mode 100644 index 0000000..4b92521 Binary files /dev/null and b/src/assets/images/search/close.png differ diff --git a/src/assets/images/search/del.png b/src/assets/images/search/del.png new file mode 100644 index 0000000..70b5969 Binary files /dev/null and b/src/assets/images/search/del.png differ diff --git a/src/assets/images/search/position.png b/src/assets/images/search/position.png new file mode 100644 index 0000000..590ab1d Binary files /dev/null and b/src/assets/images/search/position.png differ diff --git a/src/assets/images/search/quickBg.png b/src/assets/images/search/quickBg.png new file mode 100644 index 0000000..f5828b3 Binary files /dev/null and b/src/assets/images/search/quickBg.png differ diff --git a/src/assets/images/search/search.png b/src/assets/images/search/search.png new file mode 100644 index 0000000..5dd374a Binary files /dev/null and b/src/assets/images/search/search.png differ diff --git a/src/assets/images/search/searchi.png b/src/assets/images/search/searchi.png new file mode 100644 index 0000000..981506e Binary files /dev/null and b/src/assets/images/search/searchi.png differ diff --git a/src/components/Search/Hot.vue b/src/components/Search/Hot.vue new file mode 100644 index 0000000..48931cf --- /dev/null +++ b/src/components/Search/Hot.vue @@ -0,0 +1,107 @@ + + + + + diff --git a/src/components/Search/Key.vue b/src/components/Search/Key.vue new file mode 100644 index 0000000..5687b39 --- /dev/null +++ b/src/components/Search/Key.vue @@ -0,0 +1,127 @@ + + + + + diff --git a/src/components/Search/Quick.vue b/src/components/Search/Quick.vue new file mode 100644 index 0000000..c7067bb --- /dev/null +++ b/src/components/Search/Quick.vue @@ -0,0 +1,79 @@ + + + + + diff --git a/src/components/Search/Search.vue b/src/components/Search/Search.vue new file mode 100644 index 0000000..cacbcb1 --- /dev/null +++ b/src/components/Search/Search.vue @@ -0,0 +1,51 @@ + + + + + diff --git a/src/http/api/base/index.ts b/src/http/api/base/index.ts index 1cce37a..12d5b80 100644 --- a/src/http/api/base/index.ts +++ b/src/http/api/base/index.ts @@ -18,3 +18,6 @@ export const getBackTime = () => request<[number, number]>({ url: `/JSON/getBack //手写地址 export const getHandWriting = (data: WrittenQuery) => request({ url: 'http://saas.1000my.com:8014/words', method: 'post', data }) + +// 获取首页数据 +export const getIndexJson = () => request({ url: `/JSON/index.json` }) diff --git a/src/i18n/lang/en.json b/src/i18n/lang/en.json index f0590f7..e1afe7a 100644 --- a/src/i18n/lang/en.json +++ b/src/i18n/lang/en.json @@ -19,5 +19,6 @@ }, "dispoint": "Activity and Discount", "service": "Service", - "school": "College Of Culture" + "school": "College Of Culture", + "hot": "Hot Shop" } diff --git a/src/i18n/lang/tw.json b/src/i18n/lang/tw.json index da75418..6ba183c 100644 --- a/src/i18n/lang/tw.json +++ b/src/i18n/lang/tw.json @@ -19,5 +19,6 @@ }, "dispoint": "優惠與活動", "service": "貼心服務", - "school": "文化學院" + "school": "文化學院", + "hot": "熱門店鋪" } diff --git a/src/i18n/lang/zh.json b/src/i18n/lang/zh.json index 2847443..3c7bd2c 100644 --- a/src/i18n/lang/zh.json +++ b/src/i18n/lang/zh.json @@ -19,5 +19,6 @@ }, "dispoint": "优惠与活动", "service": "贴心服务", - "school": "文化学院" + "school": "文化学院", + "hot": "热门店铺" } diff --git a/src/types/hot.d.ts b/src/types/hot.d.ts new file mode 100644 index 0000000..c70212d --- /dev/null +++ b/src/types/hot.d.ts @@ -0,0 +1,17 @@ +declare interface HotSearch { + logoCode: string + logoUrl: string + shopCode: string + shopName: string + building: string + buildingCode: string + buildingOrder: number + floor: string + floorCode: string + floorOrder: number + xaxis: string + yaxis: string + navXaxis: string + navYaxis: string + houseNumber: string +} diff --git a/src/views/Index/Top.vue b/src/views/Index/Top.vue index 5af8873..37d51cf 100644 --- a/src/views/Index/Top.vue +++ b/src/views/Index/Top.vue @@ -1,7 +1,7 @@