{"code":"import { defineComponent } from \"vue\";\nimport { getStoreName, isToken } from \"@/api\";\nexport default defineComponent({\n    data() {\n        return {\n            ServiceName: '',\n            title: \"北京汽车有限公司\",\n            isshow: false,\n            isshow_1: false,\n            newListData: [],\n            textcontent: [],\n        };\n    },\n    mounted() {\n        isToken();\n        getStoreName().then((res = null) => {\n            getApp().allMsg = res.result;\n            this.textcontent = res.result;\n            this.title = res.result[0].storeName;\n            getApp().storeName = res.result[0].storeName;\n            getApp().dealerAddress = res.result[0].address;\n        });\n    },\n    methods: {\n        change_text() {\n            if (this.isshow) {\n                this.isshow = false;\n            }\n            else {\n                this.isshow = true;\n            }\n        },\n        orderEntry() {\n            uni.navigateTo({ url: '/pages/views/dingDanCreate' });\n        },\n        // 搜索城市名字\n        searchName() {\n            if (this.ServiceName) {\n                this.textcontent = [];\n                getApp().allMsg.map((item = null) => {\n                    if (item.storeName.indexOf(this.ServiceName) !== -1) {\n                        this.textcontent.push(item);\n                    }\n                });\n            }\n            else {\n                this.textcontent = [];\n                this.textcontent = getApp().allMsg;\n            }\n        },\n        change_city(name = null, address = null) {\n            this.title = name;\n            this.change_text();\n            this.isshow_1 = true;\n            getApp().storeName = this.title;\n            getApp().dealerAddress = address;\n        },\n        close_view() {\n            this.isshow_1 = false;\n        },\n        // 模糊匹配\n        // 右上角搜索框--模糊查询\n        handleSearch(event = null) {\n            uni.__f__('log', 'at pages/home/home.uvue:116', event);\n            if (event) {\n                this.textcontent = [];\n                getApp().allMsg.map((item = null) => {\n                    if (item.storeName.indexOf(event) !== -1) {\n                        this.textcontent.push(item);\n                    }\n                });\n            }\n            else {\n                this.textcontent = [];\n                this.textcontent = getApp().allMsg;\n            }\n        }\n    }\n});\n//# sourceMappingURL=C:/Users/lj/Desktop/121/contract-front/111/pages/home/home.uvue?vue&type=script&lang.uts.js.map","references":[],"uniExtApis":["uni.navigateTo","uni.__f__"],"map":"{\"version\":3,\"file\":\"home.uvue?vue&type=script&lang.uts.js\",\"sourceRoot\":\"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