From 0612840cdcbbe733dc79dbec747425bbad888656 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=93=E6=B4=81?= <209192278@qq.com> Date: Tue, 5 Dec 2023 10:48:27 +0800 Subject: [PATCH] =?UTF-8?q?=E9=82=93=E6=B4=81=20:=20=E6=B3=A8=E9=87=8Alog?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/DropDown/DropDown.vue | 45 ++++++------ components/DropDown/DropDownItem.vue | 39 +++++----- components/InputAndSwiper/InputAndSwiper.vue | 22 +++--- components/SearchShopList/SearchShopList.vue | 2 +- .../SearchShopListItem/SearchShopListItem.vue | 5 +- components/ShowShopList/ShowShopList.vue | 4 +- .../ShowShopListItem/ShowShopListItem.vue | 6 +- pages/Partnerships/Partnerships.vue | 4 +- pages/detail/detail.vue | 12 ++-- pages/index/HomeMainContent/HomeNavCard.vue | 4 +- pages/index/NavBarPages/cjal/cjal.vue | 2 +- pages/index/NavBarPages/czxx/czxx.vue | 14 ++-- pages/index/NavBarPages/xmzs/xmzs.vue | 10 +-- pages/index/NavBarPages/zdxx/zdxx.vue | 8 +-- pages/index/NavBarPages/zrxx/zrxx.vue | 8 +-- pages/index/index.vue | 40 +++++------ pages/index/map/map.vue | 22 +++--- pages/my/login/login.vue | 4 +- .../publish/publishAddress/publishAddress.vue | 71 ++++++++++--------- .../publishInvestment/publishInvestment.vue | 31 ++++---- pages/publish/publishRent/publishRent.vue | 22 +++--- .../publishTransfer/publishTransfer.vue | 22 +++--- pages/published/published.vue | 32 ++++----- pages/shopAddress/shopAddress.vue | 10 +-- pages/shopTransfer/shopTransfer.vue | 6 +- service/request.js | 3 +- utils/share.js | 16 +++-- 27 files changed, 235 insertions(+), 229 deletions(-) diff --git a/components/DropDown/DropDown.vue b/components/DropDown/DropDown.vue index 295bcc7..4d2d327 100644 --- a/components/DropDown/DropDown.vue +++ b/components/DropDown/DropDown.vue @@ -16,7 +16,8 @@ + :type="title[activeIndex]" :activeChoose="setActiveTag" :key="tablist" ref="dropdownitem" + @cancelPageNum="cancelPageNum" /> @@ -40,8 +41,8 @@ postlist: [ [], [], - ['全部','小于50m²', '50-200m²', '200-600m²', '600-800m²', '800-1000m²', '1000m²以上'], - ['全部','面积从大到小', '面积从小到大', '租金从大到小', '租金从小到大'] + ['全部', '小于50m²', '50-200m²', '200-600m²', '600-800m²', '800-1000m²', '1000m²以上'], + ['全部', '面积从大到小', '面积从小到大', '租金从大到小', '租金从小到大'] ], queryInfo: { region: '', @@ -56,21 +57,21 @@ // 当前选中的面积下拉列表项 currentAreaActive: 0, // 当前选中的筛选下拉列表项 - currentFilterActive: 0, + currentFilterActive: 0, }; }, computed: { tablist: function() { return this.postlist[this.activeIndex] }, - setActiveTag: function(){ - if(this.activeIndex == 0){ + setActiveTag: function() { + if (this.activeIndex == 0) { return this.currentClassActive - }else if(this.activeIndex == 1){ + } else if (this.activeIndex == 1) { return this.currentRegionActive - }else if(this.activeIndex == 2){ + } else if (this.activeIndex == 2) { return this.currentAreaActive - }else if(this.activeIndex == 3){ + } else if (this.activeIndex == 3) { return this.currentFilterActive } } @@ -84,8 +85,8 @@ // this.postlist[3].unshift('全部') }, watch: { - setActiveTag (reset){ - + setActiveTag(reset) { + } }, methods: { @@ -98,29 +99,29 @@ cancelDrop() { this.activeIndex = -1; }, - cancelPageNum(){ - this.$emit('cancelPageNum') + cancelPageNum() { + this.$emit('cancelPageNum') }, getQueryInfo(querys) { - console.log(querys, 'getquerysinfo'); + // console.log(querys, 'getquerysinfo'); // 修改当前选择的各选项卡下标 // 记忆各下拉框数据 if (this.activeIndex === 0) { this.currentClassActive = querys.business - }else if (this.activeIndex === 1) { + } else if (this.activeIndex === 1) { this.currentRegionActive = querys.region - }else if (this.activeIndex === 2) { + } else if (this.activeIndex === 2) { this.currentAreaActive = querys.areatype - }else if (this.activeIndex === 3) { + } else if (this.activeIndex === 3) { this.currentFilterActive = querys.sortType } // 特殊处理行业、区域 - if(querys.business){ + if (querys.business) { querys.business = this.tablist[this.currentClassActive] } - if(querys.region){ + if (querys.region) { querys.region = this.tablist[this.currentRegionActive] } @@ -129,11 +130,11 @@ ...querys } const query = this.$u.queryParams(this.queryInfo) - console.log(querys, 'dropquery'); + // console.log(querys, 'dropquery'); this.$emit('getQueryInfo', this.queryInfo) }, - resetInfo(){ - console.log("重置了Dropdown"); + resetInfo() { + // console.log("重置了Dropdown"); this.queryInfo = { region: '', sortType: '', diff --git a/components/DropDown/DropDownItem.vue b/components/DropDown/DropDownItem.vue index b629bc8..16a1ae6 100644 --- a/components/DropDown/DropDownItem.vue +++ b/components/DropDown/DropDownItem.vue @@ -44,60 +44,60 @@ this.$emit('cancelDrop'); }, sendQueryInfo() { - console.log(this.queryInfo); - console.log(this.type); - console.log(this.activeIndex); - + // console.log(this.queryInfo); + // console.log(this.type); + // console.log(this.activeIndex); + if (this.type === '行业') { - if(this.list[this.activeIndex] == '全部'){ + if (this.list[this.activeIndex] == '全部') { this.queryInfo = { business: '' } - }else{ + } else { this.queryInfo = { business: this.activeIndex } } - + } else if (this.type === '区域') { - if(this.list[this.activeIndex] == '全区域'){ + if (this.list[this.activeIndex] == '全区域') { this.queryInfo = { region: '' } - }else{ + } else { this.queryInfo = { region: this.activeIndex } } } else if (this.type === '面积') { - if(this.list[this.activeIndex] == '任意面积'){ + if (this.list[this.activeIndex] == '任意面积') { this.queryInfo = { areatype: '' } - }else { + } else { this.queryInfo = { areatype: this.activeIndex } } - + } else if (this.type === '筛选') { - if(this.list[this.activeIndex] == '全部'){ + if (this.list[this.activeIndex] == '全部') { this.queryInfo = { sortType: '' } - }else{ + } else { this.queryInfo = { sortType: this.activeIndex } } - + } // 发送queryInfo - console.log(this.queryInfo, 'sendqueryInfo'); - this.$emit('getQueryInfo', this.queryInfo); + // console.log(this.queryInfo, 'sendqueryInfo'); + this.$emit('getQueryInfo', this.queryInfo); }, - resetQueryInfo(){ - console.log("重置了DropdownItem"); + resetQueryInfo() { + // console.log("重置了DropdownItem"); this.currentClassActive = 0 this.currentRegionActive = 0 this.currentAreaActive = 0 @@ -170,6 +170,7 @@ border-radius: 0px 0px 20px 20px; height: 320rpx; overflow-y: auto; + .item { border-top: 1px solid #EEEEEE; font-weight: 500; diff --git a/components/InputAndSwiper/InputAndSwiper.vue b/components/InputAndSwiper/InputAndSwiper.vue index fb4ce65..5d4c8bb 100644 --- a/components/InputAndSwiper/InputAndSwiper.vue +++ b/components/InputAndSwiper/InputAndSwiper.vue @@ -78,7 +78,7 @@ }, handleClear(e) { - console.log('handleClear', e); + // console.log('handleClear', e); }, open() { if (!uni.getStorageSync('city') && !uni.getStorageSync('district')) { @@ -93,7 +93,7 @@ if (res.confirm) { this.getUserLocation(); } else { - console.log('取消'); + // console.log('取消'); return false; } } @@ -113,8 +113,8 @@ uni.getFuzzyLocation({ type: 'wgs84', success(res) { - console.log('res.latitude', res.latitude); - console.log('res.longitude', res.longitude); + // console.log('res.latitude', res.latitude); + // console.log('res.longitude', res.longitude); uni.setStorageSync('latitude', res.latitude); uni.setStorageSync('longitude', res.longitude); qqmapsdk.reverseGeocoder({ @@ -123,12 +123,12 @@ longitude: res.longitude }, success: (re) => { - console.log("解析地址成功", re); - console.log(re.result.ad_info.city); - console.log(re.result.ad_info.district); + // console.log("解析地址成功", re); + // console.log(re.result.ad_info.city); + // console.log(re.result.ad_info.district); let city = re.result.ad_info.city let district = re.result.ad_info.district - console.log('city-code', re.result.ad_info.city_code.substring(3)); + // console.log('city-code', re.result.ad_info.city_code.substring(3)); uni.setStorageSync('city_code', re.result.ad_info.city_code.substring(3)); uni.setStorageSync('city', city.slice(0, 2)); uni.setStorageSync('district', district); @@ -136,12 +136,12 @@ // that.position = city.slice(0, 2) + district.slice(0, 2) }, fail: (re) => { - console.log(re, '失败信息'); + // console.log(re, '失败信息'); } }) }, fail(err) { - console.log("获取经纬度失败", err); + // console.log("获取经纬度失败", err); uni.getSystemInfo({ success: (res) => { if (!res.locationEnabled || !res.locationAuthorized) { @@ -158,7 +158,7 @@ // } // }) } else { - console.log('取消'); + // console.log('取消'); return false; } } diff --git a/components/SearchShopList/SearchShopList.vue b/components/SearchShopList/SearchShopList.vue index b3c0478..57bcc12 100644 --- a/components/SearchShopList/SearchShopList.vue +++ b/components/SearchShopList/SearchShopList.vue @@ -57,7 +57,7 @@ this.$emit('updateItem', searchid) }, handleDel(shopid) { - console.log("删除了商铺", shopid); + // console.log("删除了商铺", shopid); this.$emit('delItem', shopid) // const delindex = this.shopInfoList.findIndex((item,index)=> item.shopid === shopid) // TODO:不能直接修改 diff --git a/components/SearchShopListItem/SearchShopListItem.vue b/components/SearchShopListItem/SearchShopListItem.vue index fd0c8bd..ca75a81 100644 --- a/components/SearchShopListItem/SearchShopListItem.vue +++ b/components/SearchShopListItem/SearchShopListItem.vue @@ -150,14 +150,14 @@ type: this.shopInfo.type, search: 1 }) - console.log("query", query); + // console.log("query", query); uni.navigateTo({ url: '/pages/detail/detail' + `${query}` }) }, handleEdit(searchid) { // TODO 完成页面跳转 - console.log("点击了编辑ID为", searchid); + // console.log("点击了编辑ID为", searchid); this.$emit('updateItem', searchid) }, handleDel(searchid) { @@ -246,6 +246,7 @@ >view { display: flex; + >view { display: flex; diff --git a/components/ShowShopList/ShowShopList.vue b/components/ShowShopList/ShowShopList.vue index 40c189d..56ad540 100644 --- a/components/ShowShopList/ShowShopList.vue +++ b/components/ShowShopList/ShowShopList.vue @@ -76,7 +76,7 @@ this.$emit('updateItem', shopid) }, handleDel(shopid) { - console.log("删除了商铺", shopid); + // console.log("删除了商铺", shopid); this.$emit('delItem', shopid) // const delindex = this.shopInfoList.findIndex((item,index)=> item.shopid === shopid) // TODO:不能直接修改 @@ -90,7 +90,7 @@ pageNum: this.pageNum, ...this.customQuery }) - console.log("query", query); + // console.log("query", query); this.$api.getShopList(query).then(res => { this.shopInfoList = res.data.data this.shopInfoList.forEach(item => { diff --git a/components/ShowShopListItem/ShowShopListItem.vue b/components/ShowShopListItem/ShowShopListItem.vue index f2a2c1a..70cff4c 100644 --- a/components/ShowShopListItem/ShowShopListItem.vue +++ b/components/ShowShopListItem/ShowShopListItem.vue @@ -162,7 +162,7 @@ methods: { handleEdit(shopid) { // TODO 完成页面跳转 - console.log("点击了编辑ID为", shopid); + // console.log("点击了编辑ID为", shopid); this.$emit('updateItem', shopid) }, handleDel(shopid) { @@ -170,12 +170,12 @@ this.$emit('delItem', shopid) }, enterDetail() { - console.log("进入详情页面", this.shopInfo.id, this.shopInfo.type); + // console.log("进入详情页面", this.shopInfo.id, this.shopInfo.type); const query = this.$u.queryParams({ id: this.shopInfo.id, type: this.shopInfo.type }) - console.log("query", query); + // console.log("query", query); uni.navigateTo({ url: '/pages/detail/detail' + `${query}` }) diff --git a/pages/Partnerships/Partnerships.vue b/pages/Partnerships/Partnerships.vue index bd1e17b..e89ef9d 100644 --- a/pages/Partnerships/Partnerships.vue +++ b/pages/Partnerships/Partnerships.vue @@ -97,7 +97,7 @@ ...this.submitForm, uid: uni.getStorageSync('uid') } - console.log('成', data); + // console.log('成', data); this.$api.toBePartner(data).then(res => { if (res.data.msg == "提交成功") { this.show = true @@ -105,7 +105,7 @@ }) } } else if (this.member == 2) { - console.log('联系客服'); + // console.log('联系客服'); } } } diff --git a/pages/detail/detail.vue b/pages/detail/detail.vue index 387d380..fa05036 100644 --- a/pages/detail/detail.vue +++ b/pages/detail/detail.vue @@ -98,7 +98,7 @@ } }, onLoad: function(options) { - console.log('detail', options); + // console.log('detail', options); this.type = options.type if (options.search == "1") { this.search = false @@ -115,13 +115,13 @@ this.showM = true }, share() { - console.log('分享'); + // console.log('分享'); }, getDetail(type, id) { this.$api.getShopDetail(type, id).then(res => { const data = res.data.data if (res.data.code == 1) { - console.log('data.pics', data.pics); + // console.log('data.pics', data.pics); var arr = []; var arr1 = []; let obj = {} @@ -131,7 +131,7 @@ arr1.push(obj) }) data.pics = arr1 - console.log('arr', arr1); + // console.log('arr', arr1); data.avatar = this.$api.imgUrl + data.avatar this.shopInfo = data } @@ -144,10 +144,10 @@ uni.makePhoneCall({ phoneNumber: phone, success: function() { - console.log('拨打电话成功'); + // console.log('拨打电话成功'); }, fail() { - console.log('打电话失败了'); + // console.log('打电话失败了'); } }) }, diff --git a/pages/index/HomeMainContent/HomeNavCard.vue b/pages/index/HomeMainContent/HomeNavCard.vue index d3a1134..6397529 100644 --- a/pages/index/HomeMainContent/HomeNavCard.vue +++ b/pages/index/HomeMainContent/HomeNavCard.vue @@ -99,10 +99,10 @@ uni.makePhoneCall({ phoneNumber: phone, success: function() { - console.log('拨打电话成功'); + // console.log('拨打电话成功'); }, fail() { - console.log('打电话失败了'); + // console.log('打电话失败了'); } }) }, diff --git a/pages/index/NavBarPages/cjal/cjal.vue b/pages/index/NavBarPages/cjal/cjal.vue index c2a1e19..c9e3664 100644 --- a/pages/index/NavBarPages/cjal/cjal.vue +++ b/pages/index/NavBarPages/cjal/cjal.vue @@ -25,7 +25,7 @@ this.$api.getSuccList().then(res => { this.shopListLength = res.data.data.length this.shopInfoList = [...this.shopInfoList, ...res.data.data] - console.log(this.shopInfoList); + // console.log(this.shopInfoList); }) } } diff --git a/pages/index/NavBarPages/czxx/czxx.vue b/pages/index/NavBarPages/czxx/czxx.vue index fb71c36..530e841 100644 --- a/pages/index/NavBarPages/czxx/czxx.vue +++ b/pages/index/NavBarPages/czxx/czxx.vue @@ -67,7 +67,7 @@ this.keyword = '' this.pageNum++ this.getShopList() - console.log("触底加载"); + // console.log("触底加载"); } else if (this.shopListLength == 0) { this.pageNum = 1 } @@ -77,7 +77,7 @@ }, methods: { getInput(val) { - console.log('搜索值', val); + // console.log('搜索值', val); if (this.pageNum !== 1) { this.pageNum = 1 } @@ -104,12 +104,12 @@ } else { query = this.getQueryInfo(q) } - console.log("listquery", query); + // console.log("listquery", query); this.$api.getShopList(query).then(res => { this.shopListLength = res.data.data.length if (query.includes('business') || query.includes('areatype') || query.includes('sortType') || query .includes('region') || this.refresh) { - console.log('筛选'); + // console.log('筛选'); // this.resetQuery(q) this.shopInfoList = res.data.data this.refresh = false @@ -119,15 +119,15 @@ this.showNull = false } } else { - console.log('查询'); + // console.log('查询'); this.shopInfoList = [...this.shopInfoList, ...res.data.data] } uni.stopPullDownRefresh() - console.log(this.shopInfoList); + // console.log(this.shopInfoList); }) }, getQueryInfo(query) { - console.log("getQueryInfo", query); + // console.log("getQueryInfo", query); const q = this.$u.queryParams({ type: 3, pageSize: this.pageSize, diff --git a/pages/index/NavBarPages/xmzs/xmzs.vue b/pages/index/NavBarPages/xmzs/xmzs.vue index 640a025..157c6f2 100644 --- a/pages/index/NavBarPages/xmzs/xmzs.vue +++ b/pages/index/NavBarPages/xmzs/xmzs.vue @@ -67,7 +67,7 @@ this.keyword = '' this.pageNum++ this.getShopList() - console.log("触底加载"); + // console.log("触底加载"); } else if (this.searchListLength == 0) { this.pageNum = 1 } @@ -77,7 +77,7 @@ }, methods: { getInput(val) { - console.log('搜索值', val); + // console.log('搜索值', val); if (this.pageNum !== 1) { this.pageNum = 1 } @@ -104,7 +104,7 @@ } else { query = this.getQueryInfo(q) } - console.log("listquery", query); + // console.log("listquery", query); this.$api.getShopList(query).then(res => { this.shopListLength = res.data.data.length if (query.includes('business') || query.includes('areatype') || query.includes('sortType') || query @@ -123,11 +123,11 @@ this.shopInfoList = [...this.shopInfoList, ...res.data.data] } uni.stopPullDownRefresh() - console.log(this.shopInfoList); + // console.log(this.shopInfoList); }) }, getQueryInfo(query) { - console.log("getQueryInfo", query); + // console.log("getQueryInfo", query); const q = this.$u.queryParams({ type: 4, pageSize: this.pageSize, diff --git a/pages/index/NavBarPages/zdxx/zdxx.vue b/pages/index/NavBarPages/zdxx/zdxx.vue index 177643f..080f7a7 100644 --- a/pages/index/NavBarPages/zdxx/zdxx.vue +++ b/pages/index/NavBarPages/zdxx/zdxx.vue @@ -76,7 +76,7 @@ }, methods: { getInput(val) { - console.log('搜索值', val); + // console.log('搜索值', val); if (this.pageNum !== 1) { this.pageNum = 1 } @@ -103,7 +103,7 @@ } else { query = this.getQueryInfo(q) } - console.log("listquery", query); + // console.log("listquery", query); this.$api.getShopList(query).then(res => { this.searchListLength = res.data.data.length if (query.includes('business') || query.includes('areatype') || query.includes('sortType') || query @@ -122,11 +122,11 @@ this.searchInfoList = [...this.searchInfoList, ...res.data.data] } uni.stopPullDownRefresh() - console.log(this.searchInfoList); + // console.log(this.searchInfoList); }) }, getQueryInfo(query) { - console.log("getQueryInfo", query); + // console.log("getQueryInfo", query); const q = this.$u.queryParams({ type: 2, pageSize: this.pageSize, diff --git a/pages/index/NavBarPages/zrxx/zrxx.vue b/pages/index/NavBarPages/zrxx/zrxx.vue index 56fd96e..0f8078b 100644 --- a/pages/index/NavBarPages/zrxx/zrxx.vue +++ b/pages/index/NavBarPages/zrxx/zrxx.vue @@ -76,7 +76,7 @@ }, methods: { getInput(val) { - console.log('搜索值', val); + // console.log('搜索值', val); if (this.pageNum !== 1) { this.pageNum = 1 } @@ -103,7 +103,7 @@ } else { query = this.getQueryInfo(q) } - console.log("listquery", query); + // console.log("listquery", query); this.$api.getShopList(query).then(res => { this.shopListLength = res.data.data.length if (query.includes('business') || query.includes('areatype') || query.includes('sortType') || query @@ -121,12 +121,12 @@ console.log('查询'); this.shopInfoList = [...this.shopInfoList, ...res.data.data] } - console.log(this.shopInfoList); + // console.log(this.shopInfoList); uni.stopPullDownRefresh() }) }, getQueryInfo(query) { - console.log("getQueryInfo", query); + // console.log("getQueryInfo", query); const q = this.$u.queryParams({ type: 1, pageSize: this.pageSize, diff --git a/pages/index/index.vue b/pages/index/index.vue index f39f003..f1ef1f5 100644 --- a/pages/index/index.vue +++ b/pages/index/index.vue @@ -77,7 +77,7 @@ if (res.confirm) { this.getUserLocation(); } else { - console.log('取消'); + // console.log('取消'); return false; } } @@ -144,7 +144,7 @@ this.shopSearchListLength = res.data.data.length // 用于触底刷新 为数据赋值:通过展开运算符的形式,进行新旧数据的拼接 this.searchInfoList = [...this.searchInfoList, ...res.data.data] - console.log(this.searchInfoList); + // console.log(this.searchInfoList); }) }, getClassList() { @@ -166,7 +166,7 @@ uni.setStorageSync('regionList', JSON.stringify(res.data.result[0].map(item => item.fullname))); }, fail(err) { - console.log('请求区域失败:', err); + // console.log('请求区域失败:', err); } }) }, @@ -178,8 +178,8 @@ uni.getFuzzyLocation({ type: 'wgs84', success(res) { - console.log('res.latitude', res.latitude); - console.log('res.longitude', res.longitude); + // console.log('res.latitude', res.latitude); + // console.log('res.longitude', res.longitude); uni.setStorageSync('latitude', res.latitude); uni.setStorageSync('longitude', res.longitude); qqmapsdk.reverseGeocoder({ @@ -188,12 +188,12 @@ longitude: res.longitude }, success: (re) => { - console.log("解析地址成功", re); - console.log(re.result.ad_info.city); - console.log(re.result.ad_info.district); + // console.log("解析地址成功", re); + // console.log(re.result.ad_info.city); + // console.log(re.result.ad_info.district); let city = re.result.ad_info.city let district = re.result.ad_info.district - console.log('city-code', re.result.ad_info.city_code.substring(3)); + // console.log('city-code', re.result.ad_info.city_code.substring(3)); uni.setStorageSync('city_code', re.result.ad_info.city_code.substring(3)); uni.setStorageSync('city', city.slice(0, 2)); uni.setStorageSync('district', district); @@ -201,12 +201,12 @@ // that.position = city.slice(0, 2) + district.slice(0, 2) }, fail: (re) => { - console.log(re, '失败信息'); + // console.log(re, '失败信息'); } }) }, fail(err) { - console.log("获取经纬度失败", err); + // console.log("获取经纬度失败", err); uni.getSystemInfo({ success: (res) => { if (!res.locationEnabled || !res.locationAuthorized) { @@ -223,7 +223,7 @@ // } // }) } else { - console.log('取消'); + // console.log('取消'); return false; } } @@ -242,7 +242,7 @@ uni.getSetting({ success: function(res) { if (res.authSetting['scope.userFuzzyLocation']) { - console.log('用户已经授权定位权限'); + // console.log('用户已经授权定位权限'); uni.getSystemInfo({ success: (res) => { if (!res.locationEnabled || !res.locationAuthorized) { @@ -259,7 +259,7 @@ // } // }) } else { - console.log('取消'); + // console.log('取消'); return false; } } @@ -271,12 +271,12 @@ }) // that.getUserLocation() } else { - console.log('用户未授权定位权限'); + // console.log('用户未授权定位权限'); uni.authorize({ scope: 'scope.userFuzzyLocation', success: function() { this.isAuth = true - console.log('授权成功'); + // console.log('授权成功'); uni.getSystemInfo({ success: (res) => { if (!res.locationEnabled || !res.locationAuthorized) { @@ -298,7 +298,7 @@ // } // }) } else { - console.log('取消'); + // console.log('取消'); return false; } } @@ -310,7 +310,7 @@ }) }, fail: function() { - console.log('授权失败'); + // console.log('授权失败'); uni.showModal({ content: '检测到您没打开手机系统定位权限,请确保手机系统定位已开启', confirmText: "确认", @@ -319,12 +319,12 @@ if (res.confirm) { uni.openSetting({ success: (res) => { - console.log(res); + // console.log(res); that.getUserLocation(); } }) } else { - console.log('取消'); + // console.log('取消'); return false; } } diff --git a/pages/index/map/map.vue b/pages/index/map/map.vue index c1a75cd..822ad21 100644 --- a/pages/index/map/map.vue +++ b/pages/index/map/map.vue @@ -129,11 +129,11 @@ zoomOnClick: true, gridSize: 60, complete(res) { - console.log('initMarkerCluster', res) + // console.log('initMarkerCluster', res) } }); this._mapContext.on("markerClusterCreate", (e) => { - console.log("markerClusterCreate", e); + // console.log("markerClusterCreate", e); }); //定时监听地图缩放 setInterval(() => { @@ -147,7 +147,7 @@ }, watch: { scale(newVal, oldVal) { - console.log('thisscale', newVal, Math.round(newVal)); + // console.log('thisscale', newVal, Math.round(newVal)); this.showShop = false let ra = '' this.scaleM.forEach(item => { @@ -172,7 +172,7 @@ methods: { getDetail(type, id) { this.$api.getShopDetail(type, id).then(res => { - console.log('详情', res); + // console.log('详情', res); const data = res.data.data if (res.data.code == 1) { this.shopList = { @@ -183,24 +183,24 @@ }) }, handleRegionChange(e) { - console.log('地图缩放层级变化, 只能监听拖拽, 不能监听缩放', e); + // console.log('地图缩放层级变化, 只能监听拖拽, 不能监听缩放', e); }, getMapList(radius) { - console.log('longitude', uni.getStorageSync('longitude')); - console.log('latitude', uni.getStorageSync('latitude')); + // console.log('longitude', uni.getStorageSync('longitude')); + // console.log('latitude', uni.getStorageSync('latitude')); const realData = { longitude: uni.getStorageSync('longitude'), latitude: uni.getStorageSync('latitude'), radius: radius * 1000 } - console.log('realData.radius', realData.radius); + // console.log('realData.radius', realData.radius); const mockData = { longitude: 23.40, latitude: 116.38, radius: 1111111111 } this.$api.getMap(realData).then(res => { - console.log('getMap', res); + // console.log('getMap', res); let obj = {} let arr = [] if (res.data.code == 1) { @@ -229,13 +229,13 @@ }, ...arr, ] - console.log('this.marker', this.marker); + // console.log('this.marker', this.marker); } }) }, // 图标点击 markerClick(e) { - console.log('标记点击', e); + // console.log('标记点击', e); this.showShop = true let markerId = e.markerId; //点击标记点, 获取id, 查询店铺详情, 展示在下方 this.getDetail(1, markerId) diff --git a/pages/my/login/login.vue b/pages/my/login/login.vue index 3edeb0b..d697446 100644 --- a/pages/my/login/login.vue +++ b/pages/my/login/login.vue @@ -55,7 +55,7 @@ code: code }).then(res => { var data = res.data.data - console.log('res.da',res); + // console.log('res.da',res); // console.log('登录code换取的信息', data); uni.setStorageSync('loginToken', data.token); that.$toast.success('登录成功') @@ -65,7 +65,7 @@ code: e.detail.code } that.$api.getMobile(codeData).then(res => { - console.log('code换手机号', res) + // console.log('code换手机号', res) }) }) }, diff --git a/pages/publish/publishAddress/publishAddress.vue b/pages/publish/publishAddress/publishAddress.vue index 43caec5..dc9f998 100644 --- a/pages/publish/publishAddress/publishAddress.vue +++ b/pages/publish/publishAddress/publishAddress.vue @@ -18,7 +18,8 @@ - {{form.business}}-{{form.commercialForm}} + {{form.business}}-{{form.commercialForm}} 请选择店铺行业与业态 @@ -154,9 +155,9 @@ }, methods: { getDetail(type, id) { - console.log('type, id', type, id); + // console.log('type, id', type, id); this.$api.getShopDetail(type, id).then(res => { - console.log(',re', res); + // console.log(',re', res); const data = res.data.data if (res.data.code == 1) { this.form = { @@ -176,7 +177,7 @@ }) }, preview(e) { - console.log('预览', e); + // console.log('预览', e); }, handleSearchAddress() { uni.navigateTo({ @@ -185,9 +186,9 @@ }, submit() { this.$refs.uForm.validate().then(res => { - console.log("提交表单信息:", this.form, this.form.id) + // console.log("提交表单信息:", this.form, this.form.id) this.$api.publishAddress(this.form).then(res => { - console.log('发布找店地址', res); + // console.log('发布找店地址', res); if (res.data.code == 1) { uni.$u.toast(res.data.msg) uni.reLaunch({ @@ -198,7 +199,7 @@ } }) }).catch(errors => { - console.log("失败信息:", JSON.stringify(errors)) + // console.log("失败信息:", JSON.stringify(errors)) // uni.$u.toast('校验失败') }) }, @@ -211,29 +212,29 @@ } }, changeHandler(e) { - const { - columnIndex, - value, - values, // values为当前变化列的数组内容 - index, - // 微信小程序无法将picker实例传出来,只能通过ref操作 - picker = this.$refs.uPicker - } = e - // 当第一列值发生变化时,变化第二列(后一列)对应的选项 - console.log(e); - if (columnIndex === 0) { - // picker为选择器this实例,变化第二列对应的选项 - this.ClassCheckId = this.pid[index] - this.$api.getClassList(this.ClassCheckId).then(res => { - console.log(res); - this.Karmacolumns = res.data.data.map((item) => { - return item = item.name - }) - picker.setColumnValues(1, this.Karmacolumns) - }) - - } - }, + const { + columnIndex, + value, + values, // values为当前变化列的数组内容 + index, + // 微信小程序无法将picker实例传出来,只能通过ref操作 + picker = this.$refs.uPicker + } = e + // 当第一列值发生变化时,变化第二列(后一列)对应的选项 + // console.log(e); + if (columnIndex === 0) { + // picker为选择器this实例,变化第二列对应的选项 + this.ClassCheckId = this.pid[index] + this.$api.getClassList(this.ClassCheckId).then(res => { + // console.log(res); + this.Karmacolumns = res.data.data.map((item) => { + return item = item.name + }) + picker.setColumnValues(1, this.Karmacolumns) + }) + + } + }, getRegionList() { var that = this uni.request({ @@ -243,7 +244,7 @@ that.regionColumns = [res.data.result[0].map(item => item.fullname)] }, fail(err) { - console.log('请求区域失败:', err); + // console.log('请求区域失败:', err); } }) }, @@ -262,7 +263,7 @@ }, onLoad(options) { - console.log('修改找店地址', options); + // console.log('修改找店地址', options); if (options.item) { console.log('修改'); if (options.id) { @@ -279,13 +280,13 @@ }) this.pid = res.data.data.map((item) => { return item = item.id - + }) this.$api.getClassList(9).then(res => { this.Karmacolumns = res.data.data.map((item) => { return item = item.name - }) - this.$refs.uPicker.setColumnValues(1,this.Karmacolumns) + }) + this.$refs.uPicker.setColumnValues(1, this.Karmacolumns) }) }) }, diff --git a/pages/publish/publishInvestment/publishInvestment.vue b/pages/publish/publishInvestment/publishInvestment.vue index cc6b471..d92aa0b 100644 --- a/pages/publish/publishInvestment/publishInvestment.vue +++ b/pages/publish/publishInvestment/publishInvestment.vue @@ -31,7 +31,8 @@ - {{form.business}}-{{form.commercial}} + {{form.business}}-{{form.commercial}} 请选择店铺行业与业态 @@ -167,7 +168,7 @@ this[`fileList${event.name}`].splice(event.index, 1) }, preview(e) { - console.log('预览', e); + // console.log('预览', e); }, // 新增图片 async afterRead(event) { @@ -182,9 +183,9 @@ }) }) for (let i = 0; i < lists.length; i++) { - console.log('lists[i].url', lists[i].url); + // console.log('lists[i].url', lists[i].url); const result = await this.uploadFilePromise(lists[i].url) - console.log('result', result); + // console.log('result', result); let item = this[`fileList${event.name}`][fileListLen] this[`fileList${event.name}`].splice(fileListLen, 1, Object.assign(item, { status: 'success', @@ -238,9 +239,9 @@ region: this.form.region.split('-')[0], images: temp.join(',') } - console.log("项目招商:", data) + // console.log("项目招商:", data) this.$api.publishInvestment(data).then(res => { - console.log(res); + // console.log(res); if (res.data.code == 1) { uni.$u.toast(res.data.msg) uni.reLaunch({ @@ -251,7 +252,7 @@ } }) }).catch(errors => { - console.log("失败信息:" + JSON.stringify(errors)) + // console.log("失败信息:" + JSON.stringify(errors)) // uni.$u.toast('校验失败') }) }, @@ -309,12 +310,12 @@ that1.$refs.regionPicker.setColumnValues(1, that1.regionSecondColumns) }, fail(err) { - console.log('请求区域失败:', err); + // console.log('请求区域失败:', err); } }) }, fail(err) { - console.log('请求区域失败:', err); + // console.log('请求区域失败:', err); } }) }, @@ -345,16 +346,16 @@ }, karmaConfirm(e) { this.show3 = false - + }, regionConfirm(e) { this.show1 = false this.form.region = e.value[0] + '-' + e.value[1] }, getDetail(type, id) { - console.log('type, id', type, id); + // console.log('type, id', type, id); this.$api.getShopDetail(type, id).then(res => { - console.log(',re', res); + // console.log(',re', res); const data = res.data.data if (res.data.code == 1) { this.form = { @@ -411,13 +412,13 @@ }) this.pid = res.data.data.map((item) => { return item = item.id - + }) this.$api.getClassList(9).then(res => { this.Karmacolumns = res.data.data.map((item) => { return item = item.name - }) - this.$refs.uPicker.setColumnValues(1,this.Karmacolumns) + }) + this.$refs.uPicker.setColumnValues(1, this.Karmacolumns) }) }) }, diff --git a/pages/publish/publishRent/publishRent.vue b/pages/publish/publishRent/publishRent.vue index d6cb80f..5acae29 100644 --- a/pages/publish/publishRent/publishRent.vue +++ b/pages/publish/publishRent/publishRent.vue @@ -181,7 +181,7 @@ this[`fileList${event.name}`].splice(event.index, 1) }, preview(e) { - console.log('预览', e); + // console.log('预览', e); }, // 新增图片 async afterRead(event) { @@ -196,9 +196,9 @@ }) }) for (let i = 0; i < lists.length; i++) { - console.log('lists[i].url', lists[i].url); + // console.log('lists[i].url', lists[i].url); const result = await this.uploadFilePromise(lists[i].url) - console.log('result', result); + // console.log('result', result); let item = this[`fileList${event.name}`][fileListLen] this[`fileList${event.name}`].splice(fileListLen, 1, Object.assign(item, { status: 'success', @@ -252,9 +252,9 @@ region: this.form.region.split('-')[0], images: temp.join(',') } - console.log("提交表单信息:", data) + // console.log("提交表单信息:", data) this.$api.publishRent(data).then(res => { - console.log('发布店铺出租', res); + // console.log('发布店铺出租', res); if (res.data.code == 1) { uni.$u.toast(res.data.msg) uni.reLaunch({ @@ -350,7 +350,7 @@ url: 'https://apis.map.qq.com/ws/geocoder/v1/?address=' + that.form.region + value + '&key=' + that.$api.key, success(res) { - console.log('diz', res.data.result.location); + // console.log('diz', res.data.result.location); if (res.data.message == "query ok") { // console.log('lat', res.data.result.location.lat); that.form.latitude = res.data.result.location.lat @@ -375,12 +375,12 @@ picker = this.$refs.uPicker } = e // 当第一列值发生变化时,变化第二列(后一列)对应的选项 - console.log(e); + // console.log(e); if (columnIndex === 0) { // picker为选择器this实例,变化第二列对应的选项 this.ClassCheckId = this.pid[index] this.$api.getClassList(this.ClassCheckId).then(res => { - console.log(res); + // console.log(res); this.Karmacolumns = res.data.data.map((item) => { return item = item.name }) @@ -402,9 +402,9 @@ this.form.region = e.value[0] + '-' + e.value[1] }, getDetail(type, id) { - console.log('type, id', type, id); + // console.log('type, id', type, id); this.$api.getShopDetail(type, id).then(res => { - console.log(',re', res); + // console.log(',re', res); const data = res.data.data if (res.data.code == 1) { this.form = { @@ -447,7 +447,7 @@ }, onLoad(options) { - console.log('修改出租', options); + // console.log('修改出租', options); if (options.item) { console.log('修改'); if (options.id) { diff --git a/pages/publish/publishTransfer/publishTransfer.vue b/pages/publish/publishTransfer/publishTransfer.vue index f0c7eaa..55d638f 100644 --- a/pages/publish/publishTransfer/publishTransfer.vue +++ b/pages/publish/publishTransfer/publishTransfer.vue @@ -179,7 +179,7 @@ this[`fileList${event.name}`].splice(event.index, 1) }, preview(e) { - console.log('预览', e); + // console.log('预览', e); }, // 新增图片 async afterRead(event) { @@ -233,12 +233,12 @@ if (this.fileList1.length > 0) { this.fileList1.map(item => { const url = item.url - console.log('url', url, this.$api.imgUrl); + // console.log('url', url, this.$api.imgUrl); temp.push(url.replace(this.$api.imgUrl, '')) }) } - console.log('images---', temp.join(',')); + // console.log('images---', temp.join(',')); if (this.form.latitude && this.form.longitude) { console.log('经纬度都存在'); } else { @@ -252,9 +252,9 @@ region: this.form.region.split('-')[0], images: temp.join(',') } - console.log('提交表单信息', data); + // console.log('提交表单信息', data); this.$api.publishTransfer(data).then(res => { - console.log('发布店铺转让', res); + // console.log('发布店铺转让', res); if (res.data.code == 1) { uni.$u.toast(res.data.msg) uni.reLaunch({ @@ -351,7 +351,7 @@ url: 'https://apis.map.qq.com/ws/geocoder/v1/?address=' + that.form.region + value + '&key=' + that.$api.key, success(res) { - console.log('地址转经纬度', that.form.region, res.data); + // console.log('地址转经纬度', that.form.region, res.data); if (res.data.message == "query ok") { // console.log('lat', res.data.result.location.lat); that.form.latitude = res.data.result.location.lat @@ -376,12 +376,12 @@ picker = this.$refs.uPicker } = e // 当第一列值发生变化时,变化第二列(后一列)对应的选项 - console.log(e); + // console.log(e); if (columnIndex === 0) { // picker为选择器this实例,变化第二列对应的选项 this.ClassCheckId = this.pid[index] this.$api.getClassList(this.ClassCheckId).then(res => { - console.log(res); + // console.log(res); this.Karmacolumns = res.data.data.map((item) => { return item = item.name }) @@ -403,9 +403,9 @@ this.form.region = e.value[0] + '-' + e.value[1] }, getDetail(type, id) { - console.log('type, id', type, id); + // console.log('type, id', type, id); this.$api.getShopDetail(type, id).then(res => { - console.log(',re', res); + // console.log(',re', res); const data = res.data.data if (res.data.code == 1) { this.form = { @@ -447,7 +447,7 @@ this.$refs.uForm.setRules(this.rules) }, onLoad(options) { - console.log('修改转让', options); + // console.log('修改转让', options); if (options.item) { console.log('修改'); if (options.id) { diff --git a/pages/published/published.vue b/pages/published/published.vue index 6c0b3d0..2db9b62 100644 --- a/pages/published/published.vue +++ b/pages/published/published.vue @@ -46,7 +46,7 @@ matchPageNum: 1, keyword: '', refresh: false, - showNull: false, + showNull: false } }, onPullDownRefresh() { @@ -62,7 +62,7 @@ if (this.listId !== 4 && !this.refresh && this.searchListLength !== 0) { this.pageNum++ this.getMyPublished(this.listId + 1, this.pageSize, this.pageNum) - } else if (this.listId == 4 && !this.refresh &&this.matchListLength !== 0) { + } else if (this.listId == 4 && !this.refresh && this.matchListLength !== 0) { this.matchPageNum++ this.getMatch(this.matchPageSize, this.matchPageNum) } else if (this.searchListLength == 0) { @@ -74,8 +74,8 @@ }, methods: { getInput(val) { - console.log('搜索值', val); - + // console.log('搜索值', val); + if (this.listId !== 4) { if (this.pageNum !== 1) { this.pageNum = 1 @@ -86,7 +86,7 @@ pageNum: this.pageNum, title: val }).then(res => { - console.log('发布信息', res); + // console.log('发布信息', res); if (res.data.code == 1) { this.searchListLength = res.data.data.length this.searchInfoList = res.data.data @@ -109,9 +109,9 @@ title: val }).then(res => { if (res.data.code == 1) { - this.matchListLength = res.data.data.length + this.matchListLength = res.data.data[0].length this.matchList = res.data.data[0] - if (res.data.data.length == 0) { + if (res.data.data[0].length == 0) { this.showNull = true } else { this.showNull = false @@ -151,7 +151,7 @@ }) }, handleDel(shopid) { - console.log('页面删除', this.listId + 1, shopid); + // console.log('页面删除', this.listId + 1, shopid); var that = this uni.showModal({ title: '提示', @@ -176,22 +176,22 @@ }) }, - getMatch(pageSize,pageNum) { + getMatch(pageSize, pageNum) { this.$api.getMyMatch({ pageSize: pageSize, pageNum: pageNum }).then(res => { if (res.data.code == 1) { - this.matchListLength = res.data.data.length - if(this.refresh){ + this.matchListLength = res.data.data[0].length + if (this.refresh) { this.refresh = false - if (res.data.data.length == 0) { + if (res.data.data[0].length == 0) { this.showNull = true } else { this.showNull = false } this.matchList = res.data.data[0] - }else{ + } else { this.matchList = [...this.matchList, ...res.data.data[0]] } uni.stopPullDownRefresh() @@ -206,10 +206,10 @@ pageSize: pageSize, pageNum: pageNum }).then(res => { - console.log('发布信息l', res, res.data.data.length); + // console.log('发布信息l', res, res.data.data.length); if (res.data.code == 1) { this.searchListLength = res.data.data.length - if (isDelete == 1|| this.refresh) { + if (isDelete == 1 || this.refresh) { this.searchInfoList = res.data.data this.refresh = false if (res.data.data.length == 0) { @@ -228,7 +228,7 @@ } }, onLoad: function(option) { - console.log('option', option.listId); + // console.log('option', option.listId); this.listId = option.listId wx.setNavigationBarTitle({ title: option.titletext diff --git a/pages/shopAddress/shopAddress.vue b/pages/shopAddress/shopAddress.vue index 7a1173a..ac2ef32 100644 --- a/pages/shopAddress/shopAddress.vue +++ b/pages/shopAddress/shopAddress.vue @@ -77,7 +77,7 @@ }) }, getInput(val) { - console.log('搜索值', val); + // console.log('搜索值', val); if (this.pageNum !== 1) { this.pageNum = 1 } @@ -104,7 +104,7 @@ } else { query = this.getQueryInfo(q) } - console.log("listquery", query); + // console.log("listquery", query); this.$api.getShopList(query).then(res => { this.searchListLength = res.data.data.length if (query.includes('business') || query.includes('areatype') || query.includes('sortType') || query @@ -119,15 +119,15 @@ this.showNull = false } } else { - console.log('查询'); + // console.log('查询'); this.searchInfoList = [...this.searchInfoList, ...res.data.data] } - console.log(this.searchInfoList); + // console.log(this.searchInfoList); uni.stopPullDownRefresh() }) }, getQueryInfo(query) { - console.log("getQueryInfo", query); + // console.log("getQueryInfo", query); const q = this.$u.queryParams({ type: 2, pageSize: this.pageSize, diff --git a/pages/shopTransfer/shopTransfer.vue b/pages/shopTransfer/shopTransfer.vue index b16d45e..100bd56 100644 --- a/pages/shopTransfer/shopTransfer.vue +++ b/pages/shopTransfer/shopTransfer.vue @@ -80,7 +80,7 @@ }) }, getInput(val) { - console.log('搜索值', val); + // console.log('搜索值', val); if (this.pageNum !== 1) { this.pageNum = 1 } @@ -107,7 +107,7 @@ } else { query = this.getQueryInfo(q) } - console.log("listquery", query); + // console.log("listquery", query); this.$api.getShopList(query).then(res => { this.shopListLength = res.data.data.length if (query.includes('business') || query.includes('areatype') || query.includes('sortType') || query @@ -127,7 +127,7 @@ } uni.stopPullDownRefresh() - console.log(this.shopInfoList); + // console.log(this.shopInfoList); }) }, getQueryInfo(query) { diff --git a/service/request.js b/service/request.js index 3806430..4a21ce4 100644 --- a/service/request.js +++ b/service/request.js @@ -28,7 +28,7 @@ const service = { isOutTime(res); }, fail: err => { - console.log('错误', err); + // console.log('错误', err); reject(err) } }) @@ -261,7 +261,6 @@ const apiService = { toBePartner(data) { const url = `/center/partner` return new Promise((resolve, reject) => { - console.log(data); resolve(service.post(url, data)) }) }, diff --git a/utils/share.js b/utils/share.js index 5578dd9..9e0e4d0 100644 --- a/utils/share.js +++ b/utils/share.js @@ -1,8 +1,10 @@ -export default{ - onShareAppMessage() { - return {} - }, - onShareTimeline() { - return {} - } +export default { + onShareAppMessage() { + return { + title: '分享出去的卡片标题' + } + }, + onShareTimeline() { + return {} + } } \ No newline at end of file