作者 sgj

sgj bugfix

@@ -23,7 +23,7 @@ Page({ @@ -23,7 +23,7 @@ Page({
23 let that = this; 23 let that = this;
24 that.get_city(); 24 that.get_city();
25 25
26 - that.getList(); 26 + // that.getList();
27 27
28 }, 28 },
29 29
@@ -69,8 +69,10 @@ Page({ @@ -69,8 +69,10 @@ Page({
69 console.log(res) 69 console.log(res)
70 that.setData({ 70 that.setData({
71 array: res.city 71 array: res.city
72 -  
73 }) 72 })
  73 +
  74 + that.getList();
  75 +
74 }).catch((err) => { 76 }).catch((err) => {
75 77
76 }) 78 })
@@ -18,7 +18,6 @@ Page({ @@ -18,7 +18,6 @@ Page({
18 input_bottom: 100 18 input_bottom: 100
19 }) 19 })
20 }, 20 },
21 -  
22 // 失去焦点 21 // 失去焦点
23 no_focus: function(e) { 22 no_focus: function(e) {
24 this.setData({ 23 this.setData({
@@ -28,7 +27,7 @@ Page({ @@ -28,7 +27,7 @@ Page({
28 // 输入信息 27 // 输入信息
29 get_word(e) { 28 get_word(e) {
30 this.setData({ 29 this.setData({
31 - word: e.detail.value 30 + word: e.detail.value
32 }) 31 })
33 }, 32 },
34 // 改变弹窗状态 33 // 改变弹窗状态
@@ -17,11 +17,12 @@ Page({ @@ -17,11 +17,12 @@ Page({
17 } 17 }
18 18
19 app.post(url, head).then((res) => { 19 app.post(url, head).then((res) => {
20 - console.log(res) 20 + res.content = res.content.replace(/\<img/gi, '<img style="width:100%;height:auto" ')
21 that.setData({ 21 that.setData({
22 list: res 22 list: res
23 23
24 }) 24 })
  25 +
25 }).catch((err) => { 26 }).catch((err) => {
26 27
27 }) 28 })
@@ -12,7 +12,7 @@ Page({ @@ -12,7 +12,7 @@ Page({
12 }, 12 },
13 getdatalist() { 13 getdatalist() {
14 wx.showLoading({ 14 wx.showLoading({
15 - title: '加载中', 15 + title: '加载中',
16 mask: true 16 mask: true
17 }) 17 })
18 let that = this 18 let that = this
1 -{  
2 - "description": "项目配置文件",  
3 - "packOptions": {  
4 - "ignore": []  
5 - },  
6 - "setting": {  
7 - "urlCheck": false,  
8 - "es6": true,  
9 - "enhance": false,  
10 - "postcss": true,  
11 - "preloadBackgroundData": false,  
12 - "minified": true,  
13 - "newFeature": true,  
14 - "coverView": true,  
15 - "nodeModules": false,  
16 - "autoAudits": false,  
17 - "showShadowRootInWxmlPanel": true,  
18 - "scopeDataCheck": false,  
19 - "uglifyFileName": true,  
20 - "checkInvalidKey": true,  
21 - "checkSiteMap": true,  
22 - "uploadWithSourceMap": true,  
23 - "compileHotReLoad": false,  
24 - "useMultiFrameRuntime": false,  
25 - "useApiHook": true,  
26 - "babelSetting": {  
27 - "ignore": [],  
28 - "disablePlugins": [],  
29 - "outputPath": ""  
30 - },  
31 - "useIsolateContext": true,  
32 - "useCompilerModule": true,  
33 - "userConfirmedUseCompilerModuleSwitch": false,  
34 - "packNpmManually": false,  
35 - "packNpmRelationList": []  
36 - },  
37 - "compileType": "miniprogram",  
38 - "libVersion": "2.8.3",  
39 - "appid": "wx7a3bf4e0796c070a",  
40 - "projectname": "zhiyuanzhe",  
41 - "debugOptions": {  
42 - "hidedInDevtools": []  
43 - },  
44 - "isGameTourist": false,  
45 - "simulatorType": "wechat",  
46 - "simulatorPluginLibVersion": {},  
47 - "condition": {  
48 - "search": {  
49 - "current": -1,  
50 - "list": []  
51 - },  
52 - "conversation": {  
53 - "current": -1,  
54 - "list": []  
55 - },  
56 - "plugin": {  
57 - "current": -1,  
58 - "list": []  
59 - },  
60 - "game": {  
61 - "currentL": -1,  
62 - "list": []  
63 - },  
64 - "gamePlugin": {  
65 - "current": -1,  
66 - "list": []  
67 - },  
68 - "miniprogram": {  
69 - "current": -1,  
70 - "list": [  
71 - {  
72 - "id": 0,  
73 - "name": "工作计划表",  
74 - "pathName": "pages/word_report/word_report",  
75 - "query": "id=17&status=1",  
76 - "scene": null  
77 - },  
78 - {  
79 - "id": -1,  
80 - "name": "pages/myteam/myteam",  
81 - "pathName": "pages/myteam/myteam",  
82 - "query": "",  
83 - "scene": null  
84 - },  
85 - {  
86 - "id": -1,  
87 - "name": "pages/mytrain/mytrain",  
88 - "pathName": "pages/mytrain/mytrain",  
89 - "query": "",  
90 - "scene": null  
91 - },  
92 - {  
93 - "id": -1,  
94 - "name": "pages/Online_regulations/Online_regulations",  
95 - "pathName": "pages/Online_regulations/Online_regulations",  
96 - "query": "",  
97 - "scene": null  
98 - },  
99 - {  
100 - "id": 4,  
101 - "name": "学习内容",  
102 - "pathName": "pages/getStudycontent/getStudycontent",  
103 - "query": "",  
104 - "scene": null  
105 - },  
106 - {  
107 - "id": -1,  
108 - "name": "pages/apply/apply",  
109 - "pathName": "pages/apply/apply",  
110 - "query": "",  
111 - "scene": null  
112 - },  
113 - {  
114 - "id": -1,  
115 - "name": "pages/Volunteer_detail/Volunteer_detail",  
116 - "pathName": "pages/Volunteer_detail/Volunteer_detail",  
117 - "query": "",  
118 - "scene": null  
119 - },  
120 - {  
121 - "id": 7,  
122 - "name": "志愿回馈",  
123 - "pathName": "pages/myfeedback/myfeedback",  
124 - "query": "",  
125 - "scene": null  
126 - },  
127 - {  
128 - "id": -1,  
129 - "name": "pages/myaddress/myaddress",  
130 - "pathName": "pages/myaddress/myaddress",  
131 - "query": "",  
132 - "scene": null  
133 - },  
134 - {  
135 - "id": 9,  
136 - "name": "志愿动态",  
137 - "pathName": "pages/Volunteer_dynamic/Volunteer_dynamic",  
138 - "query": "",  
139 - "scene": null  
140 - },  
141 - {  
142 - "id": -1,  
143 - "name": "pages/guanlitiaoli/guanlitiaoli",  
144 - "pathName": "pages/guanlitiaoli/guanlitiaoli",  
145 - "query": "",  
146 - "scene": null  
147 - },  
148 - {  
149 - "id": -1,  
150 - "name": "pages/mycertificate/mycertificate",  
151 - "pathName": "pages/mycertificate/mycertificate",  
152 - "query": "",  
153 - "scene": null  
154 - },  
155 - {  
156 - "id": 12,  
157 - "name": "申请加入",  
158 - "pathName": "pages/Volunteer_group/active/active",  
159 - "query": "",  
160 - "scene": null  
161 - },  
162 - {  
163 - "id": -1,  
164 - "name": "志愿团队",  
165 - "pathName": "pages/Volunteer_group/Volunteer_group",  
166 - "query": "",  
167 - "scene": null  
168 - },  
169 - {  
170 - "id": -1,  
171 - "name": "我的地址列表",  
172 - "pathName": "pages/myaddress/myaddress",  
173 - "query": "",  
174 - "scene": null  
175 - },  
176 - {  
177 - "id": -1,  
178 - "name": "我的收货地址",  
179 - "pathName": "pages/myaddcompile/myaddcompile",  
180 - "query": "",  
181 - "scene": null  
182 - },  
183 - {  
184 - "id": -1,  
185 - "name": "我的团队",  
186 - "pathName": "pages/myteam/myteam",  
187 - "query": "",  
188 - "scene": null  
189 - },  
190 - {  
191 - "id": 18,  
192 - "name": "商品详情",  
193 - "pathName": "pages/myfeedback/myfeedback_active/myfeedback_active",  
194 - "query": "",  
195 - "scene": null  
196 - },  
197 - {  
198 - "id": -1,  
199 - "name": "积分兑换",  
200 - "pathName": "pages/myfeedback/myfeedback_duihuan/myfeedback_duihuan",  
201 - "query": "",  
202 - "scene": null  
203 - },  
204 - {  
205 - "id": -1,  
206 - "name": "光荣排行",  
207 - "pathName": "pages/guangrongpaihang/guangrongpaihang",  
208 - "query": "",  
209 - "scene": null  
210 - },  
211 - {  
212 - "id": -1,  
213 - "name": "我的活动",  
214 - "pathName": "pages/myactivity/myactivity",  
215 - "query": "",  
216 - "scene": null  
217 - },  
218 - {  
219 - "id": -1,  
220 - "name": "pages/myactivity/myactivity_active/myactivity_active",  
221 - "pathName": "pages/myactivity/myactivity_active/myactivity_active",  
222 - "query": "",  
223 - "scene": null  
224 - },  
225 - {  
226 - "id": -1,  
227 - "name": "答题详情",  
228 - "pathName": "pages/getStudycontent/answer/answer",  
229 - "query": "",  
230 - "scene": null  
231 - },  
232 - {  
233 - "id": 23,  
234 - "name": "在线培训",  
235 - "pathName": "pages/Online_regulations/Online_regulations",  
236 - "query": "",  
237 - "scene": null  
238 - },  
239 - {  
240 - "id": 24,  
241 - "name": "学习内容",  
242 - "pathName": "pages/getStudycontent/getStudycontent",  
243 - "query": "",  
244 - "scene": null  
245 - },  
246 - {  
247 - "id": -1,  
248 - "name": "dati ",  
249 - "pathName": "pages/getStudycontent/answer/answer",  
250 - "query": "id=1",  
251 - "scene": null  
252 - },  
253 - {  
254 - "id": -1,  
255 - "name": "电子证件",  
256 - "pathName": "pages/mycertificate/mycertificate",  
257 - "query": "",  
258 - "scene": null  
259 - },  
260 - {  
261 - "id": -1,  
262 - "name": "编辑资料",  
263 - "pathName": "pages/mydetail/mydetail",  
264 - "query": "",  
265 - "scene": null  
266 - },  
267 - {  
268 - "id": -1,  
269 - "name": "工时兑换",  
270 - "pathName": "pages/myfeedback/myfeedback_list/myfeedback_list",  
271 - "query": "",  
272 - "scene": null  
273 - },  
274 - {  
275 - "id": -1,  
276 - "name": "我的资料",  
277 - "pathName": "pages/mydetail/mydetail",  
278 - "query": "",  
279 - "scene": null  
280 - },  
281 - {  
282 - "id": -1,  
283 - "name": "更多志愿者",  
284 - "pathName": "pages/more/more",  
285 - "scene": null  
286 - }  
287 - ]  
288 - }  
289 - }  
290 -}