正在显示
14 个修改的文件
包含
973 行增加
和
36 行删除
@@ -27,7 +27,8 @@ | @@ -27,7 +27,8 @@ | ||
27 | "pages/shenhez/shenhez", | 27 | "pages/shenhez/shenhez", |
28 | "pages/backenterdoor/backenterdoor", | 28 | "pages/backenterdoor/backenterdoor", |
29 | "pages/outbackpeopledoor/outbackpeopledoor", | 29 | "pages/outbackpeopledoor/outbackpeopledoor", |
30 | - "pages/outbackpeopledetail/outbackpeopledetail" | 30 | + "pages/outbackpeopledetail/outbackpeopledetail", |
31 | + "pages/businessdetail/businessdetail" | ||
31 | ], | 32 | ], |
32 | "window": { | 33 | "window": { |
33 | "backgroundTextStyle": "light", | 34 | "backgroundTextStyle": "light", |
img/img_fugong@2x.png
0 → 100644
26.0 KB
img/img_qiye@2x.png
0 → 100644
25.6 KB
pages/businessdetail/businessdetail.js
0 → 100644
1 | +// pages/logining/logining.js | ||
2 | +const app = getApp() | ||
3 | +Page({ | ||
4 | + | ||
5 | + /** | ||
6 | + * 页面的初始数据 | ||
7 | + */ | ||
8 | + data: { | ||
9 | + protectarr: [], | ||
10 | + office: '', | ||
11 | + address: '', | ||
12 | + is_business: 0, | ||
13 | + ishandbook: 0, | ||
14 | + materials: [], | ||
15 | + time: '请选择营业时间', | ||
16 | + town: [], | ||
17 | + townname: '请选择所属社区', | ||
18 | + townindex: 0, | ||
19 | + town_id: '', | ||
20 | + name: '', | ||
21 | + phone: '', | ||
22 | + description: '' | ||
23 | + | ||
24 | + | ||
25 | + }, | ||
26 | + | ||
27 | + /** | ||
28 | + * 生命周期函数--监听页面加载 | ||
29 | + */ | ||
30 | + onLoad: function(options) { | ||
31 | + this.gettail() | ||
32 | + }, | ||
33 | + | ||
34 | + bindTimeChange: function(e) { | ||
35 | + console.log('picker发送选择改变,携带值为', e.detail.value) | ||
36 | + this.setData({ | ||
37 | + time: e.detail.value | ||
38 | + }) | ||
39 | + }, | ||
40 | + | ||
41 | + // 是否营业中 | ||
42 | + selsy() { | ||
43 | + | ||
44 | + this.setData({ | ||
45 | + is_business: 1 | ||
46 | + }) | ||
47 | + }, | ||
48 | + selsn() { | ||
49 | + this.setData({ | ||
50 | + is_business: 2 | ||
51 | + }) | ||
52 | + }, | ||
53 | + | ||
54 | + // 是否收到疫情防控指南 | ||
55 | + selsyk() { | ||
56 | + this.setData({ | ||
57 | + ishandbook: 1 | ||
58 | + }) | ||
59 | + }, | ||
60 | + selsnk() { | ||
61 | + this.setData({ | ||
62 | + ishandbook: 2 | ||
63 | + }) | ||
64 | + }, | ||
65 | + | ||
66 | + // 输入姓名 | ||
67 | + entername(e) { | ||
68 | + this.setData({ | ||
69 | + name: e.detail.value | ||
70 | + }) | ||
71 | + }, | ||
72 | + | ||
73 | + // 输入电话号 | ||
74 | + enterphone(e) { | ||
75 | + this.setData({ | ||
76 | + phone: e.detail.value | ||
77 | + }) | ||
78 | + }, | ||
79 | + | ||
80 | + //获取登记详情 | ||
81 | + gettail() { | ||
82 | + let that = this; | ||
83 | + var url = '/api/office/office_detail'; | ||
84 | + var params = { | ||
85 | + office_token: wx.getStorageSync('office_token'), | ||
86 | + | ||
87 | + } | ||
88 | + app.post(url, params, "post").then((res) => { | ||
89 | + console.log(res); | ||
90 | + that.setData({ | ||
91 | + protectarr: res.materials | ||
92 | + }) | ||
93 | + that.data.protectarr.forEach(function(value, index, array) { | ||
94 | + value.sel = false | ||
95 | + }) | ||
96 | + that.setData({ | ||
97 | + office: res.office, | ||
98 | + protectarr: that.data.protectarr, | ||
99 | + address: res.office.address, | ||
100 | + name:res.office.leader, | ||
101 | + phone:res.office.mobile, | ||
102 | + town_id:res.office.town_id, | ||
103 | + townname: res.office.town_name, | ||
104 | + is_business:res.office.is_business | ||
105 | + }) | ||
106 | + | ||
107 | + that.getsocietylist() | ||
108 | + | ||
109 | + console.log(that.data.protectarr) | ||
110 | + | ||
111 | + | ||
112 | + | ||
113 | + }).catch((err) => { | ||
114 | + | ||
115 | + }) | ||
116 | + }, | ||
117 | + | ||
118 | + // 获取社区列表 | ||
119 | + getsocietylist() { | ||
120 | + let that = this; | ||
121 | + var url = '/api/index/town'; | ||
122 | + var params = { | ||
123 | + type: 2, | ||
124 | + pid: that.data.office.town_pid | ||
125 | + | ||
126 | + } | ||
127 | + app.post(url, params).then((res) => { | ||
128 | + console.log(res); | ||
129 | + that.setData({ | ||
130 | + town: res.town | ||
131 | + }) | ||
132 | + | ||
133 | + | ||
134 | + | ||
135 | + }).catch((err) => { | ||
136 | + | ||
137 | + }) | ||
138 | + | ||
139 | + }, | ||
140 | + bindtownrChange(e) { | ||
141 | + console.log(e.detail.value) | ||
142 | + this.setData({ | ||
143 | + townindex: e.detail.value, | ||
144 | + townname: this.data.town[e.detail.value].name, | ||
145 | + town_id: this.data.town[e.detail.value].id | ||
146 | + }) | ||
147 | + }, | ||
148 | + | ||
149 | + | ||
150 | + // 选择防疫物资 | ||
151 | + selprotect(e) { | ||
152 | + let that = this; | ||
153 | + let index = e.currentTarget.dataset.index; | ||
154 | + let id = e.currentTarget.dataset.id | ||
155 | + this.data.protectarr.forEach(function(value, indexk, array) { | ||
156 | + if (index == indexk) { | ||
157 | + value.sel = !value.sel; | ||
158 | + if (value.sel == true) { | ||
159 | + that.data.materials.push(value.id) | ||
160 | + } else { | ||
161 | + that.data.materials.forEach(function(value, indexk, array) { | ||
162 | + if (id == value) { | ||
163 | + that.data.materials.splice(indexk, 1) | ||
164 | + } | ||
165 | + | ||
166 | + }) | ||
167 | + } | ||
168 | + } | ||
169 | + | ||
170 | + }) | ||
171 | + this.setData({ | ||
172 | + protectarr: this.data.protectarr, | ||
173 | + materials: this.data.materials | ||
174 | + }) | ||
175 | + console.log(that.data.materials) | ||
176 | + }, | ||
177 | + | ||
178 | + // 输入地址 | ||
179 | + enteraddress() { | ||
180 | + this.setData({ | ||
181 | + address: '' | ||
182 | + }) | ||
183 | + }, | ||
184 | + enterplace(e) { | ||
185 | + this.setData({ | ||
186 | + address: e.detail.value | ||
187 | + }) | ||
188 | + }, | ||
189 | + | ||
190 | + // 存在的困难 | ||
191 | + entertext(e) { | ||
192 | + this.setData({ | ||
193 | + description: e.detail.value | ||
194 | + }) | ||
195 | + }, | ||
196 | + | ||
197 | + // 点击完成 | ||
198 | + finish() { | ||
199 | + let that = this; | ||
200 | + var url = '/api/office/office_submit'; | ||
201 | + if (that.data.address == '') { | ||
202 | + wx.showToast({ | ||
203 | + title: '请输入地址', | ||
204 | + icon: "none" | ||
205 | + }) | ||
206 | + return false | ||
207 | + } | ||
208 | + if (that.data.name == '') { | ||
209 | + wx.showToast({ | ||
210 | + title: '请输入负责人', | ||
211 | + icon: 'none' | ||
212 | + }) | ||
213 | + return false | ||
214 | + } | ||
215 | + | ||
216 | + if (that.data.phone == '') { | ||
217 | + wx.showToast({ | ||
218 | + title: '请输入联系电话', | ||
219 | + icon: 'none' | ||
220 | + }) | ||
221 | + return false | ||
222 | + } | ||
223 | + | ||
224 | + if (that.data.phone != '') { | ||
225 | + if (!(/^1[3456789]\d{9}$/.test(that.data.phone))) { | ||
226 | + wx.showToast({ | ||
227 | + title: '请输入正确手机号', | ||
228 | + icon: 'none' | ||
229 | + }) | ||
230 | + return false; | ||
231 | + } | ||
232 | + } | ||
233 | + if (that.data.town_id == '') { | ||
234 | + wx.showToast({ | ||
235 | + title: '请选择所属社区', | ||
236 | + icon: 'none' | ||
237 | + }) | ||
238 | + return false | ||
239 | + } | ||
240 | + if (that.data.is_business == 0) { | ||
241 | + wx.showToast({ | ||
242 | + title: '请选择营业状态', | ||
243 | + icon: 'none' | ||
244 | + }) | ||
245 | + return false | ||
246 | + } | ||
247 | + if (that.data.time == '请选择营业时间') { | ||
248 | + wx.showToast({ | ||
249 | + title: '请选择营业时间', | ||
250 | + icon: 'none' | ||
251 | + }) | ||
252 | + return false | ||
253 | + } | ||
254 | + if (that.data.ishandbook == 0) { | ||
255 | + wx.showToast({ | ||
256 | + title: '请选择是否收到疫情指控', | ||
257 | + icon: 'none' | ||
258 | + }) | ||
259 | + return false | ||
260 | + } | ||
261 | + | ||
262 | + var params = { | ||
263 | + office_token: wx.getStorageSync('office_token'), | ||
264 | + new_address: that.data.address, | ||
265 | + town_id: that.data.town_id, | ||
266 | + leader: that.data.name, | ||
267 | + mobile: that.data.phone, | ||
268 | + is_hours: that.data.is_business, | ||
269 | + hours: that.data.time, | ||
270 | + materials: that.data.materials.join(","), | ||
271 | + is_receive: that.data.ishandbook, | ||
272 | + description: that.data.description | ||
273 | + } | ||
274 | + app.post(url, params, "post").then((res) => { | ||
275 | + console.log(res); | ||
276 | + wx.showToast({ | ||
277 | + title: '提交成功', | ||
278 | + icon: 'none', | ||
279 | + | ||
280 | + }) | ||
281 | + // wx.showToast({ | ||
282 | + // title: '提交成功', | ||
283 | + // icon:'none', | ||
284 | + // duration:1500 | ||
285 | + // }) | ||
286 | + setTimeout(function() { | ||
287 | + wx.navigateTo({ | ||
288 | + url: '/pages/businessoffice/businessoffice', | ||
289 | + }) | ||
290 | + }, 1500) | ||
291 | + | ||
292 | + | ||
293 | + }).catch((err) => { | ||
294 | + | ||
295 | + }) | ||
296 | + }, | ||
297 | + | ||
298 | + /** | ||
299 | + * 生命周期函数--监听页面初次渲染完成 | ||
300 | + */ | ||
301 | + onReady: function() { | ||
302 | + | ||
303 | + }, | ||
304 | + | ||
305 | + /** | ||
306 | + * 生命周期函数--监听页面显示 | ||
307 | + */ | ||
308 | + onShow: function() { | ||
309 | + | ||
310 | + }, | ||
311 | + | ||
312 | + /** | ||
313 | + * 生命周期函数--监听页面隐藏 | ||
314 | + */ | ||
315 | + onHide: function() { | ||
316 | + | ||
317 | + }, | ||
318 | + | ||
319 | + /** | ||
320 | + * 生命周期函数--监听页面卸载 | ||
321 | + */ | ||
322 | + onUnload: function() { | ||
323 | + | ||
324 | + }, | ||
325 | + | ||
326 | + /** | ||
327 | + * 页面相关事件处理函数--监听用户下拉动作 | ||
328 | + */ | ||
329 | + onPullDownRefresh: function() { | ||
330 | + | ||
331 | + }, | ||
332 | + | ||
333 | + /** | ||
334 | + * 页面上拉触底事件的处理函数 | ||
335 | + */ | ||
336 | + onReachBottom: function() { | ||
337 | + | ||
338 | + }, | ||
339 | + | ||
340 | + /** | ||
341 | + * 用户点击右上角分享 | ||
342 | + */ | ||
343 | + onShareAppMessage: function() { | ||
344 | + | ||
345 | + } | ||
346 | +}) |
pages/businessdetail/businessdetail.json
0 → 100644
pages/businessdetail/businessdetail.wxml
0 → 100644
1 | +<view class="box"> | ||
2 | + | ||
3 | + <view class="title">登记中</view> | ||
4 | + <!--基本信息--> | ||
5 | + <view class="topbox"> | ||
6 | + <view class="topboxitem flextwo"> | ||
7 | + <view class="boxitemleft">名称</view> | ||
8 | + <view class="boxitemleft itemright">{{office.name}}</view> | ||
9 | + </view> | ||
10 | + <view class="topboxitem flextwo"> | ||
11 | + <view class="boxitemleft">地址</view> | ||
12 | + <view class="boxitemleft itemright" bindtap="enteraddress"> | ||
13 | + <input placeholder='请输入地址' value="{{address}}" bindinput="enterplace" /> | ||
14 | + </view> | ||
15 | + </view> | ||
16 | + <view class="topboxitem flextwo"> | ||
17 | + <view class="boxitemleft">所属行业</view> | ||
18 | + <view class="boxitemleft itemright">{{office.industry}}</view> | ||
19 | + </view> | ||
20 | + <view class="topboxitem flextwo"> | ||
21 | + <view class="boxitemleft">所属乡镇</view> | ||
22 | + <view class="boxitemleft itemright">{{office.town_pname}}</view> | ||
23 | + </view> | ||
24 | + | ||
25 | + | ||
26 | + </view> | ||
27 | + | ||
28 | + <!-- 表单 --> | ||
29 | + <view class="topbox formbox"> | ||
30 | + <view class="useboxitem flextwo" bindtap="selectcompany"> | ||
31 | + <view class="itemname commonone">负责人</view> | ||
32 | + <view class="flexone"> | ||
33 | + <view class="commontwo seltype"> | ||
34 | + | ||
35 | + <input placeholder="请填写负责人姓名" placeholder-class="commontwo" bindinput="entername" /> | ||
36 | + </view> | ||
37 | + | ||
38 | + </view> | ||
39 | + </view> | ||
40 | + <view class="useboxitem flextwo" bindtap="selectcompany"> | ||
41 | + <view class="itemname commonone">联系电话</view> | ||
42 | + <view class="flexone"> | ||
43 | + <view class="commontwo seltype"> | ||
44 | + | ||
45 | + <input placeholder="请填写联系电话" placeholder-class="commontwo" bindinput="enterphone" /> | ||
46 | + </view> | ||
47 | + | ||
48 | + | ||
49 | + </view> | ||
50 | + </view> | ||
51 | + <view class="useboxitem flextwo" bindtap="selectcompany"> | ||
52 | + <view class="itemname commonone">所属社区</view> | ||
53 | + | ||
54 | + <picker bindchange="bindtownrChange" value="{{townindex}}" range="{{town}}" range-key='name'> | ||
55 | + | ||
56 | + <view class="flexone"> | ||
57 | + <view class="commontwo seltype"> | ||
58 | + | ||
59 | + {{townname}} | ||
60 | + | ||
61 | + | ||
62 | + <!-- <input placeholder="请填写工作单位" placeholder-class="commontwo" bindinput="entercompany" value="{{companyname}}" /> --> | ||
63 | + </view> | ||
64 | + | ||
65 | + <view class="yourow you"> | ||
66 | + <image src="/img/yourow.png"></image> | ||
67 | + </view> | ||
68 | + </view> | ||
69 | + | ||
70 | + </picker> | ||
71 | + </view> | ||
72 | + | ||
73 | + <view class="useboxitem flextwo"> | ||
74 | + <view class="itemname commonone">是否营业中</view> | ||
75 | + <view class=" flexone"> | ||
76 | + <view class="selleft flexone"> | ||
77 | + <view class="selleftitem selzuo flexone" bindtap="selsy"> | ||
78 | + <view class="sellefitemimg"> | ||
79 | + <image src="/img/sel.png" wx:if="{{is_business==1}}"></image> | ||
80 | + <image src="/img/nosel.png" wx:else></image> | ||
81 | + </view> | ||
82 | + <view class="selname">是</view> | ||
83 | + </view> | ||
84 | + <view class="selleftitem flexone " bindtap="selsn"> | ||
85 | + <view class="sellefitemimg"> | ||
86 | + <image src="/img/sel.png" wx:if="{{is_business==2}}"></image> | ||
87 | + <image src="/img/nosel.png" wx:else></image> | ||
88 | + </view> | ||
89 | + <view class="selname">否</view> | ||
90 | + </view> | ||
91 | + </view> | ||
92 | + </view> | ||
93 | + </view> | ||
94 | + | ||
95 | + <view class="useboxitem flextwo" bindtap="selectcompany"> | ||
96 | + <view class="itemname commonone yingye">营业时间(预计)</view> | ||
97 | + <view class="flexone"> | ||
98 | + <view class="commontwo"> | ||
99 | + | ||
100 | + <picker mode="time" value="{{time}}" start="00:00" end="24:59" bindchange="bindTimeChange"> | ||
101 | + <view class="picker"> | ||
102 | + {{time}} | ||
103 | + </view> | ||
104 | + </picker> | ||
105 | + <!-- <input placeholder="请填写工作单位" placeholder-class="commontwo" bindinput="entercompany" value="{{companyname}}" /> --> | ||
106 | + </view> | ||
107 | + | ||
108 | + <view class="yourow you"> | ||
109 | + <image src="/img/yourow.png"></image> | ||
110 | + </view> | ||
111 | + </view> | ||
112 | + </view> | ||
113 | + | ||
114 | + <view class="useboxitem "> | ||
115 | + <view class="itemname commonone have">是否有以下防疫物资?(多选)</view> | ||
116 | + <view class=" flexone protect"> | ||
117 | + <view class="protectitem {{item.sel==true?'protectactive':''}}" wx:for="{{protectarr}}" wx:key="" bindtap="selprotect" data-index="{{index}}" data-id="{{item.id}}">{{item.name}}</view> | ||
118 | + | ||
119 | + </view> | ||
120 | + </view> | ||
121 | + <view class="useboxitem flextwo"> | ||
122 | + <view class="itemname commonone yiiqng">是否收到疫情防控指南</view> | ||
123 | + <view class=" flexone"> | ||
124 | + <view class="selleft flexone"> | ||
125 | + <view class="selleftitem selzuo flexone" bindtap="selsyk"> | ||
126 | + <view class="sellefitemimg"> | ||
127 | + <image src="/img/sel.png" wx:if="{{ishandbook==1}}"></image> | ||
128 | + <image src="/img/nosel.png" wx:else></image> | ||
129 | + </view> | ||
130 | + <view class="selname">是</view> | ||
131 | + </view> | ||
132 | + <view class="selleftitem flexone " bindtap="selsnk"> | ||
133 | + <view class="sellefitemimg"> | ||
134 | + <image src="/img/sel.png" wx:if="{{ishandbook==2}}"></image> | ||
135 | + <image src="/img/nosel.png" wx:else></image> | ||
136 | + </view> | ||
137 | + <view class="selname">否</view> | ||
138 | + </view> | ||
139 | + </view> | ||
140 | + </view> | ||
141 | + </view> | ||
142 | + | ||
143 | + <view class="useboxitem "> | ||
144 | + <view class="itemname commonone have">存在的困难</view> | ||
145 | + <view class="flexone difficult"> | ||
146 | + <textarea placeholder='请输入存在的困难' bindinput="entertext"/> | ||
147 | + </view> | ||
148 | + </view> | ||
149 | + | ||
150 | + | ||
151 | + </view> | ||
152 | + | ||
153 | + <view class="finish flexthree"> | ||
154 | + <view class="finishbtn" bindtap="finish">完成</view> | ||
155 | + </view> | ||
156 | +</view> |
pages/businessdetail/businessdetail.wxss
0 → 100644
1 | +@import "../backpeople/backpeople.wxss"; | ||
2 | + | ||
3 | +image { | ||
4 | + width: 100%; | ||
5 | + height: 100%; | ||
6 | +} | ||
7 | + | ||
8 | +page { | ||
9 | + background: #fbf8fb; | ||
10 | +} | ||
11 | + | ||
12 | +.box { | ||
13 | + width: 750rpx; | ||
14 | + height: 100%; | ||
15 | + background: linear-gradient(180deg, rgba(28, 143, 255, 1) 0%, rgba(249, 249, 249, 1) 100%); | ||
16 | + opacity: 1; | ||
17 | + overflow-y: scroll; | ||
18 | +} | ||
19 | + | ||
20 | +.topbox { | ||
21 | + width: 690rpx; | ||
22 | + margin: 48rpx auto 0; | ||
23 | + padding: 0 24rpx; | ||
24 | + box-sizing: border-box; | ||
25 | + background: #fff; | ||
26 | + border-radius: 8rpx; | ||
27 | +} | ||
28 | + | ||
29 | +.boxitemleft { | ||
30 | + color: #06121e; | ||
31 | + font-size: 28rpx; | ||
32 | + font-weight: bold; | ||
33 | +} | ||
34 | + | ||
35 | +.itemright { | ||
36 | + width: 510rpx; | ||
37 | + overflow: hidden; | ||
38 | + text-overflow: ellipsis; | ||
39 | + white-space: nowrap; | ||
40 | + text-align: right; | ||
41 | +} | ||
42 | +.itemright input{ | ||
43 | + width: 510rpx; | ||
44 | + overflow: hidden; | ||
45 | + text-overflow: ellipsis; | ||
46 | + white-space: nowrap; | ||
47 | + text-align: right; | ||
48 | +} | ||
49 | +.topboxitem { | ||
50 | + padding: 34rpx 0; | ||
51 | + box-sizing: border-box; | ||
52 | + border-bottom: 1rpx solid #f5f5f5; | ||
53 | +} | ||
54 | + | ||
55 | +.title { | ||
56 | + position: relative; | ||
57 | + text-align: center; | ||
58 | + overflow: hidden; | ||
59 | + color: #fff; | ||
60 | + font-size: 56rpx; | ||
61 | + font-weight: bold; | ||
62 | +} | ||
63 | + | ||
64 | +.title::before, .title::after { | ||
65 | + content: ''; | ||
66 | + display: inline-block; | ||
67 | + width: 144rpx; | ||
68 | + height: 1px; | ||
69 | + position: absolute; | ||
70 | + background: rgba(128, 192, 255, 1); | ||
71 | + opacity: 0.4; | ||
72 | + top: 50%; | ||
73 | +} | ||
74 | + | ||
75 | +.title::before { | ||
76 | + margin-left: -64rpx; | ||
77 | + transform: translateX(-100%); | ||
78 | +} | ||
79 | + | ||
80 | +.title::after { | ||
81 | + margin-left: 64rpx; | ||
82 | +} | ||
83 | + | ||
84 | +.formbox { | ||
85 | + margin-top: 20rpx; | ||
86 | + margin-bottom: 150rpx; | ||
87 | +} | ||
88 | + | ||
89 | +.seltype input { | ||
90 | + font-size: 24rpx; | ||
91 | +} | ||
92 | + | ||
93 | +.commontwo { | ||
94 | + font-size: 24rpx; | ||
95 | +} | ||
96 | + | ||
97 | +.itemname { | ||
98 | + width: 200rpx; | ||
99 | +} | ||
100 | + | ||
101 | +.selname { | ||
102 | + color: #06121e; | ||
103 | + font-size: 28rpx; | ||
104 | + font-weight: bold; | ||
105 | +} | ||
106 | + | ||
107 | +.yiiqng { | ||
108 | + width: 300rpx; | ||
109 | +} | ||
110 | + | ||
111 | +.yingye { | ||
112 | + width: 260rpx !important; | ||
113 | +} | ||
114 | + | ||
115 | +.protect { | ||
116 | + flex-wrap: wrap; | ||
117 | +} | ||
118 | + | ||
119 | +.protect { | ||
120 | + margin-top: 6rpx; | ||
121 | +} | ||
122 | + | ||
123 | +.protectitem { | ||
124 | + width: 302rpx; | ||
125 | + height: 64rpx; | ||
126 | + background: rgba(255, 255, 255, 1); | ||
127 | + border: 1rpx solid rgba(219, 219, 219, 1); | ||
128 | + opacity: 1; | ||
129 | + border-radius: 48rpx; | ||
130 | + color: #3d444d; | ||
131 | + font-size: 24rpx; | ||
132 | + text-align: center; | ||
133 | + line-height: 64rpx; | ||
134 | + margin-top: 20rpx; | ||
135 | +} | ||
136 | + | ||
137 | +.protectitem:nth-child(2n) { | ||
138 | + margin-left: 28rpx; | ||
139 | +} | ||
140 | + | ||
141 | +.itemone { | ||
142 | + margin-right: 28rpx; | ||
143 | +} | ||
144 | + | ||
145 | +.have { | ||
146 | + width: 400rpx; | ||
147 | +} | ||
148 | + | ||
149 | +.protectactive { | ||
150 | + background: rgba(232, 244, 255, 1); | ||
151 | + color: #1b8ffd; | ||
152 | + border: 1rpx solid rgba(27, 143, 253, 1); | ||
153 | +} | ||
154 | + | ||
155 | +.finish { | ||
156 | + width: 750rpx; | ||
157 | + padding: 14rpx 0; | ||
158 | + box-sizing: border-box; | ||
159 | + position: fixed; | ||
160 | + left: 0; | ||
161 | + bottom: 0; | ||
162 | + background: #e7f0f9; | ||
163 | +} | ||
164 | + | ||
165 | +.finishbtn { | ||
166 | + width: 686rpx; | ||
167 | + height: 88rpx; | ||
168 | + background: rgba(28, 143, 255, 1); | ||
169 | + opacity: 1; | ||
170 | + color: #fefefe; | ||
171 | + font-size: 32rpx; | ||
172 | + text-align: center; | ||
173 | + line-height: 88rpx; | ||
174 | + border-radius: 10rpx; | ||
175 | +} | ||
176 | +.difficult{ | ||
177 | + width:686rpx; | ||
178 | + | ||
179 | + border:1rpx solid #f5f5f5; | ||
180 | + border-radius: 20rpx; | ||
181 | + margin-top:20rpx; | ||
182 | + color:#8c9198; | ||
183 | + font-size:24rpx; | ||
184 | +} | ||
185 | +.difficult textarea{ | ||
186 | + width:100%; | ||
187 | + height:302rpx; | ||
188 | + padding: 20rpx; | ||
189 | +} |
1 | // pages/businessoffice/businessoffice.js | 1 | // pages/businessoffice/businessoffice.js |
2 | +const app=getApp() | ||
2 | Page({ | 3 | Page({ |
3 | 4 | ||
4 | /** | 5 | /** |
@@ -6,7 +7,9 @@ Page({ | @@ -6,7 +7,9 @@ Page({ | ||
6 | */ | 7 | */ |
7 | data: { | 8 | data: { |
8 | navarr:['全部','登记中','登记完成','登记失败'], | 9 | navarr:['全部','登记中','登记完成','登记失败'], |
9 | - sel:0 | 10 | + sel:0, |
11 | + loginlist:[], | ||
12 | + page:1 | ||
10 | }, | 13 | }, |
11 | 14 | ||
12 | /** | 15 | /** |
@@ -15,13 +18,48 @@ Page({ | @@ -15,13 +18,48 @@ Page({ | ||
15 | onLoad: function (options) { | 18 | onLoad: function (options) { |
16 | 19 | ||
17 | }, | 20 | }, |
21 | + // 获取场所登记列表 | ||
22 | + getdengjilist(){ | ||
23 | + console.log(489384) | ||
24 | + let that = this; | ||
25 | + var url = '/api/office/office_list'; | ||
26 | + var params = { | ||
27 | + status: that.data.sel, | ||
28 | + admin_token: wx.getStorageSync("usertoken"), | ||
29 | + page:that.data.page | ||
30 | + | ||
31 | + } | ||
32 | + | ||
33 | + app.post(url,params,"post").then((res) => { | ||
34 | + console.log(res); | ||
35 | + that.setData({ | ||
36 | + loginlist:that.data.loginlist.concat(res.office) | ||
37 | + }) | ||
38 | + | ||
39 | + | ||
40 | + | ||
41 | + }).catch((err) => { | ||
42 | + | ||
43 | + }) | ||
44 | + }, | ||
18 | 45 | ||
19 | selnav(e){ | 46 | selnav(e){ |
20 | this.setData({ | 47 | this.setData({ |
21 | sel:e.currentTarget.dataset.index | 48 | sel:e.currentTarget.dataset.index |
22 | }) | 49 | }) |
50 | + | ||
51 | + this.getdengjilist() | ||
52 | + }, | ||
53 | + | ||
54 | + // 进入登记详情 | ||
55 | + businessdetail(e){ | ||
56 | + let id=e.currentTarget.dataset.id; | ||
57 | + wx.navigateTo({ | ||
58 | + // url: '/pages/', | ||
59 | + }) | ||
23 | }, | 60 | }, |
24 | 61 | ||
62 | + | ||
25 | /** | 63 | /** |
26 | * 生命周期函数--监听页面初次渲染完成 | 64 | * 生命周期函数--监听页面初次渲染完成 |
27 | */ | 65 | */ |
@@ -33,7 +71,7 @@ Page({ | @@ -33,7 +71,7 @@ Page({ | ||
33 | * 生命周期函数--监听页面显示 | 71 | * 生命周期函数--监听页面显示 |
34 | */ | 72 | */ |
35 | onShow: function () { | 73 | onShow: function () { |
36 | - | 74 | + this.getdengjilist() |
37 | }, | 75 | }, |
38 | 76 | ||
39 | /** | 77 | /** |
@@ -6,33 +6,37 @@ | @@ -6,33 +6,37 @@ | ||
6 | </view> | 6 | </view> |
7 | 7 | ||
8 | 8 | ||
9 | -<view class="box"> | ||
10 | - <view class="commonpadding"> | 9 | +<view class="nodata" wx:if="{{loginlist.length==0}}">暂无数据</view> |
10 | + | ||
11 | + | ||
12 | +<view class="box" wx:else> | ||
13 | + <view class="commonpadding" wx:for="{{loginlist}}" wx:key="" bindtap="businessdetail" data-id="{{item.id}}"> | ||
11 | <view class="statetop flextwo"> | 14 | <view class="statetop flextwo"> |
12 | - <view class="bname">隔离上报</view> | 15 | + <view class="bname">{{item.name}}</view> |
13 | <!-- wx:if="{{item.status==1}}" --> | 16 | <!-- wx:if="{{item.status==1}}" --> |
14 | - <view class="stateing" >处理中</view> | ||
15 | - <view class="statefinish" >处理中</view> | ||
16 | - <view class="statefail" >处理中</view> | 17 | + <view class="stateing" wx:if="{{item.status==0}}">待登记</view> |
18 | + <view class="stateing" wx:if="{{item.status==1}}">登记中</view> | ||
19 | + <view class="statefinish" wx:if="{{item.status==2}}">登记完成</view> | ||
20 | + <view class="statefail" wx:if="{{item.status==3}}">登记失败</view> | ||
17 | <!-- <view class="statek" wx:else>已处理</view> --> | 21 | <!-- <view class="statek" wx:else>已处理</view> --> |
18 | </view> | 22 | </view> |
19 | 23 | ||
20 | - <view class="reason">12月3日营业</view> | 24 | + <view class="reason">{{item.hours}}营业</view> |
21 | <view class="itembox"> | 25 | <view class="itembox"> |
22 | <view class="item flexone"> | 26 | <view class="item flexone"> |
23 | - <view class="itemleft">联系人:</view> | ||
24 | - <view class="itemright">123</view> | 27 | + <view class="itemleft">负责人员:</view> |
28 | + <view class="itemright">{{item.leader}}</view> | ||
25 | </view> | 29 | </view> |
26 | <view class="item flexone"> | 30 | <view class="item flexone"> |
27 | <view class="itemleft">联系电话:</view> | 31 | <view class="itemleft">联系电话:</view> |
28 | - <view class="itemright">123</view> | 32 | + <view class="itemright">{{item.mobile}}</view> |
29 | </view> | 33 | </view> |
30 | <view class="item flex"> | 34 | <view class="item flex"> |
31 | - <view class="itemleft">现住地址:</view> | ||
32 | - <view class="itemright">456 </view> | 35 | + <view class="itemleft">所处位置</view> |
36 | + <view class="itemright">{{item.new_address}} </view> | ||
33 | </view> | 37 | </view> |
34 | <view class="itemdate"> | 38 | <view class="itemdate"> |
35 | - <view class="datetime">7896</view> | 39 | + <view class="datetime">{{item.updatetime}}</view> |
36 | </view> | 40 | </view> |
37 | </view> | 41 | </view> |
38 | 42 |
@@ -13,6 +13,14 @@ Page({ | @@ -13,6 +13,14 @@ Page({ | ||
13 | ishandbook:0, | 13 | ishandbook:0, |
14 | materials:[], | 14 | materials:[], |
15 | time: '请选择营业时间', | 15 | time: '请选择营业时间', |
16 | + town:[], | ||
17 | + townname:'请选择所属社区', | ||
18 | + townindex:0, | ||
19 | + town_id:'', | ||
20 | + name:'', | ||
21 | + phone:'', | ||
22 | + description:'' | ||
23 | + | ||
16 | 24 | ||
17 | }, | 25 | }, |
18 | 26 | ||
@@ -32,6 +40,7 @@ Page({ | @@ -32,6 +40,7 @@ Page({ | ||
32 | 40 | ||
33 | // 是否营业中 | 41 | // 是否营业中 |
34 | selsy(){ | 42 | selsy(){ |
43 | + | ||
35 | this.setData({ | 44 | this.setData({ |
36 | is_business:1 | 45 | is_business:1 |
37 | }) | 46 | }) |
@@ -43,17 +52,31 @@ Page({ | @@ -43,17 +52,31 @@ Page({ | ||
43 | }, | 52 | }, |
44 | 53 | ||
45 | // 是否收到疫情防控指南 | 54 | // 是否收到疫情防控指南 |
46 | - selsy(){ | 55 | + selsyk(){ |
47 | this.setData({ | 56 | this.setData({ |
48 | ishandbook:1 | 57 | ishandbook:1 |
49 | }) | 58 | }) |
50 | }, | 59 | }, |
51 | - selsn() { | 60 | + selsnk() { |
52 | this.setData({ | 61 | this.setData({ |
53 | ishandbook: 2 | 62 | ishandbook: 2 |
54 | }) | 63 | }) |
55 | }, | 64 | }, |
56 | 65 | ||
66 | + // 输入姓名 | ||
67 | + entername(e){ | ||
68 | + this.setData({ | ||
69 | + name:e.detail.value | ||
70 | + }) | ||
71 | + }, | ||
72 | + | ||
73 | + // 输入电话号 | ||
74 | + enterphone(e){ | ||
75 | + this.setData({ | ||
76 | + phone:e.detail.value | ||
77 | + }) | ||
78 | + }, | ||
79 | + | ||
57 | //获取登记详情 | 80 | //获取登记详情 |
58 | gettail(){ | 81 | gettail(){ |
59 | let that = this; | 82 | let that = this; |
@@ -74,9 +97,21 @@ Page({ | @@ -74,9 +97,21 @@ Page({ | ||
74 | that.setData({ | 97 | that.setData({ |
75 | office:res.office, | 98 | office:res.office, |
76 | protectarr:that.data.protectarr, | 99 | protectarr:that.data.protectarr, |
77 | - address:res.office.address | 100 | + address:res.office.address, |
101 | + name:res.office.leader, | ||
102 | + phone:res.office.mobile, | ||
103 | + town_id:res.office.town_id, | ||
104 | + townname: res.office.town_name, | ||
105 | + ishandbook: res.office.is_receive, | ||
106 | + description: res.office.description, | ||
107 | + materials: res.materials.split(","), | ||
108 | + is_business:res.office.is_hours, | ||
109 | + ishandbook:res.office.is_receive | ||
110 | + | ||
78 | }) | 111 | }) |
79 | 112 | ||
113 | + that.getsocietylist() | ||
114 | + | ||
80 | console.log(that.data.protectarr) | 115 | console.log(that.data.protectarr) |
81 | 116 | ||
82 | 117 | ||
@@ -86,6 +121,38 @@ Page({ | @@ -86,6 +121,38 @@ Page({ | ||
86 | }) | 121 | }) |
87 | }, | 122 | }, |
88 | 123 | ||
124 | + // 获取社区列表 | ||
125 | + getsocietylist(){ | ||
126 | + let that = this; | ||
127 | + var url = '/api/index/town'; | ||
128 | + var params = { | ||
129 | + type:2, | ||
130 | + pid: that.data.office.town_pid | ||
131 | + | ||
132 | + } | ||
133 | + app.post(url, params).then((res) => { | ||
134 | + console.log(res); | ||
135 | + that.setData({ | ||
136 | + town:res.town | ||
137 | + }) | ||
138 | + | ||
139 | + | ||
140 | + | ||
141 | + }).catch((err) => { | ||
142 | + | ||
143 | + }) | ||
144 | + | ||
145 | + }, | ||
146 | + bindtownrChange(e){ | ||
147 | + console.log(e.detail.value) | ||
148 | + this.setData({ | ||
149 | + townindex: e.detail.value, | ||
150 | + townname: this.data.town[e.detail.value].name, | ||
151 | + town_id: this.data.town[e.detail.value].id | ||
152 | + }) | ||
153 | + }, | ||
154 | + | ||
155 | + | ||
89 | // 选择防疫物资 | 156 | // 选择防疫物资 |
90 | selprotect(e){ | 157 | selprotect(e){ |
91 | let that=this; | 158 | let that=this; |
@@ -126,6 +193,104 @@ Page({ | @@ -126,6 +193,104 @@ Page({ | ||
126 | }) | 193 | }) |
127 | }, | 194 | }, |
128 | 195 | ||
196 | + // 存在的困难 | ||
197 | + entertext(e){ | ||
198 | + this.setData({ | ||
199 | + description:e.detail.value | ||
200 | + }) | ||
201 | + }, | ||
202 | + | ||
203 | + // 点击完成 | ||
204 | + finish(){ | ||
205 | + let that = this; | ||
206 | + var url = '/api/office/office_submit'; | ||
207 | + if(that.data.address==''){ | ||
208 | + wx.showToast({ | ||
209 | + title: '请输入地址', | ||
210 | + icon:"none" | ||
211 | + }) | ||
212 | + return false | ||
213 | + } | ||
214 | + if (that.data.name == '') { | ||
215 | + wx.showToast({ | ||
216 | + title: '请输入负责人', | ||
217 | + icon: 'none' | ||
218 | + }) | ||
219 | + return false | ||
220 | + } | ||
221 | + | ||
222 | + if (that.data.phone == '') { | ||
223 | + wx.showToast({ | ||
224 | + title: '请输入联系电话', | ||
225 | + icon: 'none' | ||
226 | + }) | ||
227 | + return false | ||
228 | + } | ||
229 | + if (that.data.town_id==''){ | ||
230 | + wx.showToast({ | ||
231 | + title: '请选择所属社区', | ||
232 | + icon:'none' | ||
233 | + }) | ||
234 | + return false | ||
235 | + } | ||
236 | + if (that.data.is_business == 0) { | ||
237 | + wx.showToast({ | ||
238 | + title: '请选择营业状态', | ||
239 | + icon: 'none' | ||
240 | + }) | ||
241 | + return false | ||
242 | + } | ||
243 | + if (that.data.time =='请选择营业时间') { | ||
244 | + wx.showToast({ | ||
245 | + title: '请选择营业时间', | ||
246 | + icon: 'none' | ||
247 | + }) | ||
248 | + return false | ||
249 | + } | ||
250 | + if (that.data.ishandbook == 0) { | ||
251 | + wx.showToast({ | ||
252 | + title: '请选择是否收到疫情指控', | ||
253 | + icon: 'none' | ||
254 | + }) | ||
255 | + return false | ||
256 | + } | ||
257 | + | ||
258 | + var params = { | ||
259 | + office_token: wx.getStorageSync('office_token'), | ||
260 | + new_address:that.data.address, | ||
261 | + town_id: that.data.town_id, | ||
262 | + leader:that.data.name, | ||
263 | + mobile:that.data.phone, | ||
264 | + is_hours: that.data.is_business, | ||
265 | + hours:that.data.time, | ||
266 | + materials: that.data.materials.join(","), | ||
267 | + is_receive: that.data.ishandbook, | ||
268 | + description: that.data.description | ||
269 | + } | ||
270 | + app.post(url, params,"post").then((res) => { | ||
271 | + console.log(res); | ||
272 | + wx.showToast({ | ||
273 | + title: '提交成功', | ||
274 | + icon:'none', | ||
275 | + | ||
276 | + }) | ||
277 | + // wx.showToast({ | ||
278 | + // title: '提交成功', | ||
279 | + // icon:'none', | ||
280 | + // duration:1500 | ||
281 | + // }) | ||
282 | + setTimeout(function(){ | ||
283 | + wx.navigateTo({ | ||
284 | + url: '/pages/businessoffice/businessoffice', | ||
285 | + }) | ||
286 | + },1500) | ||
287 | + | ||
288 | + | ||
289 | + }).catch((err) => { | ||
290 | + | ||
291 | + }) | ||
292 | + }, | ||
293 | + | ||
129 | /** | 294 | /** |
130 | * 生命周期函数--监听页面初次渲染完成 | 295 | * 生命周期函数--监听页面初次渲染完成 |
131 | */ | 296 | */ |
@@ -11,7 +11,6 @@ | @@ -11,7 +11,6 @@ | ||
11 | <view class="boxitemleft">地址</view> | 11 | <view class="boxitemleft">地址</view> |
12 | <view class="boxitemleft itemright" bindtap="enteraddress"> | 12 | <view class="boxitemleft itemright" bindtap="enteraddress"> |
13 | <input placeholder='请输入地址' value="{{address}}" bindinput="enterplace" /> | 13 | <input placeholder='请输入地址' value="{{address}}" bindinput="enterplace" /> |
14 | - | ||
15 | </view> | 14 | </view> |
16 | </view> | 15 | </view> |
17 | <view class="topboxitem flextwo"> | 16 | <view class="topboxitem flextwo"> |
@@ -33,7 +32,7 @@ | @@ -33,7 +32,7 @@ | ||
33 | <view class="flexone"> | 32 | <view class="flexone"> |
34 | <view class="commontwo seltype"> | 33 | <view class="commontwo seltype"> |
35 | 34 | ||
36 | - <input placeholder="请填写负责人姓名" placeholder-class="commontwo" bindinput="entername" /> | 35 | + <input placeholder="请填写负责人姓名" placeholder-class="commontwo" bindinput="entername" value="name"/> |
37 | </view> | 36 | </view> |
38 | 37 | ||
39 | </view> | 38 | </view> |
@@ -43,7 +42,7 @@ | @@ -43,7 +42,7 @@ | ||
43 | <view class="flexone"> | 42 | <view class="flexone"> |
44 | <view class="commontwo seltype"> | 43 | <view class="commontwo seltype"> |
45 | 44 | ||
46 | - <input placeholder="请填写联系电话" placeholder-class="commontwo" bindinput="enterphone" /> | 45 | + <input placeholder="请填写联系电话" placeholder-class="commontwo" bindinput="enterphone" value="phone"/> |
47 | </view> | 46 | </view> |
48 | 47 | ||
49 | 48 | ||
@@ -51,9 +50,15 @@ | @@ -51,9 +50,15 @@ | ||
51 | </view> | 50 | </view> |
52 | <view class="useboxitem flextwo" bindtap="selectcompany"> | 51 | <view class="useboxitem flextwo" bindtap="selectcompany"> |
53 | <view class="itemname commonone">所属社区</view> | 52 | <view class="itemname commonone">所属社区</view> |
53 | + | ||
54 | + <picker bindchange="bindtownrChange" value="{{townindex}}" range="{{town}}" range-key='name'> | ||
55 | + | ||
54 | <view class="flexone"> | 56 | <view class="flexone"> |
55 | <view class="commontwo seltype"> | 57 | <view class="commontwo seltype"> |
56 | - 请选择所属社区 | 58 | + |
59 | + {{townname}} | ||
60 | + | ||
61 | + | ||
57 | <!-- <input placeholder="请填写工作单位" placeholder-class="commontwo" bindinput="entercompany" value="{{companyname}}" /> --> | 62 | <!-- <input placeholder="请填写工作单位" placeholder-class="commontwo" bindinput="entercompany" value="{{companyname}}" /> --> |
58 | </view> | 63 | </view> |
59 | 64 | ||
@@ -61,6 +66,8 @@ | @@ -61,6 +66,8 @@ | ||
61 | <image src="/img/yourow.png"></image> | 66 | <image src="/img/yourow.png"></image> |
62 | </view> | 67 | </view> |
63 | </view> | 68 | </view> |
69 | + | ||
70 | + </picker> | ||
64 | </view> | 71 | </view> |
65 | 72 | ||
66 | <view class="useboxitem flextwo"> | 73 | <view class="useboxitem flextwo"> |
@@ -115,14 +122,14 @@ | @@ -115,14 +122,14 @@ | ||
115 | <view class="itemname commonone yiiqng">是否收到疫情防控指南</view> | 122 | <view class="itemname commonone yiiqng">是否收到疫情防控指南</view> |
116 | <view class=" flexone"> | 123 | <view class=" flexone"> |
117 | <view class="selleft flexone"> | 124 | <view class="selleft flexone"> |
118 | - <view class="selleftitem selzuo flexone" bindtap="selsy"> | 125 | + <view class="selleftitem selzuo flexone" bindtap="selsyk"> |
119 | <view class="sellefitemimg"> | 126 | <view class="sellefitemimg"> |
120 | <image src="/img/sel.png" wx:if="{{ishandbook==1}}"></image> | 127 | <image src="/img/sel.png" wx:if="{{ishandbook==1}}"></image> |
121 | <image src="/img/nosel.png" wx:else></image> | 128 | <image src="/img/nosel.png" wx:else></image> |
122 | </view> | 129 | </view> |
123 | <view class="selname">是</view> | 130 | <view class="selname">是</view> |
124 | </view> | 131 | </view> |
125 | - <view class="selleftitem flexone " bindtap="selsn"> | 132 | + <view class="selleftitem flexone " bindtap="selsnk"> |
126 | <view class="sellefitemimg"> | 133 | <view class="sellefitemimg"> |
127 | <image src="/img/sel.png" wx:if="{{ishandbook==2}}"></image> | 134 | <image src="/img/sel.png" wx:if="{{ishandbook==2}}"></image> |
128 | <image src="/img/nosel.png" wx:else></image> | 135 | <image src="/img/nosel.png" wx:else></image> |
@@ -133,10 +140,17 @@ | @@ -133,10 +140,17 @@ | ||
133 | </view> | 140 | </view> |
134 | </view> | 141 | </view> |
135 | 142 | ||
143 | + <view class="useboxitem "> | ||
144 | + <view class="itemname commonone have">存在的困难</view> | ||
145 | + <view class="flexone difficult"> | ||
146 | + <textarea placeholder='请输入存在的困难' bindinput="entertext" value="{{description}}"/> | ||
147 | + </view> | ||
148 | + </view> | ||
149 | + | ||
136 | 150 | ||
137 | </view> | 151 | </view> |
138 | 152 | ||
139 | <view class="finish flexthree"> | 153 | <view class="finish flexthree"> |
140 | - <view class="finishbtn">完成</view> | 154 | + <view class="finishbtn" bindtap="finish">完成</view> |
141 | </view> | 155 | </view> |
142 | </view> | 156 | </view> |
@@ -173,3 +173,17 @@ page { | @@ -173,3 +173,17 @@ page { | ||
173 | line-height: 88rpx; | 173 | line-height: 88rpx; |
174 | border-radius: 10rpx; | 174 | border-radius: 10rpx; |
175 | } | 175 | } |
176 | +.difficult{ | ||
177 | + width:686rpx; | ||
178 | + | ||
179 | + border:1rpx solid #f5f5f5; | ||
180 | + border-radius: 20rpx; | ||
181 | + margin-top:20rpx; | ||
182 | + color:#8c9198; | ||
183 | + font-size:24rpx; | ||
184 | +} | ||
185 | +.difficult textarea{ | ||
186 | + width:100%; | ||
187 | + height:302rpx; | ||
188 | + padding: 20rpx; | ||
189 | +} |
@@ -17,20 +17,14 @@ | @@ -17,20 +17,14 @@ | ||
17 | <image src="/img/img_fanjing.png"></image> | 17 | <image src="/img/img_fanjing.png"></image> |
18 | </view> | 18 | </view> |
19 | </view> | 19 | </view> |
20 | - <!-- <view class="startitem" bindtap="resup"> | 20 | + <view class="startitem" bindtap="resup"> |
21 | <view class="startitemtop">营业场所</view> | 21 | <view class="startitemtop">营业场所</view> |
22 | <view class="register">登记</view> | 22 | <view class="register">登记</view> |
23 | <view class="startimg"> | 23 | <view class="startimg"> |
24 | <image src="/img/img_fugong.png"></image> | 24 | <image src="/img/img_fugong.png"></image> |
25 | </view> | 25 | </view> |
26 | - </view> --> | ||
27 | - <view class="startitem" bindtap="backlist"> | ||
28 | - <view class="startitemtop">乡镇管理员</view> | ||
29 | - <view class="register">入口</view> | ||
30 | - <view class="startimg"> | ||
31 | - <image src="/img/guanli.png"></image> | ||
32 | - </view> | ||
33 | </view> | 26 | </view> |
27 | + | ||
34 | <view class="startitem" bindtap="manager"> | 28 | <view class="startitem" bindtap="manager"> |
35 | <view class="startitemtop">企业</view> | 29 | <view class="startitemtop">企业</view> |
36 | <view class="register">管理及服务</view> | 30 | <view class="register">管理及服务</view> |
@@ -39,13 +33,20 @@ | @@ -39,13 +33,20 @@ | ||
39 | </view> | 33 | </view> |
40 | </view> | 34 | </view> |
41 | 35 | ||
36 | + <view class="startitem" bindtap="backlist"> | ||
37 | + <view class="startitemtop">乡镇管理员</view> | ||
38 | + <view class="register">入口</view> | ||
39 | + <view class="startimg"> | ||
40 | + <image src="/img/guanli.png"></image> | ||
41 | + </view> | ||
42 | + </view> | ||
43 | + | ||
42 | 44 | ||
43 | 45 | ||
44 | </view> | 46 | </view> |
45 | 47 | ||
46 | <view class="jiaotop"> | 48 | <view class="jiaotop"> |
47 | <view class="botjiao" bindtap="sub"> | 49 | <view class="botjiao" bindtap="sub"> |
48 | - | ||
49 | <image src="/img/icon_q.png"></image> | 50 | <image src="/img/icon_q.png"></image> |
50 | 51 | ||
51 | </view> | 52 | </view> |
@@ -54,7 +54,7 @@ | @@ -54,7 +54,7 @@ | ||
54 | "list": [] | 54 | "list": [] |
55 | }, | 55 | }, |
56 | "miniprogram": { | 56 | "miniprogram": { |
57 | - "current": -1, | 57 | + "current": 8, |
58 | "list": [ | 58 | "list": [ |
59 | { | 59 | { |
60 | "id": -1, | 60 | "id": -1, |
@@ -111,6 +111,12 @@ | @@ -111,6 +111,12 @@ | ||
111 | "pathName": "pages/clock/clock", | 111 | "pathName": "pages/clock/clock", |
112 | "query": "scene=1", | 112 | "query": "scene=1", |
113 | "scene": null | 113 | "scene": null |
114 | + }, | ||
115 | + { | ||
116 | + "id": -1, | ||
117 | + "name": "场所登记列表", | ||
118 | + "pathName": "pages/businessoffice/businessoffice", | ||
119 | + "scene": null | ||
114 | } | 120 | } |
115 | ] | 121 | ] |
116 | } | 122 | } |
-
请 注册 或 登录 后发表评论