Kaynağa Gözat

feats: 知与行不定位

张延森 5 yıl önce
ebeveyn
işleme
f26422eeb2

+ 1
- 1
project.config.json Dosyayı Görüntüle

@@ -2,7 +2,7 @@
2 2
 	"miniprogramRoot": "dist/",
3 3
 	"projectname": "mini-chengjiao",
4 4
 	"description": "知与行",
5
-	"appid": "wxd9ee3a9480a4e544",
5
+	"appid": "wxd6f47a9bb3052175",
6 6
 	"setting": {
7 7
 		"urlCheck": false,
8 8
 		"es6": false,

+ 2
- 2
src/pages/project/detail/index.js Dosyayı Görüntüle

@@ -1011,7 +1011,7 @@ export default class Index extends Component {
1011 1011
                   {this.renderPhotoAlbum()}
1012 1012
 
1013 1013
                   {/* 免责声明 */}
1014
-                  {/* {this.renderStatement()} */}
1014
+                  {this.renderStatement()}
1015 1015
                 </View>
1016 1016
               </ScrollView>
1017 1017
 
@@ -1038,4 +1038,4 @@ export default class Index extends Component {
1038 1038
       </Block>
1039 1039
     );
1040 1040
   }
1041
-}
1041
+}

+ 21
- 1
src/pages/project/index.js Dosyayı Görüntüle

@@ -18,6 +18,8 @@ import { getThumbnail } from '@utils/tools'
18 18
 import QQMapWX from '@lib/qqmap-wx-jssdk.min'
19 19
 import Notice from '@components/Notice'
20 20
 
21
+const accountInfo = wx.getAccountInfoSync();
22
+
21 23
 @connect(
22 24
   state => ({ ...state.project, ...state.city, ...state.user }),
23 25
   { ...actions, dispatchCitySelected }
@@ -129,7 +131,25 @@ export default class Index extends Component {
129 131
   }
130 132
 
131 133
   updateCity(payload) {
132
-    this.props.dispatchCitySelected(payload).then(res => {
134
+    const NanJing = {
135
+      citycode: "025",
136
+      id: 320100,
137
+      initial: "N",
138
+      lat: "32.041544",
139
+      leveltype: 2,
140
+      lng: "118.767413",
141
+      name: "南京市",
142
+      parentid: 320000,
143
+      pinyin: "Nanjing",
144
+      shortname: "南京",
145
+      status: 1,
146
+      zipcode: "320100"
147
+    }
148
+
149
+    const appId = accountInfo.miniProgram.appId;
150
+    const params = appId === 'wxd6f47a9bb3052175' ? NanJing : payload
151
+
152
+    this.props.dispatchCitySelected(params).then(res => {
133 153
       this.loadData()
134 154
     })
135 155
   }