diff --git a/components/DropDown/DropDown.vue b/components/DropDown/DropDown.vue
index fbb3786..d53355f 100644
--- a/components/DropDown/DropDown.vue
+++ b/components/DropDown/DropDown.vue
@@ -47,7 +47,6 @@
return {
title: ['行业', '区域', '面积', '筛选'],
activeIndex: -1,
- // postlist: [['全部', '餐饮美食', '百货超市', '美容美发'],['区域1', '区域2', '区域3', '区域4'],['100m2','200m2','300m2'],['附近的', '最新发布的', '其他']]
};
},
computed: {
diff --git a/pages/index/HomeMainContent/Statistics.vue b/pages/index/HomeMainContent/Statistics.vue
index 4b046ec..6d0beef 100644
--- a/pages/index/HomeMainContent/Statistics.vue
+++ b/pages/index/HomeMainContent/Statistics.vue
@@ -8,9 +8,9 @@
/>
累计用户
- {{ totalUser }}
+ {{ statNum.all_user_num }}
- 昨日新增{{ yesterdayUser }}位
+ 昨日新增{{ statNum.yesterday_user_num }}位
@@ -22,9 +22,9 @@
/>
累计转店
- {{ totalTrans }}
+ {{ statNum.all_trans_num }}
- 昨日新增{{ yesterdayTrans }}位
+ 昨日新增{{ statNum.yesterday_trans_num }}位
@@ -35,9 +35,9 @@
/>
累计找店
- {{ totalSearch }}
+ {{ statNum.all_find_num }}
- 昨日新增{{ yesterdaySearch }}位
+ 昨日新增{{ statNum.yesterday_find_num }}位
@@ -47,27 +47,18 @@
diff --git a/pages/index/NavBarPages/czxx/czxx.vue b/pages/index/NavBarPages/czxx/czxx.vue
index ef1e820..fafc32c 100644
--- a/pages/index/NavBarPages/czxx/czxx.vue
+++ b/pages/index/NavBarPages/czxx/czxx.vue
@@ -15,7 +15,7 @@
-
+
diff --git a/pages/index/NavBarPages/xmzs/xmzs.vue b/pages/index/NavBarPages/xmzs/xmzs.vue
index ef1e820..fafc32c 100644
--- a/pages/index/NavBarPages/xmzs/xmzs.vue
+++ b/pages/index/NavBarPages/xmzs/xmzs.vue
@@ -15,7 +15,7 @@
-
+
diff --git a/pages/index/index.vue b/pages/index/index.vue
index bcb85bb..f680ff4 100644
--- a/pages/index/index.vue
+++ b/pages/index/index.vue
@@ -4,10 +4,17 @@
+
-
+
店铺列表
@@ -38,7 +45,7 @@
return {
notice: [],
chooseIndex: 0,
- statisticsNum: [231753, 1345],
+ statNum: {},
swiperList:[]
}
},
@@ -47,13 +54,11 @@
this.getNotice()
this.getStat()
this.open()
- this.getRegionList()
},
methods: {
getBanner(){
this.$api.getBanner().then(res=>{
- console.log('lunbo',res.data.data);
- this.swiperList = res.data.data.map(item=>item.img)
+ this.swiperList = res.data.data.map(item=>this.$api.imgUrl+item.img)
})
},
getNotice(){
@@ -63,7 +68,8 @@
},
getStat(){
this.$api.getStat().then(res=>{
- this.statisticsNum = res.data.data
+ this.statNum = res.data.data
+ console.log(res.data.data);
})
},
getRegionList() {
@@ -89,8 +95,6 @@
success(res) {
console.log('res.latitude', res.latitude);
console.log('res.longitude', res.longitude);
- uni.setStorageSync('latitude', res.latitude);
- uni.setStorageSync('longitude', res.longitude);
qqmapsdk.reverseGeocoder({
location: {
latitude: res.latitude,
@@ -106,6 +110,7 @@
uni.setStorageSync('city_code', re.result.ad_info.city_code.substring(3));
uni.setStorageSync('city', city.slice(0, 2));
uni.setStorageSync('district', district);
+ that.getRegionList()
// that.position = city.slice(0, 2) + district.slice(0, 2)
},
fail: (re) => {
@@ -176,6 +181,18 @@
right: 17rpx;
top: 1109rpx;
z-index: 1;
+ .service-btn {
+ position: absolute;
+ top: 0;
+ background-color: inherit;
+ border-radius: 50%;
+ width: 108rpx;
+ height: 108rpx;
+ }
+ .service-btn::after {
+ border: none;
+
+ }
}
}
diff --git a/pages/my/login/login.vue b/pages/my/login/login.vue
index 6fc4400..3edeb0b 100644
--- a/pages/my/login/login.vue
+++ b/pages/my/login/login.vue
@@ -58,10 +58,6 @@
console.log('res.da',res);
// console.log('登录code换取的信息', data);
uni.setStorageSync('loginToken', data.token);
- uni.setStorageSync('avatar', data.avatar);
- uni.setStorageSync('nickname', data.nickname);
- uni.setStorageSync('account', data.sn);
- uni.setStorageSync('mobile', data.mobile);
that.$toast.success('登录成功')
that.$emit('success')
//登录完成后使用手机code换取手机号,调用/user/getMobileByMnp接口
diff --git a/pages/my/my.vue b/pages/my/my.vue
index 37331f3..f06f4e7 100644
--- a/pages/my/my.vue
+++ b/pages/my/my.vue
@@ -54,9 +54,6 @@
return
}
this.isLoad = true
- this.src = uni.getStorageSync('avatar')
- this.username = uni.getStorageSync('nickname')
- this.account = uni.getStorageSync('account')
},
methods: {
reOnLoad() {
diff --git a/pages/publish/publishTransfer/publishTransfer.vue b/pages/publish/publishTransfer/publishTransfer.vue
index 3ca6f12..de83147 100644
--- a/pages/publish/publishTransfer/publishTransfer.vue
+++ b/pages/publish/publishTransfer/publishTransfer.vue
@@ -5,56 +5,62 @@
发布房源图片({{ShopInfomation.count}}/5)
-
-
-
-
-
- 请选择所属区域
-
-
-
-
-
-
-
-
-
- 请选择行业类型
-
-
-
-
-
-
- 请选择行业业态
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 发布
-
+
+
+
+
+
+ 请选择所属区域
+
+
+
+
+
+
+
+
+
+ 请选择行业类型
+
+
+
+
+
+
+ 请选择行业业态
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 发布
+
@@ -62,91 +68,113 @@
export default {
data() {
return {
- regionColumns:[JSON.parse(uni.getStorageSync('regionList'))]||[],
- ShopInfomation:{
- city:'',
- area:'',
- count:0,
-
+ regionColumns: [JSON.parse(uni.getStorageSync('regionList'))] || [],
+ ShopInfomation: {
+ city: '',
+ area: '',
+ count: 0,
+
},
-
- form:{
- title:'',
- region:'',
- place:'',
- trade:'',
- karma:'',
- size:'',
- rent:'',
- sell:'',
- name:'',
- call:'',
- introduce:''
+
+ form: {
+ title: '',
+ region: '',
+ place: '',
+ trade: '',
+ karma: '',
+ size: '',
+ rent: '',
+ sell: '',
+ name: '',
+ call: '',
+ introduce: ''
},
- columns:[
-
+ columns: [
+
],
- show1:false,
- show2:false,
- show3:false,
- rules:{
- 'title':[{
- type:'string',
- require:true,
- message:'请输入姓名',
- trigger: ['change','blur']
- }],
- 'place':[{
- type:'string',
- require:true,
- message:'请输入地址',
- trigger:['change','blur']
- }],
-
- },
+ show1: false,
+ show2: false,
+ show3: false,
+ rules: {
+ 'title': [{
+ type: 'string',
+ require: true,
+ message: '请输入姓名',
+ trigger: ['change', 'blur']
+ }],
+ 'place': [{
+ type: 'string',
+ require: true,
+ message: '请输入地址',
+ trigger: ['change', 'blur']
+ }],
+
+ },
}
-
},
methods: {
+ handleSearchAddress() {
+ uni.navigateTo({
+ url: '/pages/publish/chooseAddress/chooseAddress'
+ })
+ },
confirmArea(e) {
- this.ShopInfomation.city = e.value[0]
- this.ShopInfomation.area = e.value[1]
- this.show1 = false
- },
+ this.ShopInfomation.city = e.value[0]
+ this.ShopInfomation.area = e.value[1]
+ this.show1 = false
+ },
submit() {
- this.$refs.uForm.validate().then(res => {
- console.log("提交表单信息:" + JSON.stringify(this.form))
- uni.$u.toast('发布成功')
- // 调用服务端入表接口W
- }).catch(errors => {
- console.log("失败信息:" + JSON.stringify(errors))
- // uni.$u.toast('校验失败')
- })
- }
+ this.$refs.uForm.validate().then(res => {
+ console.log("提交表单信息:" + JSON.stringify(this.form))
+ uni.$u.toast('发布成功')
+ // 调用服务端入表接口W
+ }).catch(errors => {
+ console.log("失败信息:" + JSON.stringify(errors))
+ // uni.$u.toast('校验失败')
+ })
+ },
+ changeAddress(e) {
+ console.log('changeAddress', e);
+ // this.getAddressList(e)
+ },
+ getAddressList(value) {
+ var that = this
+ uni.request({
+ url: 'https://apis.map.qq.com/ws/geocoder/v1/?address=' + value + '&key=' +
+ that.$api.key,
+ success(res) {
+ console.log('diz', res.data.result.location);
+ console.log('lat', res.data.result.location.lat);
+ console.log('lng', res.data.result.location.lng);
+ },
+ fail(err) {
+ console.log('请求区域失败:', err);
+ }
+ })
+ },
},
-
- onReady() {
- this.$refs.uForm.setRules(this.rules)
- },
-
+ onReady() {
+ this.$refs.uForm.setRules(this.rules)
+ }
}
+
\ No newline at end of file
diff --git a/service/request.js b/service/request.js
index 628d36b..7686aca 100644
--- a/service/request.js
+++ b/service/request.js
@@ -128,6 +128,7 @@ const toast = {
}
const apiService = {
serverHost,
+ imgUrl:'https://spsp.feashow.com/',
key:'ZRKBZ-Q7FWL-GVZPK-MCRBU-4XFB5-ATBDB',
uploadImgUrl: serverHost + `/upload/image/`,
//登录接口