zjxpcyc hace 6 años
padre
commit
20b9b9e420

+ 1
- 1
app.js Ver fichero

@@ -114,7 +114,7 @@ App({
114 114
     ScreenBottomHeight: 0,
115 115
     Dict: [],
116 116
     ShareDate: {
117
-      title: '银城地产·江北公司',
117
+      title: '银城国际·江北公司',
118 118
       path: '/pages/index/index',
119 119
       imageUrl: 'https://whole-estate.oss-cn-beijing.aliyuncs.com/miniapp/index-share.jpg'
120 120
     },

+ 1
- 1
pages/SelfServiceTool/AboutYinCheng/index.js Ver fichero

@@ -12,7 +12,7 @@ Page({
12 12
   },
13 13
   onShow() {
14 14
     wx.setNavigationBarTitle({
15
-      title: '关于银城地产'
15
+      title: '关于银城国际'
16 16
     })
17 17
   },
18 18
   /**

+ 1
- 1
pages/SelfServiceTool/AboutYinCheng/index.wxml Ver fichero

@@ -17,7 +17,7 @@
17 17
     <text class="p center">历史最早可以回溯到<text class="b">1993</text>年</text>
18 18
     <text class="p center">那一年</text>
19 19
     <text class="p center">银城国际前身控股公司</text>
20
-    <text class="p center"><text class="b">银城地产集团股份有限公司</text>成立</text>
20
+    <text class="p center"><text class="b">银城国际集团股份有限公司</text>成立</text>
21 21
     <text class="p center">为全民所有制</text>
22 22
     <text class="p center">2001年底获批<text class="b">重组成立银城国际</text>,实现私有化</text>
23 23
     <image mode="widthFix" src="https://whole-estate.oss-cn-beijing.aliyuncs.com/zjyc-img3.jpg" style="width: 100%;"></image>

+ 3
- 3
pages/SelfServiceTool/index.js Ver fichero

@@ -23,7 +23,7 @@ Page({
23 23
       value: '购房百科',
24 24
       icon: '/assets/images/icon39.png',
25 25
     }, {
26
-      value: '关于银城地产',
26
+      value: '关于银城国际',
27 27
       icon: '/assets/images/icon40.png',
28 28
     }]
29 29
   },
@@ -44,7 +44,7 @@ Page({
44 44
       wx.navigateTo({
45 45
         url: '/pages/SelfServiceTool/Cyclopedia/index',
46 46
       })
47
-    } else if (e.currentTarget.dataset.index === 4) { // 关于银城地产
47
+    } else if (e.currentTarget.dataset.index === 4) { // 关于银城国际
48 48
       wx.navigateTo({
49 49
         url: '/pages/SelfServiceTool/AboutYinCheng/index',
50 50
       })
@@ -53,7 +53,7 @@ Page({
53 53
   onShareAppMessage: function () {
54 54
     var imageUrl = app.globalData.FdShareImg
55 55
     return {
56
-      title: '银城地产·江北公司',
56
+      title: '银城国际·江北公司',
57 57
       path: '/pages/SelfServiceTool/index',
58 58
       imageUrl
59 59
     }

+ 1
- 1
pages/SelfServiceTool/index.wxml Ver fichero

@@ -10,5 +10,5 @@
10 10
       <image mode="widthFix" src="/assets/images/icon11.png"></image>
11 11
     </view>
12 12
   </view>
13
-  <text class="tips">银城地产·江北公司</text>
13
+  <text class="tips">银城国际·江北公司</text>
14 14
 </view>

+ 1
- 0
pages/components/Estate/index.js Ver fichero

@@ -59,6 +59,7 @@ Component({
59 59
     },
60 60
     ShowLocation() {
61 61
       const _that = this
62
+
62 63
       wx.getLocation({
63 64
         type: 'wgs84',
64 65
         success(res) {

+ 0
- 4
pages/components/Mine/index.js Ver fichero

@@ -1,9 +1,5 @@
1 1
 import create from '../../../utils/create'
2 2
 import signUp from '../../../utils/signup'
3
-import fetch from '../../../utils/http'
4
-import {
5
-  get as getApi
6
-} from '../../../config/api'
7 3
 
8 4
 const app = getApp();
9 5
 

+ 28
- 26
pages/components/SubIndex/index.js Ver fichero

@@ -2,14 +2,16 @@
2 2
 //获取应用实例
3 3
 const app = getApp()
4 4
 import fetch from '../../../utils/http'
5
+import create from '../../../utils/create'
5 6
 const $api = require('../../../config/api.js').$api;
6 7
 
7
-Component({
8
+create({
8 9
   behaviors: [],
9 10
   properties: {},
10 11
   banner: [],
11 12
   data: {
12 13
     UserInfo: app.globalData.UserInfo,
14
+    location: {},
13 15
     TopNavList: [{
14 16
       value: '楼盘展示',
15 17
       icon: '/assets/images/icon5.png',
@@ -28,7 +30,7 @@ Component({
28 30
   lifetimes: {},
29 31
   ready: function() {
30 32
     wx.setNavigationBarTitle({
31
-      title: '银城地产·江北公司'
33
+      title: '银城国际·江北公司'
32 34
     })
33 35
     const _that = this
34 36
     fetch({
@@ -64,30 +66,30 @@ Component({
64 66
   },
65 67
   methods: {
66 68
     GetBuildingList() {
67
-      const _that = this
68
-      wx.getLocation({
69
-        type: 'wgs84',
70
-        success(res) {
71
-          fetch({
72
-            url: $api.building.mainlist.url,
73
-            method: $api.building.mainlist.method,
74
-            data: {
75
-              pageNum: 1,
76
-              pageSize: 10
77
-            }
78
-          }).then((buildings) => {
79
-            const records = buildings.data.map(x => {
80
-              const distance = parseInt(_that.GetGreatCircleDistance(res.latitude, res.longitude, x.coordinate.split(',')[0], x.coordinate.split(',')[1] || res.longitude))
81
-              return {
82
-                ...x,
83
-                distance: distance / 10
84
-              }
85
-            })
86
-            _that.setData({
87
-              EstateList: records
88
-            })
89
-          })
90
-        }})
69
+      const {
70
+        latitude,
71
+        longitude
72
+      } = this.data.location
73
+
74
+      fetch({
75
+        url: $api.building.mainlist.url,
76
+        method: $api.building.mainlist.method,
77
+        data: {
78
+          pageNum: 1,
79
+          pageSize: 10
80
+        }
81
+      }).then((buildings) => {
82
+        const records = buildings.data.map(x => {
83
+          const distance = parseInt(this.GetGreatCircleDistance(latitude, longitude, x.coordinate.split(',')[0], x.coordinate.split(',')[1] || longitude))
84
+          return {
85
+            ...x,
86
+            distance: distance / 10
87
+          }
88
+        })
89
+        this.setData({
90
+          EstateList: records
91
+        })
92
+      })
91 93
     },
92 94
     GetGreatCircleDistance(lat1, lng1, lat2, lng2) {
93 95
       if (lat1 === lat2 && lng1 === lng2) {

+ 9
- 2
pages/index/index.js Ver fichero

@@ -1,6 +1,7 @@
1 1
 import store from '../../store'
2 2
 import create from '../../utils/create'
3 3
 import fetch from '../../utils/http'
4
+import signUp from '../..//utils/signup'
4 5
 const $api = require('../../config/api.js').$api;
5 6
 
6 7
 const app = getApp()
@@ -25,6 +26,7 @@ create(store, {
25 26
   },
26 27
   data: {
27 28
     ShowLayer: false,
29
+    userInfo: {},
28 30
     propagandaList: [],
29 31
     NavList: [{ // navlist数据
30 32
       value: '首页',
@@ -49,11 +51,11 @@ create(store, {
49 51
   DealNavCut(index) {
50 52
     if (index === 0) {
51 53
       wx.setNavigationBarTitle({
52
-        title: '银城地产·江北公司'
54
+        title: '银城国际·江北公司'
53 55
       })
54 56
     } else if (index === 1) {
55 57
       wx.setNavigationBarTitle({
56
-        title: '银城地产·江北公司'
58
+        title: '银城国际·江北公司'
57 59
       })
58 60
     } else if (index === 2) {
59 61
       wx.setNavigationBarTitle({
@@ -99,6 +101,11 @@ create(store, {
99 101
       ShowLayer: false
100 102
     })
101 103
   },
104
+  signup(e) {
105
+    signUp(e.detail.userInfo, app).then((dt) => {
106
+      //
107
+    })
108
+  },
102 109
   propagandaClick(e) {
103 110
     if (e.target.dataset.pro.skipType && e.target.dataset.pro.skipType == 'building' && e.target.dataset.pro.skipId != ''){
104 111
       wx.navigateTo({

+ 16
- 0
pages/index/index.wxml Ver fichero

@@ -46,4 +46,20 @@
46 46
     </view>
47 47
   </view>
48 48
 
49
+  <!-- 授权 -->
50
+  <view class="layer" hidden="{{userInfo.hasReg == 1}}">
51
+    <view class="auth">
52
+    {{userInfo.hasReg == 1}}
53
+      <view class="centerLabel">
54
+        <view class="logo">
55
+          <image mode="widthFix" src="https://whole-estate.oss-cn-beijing.aliyuncs.com/x-logo.png"></image>
56
+        </view>
57
+        <view class="tip">申请获取你的公开信息(昵称、头像等)</view>
58
+        <button open-type="getUserInfo" bindgetuserinfo="signup">
59
+          授权围观
60
+        </button>
61
+      </view>
62
+    </view>
63
+  </view>
64
+
49 65
 </view>

+ 36
- 1
pages/index/index.wxss Ver fichero

@@ -101,9 +101,11 @@
101 101
 
102 102
 .layer .top image {
103 103
   display: block;
104
-  width: 20rpx;
104
+  width: 30rpx;
105 105
   float: right;
106 106
   margin-right: 20rpx;
107
+  padding: 10rpx;
108
+  background-color: rgba(255,255,255,.9);
107 109
 }
108 110
 
109 111
 .layer .content {
@@ -118,3 +120,36 @@
118 120
   width: 100%;
119 121
   display: block;
120 122
 }
123
+
124
+.layer .auth {
125
+  width: 100%;
126
+  height: 100%;
127
+  border-radius: 0;
128
+}
129
+
130
+.layer .auth .centerLabel {
131
+  width: calc(100% - 100px);
132
+  padding: 0 50rpx;
133
+}
134
+
135
+.layer .auth .logo {
136
+  padding: 0 80rpx;
137
+}
138
+
139
+.layer .auth .logo image {
140
+  width: 100%;
141
+}
142
+
143
+.layer .auth .tip {
144
+  font-size: 30rpx;
145
+  line-height: 2em;
146
+  color: #666;
147
+  text-align: center;
148
+}
149
+
150
+.layer .auth button {
151
+  font-size: 32rpx;
152
+  line-height: 2.6em;
153
+  color: #fff;
154
+  background-color: #BB9C79;
155
+}