diff --git a/pages/index/index.vue b/pages/index/index.vue
index 0e48559..7dddafe 100644
--- a/pages/index/index.vue
+++ b/pages/index/index.vue
@@ -51,8 +51,8 @@
methods: {
getBanner(){
this.$api.getBanner().then(res=>{
- console.log('lunbo',res.data.data);
- this.swiperList = res.data.data.map(item=>item.img)
+ console.log('轮播图',res.data.data);
+ this.swiperList = res.data.data.map(item=>this.$api.imgUrl+item.img)
})
},
getNotice(){
diff --git a/pages/publish/publishTransfer/publishTransfer.vue b/pages/publish/publishTransfer/publishTransfer.vue
index a281b2b..de83147 100644
--- a/pages/publish/publishTransfer/publishTransfer.vue
+++ b/pages/publish/publishTransfer/publishTransfer.vue
@@ -20,7 +20,7 @@
+ @change="changeAddress">
请选择行业类型
@@ -132,13 +132,30 @@
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)
- },
-
+ }
}
diff --git a/service/request.js b/service/request.js
index dd9939f..f2a842a 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/`,
//登录接口