From 2a5bbb1e2a19fa24255a686b3e57eada0df32ed2 Mon Sep 17 00:00:00 2001
From: dengj <209192278@qq.com>
Date: Tue, 7 Nov 2023 10:55:04 +0800
Subject: [PATCH 1/5] =?UTF-8?q?=E9=82=93=E6=B4=81=EF=BC=9A=E4=BD=8D?=
=?UTF-8?q?=E7=BD=AE=E5=AE=9A=E4=BD=8D?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
components/InputAndSwiper/InputAndSwiper.vue | 67 +++++++++++++-------
1 file changed, 45 insertions(+), 22 deletions(-)
diff --git a/components/InputAndSwiper/InputAndSwiper.vue b/components/InputAndSwiper/InputAndSwiper.vue
index 6697869..1428a6a 100644
--- a/components/InputAndSwiper/InputAndSwiper.vue
+++ b/components/InputAndSwiper/InputAndSwiper.vue
@@ -31,62 +31,85 @@
"https://alifei01.cfp.cn/creative/vcg/800/new/VCG41175510742.jpg"
]
}
- },
- position: {
- type: String,
- default () {
- return '定位'
- }
}
},
data() {
return {
-
+ position: '定位1'
};
},
options: {
styleIsolation: 'shared', // 解除样式隔离
},
created() {
- // this.getLocation()
+ this.open()
},
methods: {
- getLocation() {
+ getLocation1() {
+ let qqmapsdk = new QQMapWX({
+ key: 'ZRKBZ-Q7FWL-GVZPK-MCRBU-4XFB5-ATBDB'
+ });
uni.getLocation({
type: 'wgs84',
// geocode: true, // 返回城市信息
// enableHighAccuracy: false, // 开启高精度模式
success: function(res) {
- let qqmapsdk = new QQMapWX({
- key: 'ZRKBZ-Q7FWL-GVZPK-MCRBU-4XFB5-ATBDB'
- });
+ console.log('res.latitude', res.latitude);
+ console.log('res.longitude', res.longitude);
qqmapsdk.reverseGeocoder({
location: {
latitude: res.latitude,
longitude: res.longitude
},
success: (re) => {
+ console.log("解析地址成功", res);
console.log(re.result.ad_info.city, '成都市==');
console.log(re.result.ad_info.district, '武侯区==');
+ this.position = re.result.ad_info.city
+ console.log('thisposition', this.position);
},
fail: (re) => {
console.log(re, '失败信息');
}
})
- }
+ },
+ fail: () => {
+ console.log("获取经纬度失败");
+ },
});
},
//提示用户开启定位服务
open() {
- // uni.authorize({
- // scope: 'scope.userLocation',
- // success: function() {
- // console.log('授权成功');
- // },
- // fail: function() {
- // console.log('授权失败');
- // }
- // })
+ var that=this
+ uni.authorize({
+ scope: 'scope.userLocation',
+ success: function() {
+ console.log('授权成功');
+ that.getLocation1()
+ },
+ fail: function() {
+ console.log('授权失败');
+ uni.showModal({
+ content: '检测到您没打开获取信息功能权限,是否去设置打开?',
+ confirmText: "确认",
+ cancelText: '取消',
+ success: (res) => {
+ if (res.confirm) {
+ uni.openSetting({
+ success: (res) => {
+ console.log(res);
+ that.getLocation1();
+ }
+ })
+ } else {
+ console.log('取消');
+ return false;
+ }
+ }
+ })
+ return false;
+ }
+ })
// wx.getSetting({
// success: (res) => {
// if (res.authSetting['scope.userLocation'] === false) {
From e8523c3909a77f88252215c25484e55fbfee5163 Mon Sep 17 00:00:00 2001
From: hot777zz <912275990@qq.com>
Date: Tue, 7 Nov 2023 19:34:33 +0800
Subject: [PATCH 2/5] =?UTF-8?q?=E6=A2=81=E8=88=AA=EF=BC=9A=E4=B8=AA?=
=?UTF-8?q?=E4=BA=BA=E5=8C=B9=E9=85=8D=E5=92=8C=E5=8F=91=E5=B8=83=E9=A1=B5?=
=?UTF-8?q?=E6=A0=B7=E5=BC=8F=E8=B0=83=E6=95=B4?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
pages/Partnerships/Partnerships.vue | 61 +++++++++++++++----
.../publishTransfer/publishTransfer.vue | 30 +++++----
pages/published/published.vue | 4 +-
3 files changed, 68 insertions(+), 27 deletions(-)
diff --git a/pages/Partnerships/Partnerships.vue b/pages/Partnerships/Partnerships.vue
index f76af10..db3f125 100644
--- a/pages/Partnerships/Partnerships.vue
+++ b/pages/Partnerships/Partnerships.vue
@@ -1,19 +1,27 @@
-
-
-
-
-
-
-
-
-
+
+ 名称
+
+
+
+ 身份证号
+
+
+
+
+
+ 支付信息
+ 请选择支付方式
+
+
+
+
-
+
- 发布
+ 提交审核
@@ -28,7 +36,7 @@
submit(){
console.log('提交');
},
- confirmCheckWay(){
+ confirmCheckWay(e){
}
@@ -37,5 +45,32 @@
diff --git a/pages/publish/publishTransfer/publishTransfer.vue b/pages/publish/publishTransfer/publishTransfer.vue
index c9760cf..af2165a 100644
--- a/pages/publish/publishTransfer/publishTransfer.vue
+++ b/pages/publish/publishTransfer/publishTransfer.vue
@@ -9,20 +9,19 @@
-
- 111111
-
-
+
+ 123
+
- 123
+ 123
- 123
+ 123
@@ -40,9 +39,7 @@
发布
-
-
-
+
@@ -61,8 +58,6 @@
title:''
},
columns:[
- ['中国', '美国'],
- ['深圳', '厦门', '上海', '拉萨']
],
show1:false,
show2:false,
@@ -89,9 +84,10 @@
margin-right: 20px;
}
.input-class{
- font-size: 30rpx;
+ font-size: 40rpx;
font-weight:1px;
border-style: none
+
}
.upload{
display: flex;
@@ -107,4 +103,14 @@
.bug-figure{
height: 100rpx;
}
+ .checkbox1{
+ display: flex;
+ justify-content: space-between;
+ }
+ .checktext{
+ margin-top: 5rpx;
+ font-size: 40rpx;
+ font-weight:1px;
+ color: #A0A0A0;
+ }
diff --git a/pages/published/published.vue b/pages/published/published.vue
index e55981b..cc57dd1 100644
--- a/pages/published/published.vue
+++ b/pages/published/published.vue
@@ -1,5 +1,5 @@
-
+
From 415b8db32bb4b3ade48d3b602c513f10ee8907fd Mon Sep 17 00:00:00 2001
From: hot777zz <912275990@qq.com>
Date: Tue, 7 Nov 2023 23:31:07 +0800
Subject: [PATCH 3/5] =?UTF-8?q?=E6=A2=81=E8=88=AA=EF=BC=9A=E6=9B=B4?=
=?UTF-8?q?=E6=96=B0=E5=8F=91=E5=B8=83=E9=A1=B5?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../publish/publishAddress/publishAddress.vue | 86 +++++++++++++++++--
.../publishInvestment/publishInvestment.vue | 86 +++++++++++++++++--
pages/publish/publishRent/publishRent.vue | 86 +++++++++++++++++--
3 files changed, 240 insertions(+), 18 deletions(-)
diff --git a/pages/publish/publishAddress/publishAddress.vue b/pages/publish/publishAddress/publishAddress.vue
index 9f51b6c..0ec5235 100644
--- a/pages/publish/publishAddress/publishAddress.vue
+++ b/pages/publish/publishAddress/publishAddress.vue
@@ -1,6 +1,45 @@
-
- 发布店铺地址
+
+
+
+
+ 发布房源图片({{ShopInfomation.count}}/5)
+
+
+
+
+
+
+ 123
+
+
+
+
+
+
+ 123
+
+
+
+ 123
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 发布
+
@@ -8,7 +47,9 @@
export default {
data() {
return {
-
+ show1:false,
+ show2:false,
+ show3:false,
}
},
methods: {
@@ -17,6 +58,39 @@
}
-
+
\ No newline at end of file
diff --git a/pages/publish/publishInvestment/publishInvestment.vue b/pages/publish/publishInvestment/publishInvestment.vue
index bed6bea..0ec5235 100644
--- a/pages/publish/publishInvestment/publishInvestment.vue
+++ b/pages/publish/publishInvestment/publishInvestment.vue
@@ -1,6 +1,45 @@
-
- 发布招商合作
+
+
+
+
+ 发布房源图片({{ShopInfomation.count}}/5)
+
+
+
+
+
+
+ 123
+
+
+
+
+
+
+ 123
+
+
+
+ 123
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 发布
+
@@ -8,7 +47,9 @@
export default {
data() {
return {
-
+ show1:false,
+ show2:false,
+ show3:false,
}
},
methods: {
@@ -17,6 +58,39 @@
}
-
+
\ No newline at end of file
diff --git a/pages/publish/publishRent/publishRent.vue b/pages/publish/publishRent/publishRent.vue
index 812f1cb..0ec5235 100644
--- a/pages/publish/publishRent/publishRent.vue
+++ b/pages/publish/publishRent/publishRent.vue
@@ -1,6 +1,45 @@
-
- 发布店铺出租
+
+
+
+
+ 发布房源图片({{ShopInfomation.count}}/5)
+
+
+
+
+
+
+ 123
+
+
+
+
+
+
+ 123
+
+
+
+ 123
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 发布
+
@@ -8,7 +47,9 @@
export default {
data() {
return {
-
+ show1:false,
+ show2:false,
+ show3:false,
}
},
methods: {
@@ -17,6 +58,39 @@
}
-
+
\ No newline at end of file
From 52fe2a05fca17ba651ff6fcbc2c9277ebf438e20 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E9=82=93=E6=B4=81?= <209192278@qq.com>
Date: Wed, 8 Nov 2023 11:22:19 +0800
Subject: [PATCH 4/5] =?UTF-8?q?=E9=82=93=E6=B4=81=EF=BC=9A=E5=9C=B0?=
=?UTF-8?q?=E7=90=86=E4=BD=8D=E7=BD=AE?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
components/InputAndSwiper/InputAndSwiper.vue | 34 +++++++++++++-------
manifest.json | 7 ++--
pages.json | 26 ++++++++-------
pages/index/HomeMainContent/HomeNavCard.vue | 7 +++-
pages/index/map/map.vue | 18 ++++++++---
5 files changed, 62 insertions(+), 30 deletions(-)
diff --git a/components/InputAndSwiper/InputAndSwiper.vue b/components/InputAndSwiper/InputAndSwiper.vue
index 1428a6a..4c7c95c 100644
--- a/components/InputAndSwiper/InputAndSwiper.vue
+++ b/components/InputAndSwiper/InputAndSwiper.vue
@@ -35,25 +35,37 @@
},
data() {
return {
- position: '定位1'
+ position: '定位12',
+ location: ''
};
},
options: {
styleIsolation: 'shared', // 解除样式隔离
},
created() {
+ console.log('createsd');
this.open()
+ console.log('location', this.location);
+ },
+ watch: {
+ location(val) {
+ console.log('foo变化了,变化后的值是', val)
+ // 具体操作=>doSomething
+ }
+ },
+ onShow() {
+ console.log('onshow');
+ // const location = this.open()
+ // console.log('location', this.location);
},
methods: {
getLocation1() {
let qqmapsdk = new QQMapWX({
key: 'ZRKBZ-Q7FWL-GVZPK-MCRBU-4XFB5-ATBDB'
});
- uni.getLocation({
+ uni.getFuzzyLocation({
type: 'wgs84',
- // geocode: true, // 返回城市信息
- // enableHighAccuracy: false, // 开启高精度模式
- success: function(res) {
+ success(res) {
console.log('res.latitude', res.latitude);
console.log('res.longitude', res.longitude);
qqmapsdk.reverseGeocoder({
@@ -65,24 +77,24 @@
console.log("解析地址成功", res);
console.log(re.result.ad_info.city, '成都市==');
console.log(re.result.ad_info.district, '武侯区==');
- this.position = re.result.ad_info.city
- console.log('thisposition', this.position);
+ this.location = re.result.ad_info
+ console.log('success', this.location);
},
fail: (re) => {
console.log(re, '失败信息');
}
})
},
- fail: () => {
- console.log("获取经纬度失败");
+ fail(err) {
+ console.log("获取经纬度失败", err);
},
});
},
//提示用户开启定位服务
open() {
- var that=this
+ var that = this
uni.authorize({
- scope: 'scope.userLocation',
+ scope: 'scope.userFuzzyLocation',
success: function() {
console.log('授权成功');
that.getLocation1()
diff --git a/manifest.json b/manifest.json
index 942d70f..a87efa3 100644
--- a/manifest.json
+++ b/manifest.json
@@ -59,9 +59,12 @@
// 获取当前的地理位置、速度 配置
"scope.userLocation": {
"desc": "你的位置信息将用于小程序位置接口的效果展示"
+ },
+ "scope.userFuzzyLocation": {
+ "desc": "你的位置信息将用于小程序位置的效果展示"
}
- }
-
+ },
+ "requiredPrivateInfos": ["choosePoi", "chooseAddress", "getFuzzyLocation"]
},
"mp-alipay": {
"usingComponents": true
diff --git a/pages.json b/pages.json
index 40348e8..80023ad 100644
--- a/pages.json
+++ b/pages.json
@@ -97,17 +97,16 @@
}
}
-
- ,{
- "path" : "pages/Partnerships/Partnerships",
- "style" :
- {
- "navigationBarTitleText": "成功合伙人",
- "enablePullDownRefresh": false
- }
-
- }
- ],
+
+ , {
+ "path": "pages/Partnerships/Partnerships",
+ "style": {
+ "navigationBarTitleText": "成功合伙人",
+ "enablePullDownRefresh": false
+ }
+
+ }
+ ],
"tabBar": {
"color": "#CCCCCC",
"borderStyle": "white",
@@ -146,6 +145,11 @@
"navigationBarBackgroundColor": "#F8F8F8",
"backgroundColor": "#F8F8F8"
},
+ "permission": {
+ "scope.userFuzzyLocation": {
+ "desc": "你的位置信息将用于小程序位置的效果展示"
+ }
+ },
"uniIdRouter": {},
"condition": { //模式配置,仅开发期间生效
"current": 0, //当前激活的模式(list 的索引项)
diff --git a/pages/index/HomeMainContent/HomeNavCard.vue b/pages/index/HomeMainContent/HomeNavCard.vue
index c180164..3270311 100644
--- a/pages/index/HomeMainContent/HomeNavCard.vue
+++ b/pages/index/HomeMainContent/HomeNavCard.vue
@@ -1,6 +1,6 @@
-
+
{{ item.text }}
@@ -54,6 +54,11 @@
// 在这里处理点击事件,并使用下标值
console.log(`项目 ${index} 被点击了`);
// 或者执行其他需要的操作
+ if (index == 5) {
+ uni.navigateTo({
+ url: '/pages/index/map/map'
+ })
+ }
}
}
};
diff --git a/pages/index/map/map.vue b/pages/index/map/map.vue
index 6cf06d5..6dd7571 100644
--- a/pages/index/map/map.vue
+++ b/pages/index/map/map.vue
@@ -12,7 +12,7 @@
:longitude="lng">
-
+
@@ -45,11 +45,19 @@
}
],
shopList: {
+ shopid: 1,
imageUrl: 'https://alifei01.cfp.cn/creative/vcg/800/new/VCG41175510742.jpg',
title: '琴行铺面转让',
promotionNum: 23,
- price: 5000,
- date: '2023-11-02'
+ price: 6000,
+ date: '2023-11-02',
+ pos: '锦江区',
+ exactPos: '锦江区-汇源南路366号',
+ sqr: 100,
+ zrfText: "转让费:20万",
+ category: '餐饮美食',
+ uname: "张先生",
+ phoneNum: 13348946108,
}
}
},
@@ -119,8 +127,8 @@
position: absolute;
z-index: 1;
bottom: 60rpx;
- left: 10%;
- transform: translateX(-10%);
+ left: 50%;
+ transform: translateX(-50%);
.list-border {
margin: 0;
From 02f57c1827fbd5afc0519f0b4cf45595bef801f6 Mon Sep 17 00:00:00 2001
From: dengj <209192278@qq.com>
Date: Wed, 8 Nov 2023 14:19:13 +0800
Subject: [PATCH 5/5] =?UTF-8?q?=E9=82=93=E6=B4=81:=E9=A6=96=E9=A1=B5?=
=?UTF-8?q?=E5=AE=9A=E4=BD=8D?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
components/InputAndSwiper/InputAndSwiper.vue | 27 ++++++--------------
1 file changed, 8 insertions(+), 19 deletions(-)
diff --git a/components/InputAndSwiper/InputAndSwiper.vue b/components/InputAndSwiper/InputAndSwiper.vue
index 4c7c95c..77316e2 100644
--- a/components/InputAndSwiper/InputAndSwiper.vue
+++ b/components/InputAndSwiper/InputAndSwiper.vue
@@ -35,8 +35,7 @@
},
data() {
return {
- position: '定位12',
- location: ''
+ position: ''
};
},
options: {
@@ -45,21 +44,10 @@
created() {
console.log('createsd');
this.open()
- console.log('location', this.location);
- },
- watch: {
- location(val) {
- console.log('foo变化了,变化后的值是', val)
- // 具体操作=>doSomething
- }
- },
- onShow() {
- console.log('onshow');
- // const location = this.open()
- // console.log('location', this.location);
},
methods: {
getLocation1() {
+ var that = this
let qqmapsdk = new QQMapWX({
key: 'ZRKBZ-Q7FWL-GVZPK-MCRBU-4XFB5-ATBDB'
});
@@ -74,11 +62,12 @@
longitude: res.longitude
},
success: (re) => {
- console.log("解析地址成功", res);
- console.log(re.result.ad_info.city, '成都市==');
- console.log(re.result.ad_info.district, '武侯区==');
- this.location = re.result.ad_info
- console.log('success', this.location);
+ 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
+ that.position = city.slice(0,2) + district.slice(0,2)
},
fail: (re) => {
console.log(re, '失败信息');