正在显示
73 个修改的文件
包含
4849 行增加
和
0 行删除
app.js
0 → 100644
1 | +//app.js | ||
2 | +App({ | ||
3 | + onLaunch: function () { | ||
4 | + // 展示本地存储能力 | ||
5 | + var logs = wx.getStorageSync('logs') || [] | ||
6 | + logs.unshift(Date.now()) | ||
7 | + wx.setStorageSync('logs', logs) | ||
8 | + | ||
9 | + // 登录 | ||
10 | + wx.login({ | ||
11 | + success: res => { | ||
12 | + // 发送 res.code 到后台换取 openId, sessionKey, unionId | ||
13 | + } | ||
14 | + }) | ||
15 | + // 获取用户信息 | ||
16 | + wx.getSetting({ | ||
17 | + success: res => { | ||
18 | + if (res.authSetting['scope.userInfo']) { | ||
19 | + // 已经授权,可以直接调用 getUserInfo 获取头像昵称,不会弹框 | ||
20 | + wx.getUserInfo({ | ||
21 | + success: res => { | ||
22 | + // 可以将 res 发送给后台解码出 unionId | ||
23 | + this.globalData.userInfo = res.userInfo | ||
24 | + | ||
25 | + // 由于 getUserInfo 是网络请求,可能会在 Page.onLoad 之后才返回 | ||
26 | + // 所以此处加入 callback 以防止这种情况 | ||
27 | + if (this.userInfoReadyCallback) { | ||
28 | + this.userInfoReadyCallback(res) | ||
29 | + } | ||
30 | + } | ||
31 | + }) | ||
32 | + } | ||
33 | + } | ||
34 | + }) | ||
35 | + }, | ||
36 | + post: function (url, data, headerParams) { | ||
37 | + wx.showNavigationBarLoading() | ||
38 | + var promise = new Promise((resolve, reject) => { | ||
39 | + //init | ||
40 | + let that = this; | ||
41 | + let postData = data; | ||
42 | + let baseUrl = 'https://jhfy.jjjtech.cn'; | ||
43 | + //网络请求 | ||
44 | + let header = { | ||
45 | + // 'XX-Device-Type': 'wxapp', | ||
46 | + 'token': wx.getStorageSync("token") || '' | ||
47 | + } | ||
48 | + header = Object.assign(header, headerParams) | ||
49 | + //网络请求 | ||
50 | + wx.request({ | ||
51 | + url: baseUrl + url, | ||
52 | + data: postData, | ||
53 | + method: headerParams, | ||
54 | + header: header, | ||
55 | + success: function (res) { //返回取得的数据 | ||
56 | + if (res.data.code == '1') { | ||
57 | + resolve(res.data.data); | ||
58 | + } else if (res.data.code == '201') { | ||
59 | + resolve(res.data); | ||
60 | + } else { | ||
61 | + // wx.showToast({ | ||
62 | + // title: res.data.msg, | ||
63 | + // duration: 1200, | ||
64 | + // icon: 'none' | ||
65 | + // }) | ||
66 | + reject(res) | ||
67 | + } | ||
68 | + | ||
69 | + // else if (res.data.code == '42002') { | ||
70 | + | ||
71 | + // } | ||
72 | + // setTimeout(function () { | ||
73 | + | ||
74 | + // wx.hideNavigationBarLoading() | ||
75 | + // }, 600) | ||
76 | + }, | ||
77 | + fail: function (e) { | ||
78 | + reject('网络出错'); | ||
79 | + // wx.hideLoading() | ||
80 | + wx.hideNavigationBarLoading() | ||
81 | + }, | ||
82 | + complete: function () { | ||
83 | + wx.hideNavigationBarLoading() | ||
84 | + }, | ||
85 | + }) | ||
86 | + }); | ||
87 | + return promise; | ||
88 | + }, | ||
89 | + upload(filetype, file) { | ||
90 | + | ||
91 | + var promise = new Promise((resolve, reject) => { | ||
92 | + wx.showNavigationBarLoading() | ||
93 | + wx.showLoading({ | ||
94 | + title: '上传中', | ||
95 | + }) | ||
96 | + let url = 'https://jhfy.jjjtech.cn/api/common/upload'; | ||
97 | + let head = { | ||
98 | + 'token': wx.getStorageSync('token'), | ||
99 | + 'XX-Device-Type': '' | ||
100 | + } | ||
101 | + let typename = { | ||
102 | + filetype: filetype | ||
103 | + } | ||
104 | + wx.uploadFile({ | ||
105 | + url: url, //仅为示例,非真实的接口地址 | ||
106 | + filePath: file, | ||
107 | + name: 'file', | ||
108 | + header: head, | ||
109 | + formData: typename, | ||
110 | + success: function (res) { | ||
111 | + console.log('上传文件后', res) | ||
112 | + let temdata = JSON.parse(res.data); | ||
113 | + console.log(temdata) | ||
114 | + let urlobj = { | ||
115 | + url: temdata.data.preview_url, | ||
116 | + kurl: temdata.data.url | ||
117 | + } | ||
118 | + resolve(urlobj); | ||
119 | + | ||
120 | + }, | ||
121 | + fail: function (res) { | ||
122 | + reject('网络出错'); | ||
123 | + wx.hideNavigationBarLoading() | ||
124 | + wx.hideLoading() | ||
125 | + }, | ||
126 | + complete: () => { | ||
127 | + wx.hideNavigationBarLoading() | ||
128 | + wx.hideLoading() | ||
129 | + }, | ||
130 | + }) | ||
131 | + }); | ||
132 | + return promise; | ||
133 | + }, | ||
134 | + globalData: { | ||
135 | + userInfo: null | ||
136 | + } | ||
137 | +}) |
app.json
0 → 100644
1 | +{ | ||
2 | + "pages": [ | ||
3 | + "pages/logining/logining", | ||
4 | + "pages/businessoffice/businessoffice", | ||
5 | + "pages/start/start", | ||
6 | + "pages/service/service", | ||
7 | + "pages/login/login", | ||
8 | + "pages/fugongshenqing/fugongshenqing", | ||
9 | + "pages/selectdanwei/selectdanwei", | ||
10 | + "pages/clock/clock", | ||
11 | + "pages/clocklist/clocklist", | ||
12 | + "pages/write/write", | ||
13 | + "pages/backdetail/backdetail", | ||
14 | + "pages/backpeopledetail/backpeopledetail", | ||
15 | + "pages/companyidentity/companyidentity", | ||
16 | + "pages/homepage/homepage", | ||
17 | + "pages/replaydetail/replaydetail", | ||
18 | + "pages/backpeoplelist/backpeoplelist", | ||
19 | + "pages/backpeople/backpeople", | ||
20 | + "pages/detail/detail", | ||
21 | + "pages/index/index", | ||
22 | + "pages/logs/logs", | ||
23 | + "pages/publish/publish", | ||
24 | + "pages/interaction/interaction", | ||
25 | + "pages/usercenter/usercenter", | ||
26 | + "pages/shenhez/shenhez" | ||
27 | + | ||
28 | + ], | ||
29 | + "window": { | ||
30 | + "backgroundTextStyle": "light", | ||
31 | + "navigationBarBackgroundColor": "#1C8FFF", | ||
32 | + "navigationBarTitleText": "WeChat", | ||
33 | + "navigationBarTextStyle": "white" | ||
34 | + }, | ||
35 | + "style": "v2", | ||
36 | + "sitemapLocation": "sitemap.json" | ||
37 | +} |
app.wxss
0 → 100644
1 | +/**app.wxss**/ | ||
2 | + | ||
3 | +image { | ||
4 | + width: 100%; | ||
5 | + height: 100%; | ||
6 | +} | ||
7 | + | ||
8 | +.commonpadding { | ||
9 | + padding: 24rpx 32rpx; | ||
10 | + box-sizing: border-box; | ||
11 | + background: #fff; | ||
12 | +} | ||
13 | + | ||
14 | +.container { | ||
15 | + height: 100%; | ||
16 | + display: flex; | ||
17 | + flex-direction: column; | ||
18 | + align-items: center; | ||
19 | + justify-content: space-between; | ||
20 | + padding: 200rpx 0; | ||
21 | + box-sizing: border-box; | ||
22 | +} | ||
23 | + | ||
24 | +.commontwo { | ||
25 | + color: #232323; | ||
26 | + font-size: 28rpx; | ||
27 | +} | ||
28 | + | ||
29 | +.flex { | ||
30 | + display: flex; | ||
31 | +} | ||
32 | + | ||
33 | +.flexone { | ||
34 | + display: flex; | ||
35 | + align-items: center; | ||
36 | +} | ||
37 | + | ||
38 | +.flextwo { | ||
39 | + display: flex; | ||
40 | + align-items: center; | ||
41 | + justify-content: space-between; | ||
42 | +} | ||
43 | + | ||
44 | +.flexthree { | ||
45 | + display: flex; | ||
46 | + align-items: center; | ||
47 | + justify-content: center; | ||
48 | +} | ||
49 | +.flexfour{ | ||
50 | + display: flex; | ||
51 | + flex-direction: column; | ||
52 | + align-items: center; | ||
53 | + justify-content: center; | ||
54 | +} | ||
55 | + | ||
56 | +.commonone { | ||
57 | + color: #06121e; | ||
58 | + font-size: 28rpx; | ||
59 | + font-weight: bold; | ||
60 | +} | ||
61 | + | ||
62 | +.commontwo { | ||
63 | + color: #8c9198; | ||
64 | + font-size: 28rpx; | ||
65 | +} | ||
66 | + | ||
67 | +.selname { | ||
68 | + color: #06121e; | ||
69 | + font-size: 28rpx; | ||
70 | +} | ||
71 | + | ||
72 | +.yourow { | ||
73 | + width: 28rpx; | ||
74 | + height: 28rpx; | ||
75 | + font-size: 0; | ||
76 | +} | ||
77 | + | ||
78 | +.nodata { | ||
79 | + width: 300rpx; | ||
80 | + color: #8c9198; | ||
81 | + font-size: 32rpx; | ||
82 | + text-align: center; | ||
83 | + position: absolute; | ||
84 | + top: 30%; | ||
85 | + left: 50%; | ||
86 | + transform: translate(-50%, -50%); | ||
87 | +} | ||
88 | + | ||
89 | +.yourow { | ||
90 | + width: 28rpx; | ||
91 | + height: 28rpx; | ||
92 | + font-size: 0; | ||
93 | +} | ||
94 | + | ||
95 | +.bot { | ||
96 | + width: 750rpx; | ||
97 | + display: flex; | ||
98 | + justify-content: center; | ||
99 | + align-items: center; | ||
100 | + background: #fff; | ||
101 | + padding: 14rpx 32rpx; | ||
102 | + box-sizing: border-box; | ||
103 | + margin-top: 40rpx; | ||
104 | +} | ||
105 | + | ||
106 | +.botk { | ||
107 | + width: 750rpx; | ||
108 | + display: flex; | ||
109 | + justify-content: center; | ||
110 | + align-items: center; | ||
111 | + background: #fff; | ||
112 | + position: fixed; | ||
113 | + bottom: 0; | ||
114 | + left: 0; | ||
115 | + padding: 14rpx 32rpx; | ||
116 | + box-sizing: border-box; | ||
117 | + margin-top: 40rpx; | ||
118 | +} | ||
119 | + | ||
120 | +.subtwo { | ||
121 | + width: 686rpx; | ||
122 | + height: 88rpx; | ||
123 | + background: #1c8fff; | ||
124 | + opacity: 1; | ||
125 | + color: #fff; | ||
126 | + font-size: 28rpx; | ||
127 | + text-align: center; | ||
128 | + line-height: 88rpx; | ||
129 | +} | ||
130 | + | ||
131 | +/* 列表 */ | ||
132 | + | ||
133 | +.useboxitem { | ||
134 | + width: 100%; | ||
135 | + padding: 30rpx 0; | ||
136 | + box-sizing: border-box; | ||
137 | + background: #fff; | ||
138 | + border-bottom: 1rpx solid #f5f5f5; | ||
139 | +} | ||
140 | + | ||
141 | +.leftimg { | ||
142 | + width: 48rpx; | ||
143 | + height: 48rpx; | ||
144 | + font-size: 0; | ||
145 | +} | ||
146 | + | ||
147 | +.itemname { | ||
148 | + font-size: 28rpx; | ||
149 | + font-weight: bold; | ||
150 | +} | ||
151 | + | ||
152 | +.backtop { | ||
153 | + width: 750rpx; | ||
154 | + background: #fff; | ||
155 | + opacity: 1; | ||
156 | + border-radius: 8rpx; | ||
157 | + padding: 0 32rpx; | ||
158 | + box-sizing: border-box; | ||
159 | +} | ||
160 | + | ||
161 | +.commonenter { | ||
162 | + width: 420rpx; | ||
163 | + margin-right: 50rpx; | ||
164 | +} | ||
165 | + | ||
166 | +.commonenter input { | ||
167 | + width: 100%; | ||
168 | + height: 100%; | ||
169 | + text-align: right; | ||
170 | +} | ||
171 | + | ||
172 | +/* 登录遮罩层 */ | ||
173 | + | ||
174 | +.registerk { | ||
175 | + width: 100%; | ||
176 | + height: 100%; | ||
177 | + background-color: rgba(0, 0, 0, 0.5); | ||
178 | + position: fixed; | ||
179 | + top: 0; | ||
180 | + left: 0; | ||
181 | + right: 0; | ||
182 | + z-index: 999; | ||
183 | +} | ||
184 | + | ||
185 | +.userwrap { | ||
186 | + width: 750rpx; | ||
187 | + height: 512rpx; | ||
188 | + background: rgba(255, 255, 255, 1); | ||
189 | + border-radius: 24rpx 24rpx 0rpx 0rpx; | ||
190 | + position: absolute; | ||
191 | + bottom: 0; | ||
192 | + left: 0; | ||
193 | +} | ||
194 | + | ||
195 | +.loimg { | ||
196 | + width: 48rpx; | ||
197 | + height: 48rpx; | ||
198 | + font-size: 0; | ||
199 | +} | ||
200 | + | ||
201 | +.shoubtn { | ||
202 | + width: 686rpx !important; | ||
203 | + height: 100rpx; | ||
204 | + background: rgba(0, 194, 95, 1); | ||
205 | + border-radius: 50rpx; | ||
206 | + margin: 64rpx auto 0; | ||
207 | +} | ||
208 | + | ||
209 | +.word { | ||
210 | + color: #fff; | ||
211 | + font-size: 32rpx; | ||
212 | + margin-left: 8rpx; | ||
213 | +} | ||
214 | + | ||
215 | +.shou { | ||
216 | + color: #06121f; | ||
217 | + font-size: 56rpx; | ||
218 | + font-weight: bold; | ||
219 | + margin-top: 32rpx; | ||
220 | +} | ||
221 | + | ||
222 | +.shoutext { | ||
223 | + width: 686rpx; | ||
224 | + color: #8c9198; | ||
225 | + font-size: 32rpx; | ||
226 | + margin-top: 40rpx; | ||
227 | +} | ||
228 | + | ||
229 | +.lotop { | ||
230 | + display: flex; | ||
231 | + justify-content: flex-end; | ||
232 | + align-items: center; | ||
233 | +} | ||
234 | + | ||
235 | +.men { | ||
236 | + width: 260rpx!important; | ||
237 | + text-align: right; | ||
238 | +} | ||
239 | + | ||
240 | +.writebtn { | ||
241 | + width: 590rpx; | ||
242 | + height: 88rpx; | ||
243 | + background: rgba(28, 143, 255, 1); | ||
244 | + opacity: 1; | ||
245 | + border-radius: 12rpx; | ||
246 | + color: #fff; | ||
247 | + font-size: 28rpx; | ||
248 | + text-align: center; | ||
249 | + line-height: 88rpx; | ||
250 | + margin: 64rpx auto 0; | ||
251 | +} | ||
252 | + | ||
253 | +::-webkit-scrollbar { | ||
254 | + width: 0; | ||
255 | + height: 0; | ||
256 | + color: transparent; | ||
257 | +} |
img/addpic.png
0 → 100644
2.0 KB
img/address.png
0 → 100644
859 字节
img/banner.png
0 → 100644
77.2 KB
img/banner@2x.png
0 → 100644
161.0 KB
img/bg.png
0 → 100644
11.5 KB
img/bg@2x.png
0 → 100644
11.5 KB
img/chadel.png
0 → 100644
6.7 KB
img/chahao.png
0 → 100644
513 字节
img/clocksuccess.png
0 → 100644
10.7 KB
img/closecode.png
0 → 100644
2.9 KB
img/codetopimg.png
0 → 100644
6.2 KB
img/delete.png
0 → 100644
5.5 KB
img/erweima.png
0 → 100644
1.2 KB
img/fuimg.png
0 → 100644
55.0 KB
img/guanli.png
0 → 100644
46.5 KB
img/guanli@2x.png
0 → 100644
46.5 KB
img/icon_q.png
0 → 100644
3.7 KB
img/img_fanjing.png
0 → 100644
29.4 KB
img/img_fanjing@2x.png
0 → 100644
29.4 KB
img/img_fugong.png
0 → 100644
26.0 KB
img/img_qiye.png
0 → 100644
25.6 KB
img/inter.png
0 → 100644
1.4 KB
img/interactive.png
0 → 100644
1.3 KB
img/listimg.png
0 → 100644
60.5 KB
img/logo.png
0 → 100644
9.2 KB
img/logo@2x.png
0 → 100644
9.2 KB
img/logok.png
0 → 100644
13.7 KB
img/nosel.png
0 → 100644
861 字节
img/notice.png
0 → 100644
1.0 KB
img/noticeactive.png
0 → 100644
969 字节
img/other.png
0 → 100644
1.8 KB
img/publish.png
0 → 100644
950 字节
img/publishactive.png
0 → 100644
913 字节
img/rediusse.png
0 → 100644
10.8 KB
img/search.png
0 → 100644
7.7 KB
img/sel.png
0 → 100644
780 字节
img/shenhe.png
0 → 100644
6.6 KB
img/startbanner.png
0 → 100644
161.0 KB
img/topimg.png
0 → 100644
39.4 KB
img/user.png
0 → 100644
870 字节
img/useractive.png
0 → 100644
799 字节
img/wechat.png
0 → 100644
1.1 KB
img/write.png
0 → 100644
20.4 KB
img/yourow.png
0 → 100644
3.1 KB
img/组 6981@2x.png
0 → 100644
969 字节
img/组 6984@2x.png
0 → 100644
870 字节
pages/backdetail/backdetail.js
0 → 100644
1 | +// pages/backdetail/backdetail.js | ||
2 | +const app=getApp() | ||
3 | +Page({ | ||
4 | + | ||
5 | + /** | ||
6 | + * 页面的初始数据 | ||
7 | + */ | ||
8 | + data: { | ||
9 | + showcode:false, | ||
10 | + back_list: '', | ||
11 | + basic: '', | ||
12 | + first: '', | ||
13 | + codeurl:'' | ||
14 | + }, | ||
15 | +closecode(){ | ||
16 | + this.setData({ | ||
17 | + showcode:false | ||
18 | + }) | ||
19 | +}, | ||
20 | + | ||
21 | + | ||
22 | + /** | ||
23 | + * 生命周期函数--监听页面加载 | ||
24 | + */ | ||
25 | + onLoad: function (options) { | ||
26 | + this.getdetail() | ||
27 | + this.getuser() | ||
28 | + }, | ||
29 | + dian(){ | ||
30 | + this.setData({ | ||
31 | + showcode:true | ||
32 | + }) | ||
33 | + }, | ||
34 | + | ||
35 | + getdetail() { | ||
36 | + let that = this; | ||
37 | + var url = '/api/user/back_detail'; | ||
38 | + var params = { | ||
39 | + | ||
40 | + | ||
41 | + } | ||
42 | + app.post(url, params,"post").then((res) => { | ||
43 | + console.log(res); | ||
44 | + that.setData({ | ||
45 | + back_list: res.back_list, | ||
46 | + basic:res.basic, | ||
47 | + first:res.first | ||
48 | + }) | ||
49 | + app.globalData.workname = res.first.company_name; | ||
50 | + app.globalData.workid = res.first.company_id; | ||
51 | + app.globalData.shortworkname = res.first.unit_id | ||
52 | + | ||
53 | + | ||
54 | + | ||
55 | + }).catch((err) => { | ||
56 | + | ||
57 | + }) | ||
58 | + | ||
59 | + }, | ||
60 | + edit(){ | ||
61 | + wx.navigateTo({ | ||
62 | + url: '/pages/backpeople/backpeople?type='+1, | ||
63 | + }) | ||
64 | + }, | ||
65 | + | ||
66 | + getuser() { | ||
67 | + let that = this; | ||
68 | + var url = '/api/user/index'; | ||
69 | + var params = { | ||
70 | + | ||
71 | + | ||
72 | + } | ||
73 | + app.post(url, params).then((res) => { | ||
74 | + console.log(res); | ||
75 | + that.setData({ | ||
76 | + codeurl: res.qrcode, | ||
77 | + | ||
78 | + }) | ||
79 | + that.savefilecode() | ||
80 | + | ||
81 | + | ||
82 | + | ||
83 | + | ||
84 | + }).catch((err) => { | ||
85 | + | ||
86 | + }) | ||
87 | + | ||
88 | + }, | ||
89 | + | ||
90 | + // 保存图片 | ||
91 | + //点击保存到相册 | ||
92 | + baocun: function () { | ||
93 | + console.log(999) | ||
94 | + var that = this | ||
95 | + wx.getSetting({ | ||
96 | + success(res) { | ||
97 | + if (!res.authSetting['scope.writePhotosAlbum']) { | ||
98 | + wx.authorize({ | ||
99 | + scope: 'scope.writePhotosAlbum', | ||
100 | + success() { //这里是用户同意授权后的回调 | ||
101 | + | ||
102 | + | ||
103 | + wx.saveImageToPhotosAlbum({ | ||
104 | + filePath: that.data.codeurl, | ||
105 | + success(res) { | ||
106 | + wx.showModal({ | ||
107 | + content: '图片已保存到相册', | ||
108 | + showCancel: false, | ||
109 | + confirmText: '好的', | ||
110 | + confirmColor: '#333', | ||
111 | + success: function (res) { | ||
112 | + if (res.confirm) { | ||
113 | + console.log('用户点击确定'); | ||
114 | + /* 该隐藏的隐藏 */ | ||
115 | + that.setData({ | ||
116 | + maskHidden: false | ||
117 | + }) | ||
118 | + } | ||
119 | + }, | ||
120 | + fail: function (res) { | ||
121 | + | ||
122 | + } | ||
123 | + }) | ||
124 | + } | ||
125 | + }) | ||
126 | + | ||
127 | + | ||
128 | + | ||
129 | + }, | ||
130 | + fail() { //这里是用户拒绝授权后的回调 | ||
131 | + | ||
132 | + | ||
133 | + // wx.openSetting({ | ||
134 | + // success: function (data) { | ||
135 | + // console.log(data) | ||
136 | + // if (data.authSetting["scope.writePhotosAlbum"] === true) { | ||
137 | + // console.log("是否授权成功") | ||
138 | + // } else { | ||
139 | + // applyApi.toast("授权失败"); | ||
140 | + // } | ||
141 | + // } | ||
142 | + // }) | ||
143 | + wx.showModal({ | ||
144 | + title: '提示', | ||
145 | + content: '您取消授权,无法保存图片,点击确定打开权限', | ||
146 | + success(res) { | ||
147 | + if (res.confirm) { | ||
148 | + console.log('用户点击确定') | ||
149 | + wx.openSetting({ | ||
150 | + success(res) { | ||
151 | + console.log(res.authSetting) | ||
152 | + // res.authSetting = { | ||
153 | + // "scope.userInfo": true, | ||
154 | + // "scope.userLocation": true | ||
155 | + // } | ||
156 | + } | ||
157 | + }) | ||
158 | + } else if (res.cancel) { | ||
159 | + console.log('用户点击取消') | ||
160 | + } | ||
161 | + } | ||
162 | + }) | ||
163 | + | ||
164 | + } | ||
165 | + }) | ||
166 | + } else { //用户已经授权过了 | ||
167 | + | ||
168 | + console.log(that.data.codeurl) | ||
169 | + wx.saveImageToPhotosAlbum({ | ||
170 | + filePath: that.data.codeurl, | ||
171 | + success(res) { | ||
172 | + wx.showModal({ | ||
173 | + content: '图片已保存到相册', | ||
174 | + showCancel: false, | ||
175 | + confirmText: '好的', | ||
176 | + confirmColor: '#333', | ||
177 | + success: function (res) { | ||
178 | + if (res.confirm) { | ||
179 | + console.log('用户点击确定'); | ||
180 | + /* 该隐藏的隐藏 */ | ||
181 | + that.setData({ | ||
182 | + maskHidden: false | ||
183 | + }) | ||
184 | + } | ||
185 | + }, | ||
186 | + fail: function (res) { | ||
187 | + | ||
188 | + } | ||
189 | + }) | ||
190 | + } | ||
191 | + }) | ||
192 | + } | ||
193 | + } | ||
194 | + }) | ||
195 | + | ||
196 | + }, | ||
197 | + | ||
198 | + savefilecode() { | ||
199 | + let that = this; | ||
200 | + console.log(that.data.codeurl) | ||
201 | + wx.downloadFile({ | ||
202 | + url: that.data.codeurl, | ||
203 | + header: {}, | ||
204 | + success: function (res) { | ||
205 | + console.log('下载图片下载图片下载图片', res) | ||
206 | + var tempFilePath = res.tempFilePath | ||
207 | + //console.log('临时文件地址是:' + tempFilePath) | ||
208 | + wx.saveFile({ | ||
209 | + tempFilePath: tempFilePath, | ||
210 | + success: function (res) { | ||
211 | + console.log(res) | ||
212 | + var saveFilePath = res.savedFilePath; | ||
213 | + that.setData({ | ||
214 | + codeurl: res.savedFilePath | ||
215 | + }) | ||
216 | + | ||
217 | + console.log('123456855555555', that.data.qrcode) | ||
218 | + | ||
219 | + }, //可以将saveFilePath写入到页面数据中 | ||
220 | + fail: function (res) { }, | ||
221 | + complete: function (res) { | ||
222 | + console.log('complete后的res数据:') | ||
223 | + }, | ||
224 | + }) //, | ||
225 | + }, | ||
226 | + // fail: function (res) { | ||
227 | + // wx.showModal({ | ||
228 | + // title: '下载失败', | ||
229 | + // content: '请联系管理员', | ||
230 | + // }) | ||
231 | + // }, | ||
232 | + complete: function (res) { }, | ||
233 | + }) | ||
234 | + }, | ||
235 | + | ||
236 | + /** | ||
237 | + * 生命周期函数--监听页面初次渲染完成 | ||
238 | + */ | ||
239 | + onReady: function () { | ||
240 | + | ||
241 | + }, | ||
242 | + | ||
243 | + /** | ||
244 | + * 生命周期函数--监听页面显示 | ||
245 | + */ | ||
246 | + onShow: function () { | ||
247 | + | ||
248 | + }, | ||
249 | + | ||
250 | + /** | ||
251 | + * 生命周期函数--监听页面隐藏 | ||
252 | + */ | ||
253 | + onHide: function () { | ||
254 | + | ||
255 | + }, | ||
256 | + | ||
257 | + /** | ||
258 | + * 生命周期函数--监听页面卸载 | ||
259 | + */ | ||
260 | + onUnload: function () { | ||
261 | + | ||
262 | + }, | ||
263 | + | ||
264 | + /** | ||
265 | + * 页面相关事件处理函数--监听用户下拉动作 | ||
266 | + */ | ||
267 | + onPullDownRefresh: function () { | ||
268 | + | ||
269 | + }, | ||
270 | + | ||
271 | + /** | ||
272 | + * 页面上拉触底事件的处理函数 | ||
273 | + */ | ||
274 | + onReachBottom: function () { | ||
275 | + | ||
276 | + }, | ||
277 | + | ||
278 | + /** | ||
279 | + * 用户点击右上角分享 | ||
280 | + */ | ||
281 | + onShareAppMessage: function () { | ||
282 | + | ||
283 | + } | ||
284 | +}) |
pages/backdetail/backdetail.json
0 → 100644
pages/backdetail/backdetail.wxml
0 → 100644
1 | +<view class="backtop"> | ||
2 | + | ||
3 | + <view class="useboxitem flextwo"> | ||
4 | + <view class="itemname commonone topname">出行信息</view> | ||
5 | + </view> | ||
6 | + <view class="useboxitem backitem flextwo"> | ||
7 | + <view class="itemname commonone">出行方式</view> | ||
8 | + | ||
9 | + | ||
10 | + <view class="itemright flexone"> | ||
11 | + <view class="commontwo commonenter"> | ||
12 | + {{basic.travel}} | ||
13 | + </view> | ||
14 | + | ||
15 | + </view> | ||
16 | + | ||
17 | + | ||
18 | + | ||
19 | + </view> | ||
20 | + | ||
21 | + <view class="useboxitem backitem flextwo"> | ||
22 | + <view class="itemname commonone">车牌号</view> | ||
23 | + | ||
24 | + | ||
25 | + <view class="itemright flexone time"> | ||
26 | + <view class="commontwo commonenter"> | ||
27 | + {{basic.number}} | ||
28 | + </view> | ||
29 | + | ||
30 | + </view> | ||
31 | + | ||
32 | + | ||
33 | + | ||
34 | + </view> | ||
35 | + | ||
36 | + | ||
37 | +</view> | ||
38 | + | ||
39 | + | ||
40 | +<view class="backtop peopleitem"> | ||
41 | + | ||
42 | + <view class="useboxitem flextwo"> | ||
43 | + <view class="itemname commonone topname">出行信息1</view> | ||
44 | + | ||
45 | + </view> | ||
46 | + | ||
47 | + <view class="useboxitem backitem flextwo"> | ||
48 | + <view class="itemname commonone">姓名</view> | ||
49 | + | ||
50 | + | ||
51 | + <view class="itemright flexone"> | ||
52 | + <view class="commontwo commonenter"> | ||
53 | + {{first.name}} | ||
54 | + </view> | ||
55 | + | ||
56 | + </view> | ||
57 | + | ||
58 | + | ||
59 | + | ||
60 | + </view> | ||
61 | + <view class="useboxitem backitem flextwo"> | ||
62 | + <view class="itemname commonone">身份证号</view> | ||
63 | + | ||
64 | + | ||
65 | + <view class="itemright flexone"> | ||
66 | + <view class="commontwo commonenter"> | ||
67 | + {{first.identity}} | ||
68 | + </view> | ||
69 | + | ||
70 | + </view> | ||
71 | + | ||
72 | + | ||
73 | + | ||
74 | + </view> | ||
75 | + <view class="useboxitem backitem flextwo"> | ||
76 | + <view class="itemname commonone">工作单位</view> | ||
77 | + | ||
78 | + | ||
79 | + <view class="itemright flexone"> | ||
80 | + <view class="commontwo commonenter"> | ||
81 | + {{first.company_name}} | ||
82 | + </view> | ||
83 | + | ||
84 | + </view> | ||
85 | + | ||
86 | + | ||
87 | + | ||
88 | + </view> | ||
89 | + <view class="useboxitem backitem flextwo"> | ||
90 | + <view class="itemname commonone">联系电话</view> | ||
91 | + | ||
92 | + | ||
93 | + <view class="itemright flexone"> | ||
94 | + <view class="commontwo commonenter"> | ||
95 | + {{first.mobile}} | ||
96 | + </view> | ||
97 | + | ||
98 | + </view> | ||
99 | + | ||
100 | + | ||
101 | + | ||
102 | + </view> | ||
103 | + | ||
104 | + <view class="useboxitem backitem flextwo"> | ||
105 | + <view class="itemname commonone">到静海时间(计划)</view> | ||
106 | + | ||
107 | + | ||
108 | + <view class="itemright flexone time"> | ||
109 | + <view class="commontwo commonenter"> | ||
110 | + {{first.arrivetime}} | ||
111 | + </view> | ||
112 | + | ||
113 | + </view> | ||
114 | + | ||
115 | + | ||
116 | + | ||
117 | + </view> | ||
118 | + <view class="useboxitem backitem flextwo"> | ||
119 | + <view class="itemname commonone">从何地返静</view> | ||
120 | + | ||
121 | + | ||
122 | + <view class="itemright flexone"> | ||
123 | + <view class="commontwo commonenter"> | ||
124 | + {{first.from_province}}{{first.from_city}}{{first.from_region}} | ||
125 | + </view> | ||
126 | + | ||
127 | + </view> | ||
128 | + | ||
129 | + | ||
130 | + | ||
131 | + </view> | ||
132 | + | ||
133 | + <view class="useboxitem backitem flextwo"> | ||
134 | + <view class="itemname commonone">目的地</view> | ||
135 | + | ||
136 | + | ||
137 | + <view class="itemright flexone"> | ||
138 | + <view class="commontwo commonenter"> | ||
139 | + {{first.town_p_name}}{{first.town_name}} | ||
140 | + </view> | ||
141 | + | ||
142 | + </view> | ||
143 | + | ||
144 | + | ||
145 | + | ||
146 | + </view> | ||
147 | + | ||
148 | + <view class="useboxitem backitem flextwo"> | ||
149 | + <view class="itemname commonone">详细地址(具体到门牌号)</view> | ||
150 | + | ||
151 | + | ||
152 | + <view class="itemright flexone"> | ||
153 | + <view class="commontwo men"> | ||
154 | + {{first.add}} | ||
155 | + </view> | ||
156 | + | ||
157 | + </view> | ||
158 | + | ||
159 | + | ||
160 | + | ||
161 | + </view> | ||
162 | + | ||
163 | + <view class="useboxitem backitem flextwo"> | ||
164 | + <view class="itemname commonone">是否有相应症状(发热、呕吐)</view> | ||
165 | + | ||
166 | + | ||
167 | + <view class="itemright flexone istouch"> | ||
168 | + <view class="commontwo commonenter" wx:if="{{first.is_symptom==1}}"> | ||
169 | + 是 | ||
170 | + </view> | ||
171 | + <view class="commontwo commonenter" wx:else> | ||
172 | + 否 | ||
173 | + </view> | ||
174 | + | ||
175 | + </view> | ||
176 | + | ||
177 | + | ||
178 | + | ||
179 | + </view> | ||
180 | + | ||
181 | + <view class="useboxitem backitem flextwo"> | ||
182 | + <view class="itemname commonone">1月1日以来到过的城市</view> | ||
183 | + | ||
184 | + | ||
185 | + <view class="itemright flexone"> | ||
186 | + <view class="commontwo men"> | ||
187 | + {{first.arrivecity}} | ||
188 | + </view> | ||
189 | + | ||
190 | + </view> | ||
191 | + | ||
192 | + | ||
193 | + | ||
194 | + </view> | ||
195 | + | ||
196 | + <view class="useboxitem backitem flextwo"> | ||
197 | + <view class="itemname commonone">两周内有无重度疫情区来往接触史</view> | ||
198 | + | ||
199 | + | ||
200 | + <view class="itemright flexone istouch"> | ||
201 | + <view class="commontwo commonenter" wx:if="{{first.is_epidemic==1}}"> | ||
202 | + 是 | ||
203 | + </view> | ||
204 | + <view class="commontwo commonenter" wx:else> | ||
205 | + 否 | ||
206 | + </view> | ||
207 | + | ||
208 | + </view> | ||
209 | + | ||
210 | + | ||
211 | + | ||
212 | + </view> | ||
213 | + | ||
214 | + | ||
215 | + | ||
216 | +</view> | ||
217 | + | ||
218 | +<view class="backbox"> | ||
219 | + <view class="backtop peopleitem" wx:for="{{back_list}}" wx:key="index"> | ||
220 | + | ||
221 | + <view class="useboxitem flextwo"> | ||
222 | + <view class="itemname commonone topname">出行信息{{index+2}}</view> | ||
223 | + | ||
224 | + </view> | ||
225 | + | ||
226 | + <view class="useboxitem backitem flextwo"> | ||
227 | + <view class="itemname commonone">姓名</view> | ||
228 | + | ||
229 | + | ||
230 | + <view class="itemright flexone"> | ||
231 | + <view class="commontwo commonenter"> | ||
232 | + {{item.name}} | ||
233 | + </view> | ||
234 | + | ||
235 | + </view> | ||
236 | + | ||
237 | + | ||
238 | + | ||
239 | + </view> | ||
240 | + <view class="useboxitem backitem flextwo"> | ||
241 | + <view class="itemname commonone">身份证号</view> | ||
242 | + | ||
243 | + | ||
244 | + <view class="itemright flexone"> | ||
245 | + <view class="commontwo commonenter"> | ||
246 | + {{item.identity}} | ||
247 | + </view> | ||
248 | + | ||
249 | + </view> | ||
250 | + | ||
251 | + | ||
252 | + | ||
253 | + </view> | ||
254 | + <view class="useboxitem backitem flextwo"> | ||
255 | + <view class="itemname commonone">工作单位</view> | ||
256 | + | ||
257 | + | ||
258 | + <view class="itemright flexone"> | ||
259 | + <view class="commontwo commonenter"> | ||
260 | + {{item.unit_id}} | ||
261 | + </view> | ||
262 | + | ||
263 | + </view> | ||
264 | + | ||
265 | + | ||
266 | + | ||
267 | + </view> | ||
268 | + <view class="useboxitem backitem flextwo"> | ||
269 | + <view class="itemname commonone">联系电话</view> | ||
270 | + | ||
271 | + | ||
272 | + <view class="itemright flexone"> | ||
273 | + <view class="commontwo commonenter"> | ||
274 | + {{item.mobile}} | ||
275 | + </view> | ||
276 | + | ||
277 | + </view> | ||
278 | + | ||
279 | + | ||
280 | + | ||
281 | + </view> | ||
282 | + | ||
283 | + <view class="useboxitem backitem flextwo"> | ||
284 | + <view class="itemname commonone">到静海时间(计划)</view> | ||
285 | + | ||
286 | + | ||
287 | + <view class="itemright flexone time"> | ||
288 | + <view class="commontwo commonenter"> | ||
289 | + {{item.arrivetime}} | ||
290 | + </view> | ||
291 | + | ||
292 | + </view> | ||
293 | + | ||
294 | + | ||
295 | + | ||
296 | + </view> | ||
297 | + <view class="useboxitem backitem flextwo"> | ||
298 | + <view class="itemname commonone">从何地返静</view> | ||
299 | + | ||
300 | + | ||
301 | + <view class="itemright flexone"> | ||
302 | + <view class="commontwo commonenter"> | ||
303 | + {{item.from_province}}{{item.from_city}}{{item.from_region}} | ||
304 | + </view> | ||
305 | + | ||
306 | + </view> | ||
307 | + | ||
308 | + | ||
309 | + | ||
310 | + </view> | ||
311 | + | ||
312 | + <view class="useboxitem backitem flextwo"> | ||
313 | + <view class="itemname commonone">目的地</view> | ||
314 | + | ||
315 | + | ||
316 | + <view class="itemright flexone"> | ||
317 | + <view class="commontwo commonenter"> | ||
318 | + {{item.town_p_name}}{{item.town_name}} | ||
319 | + </view> | ||
320 | + | ||
321 | + </view> | ||
322 | + | ||
323 | + | ||
324 | + | ||
325 | + </view> | ||
326 | + | ||
327 | + <view class="useboxitem backitem flextwo"> | ||
328 | + <view class="itemname commonone">详细地址(具体到门牌号)</view> | ||
329 | + | ||
330 | + | ||
331 | + <view class="itemright flexone"> | ||
332 | + <view class="commontwo men"> | ||
333 | + {{item.add}} | ||
334 | + </view> | ||
335 | + | ||
336 | + </view> | ||
337 | + | ||
338 | + | ||
339 | + | ||
340 | + </view> | ||
341 | + | ||
342 | + <view class="useboxitem backitem flextwo"> | ||
343 | + <view class="itemname commonone">是否有相应症状(发热、呕吐)</view> | ||
344 | + | ||
345 | + | ||
346 | + <view class="itemright flexone istouch"> | ||
347 | + <view class="commontwo commonenter" wx:if="{{item.is_symptom==1}}"> | ||
348 | + 是 | ||
349 | + </view> | ||
350 | + <view class="commontwo commonenter" wx:else> | ||
351 | + 否 | ||
352 | + </view> | ||
353 | + | ||
354 | + </view> | ||
355 | + | ||
356 | + | ||
357 | + | ||
358 | + </view> | ||
359 | + | ||
360 | + <view class="useboxitem backitem flextwo"> | ||
361 | + <view class="itemname commonone">1月1日以来到过的城市</view> | ||
362 | + | ||
363 | + | ||
364 | + <view class="itemright flexone"> | ||
365 | + <view class="commontwo men"> | ||
366 | + {{item.arrivecity}} | ||
367 | + </view> | ||
368 | + | ||
369 | + </view> | ||
370 | + | ||
371 | + | ||
372 | + | ||
373 | + </view> | ||
374 | + | ||
375 | + <view class="useboxitem backitem flextwo"> | ||
376 | + <view class="itemname commonone">两周内有无重度疫情区来往接触史</view> | ||
377 | + | ||
378 | + | ||
379 | + <view class="itemright flexone istouch"> | ||
380 | + <view class="commontwo commonenter" wx:if="{{item.is_epidemic==1}}"> | ||
381 | + 是 | ||
382 | + </view> | ||
383 | + <view class="commontwo commonenter" wx:else> | ||
384 | + 否 | ||
385 | + </view> | ||
386 | + | ||
387 | + </view> | ||
388 | + | ||
389 | + | ||
390 | + | ||
391 | + </view> | ||
392 | + | ||
393 | + | ||
394 | + | ||
395 | + </view> | ||
396 | +</view> | ||
397 | + | ||
398 | + | ||
399 | +<view class="code flextwo"> | ||
400 | + <view class="codeleft"> | ||
401 | + 二维码 | ||
402 | + </view> | ||
403 | + <view class="coderight flexone" bindtap="dian"> | ||
404 | + <view class="commontwo">点击查看/保存</view> | ||
405 | + <view class="codeimg"> | ||
406 | + <image src="{{codeurl}}"></image> | ||
407 | + </view> | ||
408 | + </view> | ||
409 | +</view> | ||
410 | + | ||
411 | +<view class="bot" bindtap="edit"> | ||
412 | + | ||
413 | + <view class="subtwo">编辑</view> | ||
414 | +</view> | ||
415 | + | ||
416 | + | ||
417 | +<view class="registerk" wx:if="{{showcode}}"> | ||
418 | + <view class="codewrap"> | ||
419 | + <view class="codetop"> | ||
420 | + <image src="/img/codetopimg.png"></image> | ||
421 | + <view class="codename">我的二维码</view> | ||
422 | + </view> | ||
423 | + <view class="codekimg" bindlongpress="baocun"> | ||
424 | + <image src="{{codeurl}}"></image> | ||
425 | + </view> | ||
426 | + <view class="ansave">长按保存二维码</view> | ||
427 | + | ||
428 | + </view> | ||
429 | + <view class="closeimg" bindtap="closecode"> | ||
430 | + <image src="/img/closecode.png"></image> | ||
431 | + </view> | ||
432 | +</view> |
pages/backdetail/backdetail.wxss
0 → 100644
1 | +page{ | ||
2 | + background: #F9F9FB | ||
3 | +} | ||
4 | + | ||
5 | +.commonenter{ | ||
6 | + margin-right:0; | ||
7 | + text-align: right | ||
8 | +} | ||
9 | +.topname{ | ||
10 | + font-size: 36rpx; | ||
11 | +} | ||
12 | +.istouch{ | ||
13 | + width:150rpx; | ||
14 | +} | ||
15 | +.peopleitem{ | ||
16 | + margin-top:22rpx; | ||
17 | +} | ||
18 | +.codeleft{ | ||
19 | + color:#06121E; | ||
20 | + font-size: 36rpx; | ||
21 | + font-weight:bold; | ||
22 | + | ||
23 | +} | ||
24 | +.codename{ | ||
25 | + margin-right:24rpx; | ||
26 | +} | ||
27 | +.codeimg{ | ||
28 | + width:54rpx; | ||
29 | + height:54rpx; | ||
30 | + font-size:0; | ||
31 | +} | ||
32 | +.code{ | ||
33 | + padding: 36rpx 32rpx; | ||
34 | + box-sizing: border-box; | ||
35 | + background: #fff; | ||
36 | + margin-top:20rpx; | ||
37 | +} | ||
38 | + | ||
39 | +.codewrap { | ||
40 | + width: 606rpx; | ||
41 | + height: 696rpx; | ||
42 | + background: rgba(255, 255, 255, 1); | ||
43 | + box-shadow: 0rpx 6rpx 12rpx rgba(0, 0, 0, 0.16); | ||
44 | + opacity: 1; | ||
45 | + border-radius: 24rpx; | ||
46 | + position: absolute; | ||
47 | + top:50%; | ||
48 | + left:50%; | ||
49 | + transform: translate(-50%,-50%) | ||
50 | +} | ||
51 | +.codetop{ | ||
52 | + width:606rpx; | ||
53 | + height:186rpx; | ||
54 | + font-size: 0; | ||
55 | + position: relative; | ||
56 | + top:0; | ||
57 | + left:0 | ||
58 | +} | ||
59 | +.codename{ | ||
60 | + color:#fff; | ||
61 | + font-size: 40rpx; | ||
62 | + position: absolute; | ||
63 | + top:50%; | ||
64 | + left:50%; | ||
65 | + transform: translate(-50%,-50%) | ||
66 | +} | ||
67 | +.closeimg{ | ||
68 | + width:72rpx; | ||
69 | + height:72rpx; | ||
70 | + font-size: 0; | ||
71 | + position: absolute; | ||
72 | + bottom:10%; | ||
73 | + left:50%; | ||
74 | + transform: translateX(-50%) | ||
75 | +} | ||
76 | +.ansave{ | ||
77 | + color:#06121E; | ||
78 | + font-size: 36rpx; | ||
79 | + font-weight: bold; | ||
80 | + margin-top:40rpx; | ||
81 | + text-align: center | ||
82 | +} | ||
83 | +.codekimg{ | ||
84 | + width:260rpx; | ||
85 | + height:260rpx; | ||
86 | + font-size: 0; | ||
87 | + margin:80rpx auto 0; | ||
88 | +} | ||
89 | +.commontwo{ | ||
90 | + margin-right:10rpx; | ||
91 | +} |
pages/backpeople/backpeople.js
0 → 100644
1 | +// pages/backpeople/backpeople.js | ||
2 | +const app = getApp() | ||
3 | +Page({ | ||
4 | + | ||
5 | + /** | ||
6 | + * 页面的初始数据 | ||
7 | + */ | ||
8 | + data: { | ||
9 | + chuxing: '请选择出行方式', | ||
10 | + | ||
11 | + chuixngarray: ['自驾', '火车', '大巴', '飞机', '货车', '其他'], | ||
12 | + chuxingindex: 0, | ||
13 | + chuxingid: '', | ||
14 | + danweiarray: [], | ||
15 | + danweiindex: 0, | ||
16 | + danweiname: '请选择工作单位', | ||
17 | + danweiid: "", | ||
18 | + danweiindexk: 0, | ||
19 | + danweinamek: '请选择工作单位', | ||
20 | + danweiidk: "", | ||
21 | + phone: "", | ||
22 | + date: '请选择时间', | ||
23 | + datek: '请选择时间', | ||
24 | + time: '请选择时间', | ||
25 | + timek: '请选择时间', | ||
26 | + fromname: '请选择来源地', | ||
27 | + fromnamek: '请选择来源地', | ||
28 | + toname: "请选择目的地", | ||
29 | + region: ['天津市', '天津市', '静海区'], | ||
30 | + xiangarray: [], | ||
31 | + xiangindex: 0, | ||
32 | + xiangname: '请选择乡镇', | ||
33 | + xiangid: '', | ||
34 | + xiangindexk: 0, | ||
35 | + xiangnamek: '请选择乡镇', | ||
36 | + xiangidk: '', | ||
37 | + quarray: [], | ||
38 | + quname: '请选择社区', | ||
39 | + quid: '', | ||
40 | + quindex: 0, | ||
41 | + qunamek: '请选择社区', | ||
42 | + quidk: '', | ||
43 | + quindexk: 0, | ||
44 | + is_symptom: 2, | ||
45 | + is_symptomk: 2, | ||
46 | + gocity: '', | ||
47 | + is_epidemic: 2, | ||
48 | + is_epidemick: 2, | ||
49 | + from_province_id: '', | ||
50 | + from_city_id: '', | ||
51 | + from_region_id: '', | ||
52 | + from_province: '', | ||
53 | + from_city: '', | ||
54 | + from_region: '', | ||
55 | + from_province_idk: '', | ||
56 | + from_city_idk: '', | ||
57 | + from_region_idk: '', | ||
58 | + from_provincek: '', | ||
59 | + from_cityk: '', | ||
60 | + from_regionk: '', | ||
61 | + xingname: '', | ||
62 | + | ||
63 | + card: '', | ||
64 | + people: [], | ||
65 | + suichebox: [1], | ||
66 | + detailadd: '', | ||
67 | + back_list: '', | ||
68 | + basic: '', | ||
69 | + first: '', | ||
70 | + companyname: '', | ||
71 | + shortworkname:'', | ||
72 | + type: "", | ||
73 | + basicinfo: '', | ||
74 | + clock: '', | ||
75 | + scene: '', | ||
76 | + falsebtn:false, | ||
77 | + workid:'' | ||
78 | + }, | ||
79 | + | ||
80 | + /** | ||
81 | + * 生命周期函数--监听页面加载 | ||
82 | + */ | ||
83 | + onLoad: function (options) { | ||
84 | + console.log(options) | ||
85 | + this.setData({ | ||
86 | + falsebtn:false | ||
87 | + }) | ||
88 | + this.getdanweilist(); | ||
89 | + // 获取乡 | ||
90 | + this.getxiang(); | ||
91 | + if (options.type != undefined) { | ||
92 | + this.setData({ | ||
93 | + type: options.type | ||
94 | + }) | ||
95 | + this.getbackinfo() | ||
96 | + } | ||
97 | + | ||
98 | + if (options.clock != undefined) { | ||
99 | + this.setData({ | ||
100 | + clock: options.clock, | ||
101 | + scene: options.scene | ||
102 | + }) | ||
103 | + } | ||
104 | + | ||
105 | + | ||
106 | + }, | ||
107 | + | ||
108 | + // 选择工作单位 | ||
109 | + selectcompany(){ | ||
110 | + console.log(8888) | ||
111 | + wx.navigateTo({ | ||
112 | + url: '/pages/selectdanwei/selectdanwei', | ||
113 | + }) | ||
114 | + }, | ||
115 | + | ||
116 | + // 获取详细信息 | ||
117 | + getbackinfo() { | ||
118 | + let that = this; | ||
119 | + var url = '/api/user/back_detail'; | ||
120 | + var params = {}; | ||
121 | + app.post(url, params, "post").then((res) => { | ||
122 | + console.log(res); | ||
123 | + let tempPeople = res.back_list; | ||
124 | + | ||
125 | + that.setData({ | ||
126 | + people: res.back_list, | ||
127 | + basic: res.basic, | ||
128 | + chuxing: res.basic.travel, | ||
129 | + typename: res.basic.number, | ||
130 | + xingname: res.first.name, | ||
131 | + card: res.first.identity, | ||
132 | + companyname: res.first.company_name, | ||
133 | + workid: res.first.company_id, | ||
134 | + danweiname: res.first.unit, | ||
135 | + phone: res.first.mobile, | ||
136 | + date: res.first.arrivetime, | ||
137 | + fromname: res.first.from_province + res.first.from_city + res.first.from_region, | ||
138 | + from_province_id: res.first.from_province_id, | ||
139 | + from_region_id: res.first.from_region_id, | ||
140 | + from_city_id: res.first.from_city_id, | ||
141 | + from_province: res.first.from_province, | ||
142 | + from_city: res.first.from_city, | ||
143 | + from_region: res.first.from_region, | ||
144 | + xiangname: res.first.town_p_name, | ||
145 | + xiangid: res.first.town_pid, | ||
146 | + quname: res.first.town_name, | ||
147 | + quid: res.first.town_id, | ||
148 | + detailadd: res.first.add, | ||
149 | + is_epidemic: res.first.is_epidemic, | ||
150 | + is_symptom: res.first.is_symptom, | ||
151 | + gocity: res.first.arrivecity, | ||
152 | + xiangindex: res.first.town_pid - 1, | ||
153 | + quindex: res.first.town_id - 41 | ||
154 | + }) | ||
155 | + let chuixngarray = that.data.chuixngarray; | ||
156 | + for (var i = 0; i < chuixngarray.length; i++) { | ||
157 | + if (chuixngarray[i] == res.basic.travel) { | ||
158 | + | ||
159 | + that.setData(({ | ||
160 | + chuxingindex: i | ||
161 | + })) | ||
162 | + } | ||
163 | + | ||
164 | + } | ||
165 | + | ||
166 | + that.getqu(); | ||
167 | + // 获取司机目标社区 | ||
168 | + var first = res.first; | ||
169 | + if(first.length==0){ | ||
170 | + that.setData({ | ||
171 | + xiangname: that.data.xiangarray[0].name, | ||
172 | + xiangid: that.data.xiangarray[0].id, | ||
173 | + xiangindex: 0 | ||
174 | + }) | ||
175 | + }else{ | ||
176 | + app.post('/api/index/town', { | ||
177 | + type: 2, | ||
178 | + pid: first.town_pid||1 | ||
179 | + }).then((res) => { | ||
180 | + let town = res.town; | ||
181 | + first.quarray = town; | ||
182 | + for (let i in town) { | ||
183 | + if (town[i].id == first.town_id) { | ||
184 | + first.quindex = i; | ||
185 | + break; | ||
186 | + } | ||
187 | + } | ||
188 | + that.setData({ | ||
189 | + first: first, | ||
190 | + }) | ||
191 | + | ||
192 | + }).catch((err) => { | ||
193 | + | ||
194 | + }) | ||
195 | + } | ||
196 | + | ||
197 | + // 初始化随车人员乡镇所在地 | ||
198 | + | ||
199 | + for (let obj of tempPeople){ | ||
200 | + for (let i in that.data.xiangarray){ | ||
201 | + if (obj.town_pid == that.data.xiangarray[i].id){ | ||
202 | + obj.xiangindex = i | ||
203 | + } | ||
204 | + } | ||
205 | + } | ||
206 | + | ||
207 | + this.setData({ | ||
208 | + people: tempPeople | ||
209 | + }) | ||
210 | + | ||
211 | + for (let i in tempPeople) { | ||
212 | + that.getTown(tempPeople[i].town_pid, i, tempPeople[i].town_id) | ||
213 | + } | ||
214 | + }).catch((err) => { | ||
215 | + | ||
216 | + }) | ||
217 | + | ||
218 | + }, | ||
219 | + | ||
220 | + // 添加随车人员 | ||
221 | + addsuiche() { | ||
222 | + let newsuichebox = this.data.suichebox; | ||
223 | + var newpeople = this.data.people; | ||
224 | + let obj = { | ||
225 | + is_symptom: 2, | ||
226 | + is_epidemic: 2, | ||
227 | + unit_id: '', | ||
228 | + town_p_name: '请选择乡镇', | ||
229 | + town_name: '请选择社区', | ||
230 | + arrivetime: '请选择时间', | ||
231 | + from_province: '请选择来源地', | ||
232 | + | ||
233 | + } | ||
234 | + newsuichebox.push(1); | ||
235 | + newpeople.push(obj) | ||
236 | + this.setData({ | ||
237 | + suichebox: newsuichebox, | ||
238 | + people: newpeople | ||
239 | + }) | ||
240 | + console.log(this.data.people) | ||
241 | + this.getxiang(); | ||
242 | + | ||
243 | + }, | ||
244 | + selsy() { | ||
245 | + this.setData({ | ||
246 | + is_symptom: 1 | ||
247 | + }) | ||
248 | + | ||
249 | + | ||
250 | + }, | ||
251 | + selsyk(e) { | ||
252 | + | ||
253 | + let index = e.currentTarget.dataset.index; | ||
254 | + let newpeople = this.data.people; | ||
255 | + newpeople[index].is_symptom = 1; | ||
256 | + this.setData({ | ||
257 | + people: newpeople | ||
258 | + }) | ||
259 | + | ||
260 | + console.log(this.data.people) | ||
261 | + }, | ||
262 | + selsn(e) { | ||
263 | + this.setData({ | ||
264 | + is_symptom: 2 | ||
265 | + }) | ||
266 | + }, | ||
267 | + selsnk(e) { | ||
268 | + this.setData({ | ||
269 | + is_symptomk: 2 | ||
270 | + }) | ||
271 | + | ||
272 | + let index = e.currentTarget.dataset.index; | ||
273 | + let newpeople = this.data.people; | ||
274 | + newpeople[index].is_symptom = 2; | ||
275 | + this.setData({ | ||
276 | + people: newpeople | ||
277 | + }) | ||
278 | + | ||
279 | + console.log(this.data.people) | ||
280 | + }, | ||
281 | + selzy(e) { | ||
282 | + this.setData({ | ||
283 | + is_epidemic: 1 | ||
284 | + }) | ||
285 | + | ||
286 | + }, | ||
287 | + selzyk(e) { | ||
288 | + this.setData({ | ||
289 | + is_epidemick: 1 | ||
290 | + }) | ||
291 | + let index = e.currentTarget.dataset.index; | ||
292 | + let newpeople = this.data.people; | ||
293 | + newpeople[index].is_epidemic = 1; | ||
294 | + this.setData({ | ||
295 | + people: newpeople | ||
296 | + }) | ||
297 | + }, | ||
298 | + selzn(e) { | ||
299 | + this.setData({ | ||
300 | + is_epidemic: 2 | ||
301 | + }) | ||
302 | + }, | ||
303 | + selznk(e) { | ||
304 | + this.setData({ | ||
305 | + is_epidemick: 2 | ||
306 | + }) | ||
307 | + let index = e.currentTarget.dataset.index; | ||
308 | + let newpeople = this.data.people; | ||
309 | + newpeople[index].is_epidemic = 2; | ||
310 | + this.setData({ | ||
311 | + people: newpeople | ||
312 | + }) | ||
313 | + }, | ||
314 | + gocity(e) { | ||
315 | + this.setData({ | ||
316 | + gocity: e.detail.value | ||
317 | + }) | ||
318 | + | ||
319 | + console.log(this.data.gocity) | ||
320 | + }, | ||
321 | + gocityk(e) { | ||
322 | + | ||
323 | + let index = e.currentTarget.dataset.index; | ||
324 | + let newpeople = this.data.people; | ||
325 | + newpeople[index].arrivecity = e.detail.value; | ||
326 | + this.setData({ | ||
327 | + people: newpeople | ||
328 | + }) | ||
329 | + console.log(this.data.people) | ||
330 | + }, | ||
331 | + // 获取乡镇 | ||
332 | + getxiang() { | ||
333 | + let that = this; | ||
334 | + var url = '/api/index/town'; | ||
335 | + var params = { | ||
336 | + type: 1, | ||
337 | + pid: '' | ||
338 | + } | ||
339 | + app.post(url, params).then((res) => { | ||
340 | + console.log(res); | ||
341 | + that.setData({ | ||
342 | + xiangarray: res.town | ||
343 | + }) | ||
344 | + console.log(this.data.xiangarray) | ||
345 | + | ||
346 | + | ||
347 | + }).catch((err) => { | ||
348 | + | ||
349 | + }) | ||
350 | + }, | ||
351 | + bindxiangChange: function (e) { | ||
352 | + | ||
353 | + this.setData({ | ||
354 | + xiangname: this.data.xiangarray[e.detail.value].name, | ||
355 | + xiangid: this.data.xiangarray[e.detail.value].id, | ||
356 | + xiangindex: e.detail.value, | ||
357 | + quname: '', | ||
358 | + quid: '' | ||
359 | + }) | ||
360 | + this.getqu() | ||
361 | + }, | ||
362 | + bindxiangChangek: function (e) { | ||
363 | + console.log(e) | ||
364 | + let that = this,index = e.currentTarget.dataset.index, t_index = e.detail.value,xiangArry = this.data.xiangarray; | ||
365 | + let pid = xiangArry[t_index].id; | ||
366 | + | ||
367 | + if (that.data.people[index].town_pid != pid){ | ||
368 | + that.data.people[index].xiangindex = index; | ||
369 | + that.data.people[index].town_p_name = xiangArry[t_index].name; | ||
370 | + that.data.people[index].town_pid = pid; | ||
371 | + that.data.people[index].town_name = "" | ||
372 | + that.data.people[index].town_id = "" | ||
373 | + this.setData({ | ||
374 | + people: that.data.people | ||
375 | + }) | ||
376 | + this.getTown(pid,index,'') | ||
377 | + } | ||
378 | + | ||
379 | + }, | ||
380 | + | ||
381 | + getqu() { | ||
382 | + let that = this; | ||
383 | + var url = '/api/index/town'; | ||
384 | + var params = { | ||
385 | + type: 2, | ||
386 | + pid: that.data.xiangid||1 | ||
387 | + } | ||
388 | + app.post(url, params).then((res) => { | ||
389 | + console.log(res); | ||
390 | + this.setData({ | ||
391 | + 'first.quarray': res.town, | ||
392 | + 'first.quindex': 0, | ||
393 | + quname: this.data.quname||res.town[0].name, | ||
394 | + quid: this.data.quid||res.town[0].id | ||
395 | + }) | ||
396 | + }).catch((err) => { | ||
397 | + | ||
398 | + }) | ||
399 | + }, | ||
400 | + | ||
401 | + getTown(id, index, townId) { | ||
402 | + let that = this; | ||
403 | + var url = '/api/index/town'; | ||
404 | + var params = { | ||
405 | + type: 2, | ||
406 | + pid: id | ||
407 | + } | ||
408 | + app.post(url, params).then((res) => { | ||
409 | + let town = res.town; | ||
410 | + that.data.people[index].quarrayk = town; | ||
411 | + for(let i in town){ | ||
412 | + if(town[i].id == townId){ | ||
413 | + that.data.people[index].quindex = i; | ||
414 | + that.data.people[index].town_name = town[i].name; | ||
415 | + that.data.people[index].town_id = town[i].id; | ||
416 | + break; | ||
417 | + }else{ | ||
418 | + that.data.people[index].quindex = 0; | ||
419 | + that.data.people[index].town_id = town[0].id; | ||
420 | + that.data.people[index].town_name = town[0].name; | ||
421 | + } | ||
422 | + } | ||
423 | + that.setData({ | ||
424 | + people: that.data.people, | ||
425 | + }) | ||
426 | + | ||
427 | + }).catch((err) => { | ||
428 | + | ||
429 | + }) | ||
430 | + }, | ||
431 | + | ||
432 | + bindquChange: function (e) { | ||
433 | + | ||
434 | + this.setData({ | ||
435 | + quname: this.data.first.quarray[e.detail.value].name, | ||
436 | + quid: this.data.first.quarray[e.detail.value].id, | ||
437 | + quindex: e.detail.value, | ||
438 | + 'first.quindex': e.detail.value, | ||
439 | + }) | ||
440 | + | ||
441 | + | ||
442 | + | ||
443 | + | ||
444 | + }, | ||
445 | + bindquChangek: function (e) { | ||
446 | + console.log(e) | ||
447 | + let index = e.currentTarget.dataset.index,chooseIndex = e.detail.value; | ||
448 | + this.data.people[index].quindex = chooseIndex; | ||
449 | + this.data.people[index].town_name = this.data.people[index].quarrayk[chooseIndex].name; | ||
450 | + this.data.people[index].town_id = this.data.people[index].quarrayk[chooseIndex].id; | ||
451 | + this.setData({ | ||
452 | + people: this.data.people | ||
453 | + }) | ||
454 | + }, | ||
455 | + | ||
456 | + // 判断乡镇 | ||
457 | + panduan(e) { | ||
458 | + console.log(343) | ||
459 | + let index = e.currentTarget.dataset.index; | ||
460 | + let newpeople = this.data.people | ||
461 | + for (var i = 0; i < newpeople.length; i++) { | ||
462 | + if (newpeople[i].town_p_name == '请选择乡镇') { | ||
463 | + | ||
464 | + wx.showToast({ | ||
465 | + title: '请先选择乡镇', | ||
466 | + icon: "none" | ||
467 | + }) | ||
468 | + } | ||
469 | + } | ||
470 | + | ||
471 | + }, | ||
472 | + | ||
473 | + bindtypeChange: function (e) { | ||
474 | + console.log('picker发送选择改变,携带值为', e.detail.value) | ||
475 | + this.setData({ | ||
476 | + chuxingindex: e.detail.value, | ||
477 | + | ||
478 | + chuxing: this.data.chuixngarray[e.detail.value] | ||
479 | + | ||
480 | + }) | ||
481 | + | ||
482 | + | ||
483 | + }, | ||
484 | + | ||
485 | + // 获取工作单位 | ||
486 | + getdanweilist() { | ||
487 | + let that = this; | ||
488 | + var url = '/api/index/unit'; | ||
489 | + var params = { | ||
490 | + | ||
491 | + | ||
492 | + } | ||
493 | + app.post(url, params).then((res) => { | ||
494 | + console.log(res); | ||
495 | + | ||
496 | + that.setData({ | ||
497 | + danweiarray: res.unit | ||
498 | + }) | ||
499 | + | ||
500 | + }).catch((err) => { | ||
501 | + | ||
502 | + }) | ||
503 | + }, | ||
504 | + binddanChange: function (e) { | ||
505 | + console.log('picker发送选择改变,携带值为', e.detail.value) | ||
506 | + this.setData({ | ||
507 | + danweiindex: e.detail.value, | ||
508 | + | ||
509 | + danweiname: this.data.danweiarray[e.detail.value].name, | ||
510 | + danweiid: this.data.danweiarray[e.detail.value].id | ||
511 | + | ||
512 | + }) | ||
513 | + | ||
514 | + | ||
515 | + }, | ||
516 | + | ||
517 | + binddanChangek: function (e) { | ||
518 | + console.log(e) | ||
519 | + console.log('picker发送选择改变,携带值为', e.detail.value) | ||
520 | + // this.setData({ | ||
521 | + // danweiindexk: e.detail.value, | ||
522 | + | ||
523 | + // danweinamek: this.data.danweiarray[e.detail.value].name, | ||
524 | + // danweiidk: this.data.danweiarray[e.detail.value].id | ||
525 | + | ||
526 | + // }) | ||
527 | + | ||
528 | + | ||
529 | + let index = e.currentTarget.dataset.index; | ||
530 | + let newpeople = this.data.people; | ||
531 | + newpeople[index].unit_id = this.data.danweiarray[e.detail.value].id; | ||
532 | + newpeople[index].unit = this.data.danweiarray[e.detail.value].name; | ||
533 | + this.setData({ | ||
534 | + people: newpeople | ||
535 | + }) | ||
536 | + | ||
537 | + }, | ||
538 | + | ||
539 | + | ||
540 | + | ||
541 | + // 到达静海时间 | ||
542 | + bindDateChange: function (e) { | ||
543 | + console.log('picker发送选择改变,携带值为', e.detail.value) | ||
544 | + this.setData({ | ||
545 | + date: e.detail.value | ||
546 | + }) | ||
547 | + }, | ||
548 | + bindDateChangek: function (e) { | ||
549 | + console.log('picker发送选择改变,携带值为', e.detail.value) | ||
550 | + this.setData({ | ||
551 | + datek: e.detail.value | ||
552 | + }) | ||
553 | + | ||
554 | + let index = e.currentTarget.dataset.index; | ||
555 | + let newpeople = this.data.people; | ||
556 | + newpeople[index].arrivetime = e.detail.value | ||
557 | + this.setData({ | ||
558 | + people: newpeople | ||
559 | + }) | ||
560 | + | ||
561 | + }, | ||
562 | + bindTimeChange: function (e) { | ||
563 | + console.log('picker发送选择改变,携带值为', e.detail.value) | ||
564 | + this.setData({ | ||
565 | + time: e.detail.value | ||
566 | + }) | ||
567 | + }, | ||
568 | + bindTimeChangek: function (e) { | ||
569 | + console.log('picker发送选择改变,携带值为', e.detail.value) | ||
570 | + this.setData({ | ||
571 | + timek: e.detail.value | ||
572 | + }) | ||
573 | + | ||
574 | + let index = e.currentTarget.dataset.index; | ||
575 | + let newpeople = this.data.people; | ||
576 | + newpeople[index].arrivetime = this.data.dateK = this.data.timeK | ||
577 | + }, | ||
578 | + | ||
579 | + bindRegionChange: function (e) { | ||
580 | + console.log(e) | ||
581 | + console.log('picker发送选择改变,携带值为', e.detail.value) | ||
582 | + this.setData({ | ||
583 | + fromname: e.detail.value[0] + e.detail.value[1] + e.detail.value[2], | ||
584 | + from_province_id: e.detail.code[0], | ||
585 | + from_city_id: e.detail.code[1], | ||
586 | + from_region_id: e.detail.code[2], | ||
587 | + from_province: e.detail.value[0], | ||
588 | + from_city: e.detail.value[1], | ||
589 | + from_region: e.detail.value[2] | ||
590 | + | ||
591 | + }) | ||
592 | + }, | ||
593 | + bindRegionChangek: function (e) { | ||
594 | + console.log(e) | ||
595 | + console.log('picker发送选择改变,携带值为', e.detail.value) | ||
596 | + this.setData({ | ||
597 | + fromnamek: e.detail.value[0] + e.detail.value[1] + e.detail.value[2], | ||
598 | + from_province_idk: e.detail.code[0], | ||
599 | + from_city_idk: e.detail.code[1], | ||
600 | + from_region_idk: e.detail.code[2], | ||
601 | + from_provincek: e.detail.value[0], | ||
602 | + from_cityk: e.detail.value[1], | ||
603 | + from_regionk: e.detail.value[2] | ||
604 | + | ||
605 | + }) | ||
606 | + | ||
607 | + let index = e.currentTarget.dataset.index; | ||
608 | + let newpeople = this.data.people; | ||
609 | + newpeople[index].from_province_id = e.detail.code[0], | ||
610 | + newpeople[index].from_city_id = e.detail.code[1], | ||
611 | + newpeople[index].from_region_id = e.detail.code[2], | ||
612 | + newpeople[index].from_province = e.detail.value[0], | ||
613 | + newpeople[index].from_city = e.detail.value[1], | ||
614 | + newpeople[index].from_region = e.detail.value[2] | ||
615 | + | ||
616 | + this.setData({ | ||
617 | + people: newpeople | ||
618 | + }) | ||
619 | + }, | ||
620 | + entertype(e) { | ||
621 | + this.setData({ | ||
622 | + typename: e.detail.value | ||
623 | + }) | ||
624 | + }, | ||
625 | + // 手机号 | ||
626 | + enterphone(e) { | ||
627 | + this.setData({ | ||
628 | + phone: e.detail.value | ||
629 | + }) | ||
630 | + }, | ||
631 | + enterphonek(e) { | ||
632 | + let index = e.currentTarget.dataset.index; | ||
633 | + let newpeople = this.data.people; | ||
634 | + newpeople[index].mobile = e.detail.value; | ||
635 | + this.setData({ | ||
636 | + people: newpeople | ||
637 | + }) | ||
638 | + }, | ||
639 | + // 姓名 | ||
640 | + entername(e) { | ||
641 | + this.setData({ | ||
642 | + xingname: e.detail.value | ||
643 | + }) | ||
644 | + }, | ||
645 | + enternamek(e) { | ||
646 | + let index = e.currentTarget.dataset.index; | ||
647 | + let newpeople = this.data.people; | ||
648 | + newpeople[index].name = e.detail.value; | ||
649 | + this.setData({ | ||
650 | + people: newpeople | ||
651 | + }) | ||
652 | + console.log(this.data.people) | ||
653 | + | ||
654 | + | ||
655 | + }, | ||
656 | + | ||
657 | + // 输入公司 | ||
658 | + entercompany(e) { | ||
659 | + this.setData({ | ||
660 | + companyname: e.detail.value | ||
661 | + }) | ||
662 | + }, | ||
663 | + entercompanyk(e) { | ||
664 | + let index = e.currentTarget.dataset.index; | ||
665 | + let newpeople = this.data.people; | ||
666 | + newpeople[index].unit_id = e.detail.value; | ||
667 | + this.setData({ | ||
668 | + people: newpeople | ||
669 | + }) | ||
670 | + }, | ||
671 | + | ||
672 | + | ||
673 | + | ||
674 | + | ||
675 | + enterzheng() { | ||
676 | + let that = this; | ||
677 | + let card = that.data.card; | ||
678 | + console.log(card.length) | ||
679 | + var reg = /(^\d{15}$)|(^\d{18}$)|(^\d{17}(\d|X|x)$)/; | ||
680 | + | ||
681 | + if (!reg.test(card)) { | ||
682 | + wx.showToast({ | ||
683 | + title: '请输入正确身份证号', | ||
684 | + icon: "none" | ||
685 | + }) | ||
686 | + } else { | ||
687 | + if (that.data.type == '') { | ||
688 | + | ||
689 | + var url = '/api/user/back_identity'; | ||
690 | + var params = { | ||
691 | + identity: that.data.card, | ||
692 | + } | ||
693 | + app.post(url, params, "post").then((res) => { | ||
694 | + console.log(res); | ||
695 | + that.setData({ | ||
696 | + basicinfo: res.back | ||
697 | + }) | ||
698 | + if (res.is_have == 1) { | ||
699 | + | ||
700 | + wx.showModal({ | ||
701 | + | ||
702 | + content: '是否自动匹配信息', | ||
703 | + success(res) { | ||
704 | + if (res.confirm) { | ||
705 | + that.setData({ | ||
706 | + | ||
707 | + xingname: that.data.basicinfo.name, | ||
708 | + card: that.data.basicinfo.identity, | ||
709 | + companyname: that.data.basicinfo.unit_id, | ||
710 | + danweiname: that.data.basicinfo.unit, | ||
711 | + phone: that.data.basicinfo.mobile, | ||
712 | + date: that.data.basicinfo.arrivetime, | ||
713 | + fromname: that.data.basicinfo.from_province + that.data.basicinfo.from_city + that.data.basicinfo.from_region, | ||
714 | + from_province_id: that.data.basicinfo.from_province_id, | ||
715 | + from_region_id: that.data.basicinfo.from_region_id, | ||
716 | + from_city_id: that.data.basicinfo.from_city_id, | ||
717 | + from_province: that.data.basicinfo.from_province, | ||
718 | + from_city: that.data.basicinfo.from_city, | ||
719 | + from_region: that.data.basicinfo.from_region, | ||
720 | + xiangname: that.data.basicinfo.town_p_name, | ||
721 | + xiangid: that.data.basicinfo.town_pid||1, | ||
722 | + quname: that.data.basicinfo.town_name, | ||
723 | + quid: that.data.basicinfo.town_id, | ||
724 | + detailadd: that.data.basicinfo.add, | ||
725 | + is_epidemic: that.data.basicinfo.is_epidemic, | ||
726 | + is_symptom: that.data.basicinfo.is_symptom, | ||
727 | + gocity: that.data.basicinfo.arrivecity, | ||
728 | + xiangindex: that.data.basicinfo.town_pid - 1, | ||
729 | + quindex: that.data.basicinfo.town_id - 41 | ||
730 | + }) | ||
731 | + | ||
732 | + that.getqu() | ||
733 | + } else if (res.cancel) { | ||
734 | + | ||
735 | + } | ||
736 | + } | ||
737 | + }) | ||
738 | + } | ||
739 | + | ||
740 | + | ||
741 | + | ||
742 | + }).catch((err) => { | ||
743 | + console.log(err) | ||
744 | + wx.showToast({ | ||
745 | + title: '该人员信息已经注册,请勿重复注册', | ||
746 | + icon: 'none' | ||
747 | + }) | ||
748 | + }) | ||
749 | + | ||
750 | + | ||
751 | + | ||
752 | + } | ||
753 | + } | ||
754 | + | ||
755 | + }, | ||
756 | + | ||
757 | + enterzhengk() { | ||
758 | + let that = this; | ||
759 | + let card = that.data.card; | ||
760 | + var reg = /(^\d{15}$)|(^\d{18}$)|(^\d{17}(\d|X|x)$)/; | ||
761 | + if (!reg.test(card)) { | ||
762 | + wx.showToast({ | ||
763 | + title: '请输入正确身份证号', | ||
764 | + icon: "none" | ||
765 | + }) | ||
766 | + } | ||
767 | + }, | ||
768 | + // 身份证号 | ||
769 | + entercard(e) { | ||
770 | + let that = this | ||
771 | + that.setData({ | ||
772 | + card: e.detail.value | ||
773 | + }) | ||
774 | + if (that.data.type == '') { | ||
775 | + | ||
776 | + } | ||
777 | + | ||
778 | + console.log(this.data.card) | ||
779 | + }, | ||
780 | + entercardk(e) { | ||
781 | + let index = e.currentTarget.dataset.index; | ||
782 | + console.log(index) | ||
783 | + let newpeople = this.data.people; | ||
784 | + newpeople[index].identity = e.detail.value; | ||
785 | + this.setData({ | ||
786 | + people: newpeople | ||
787 | + }) | ||
788 | + | ||
789 | + console.log(this.data.people) | ||
790 | + }, | ||
791 | + | ||
792 | + // 详细地址 | ||
793 | + enterdetailadd(e) { | ||
794 | + this.setData({ | ||
795 | + detailadd: e.detail.value | ||
796 | + }) | ||
797 | + }, | ||
798 | + enterdetailaddk(e) { | ||
799 | + let index = e.currentTarget.dataset.index; | ||
800 | + let newpeople = this.data.people; | ||
801 | + newpeople[index].add = e.detail.value; | ||
802 | + this.setData({ | ||
803 | + people: newpeople | ||
804 | + }) | ||
805 | + }, | ||
806 | + | ||
807 | + del(e) { | ||
808 | + let index = e.currentTarget.dataset.index; | ||
809 | + console.log(index) | ||
810 | + let newpeople = this.data.people; | ||
811 | + for (var i = 0; i < newpeople.length; i++) { | ||
812 | + newpeople.splice(index, 1) | ||
813 | + } | ||
814 | + this.setData({ | ||
815 | + people: newpeople | ||
816 | + }) | ||
817 | + | ||
818 | + | ||
819 | + }, | ||
820 | + finish() { | ||
821 | + let that = this; | ||
822 | + | ||
823 | + console.log(that.data.falsebtn) | ||
824 | + var url = '/api/user/back'; | ||
825 | + console.log(this.data.people) | ||
826 | + if (that.data.chuxing == '请选择出行方式') { | ||
827 | + wx.showToast({ | ||
828 | + title: '请选择出行方式', | ||
829 | + icon: "none" | ||
830 | + }) | ||
831 | + return false | ||
832 | + } | ||
833 | + | ||
834 | + if(that.data.shortworkname==''){ | ||
835 | + wx.showToast({ | ||
836 | + title: '请选择工作单位', | ||
837 | + icon: "none" | ||
838 | + }) | ||
839 | + return false | ||
840 | + } | ||
841 | + let newpeople = that.data.people; | ||
842 | + | ||
843 | + newpeople.forEach(item => delete item.quarray) | ||
844 | + console.log(newpeople) | ||
845 | + for (let obj of newpeople){ | ||
846 | + delete obj['quarrayk']; | ||
847 | + delete obj['quindex']; | ||
848 | + delete obj['xiangindex']; | ||
849 | + } | ||
850 | + var params = { | ||
851 | + travel: that.data.chuxing, | ||
852 | + number: that.data.typename, | ||
853 | + name: this.data.xingname, | ||
854 | + mobile: this.data.phone, | ||
855 | + identity: this.data.card, | ||
856 | + unit_id: this.data.shortworkname, | ||
857 | + company_id:this.data.workid, | ||
858 | + company_name:this.data.companyname, | ||
859 | + arrivetime: this.data.date, | ||
860 | + from_province: this.data.from_province, | ||
861 | + from_province_id: this.data.from_province_id, | ||
862 | + from_city: this.data.from_city, | ||
863 | + from_city_id: this.data.from_city_id, | ||
864 | + from_region: this.data.from_region, | ||
865 | + from_region_id: this.data.from_region_id, | ||
866 | + town_pid: this.data.xiangid, | ||
867 | + town_id: this.data.quid, | ||
868 | + add: this.data.detailadd, | ||
869 | + is_symptom: this.data.is_symptom, | ||
870 | + arrivecity: this.data.gocity, | ||
871 | + is_epidemic: this.data.is_epidemic, | ||
872 | + people: JSON.stringify(newpeople), | ||
873 | + } | ||
874 | + app.post(url, params, "post").then((res) => { | ||
875 | + console.log(res); | ||
876 | + wx.showToast({ | ||
877 | + title: '提交成功', | ||
878 | + icon: 'none' | ||
879 | + }) | ||
880 | + that.setData({ | ||
881 | + falsebtn: true | ||
882 | + }) | ||
883 | + if (that.data.clock == 1) { | ||
884 | + setTimeout(function () { | ||
885 | + wx.redirectTo({ | ||
886 | + url: '/pages/clock/clock?scene=' + that.data.scene, | ||
887 | + }) | ||
888 | + }, 1500) | ||
889 | + } else { | ||
890 | + setTimeout(function () { | ||
891 | + wx.redirectTo({ | ||
892 | + url: '/pages/backdetail/backdetail', | ||
893 | + }) | ||
894 | + }, 1500) | ||
895 | + } | ||
896 | + }).catch((err) => { | ||
897 | + | ||
898 | + wx.showToast({ | ||
899 | + title: err.data.msg, | ||
900 | + icon: 'none' | ||
901 | + }) | ||
902 | + | ||
903 | + }) | ||
904 | + | ||
905 | + }, | ||
906 | + /** | ||
907 | + * 生命周期函数--监听页面初次渲染完成 | ||
908 | + */ | ||
909 | + onReady: function () { | ||
910 | + | ||
911 | + }, | ||
912 | + | ||
913 | + /** | ||
914 | + * 生命周期函数--监听页面显示 | ||
915 | + */ | ||
916 | + onShow: function () { | ||
917 | + | ||
918 | + | ||
919 | + | ||
920 | + this.setData({ | ||
921 | + companyname: app.globalData.workname != undefined ? app.globalData.workname:'请选择工作单位', | ||
922 | + shortworkname: app.globalData.shortworkname != undefined ? app.globalData.shortworkname : '', | ||
923 | + workid: app.globalData.workid != undefined ? app.globalData.workid:'' | ||
924 | + | ||
925 | + }) | ||
926 | + | ||
927 | + console.log(app.globalData.workname); | ||
928 | + console.log(app.globalData.workid) | ||
929 | + console.log(app.globalData.shortworkname) | ||
930 | + | ||
931 | + let token = wx.getStorageSync("token"); | ||
932 | + if (token == '') { | ||
933 | + wx.showToast({ | ||
934 | + title: '请先授权登录', | ||
935 | + icon: "none" | ||
936 | + }) | ||
937 | + | ||
938 | + setTimeout(function () { | ||
939 | + wx.navigateTo({ | ||
940 | + url: '/pages/start/start', | ||
941 | + }) | ||
942 | + }, 1500) | ||
943 | + | ||
944 | + | ||
945 | + | ||
946 | + let url = '/pages/backpeople/backpeople'; | ||
947 | + wx.setStorageSync("url", url) | ||
948 | + wx.setStorageSync("nologin", true) | ||
949 | + } | ||
950 | + | ||
951 | + }, | ||
952 | + | ||
953 | + /** | ||
954 | + * 生命周期函数--监听页面隐藏 | ||
955 | + */ | ||
956 | + onHide: function () { | ||
957 | + | ||
958 | + }, | ||
959 | + | ||
960 | + /** | ||
961 | + * 生命周期函数--监听页面卸载 | ||
962 | + */ | ||
963 | + onUnload: function () { | ||
964 | + | ||
965 | + }, | ||
966 | + | ||
967 | + /** | ||
968 | + * 页面相关事件处理函数--监听用户下拉动作 | ||
969 | + */ | ||
970 | + onPullDownRefresh: function () { | ||
971 | + | ||
972 | + }, | ||
973 | + | ||
974 | + /** | ||
975 | + * 页面上拉触底事件的处理函数 | ||
976 | + */ | ||
977 | + onReachBottom: function () { | ||
978 | + | ||
979 | + }, | ||
980 | + | ||
981 | + /** | ||
982 | + * 用户点击右上角分享 | ||
983 | + */ | ||
984 | + onShareAppMessage: function () { | ||
985 | + | ||
986 | + } | ||
987 | +}) |
pages/backpeople/backpeople.json
0 → 100644
pages/backpeople/backpeople.wxml
0 → 100644
1 | +<view class="backhead"> | ||
2 | + <image src="/img/topimg.png"></image> | ||
3 | +</view> | ||
4 | + | ||
5 | +<view class="backbox"> | ||
6 | + <view class="backboxitem"> | ||
7 | + <!-- 出行方式--车牌号码 --> | ||
8 | + <view class="backtop"> | ||
9 | + <picker bindchange="bindtypeChange" value="{{chuxingindex}}" range="{{chuixngarray}}"> | ||
10 | + <view class="picker"> | ||
11 | + <!-- 当前选择:{{array[index]}} --> | ||
12 | + <view class="useboxitem flextwo"> | ||
13 | + <view class="itemname commonone">出行方式</view> | ||
14 | + <view class="itemright flexone"> | ||
15 | + <view class="commontwo seltype"> | ||
16 | + {{chuxing}} | ||
17 | + </view> | ||
18 | + <view class="yourow you"> | ||
19 | + <image src="/img/yourow.png"></image> | ||
20 | + </view> | ||
21 | + </view> | ||
22 | + </view> | ||
23 | + </view> | ||
24 | + </picker> | ||
25 | + <view class="useboxitem flextwo" wx:if="{{chuxingindex==0||chuxingindex==2||chuxingindex==4}}"> | ||
26 | + <view class="itemname commonone">车牌号码</view> | ||
27 | + <view class="itemright flexone"> | ||
28 | + <view class="commontwo commonenter"> | ||
29 | + <input placeholder="请填写车牌号码" placeholder-class="commontwo" bindinput="entertype" value="{{typename}}" /> | ||
30 | + </view> | ||
31 | + | ||
32 | + </view> | ||
33 | + | ||
34 | + | ||
35 | + | ||
36 | + </view> | ||
37 | + <view class="useboxitem flextwo" wx:if="{{chuxingindex==1}}"> | ||
38 | + <view class="itemname commonone">车次</view> | ||
39 | + | ||
40 | + | ||
41 | + <view class="itemright flexone"> | ||
42 | + <view class="commontwo commonenter"> | ||
43 | + <input placeholder="请填写车次" placeholder-class="commontwo" bindinput="entertype" value="{{typename}}" /> | ||
44 | + </view> | ||
45 | + | ||
46 | + </view> | ||
47 | + | ||
48 | + | ||
49 | + | ||
50 | + </view> | ||
51 | + | ||
52 | + <view class="useboxitem flextwo" wx:if="{{chuxingindex==3}}"> | ||
53 | + <view class="itemname commonone">航班号</view> | ||
54 | + | ||
55 | + | ||
56 | + <view class="itemright flexone"> | ||
57 | + <view class="commontwo commonenter"> | ||
58 | + <input placeholder="请填写航班号" placeholder-class="commontwo" bindinput="entertype" value="{{typename}}" /> | ||
59 | + </view> | ||
60 | + | ||
61 | + </view> | ||
62 | + | ||
63 | + | ||
64 | + | ||
65 | + </view> | ||
66 | + <view class="useboxitem flextwo" wx:if="{{chuxingindex==5}}"> | ||
67 | + <view class="itemname commonone">其他人员</view> | ||
68 | + | ||
69 | + | ||
70 | + <view class="itemright flexone"> | ||
71 | + <view class="commontwo commonenter"> | ||
72 | + <input placeholder="请填写有效证件号" placeholder-class="commontwo" bindinput="entertype" value="{{typename}}" /> | ||
73 | + </view> | ||
74 | + | ||
75 | + </view> | ||
76 | + | ||
77 | + | ||
78 | + | ||
79 | + </view> | ||
80 | + | ||
81 | + </view> | ||
82 | + <!-- 司机及随车人员信息 --> | ||
83 | + <text class="enterzhong">*填写身份证号,自动匹配已录入信息。</text> | ||
84 | + | ||
85 | + <view class="backtop userbox"> | ||
86 | + <view class="useboxitem flextwo"> | ||
87 | + <view class="itemname commonone">姓名</view> | ||
88 | + <view class="itemright flexone"> | ||
89 | + <view class="commontwo commonenter"> | ||
90 | + <input placeholder="请填写姓名" placeholder-class="commontwo" bindinput="entername" value="{{xingname}}" /> | ||
91 | + </view> | ||
92 | + </view> | ||
93 | + </view> | ||
94 | + <view class="useboxitem flextwo"> | ||
95 | + <view class="itemname commonone">身份证号</view> | ||
96 | + <view class="itemright flexone"> | ||
97 | + <view class="commontwo commonenter"> | ||
98 | + <input placeholder="请填写身份证号" placeholder-class="commontwo" bindinput="entercard" value="{{card}}" bindblur="enterzheng"/> | ||
99 | + </view> | ||
100 | + </view> | ||
101 | + </view> | ||
102 | + <view class="useboxitem flextwo" bindtap="selectcompany"> | ||
103 | + <view class="itemname commonone">工作单位</view> | ||
104 | + <view class="itemright flexone" > | ||
105 | + <view class="commontwo seltype"> | ||
106 | + {{companyname}} | ||
107 | + <!-- <input placeholder="请填写工作单位" placeholder-class="commontwo" bindinput="entercompany" value="{{companyname}}" /> --> | ||
108 | + </view> | ||
109 | + | ||
110 | + <view class="yourow you"> | ||
111 | + <image src="/img/yourow.png"></image> | ||
112 | + </view> | ||
113 | + </view> | ||
114 | + </view> | ||
115 | + <view class="useboxitem flextwo"> | ||
116 | + <view class="itemname commonone">联系电话</view> | ||
117 | + <view class="itemright flexone"> | ||
118 | + <view class="commontwo commonenter"> | ||
119 | + <input placeholder="请填联系电话" placeholder-class="commontwo" bindinput="enterphone" value="{{phone}}" /> | ||
120 | + </view> | ||
121 | + </view> | ||
122 | + </view> | ||
123 | + <picker mode="date" value="{{date}}" start="2020-01-01" bindchange="bindDateChange"> | ||
124 | + <view class="picker"> | ||
125 | + <view class="useboxitem flextwo"> | ||
126 | + <view class="itemname commonone">到静海时间(计划)</view> | ||
127 | + <view class="itemright flexone "> | ||
128 | + <view class="commontwo seltype plan"> | ||
129 | + {{date}} | ||
130 | + </view> | ||
131 | + <view class="yourow you"> | ||
132 | + <image src="/img/yourow.png"></image> | ||
133 | + </view> | ||
134 | + </view> | ||
135 | + </view> | ||
136 | + </view> | ||
137 | + </picker> | ||
138 | + <view class="useboxitem flextwo"> | ||
139 | + <view class="itemname commonone">从何地返静</view> | ||
140 | + <picker mode="region" bindchange="bindRegionChange" value="{{[from_province,from_city,from_region]}}" custom-item="{{customItem}}"> | ||
141 | + <view class="picker"> | ||
142 | + <view class="itemright flexone"> | ||
143 | + <view class="commontwo seltype"> | ||
144 | + {{fromname||'请选择返乡地点'}} | ||
145 | + </view> | ||
146 | + <view class="yourow you"> | ||
147 | + <image src="/img/yourow.png"></image> | ||
148 | + </view> | ||
149 | + </view> | ||
150 | + </view> | ||
151 | + </picker> | ||
152 | + </view> | ||
153 | + <picker value="{{xiangindex||0}}" range="{{xiangarray}}" range-key="name" bindchange="bindxiangChange"> | ||
154 | + <view class="picker"> | ||
155 | + <view class="useboxitem flextwo"> | ||
156 | + <view class="itemname commonone">目的地乡镇</view> | ||
157 | + <view class="itemright flexone"> | ||
158 | + <view class="commontwo seltype"> | ||
159 | + {{xiangname}} | ||
160 | + </view> | ||
161 | + <view class="yourow you"> | ||
162 | + <image src="/img/yourow.png"></image> | ||
163 | + </view> | ||
164 | + </view> | ||
165 | + </view> | ||
166 | + </view> | ||
167 | + </picker> | ||
168 | + <picker value="{{first.quindex}}" range="{{first.quarray}}" range-key="name" bindchange="bindquChange" > | ||
169 | + <view class="picker"> | ||
170 | + <view class="useboxitem flextwo"> | ||
171 | + <view class="itemname commonone">目的地社区</view> | ||
172 | + <view class="itemright flexone"> | ||
173 | + <view class="commontwo seltype"> | ||
174 | + {{quname}} | ||
175 | + </view> | ||
176 | + <view class="yourow you"> | ||
177 | + <image src="/img/yourow.png"></image> | ||
178 | + </view> | ||
179 | + </view> | ||
180 | + </view> | ||
181 | + </view> | ||
182 | + </picker> | ||
183 | + <view class="useboxitem flextwo"> | ||
184 | + <view class="itemname commonone">详细地址(具体到门牌号)</view> | ||
185 | + <view class="itemright flexone"> | ||
186 | + <view class="commontwo men"> | ||
187 | + <input placeholder="请填详细地址" placeholder-class="commontwo" bindinput="enterdetailadd" value="{{detailadd}}" /> | ||
188 | + </view> | ||
189 | + </view> | ||
190 | + </view> | ||
191 | + <view class="useboxitem flextwo"> | ||
192 | + <view class="itemname commonone">是否有相应症状(发热、呕吐)</view> | ||
193 | + <view class="itemright flexone"> | ||
194 | + <view class="selleft flexone"> | ||
195 | + <view class="selleftitem selzuo flexone" bindtap="selsy"> | ||
196 | + <view class="sellefitemimg"> | ||
197 | + <image src="/img/sel.png" wx:if="{{is_symptom==1}}"></image> | ||
198 | + <image src="/img/nosel.png" wx:else></image> | ||
199 | + </view> | ||
200 | + <view class="selname">是</view> | ||
201 | + </view> | ||
202 | + <view class="selleftitem flexone " bindtap="selsn"> | ||
203 | + <view class="sellefitemimg"> | ||
204 | + <image src="/img/sel.png" wx:if="{{is_symptom==2}}"></image> | ||
205 | + <image src="/img/nosel.png" wx:else></image> | ||
206 | + </view> | ||
207 | + <view class="selname">否</view> | ||
208 | + </view> | ||
209 | + </view> | ||
210 | + </view> | ||
211 | + </view> | ||
212 | + <view class="useboxitem flextwo"> | ||
213 | + <view class="itemname commonone">1月1日以来到过的城市</view> | ||
214 | + <view class="itemright flexone gicity"> | ||
215 | + <view class="commontwo men"> | ||
216 | + <input placeholder="请填写去过的城市" placeholder-class="commontwo" bindinput="gocity" value="{{gocity}}" /> | ||
217 | + </view> | ||
218 | + </view> | ||
219 | + </view> | ||
220 | + <view class="useboxitem flextwo"> | ||
221 | + <view class="itemname commonone">两周内有无重度疫情区来往接触史</view> | ||
222 | + <view class="itemright flexone"> | ||
223 | + <view class="selleft flexone"> | ||
224 | + <view class="selleftitem selzuo flexone" bindtap="selzy"> | ||
225 | + <view class="sellefitemimg"> | ||
226 | + <image src="/img/sel.png" wx:if="{{is_epidemic==1}}"></image> | ||
227 | + <image src="/img/nosel.png" wx:else></image> | ||
228 | + </view> | ||
229 | + <view class="selname">是</view> | ||
230 | + </view> | ||
231 | + <view class="selleftitem flexone " bindtap="selzn"> | ||
232 | + <view class="sellefitemimg"> | ||
233 | + <image src="/img/sel.png" wx:if="{{is_epidemic==2}}"></image> | ||
234 | + <image src="/img/nosel.png" wx:else></image> | ||
235 | + </view> | ||
236 | + <view class="selname">否</view> | ||
237 | + </view> | ||
238 | + </view> | ||
239 | + </view> | ||
240 | + </view> | ||
241 | + </view> | ||
242 | + | ||
243 | + | ||
244 | + <!-- 随车人员信息 --> | ||
245 | + <view class="suichebox"> | ||
246 | + <view class="backtop userbox" wx:for="{{people}}" wx:key="" data-index="{{index}}"> | ||
247 | + <view class="flex range" bindtap="del" data-index="{{index}}"> | ||
248 | + <view class="rangeimg"> | ||
249 | + <image src="/img/delete.png"></image> | ||
250 | + </view> | ||
251 | + <view class="rangename">删除</view> | ||
252 | + </view> | ||
253 | + <view class="useboxitem flextwo"> | ||
254 | + <view class="itemname commonone">姓名</view> | ||
255 | + <view class="itemright flexone"> | ||
256 | + <view class="commontwo commonenter"> | ||
257 | + <input placeholder="请填写姓名" placeholder-class="commontwo" bindinput="enternamek" data-index="{{index}}" value="{{item.name}}" /> | ||
258 | + </view> | ||
259 | + </view> | ||
260 | + </view> | ||
261 | + <view class="useboxitem flextwo"> | ||
262 | + <view class="itemname commonone">身份证号</view> | ||
263 | + <view class="itemright flexone"> | ||
264 | + <view class="commontwo commonenter"> | ||
265 | + <input placeholder="请填写身份证号" placeholder-class="commontwo" bindinput="entercardk" data-index="{{index}}" value="{{item.identity}}" bindblur="enterzhengk"/> | ||
266 | + </view> | ||
267 | + </view> | ||
268 | + </view> | ||
269 | + <view class="useboxitem flextwo"> | ||
270 | + <view class="itemname commonone">工作单位</view> | ||
271 | + <view class="itemright flexone"> | ||
272 | + <view class="commontwo commonenter"> | ||
273 | + <input placeholder="请填写工作单位" placeholder-class="commontwo" bindinput="entercompanyk" value="{{item.unit_id}}" data-index="{{index}}"/> | ||
274 | + </view> | ||
275 | + </view> | ||
276 | + </view> | ||
277 | + <view class="useboxitem flextwo"> | ||
278 | + <view class="itemname commonone">联系电话</view> | ||
279 | + <view class="itemright flexone"> | ||
280 | + <view class="commontwo commonenter"> | ||
281 | + <input placeholder="请填联系电话" placeholder-class="commontwo" bindinput="enterphonek" data-index="{{index}}" value="{{item.mobile}}" /> | ||
282 | + </view> | ||
283 | + </view> | ||
284 | + </view> | ||
285 | + | ||
286 | + <picker mode="date" value="{{date}}" start="2020-01-01" bindchange="bindDateChangek" data-index="{{index}}"> | ||
287 | + <view class="picker"> | ||
288 | + <view class="useboxitem flextwo"> | ||
289 | + <view class="itemname commonone">到静海时间(计划)</view> | ||
290 | + <view class="itemright flexone "> | ||
291 | + <view class="commontwo seltype plan"> | ||
292 | + {{item.arrivetime}} | ||
293 | + </view> | ||
294 | + <view class="yourow you"> | ||
295 | + <image src="/img/yourow.png"></image> | ||
296 | + </view> | ||
297 | + </view> | ||
298 | + </view> | ||
299 | + </view> | ||
300 | + </picker> | ||
301 | + <view class="useboxitem flextwo"> | ||
302 | + <view class="itemname commonone">从何地返静</view> | ||
303 | + <picker mode="region" bindchange="bindRegionChangek" value="{{[item.from_province,item.from_city,item.from_region]}}" custom-item="{{customItem}}" data-index="{{index}}"> | ||
304 | + <view class="picker"> | ||
305 | + <view class="itemright flexone"> | ||
306 | + <view class="commontwo seltype"> | ||
307 | + {{item.from_province}} {{item.from_city}} {{item.from_region}} | ||
308 | + </view> | ||
309 | + <view class="yourow you"> | ||
310 | + <image src="/img/yourow.png"></image> | ||
311 | + </view> | ||
312 | + </view> | ||
313 | + </view> | ||
314 | + </picker> | ||
315 | + </view> | ||
316 | + <picker value="{{item.xiangindex||0}}" range="{{xiangarray}}" range-key="name" bindchange="bindxiangChangek" data-index="{{index}}" > | ||
317 | + <view class="picker"> | ||
318 | + <view class="useboxitem flextwo"> | ||
319 | + <view class="itemname commonone">目的地乡镇</view> | ||
320 | + <view class="itemright flexone"> | ||
321 | + <view class="commontwo seltype"> | ||
322 | + {{item.town_p_name}} | ||
323 | + </view> | ||
324 | + <view class="yourow you"> | ||
325 | + <image src="/img/yourow.png"></image> | ||
326 | + </view> | ||
327 | + </view> | ||
328 | + </view> | ||
329 | + </view> | ||
330 | + </picker> | ||
331 | + <view class="useboxitem flextwo" wx:if="{{item.town_p_name=='请选择乡镇'}}" bindtap="panduan" data-index="{{index}}"> | ||
332 | + <view class="itemname commonone">目的地社区</view> | ||
333 | + <view class="itemright flexone"> | ||
334 | + <view class="commontwo seltype"> | ||
335 | + {{item.town_name}} | ||
336 | + </view> | ||
337 | + <view class="yourow you"> | ||
338 | + <image src="/img/yourow.png"></image> | ||
339 | + </view> | ||
340 | + </view> | ||
341 | + </view> | ||
342 | + <view wx:else > | ||
343 | + <picker value="{{item.quindex}}" range="{{item.quarrayk}}" range-key="name" bindchange="bindquChangek" data-index='{{index}}'> | ||
344 | + <view class="picker"> | ||
345 | + <view class="useboxitem flextwo"> | ||
346 | + <view class="itemname commonone">目的地社区</view> | ||
347 | + <view class="itemright flexone"> | ||
348 | + <view class="commontwo seltype"> | ||
349 | + {{item.town_name}} | ||
350 | + </view> | ||
351 | + <view class="yourow you"> | ||
352 | + <image src="/img/yourow.png"></image> | ||
353 | + </view> | ||
354 | + </view> | ||
355 | + </view> | ||
356 | + </view> | ||
357 | + </picker> | ||
358 | + </view> | ||
359 | + <view class="useboxitem flextwo"> | ||
360 | + <view class="itemname commonone">详细地址(具体到门牌号)</view> | ||
361 | + <view class="itemright flexone"> | ||
362 | + <view class="commontwo men"> | ||
363 | + <input placeholder="请填详细地址" placeholder-class="commontwo" bindinput="enterdetailaddk" data-index="{{index}}" value="{{item.add}}" /> | ||
364 | + </view> | ||
365 | + </view> | ||
366 | + </view> | ||
367 | + <view class="useboxitem flextwo"> | ||
368 | + <view class="itemname commonone">是否有相应症状(发热、呕吐)</view> | ||
369 | + <view class="itemright flexone"> | ||
370 | + <view class="selleft flexone"> | ||
371 | + <view class="selleftitem selzuo flexone" bindtap="selsyk" data-index="{{index}}"> | ||
372 | + <view class="sellefitemimg"> | ||
373 | + <image src="/img/sel.png" wx:if="{{item.is_symptom==1}}"></image> | ||
374 | + <image src="/img/nosel.png" wx:else></image> | ||
375 | + </view> | ||
376 | + <view class="selname">是</view> | ||
377 | + </view> | ||
378 | + <view class="selleftitem flexone " bindtap="selsnk" data-index="{{index}}"> | ||
379 | + <view class="sellefitemimg"> | ||
380 | + <image src="/img/sel.png" wx:if="{{item.is_symptom==2}}"></image> | ||
381 | + <image src="/img/nosel.png" wx:else></image> | ||
382 | + </view> | ||
383 | + <view class="selname">否</view> | ||
384 | + </view> | ||
385 | + </view> | ||
386 | + </view> | ||
387 | + </view> | ||
388 | + <view class="useboxitem flextwo"> | ||
389 | + <view class="itemname commonone">1月1日以来到过的城市</view> | ||
390 | + <view class="itemright flexone gicity"> | ||
391 | + <view class="commontwo men"> | ||
392 | + <input placeholder="请填写去过的城市" placeholder-class="commontwo" bindinput="gocityk" data-index="{{index}}" value="{{item.arrivecity}}" /> | ||
393 | + </view> | ||
394 | + </view> | ||
395 | + </view> | ||
396 | + <view class="useboxitem flextwo"> | ||
397 | + <view class="itemname commonone">两周内有无重度疫情区来往接触史</view> | ||
398 | + <view class="itemright flexone"> | ||
399 | + <view class="selleft flexone"> | ||
400 | + <view class="selleftitem selzuo flexone" bindtap="selzyk" data-index="{{index}}"> | ||
401 | + <view class="sellefitemimg"> | ||
402 | + <image src="/img/sel.png" wx:if="{{item.is_epidemic==1}}"></image> | ||
403 | + <image src="/img/nosel.png" wx:else></image> | ||
404 | + </view> | ||
405 | + <view class="selname">是</view> | ||
406 | + </view> | ||
407 | + <view class="selleftitem flexone " bindtap="selznk" data-index="{{index}}"> | ||
408 | + <view class="sellefitemimg"> | ||
409 | + <image src="/img/sel.png" wx:if="{{item.is_epidemic==2}}"></image> | ||
410 | + <image src="/img/nosel.png" wx:else></image> | ||
411 | + </view> | ||
412 | + <view class="selname">否</view> | ||
413 | + </view> | ||
414 | + </view> | ||
415 | + </view> | ||
416 | + </view> | ||
417 | + </view> | ||
418 | + </view> | ||
419 | + <!-- <view class="addbtn" bindtap="addsuiche">添加随车人员信息</view> --> | ||
420 | + <view class="bot"> | ||
421 | + <view class="subtwo" bindtap="{{falsebtn==false?'finish':''}}">完成</view> | ||
422 | + </view> | ||
423 | + </view> | ||
424 | +</view> |
pages/backpeople/backpeople.wxss
0 → 100644
1 | +page { | ||
2 | + background: #f9f9fb; | ||
3 | +} | ||
4 | + | ||
5 | +.backhead { | ||
6 | + width: 750rpx; | ||
7 | + height: 320rpx; | ||
8 | + font-size: 0; | ||
9 | +} | ||
10 | + | ||
11 | +.backbox { | ||
12 | + width: 750rpx; | ||
13 | + height: 860rpx; | ||
14 | + background: linear-gradient(180deg, rgba(28, 143, 255, 1) 0%, rgba(249, 249, 249, 1) 100%); | ||
15 | + opacity: 1; | ||
16 | + position: relative; | ||
17 | +} | ||
18 | + | ||
19 | +.backboxitem { | ||
20 | + width: 100%; | ||
21 | + position: absolute; | ||
22 | + top: 0; | ||
23 | + left: 0; | ||
24 | + display: flex; | ||
25 | + justify-content: center; | ||
26 | + flex-direction: column; | ||
27 | +} | ||
28 | + | ||
29 | +.backtop { | ||
30 | + width: 690rpx; | ||
31 | + background: rgba(255, 255, 255, 1); | ||
32 | + opacity: 1; | ||
33 | + border-radius: 8rpx; | ||
34 | + padding: 0 26rpx; | ||
35 | + box-sizing: border-box; | ||
36 | + margin: 0 auto; | ||
37 | +} | ||
38 | + | ||
39 | +.useboxitem { | ||
40 | + width: 100%; | ||
41 | + padding: 30rpx 0; | ||
42 | + box-sizing: border-box; | ||
43 | + background: #fff; | ||
44 | + border-bottom: 1rpx solid #f5f5f5; | ||
45 | +} | ||
46 | + | ||
47 | +.leftimg { | ||
48 | + width: 48rpx; | ||
49 | + height: 48rpx; | ||
50 | + font-size: 0; | ||
51 | +} | ||
52 | + | ||
53 | +.itemname { | ||
54 | + font-size: 28rpx; | ||
55 | + font-weight: bold; | ||
56 | +} | ||
57 | + | ||
58 | +.ren { | ||
59 | + color: #ef7847; | ||
60 | + font-size: 28rpx; | ||
61 | + margin-right: 26rpx; | ||
62 | +} | ||
63 | + | ||
64 | +.loimg { | ||
65 | + width: 48rpx; | ||
66 | + height: 48rpx; | ||
67 | + font-size: 0; | ||
68 | +} | ||
69 | + | ||
70 | +.lotop { | ||
71 | + display: flex; | ||
72 | + justify-content: flex-end; | ||
73 | + align-items: center; | ||
74 | +} | ||
75 | + | ||
76 | +.seltype { | ||
77 | + width: 400rpx; | ||
78 | + overflow: hidden; | ||
79 | + text-overflow: ellipsis; | ||
80 | + white-space: nowrap; | ||
81 | + text-align: right; | ||
82 | + margin-right: 24rpx; | ||
83 | +} | ||
84 | + | ||
85 | +.plan { | ||
86 | + width: 300rpx; | ||
87 | +} | ||
88 | + | ||
89 | +.commonenter { | ||
90 | + width: 420rpx; | ||
91 | + margin-right: 50rpx; | ||
92 | + text-align: right; | ||
93 | + overflow: hidden; | ||
94 | + text-overflow: ellipsis; | ||
95 | + white-space: nowrap | ||
96 | +} | ||
97 | + | ||
98 | +.commonenter input { | ||
99 | + width: 100%; | ||
100 | + height: 100%; | ||
101 | + text-align: right; | ||
102 | +} | ||
103 | + | ||
104 | +.userbox { | ||
105 | + margin-top: 30rpx; | ||
106 | +} | ||
107 | + | ||
108 | +.selzuo { | ||
109 | + margin-right: 56rpx; | ||
110 | +} | ||
111 | + | ||
112 | +.sellefitemimg { | ||
113 | + width: 24rpx; | ||
114 | + height: 24rpx; | ||
115 | + font-size: 0; | ||
116 | + margin-right: 18rpx; | ||
117 | +} | ||
118 | + | ||
119 | +.gicity { | ||
120 | + width: 300rpx; | ||
121 | +} | ||
122 | + | ||
123 | +.addbtn { | ||
124 | + width: 364rpx; | ||
125 | + height: 88rpx; | ||
126 | + background: #1c8fff; | ||
127 | + border-radius: 44rpx; | ||
128 | + margin: 56rpx auto 0; | ||
129 | + color: #fff; | ||
130 | + font-size: 32rpx; | ||
131 | + text-align: center; | ||
132 | + line-height: 88rpx; | ||
133 | +} | ||
134 | + | ||
135 | +.rangeimg { | ||
136 | + width: 32rpx; | ||
137 | + height: 32rpx; | ||
138 | + font-size: 0; | ||
139 | + margin-right: 8rpx; | ||
140 | +} | ||
141 | + | ||
142 | +.rangename { | ||
143 | + color: #fa3030; | ||
144 | + font-size: 28rpx; | ||
145 | +} | ||
146 | + | ||
147 | +.range { | ||
148 | + padding: 30rpx; | ||
149 | + justify-content: flex-end; | ||
150 | +} | ||
151 | + | ||
152 | +.enterzhong { | ||
153 | + color: #fa3030; | ||
154 | + font-size: 32rpx; | ||
155 | + width: 690rpx; | ||
156 | + margin:0 auto; | ||
157 | + padding: 26rpx 0 0; | ||
158 | + box-sizing: border-box; | ||
159 | +} |
pages/backpeopledetail/backpeopledetail.js
0 → 100644
1 | +// pages/backpeopledetail/backpeopledetail.js | ||
2 | +const app = getApp() | ||
3 | +Page({ | ||
4 | + | ||
5 | + /** | ||
6 | + * 页面的初始数据 | ||
7 | + */ | ||
8 | + data: { | ||
9 | + id: '', | ||
10 | + peopledetail: '', | ||
11 | + uintid: '', | ||
12 | + unitname: '' | ||
13 | + }, | ||
14 | + | ||
15 | + /** | ||
16 | + * 生命周期函数--监听页面加载 | ||
17 | + */ | ||
18 | + onLoad: function(options) { | ||
19 | + this.setData({ | ||
20 | + id: options.id | ||
21 | + }) | ||
22 | + this.getpeopledetail() | ||
23 | + }, | ||
24 | + // 获取工作单位 | ||
25 | + getdanweilist() { | ||
26 | + let that = this; | ||
27 | + var url = '/api/index/unit'; | ||
28 | + var params = { | ||
29 | + | ||
30 | + | ||
31 | + } | ||
32 | + app.post(url, params).then((res) => { | ||
33 | + console.log(res); | ||
34 | + for (var obj of res.unit) { | ||
35 | + if (obj.id == that.data.unitid) { | ||
36 | + that.setData({ | ||
37 | + unitname: obj.name | ||
38 | + }) | ||
39 | + } | ||
40 | + } | ||
41 | + | ||
42 | + | ||
43 | + | ||
44 | + }).catch((err) => { | ||
45 | + | ||
46 | + }) | ||
47 | + }, | ||
48 | + // 获取单位 | ||
49 | + getpeopledetail() { | ||
50 | + let that = this; | ||
51 | + var url = '/api/user/back_people_detail'; | ||
52 | + var params = { | ||
53 | + admin_token: wx.getStorageSync("usertoken"), | ||
54 | + back_id: this.data.id | ||
55 | + } | ||
56 | + app.post(url, params, "post").then((res) => { | ||
57 | + console.log(res); | ||
58 | + | ||
59 | + that.setData({ | ||
60 | + peopledetail: res.back, | ||
61 | + uintid: res.back.unit_id | ||
62 | + }) | ||
63 | + | ||
64 | + that.getdanweilist() | ||
65 | + | ||
66 | + | ||
67 | + | ||
68 | + }).catch((err) => { | ||
69 | + | ||
70 | + }) | ||
71 | + }, | ||
72 | + tongguo() { | ||
73 | + let that = this; | ||
74 | + | ||
75 | + wx.showModal({ | ||
76 | + title: '提示', | ||
77 | + content: '是否通过审核', | ||
78 | + success(res) { | ||
79 | + if (res.confirm) { | ||
80 | + | ||
81 | + let url = '/api/user/back_people_examine', | ||
82 | + params = { | ||
83 | + admin_token: wx.getStorageSync("usertoken"), | ||
84 | + back_id: that.data.id, | ||
85 | + is_company: 1, | ||
86 | + } | ||
87 | + app.post(url, params, "post").then((res) => { | ||
88 | + console.log(res); | ||
89 | + wx.showToast({ | ||
90 | + title: '审核通过', | ||
91 | + icon: 'none' | ||
92 | + }) | ||
93 | + | ||
94 | + setTimeout(function() { | ||
95 | + that.getpeopledetail() | ||
96 | + }, 1500) | ||
97 | + | ||
98 | + | ||
99 | + | ||
100 | + }).catch((err) => { | ||
101 | + | ||
102 | + }) | ||
103 | + | ||
104 | + } else if (res.cancel) { | ||
105 | + console.log('用户点击取消') | ||
106 | + } | ||
107 | + } | ||
108 | + }) | ||
109 | + | ||
110 | + }, | ||
111 | + | ||
112 | + bohui() { | ||
113 | + let that = this; | ||
114 | + | ||
115 | + wx.showModal({ | ||
116 | + title: '提示', | ||
117 | + content: '是否驳回审核', | ||
118 | + success(res) { | ||
119 | + if (res.confirm) { | ||
120 | + let url = '/api/user/back_people_examine', | ||
121 | + params = { | ||
122 | + admin_token: wx.getStorageSync("usertoken"), | ||
123 | + back_id: that.data.id, | ||
124 | + is_company: 2, | ||
125 | + } | ||
126 | + app.post(url, params, "post").then((res) => { | ||
127 | + console.log(res); | ||
128 | + wx.showToast({ | ||
129 | + title: '审核驳回', | ||
130 | + icon: 'none' | ||
131 | + }) | ||
132 | + | ||
133 | + setTimeout(function() { | ||
134 | + that.getpeopledetail() | ||
135 | + }, 1500) | ||
136 | + | ||
137 | + | ||
138 | + }).catch((err) => { | ||
139 | + | ||
140 | + }) | ||
141 | + } else if (res.cancel) { | ||
142 | + console.log('用户点击取消') | ||
143 | + } | ||
144 | + } | ||
145 | + }) | ||
146 | + | ||
147 | + }, | ||
148 | + /** | ||
149 | + * 生命周期函数--监听页面初次渲染完成 | ||
150 | + */ | ||
151 | + onReady: function() { | ||
152 | + | ||
153 | + }, | ||
154 | + | ||
155 | + /** | ||
156 | + * 生命周期函数--监听页面显示 | ||
157 | + */ | ||
158 | + onShow: function() { | ||
159 | + | ||
160 | + }, | ||
161 | + | ||
162 | + /** | ||
163 | + * 生命周期函数--监听页面隐藏 | ||
164 | + */ | ||
165 | + onHide: function() { | ||
166 | + | ||
167 | + }, | ||
168 | + | ||
169 | + /** | ||
170 | + * 生命周期函数--监听页面卸载 | ||
171 | + */ | ||
172 | + onUnload: function() { | ||
173 | + | ||
174 | + }, | ||
175 | + | ||
176 | + /** | ||
177 | + * 页面相关事件处理函数--监听用户下拉动作 | ||
178 | + */ | ||
179 | + onPullDownRefresh: function() { | ||
180 | + | ||
181 | + }, | ||
182 | + | ||
183 | + /** | ||
184 | + * 页面上拉触底事件的处理函数 | ||
185 | + */ | ||
186 | + onReachBottom: function() { | ||
187 | + | ||
188 | + }, | ||
189 | + | ||
190 | + /** | ||
191 | + * 用户点击右上角分享 | ||
192 | + */ | ||
193 | + onShareAppMessage: function() { | ||
194 | + | ||
195 | + } | ||
196 | +}) |
pages/backpeopledetail/backpeopledetail.json
0 → 100644
pages/backpeopledetail/backpeopledetail.wxml
0 → 100644
1 | +<view class="backtop"> | ||
2 | + <view class="useboxitem backitem flextwo"> | ||
3 | + <view class="itemname commonone">出行方式</view> | ||
4 | + | ||
5 | + | ||
6 | + <view class="itemright flexone"> | ||
7 | + <view class="commontwo commonenter"> | ||
8 | + {{peopledetail.travel}} | ||
9 | + </view> | ||
10 | + | ||
11 | + </view> | ||
12 | + | ||
13 | + | ||
14 | + | ||
15 | + </view> | ||
16 | + <view class="useboxitem backitem flextwo"> | ||
17 | + <view class="itemname commonone" wx:if="{{peopledetail.travel=='货车'||peopledetail.travel=='自驾'||peopledetail.travel=='大巴'}}">车牌号</view> | ||
18 | + <view class="itemname commonone" wx:if="{{peopledetail.travel=='火车'}}">车次</view> | ||
19 | + | ||
20 | + <view class="itemname commonone" wx:if="{{peopledetail.travel=='飞机'}}">航班号</view> | ||
21 | + <view class="itemname commonone" wx:if="{{peopledetail.travel=='其他'}}">有效证件</view> | ||
22 | + | ||
23 | + <view class="itemright flexone"> | ||
24 | + <view class="commontwo commonenter"> | ||
25 | + {{peopledetail.number}} | ||
26 | + </view> | ||
27 | + | ||
28 | + </view> | ||
29 | + | ||
30 | + | ||
31 | + | ||
32 | + </view> | ||
33 | + <view class="useboxitem backitem flextwo"> | ||
34 | + <view class="itemname commonone">姓名</view> | ||
35 | + | ||
36 | + | ||
37 | + <view class="itemright flexone"> | ||
38 | + <view class="commontwo commonenter"> | ||
39 | + {{peopledetail.name}} | ||
40 | + </view> | ||
41 | + | ||
42 | + </view> | ||
43 | + | ||
44 | + | ||
45 | + | ||
46 | + </view> | ||
47 | + <view class="useboxitem backitem flextwo"> | ||
48 | + <view class="itemname commonone">身份证号</view> | ||
49 | + | ||
50 | + | ||
51 | + <view class="itemright flexone"> | ||
52 | + <view class="commontwo commonenter"> | ||
53 | + {{peopledetail.identity}} | ||
54 | + </view> | ||
55 | + | ||
56 | + </view> | ||
57 | + | ||
58 | + | ||
59 | + | ||
60 | + </view> | ||
61 | + <view class="useboxitem backitem flextwo"> | ||
62 | + <view class="itemname commonone">工作单位</view> | ||
63 | + <view class="itemright flexone"> | ||
64 | + <view class="commontwo commonenter danweiname"> | ||
65 | + {{peopledetail.unit_id}} | ||
66 | + </view> | ||
67 | + </view> | ||
68 | + | ||
69 | + </view> | ||
70 | + | ||
71 | + | ||
72 | + <view class="useboxitem backitem flextwo"> | ||
73 | + <view class="itemname commonone">联系电话</view> | ||
74 | + | ||
75 | + | ||
76 | + <view class="itemright flexone"> | ||
77 | + <view class="commontwo commonenter"> | ||
78 | + {{peopledetail.mobile}} | ||
79 | + </view> | ||
80 | + | ||
81 | + </view> | ||
82 | + | ||
83 | + | ||
84 | + | ||
85 | + </view> | ||
86 | + | ||
87 | + <view class="useboxitem backitem flextwo"> | ||
88 | + <view class="itemname commonone">到静海时间(计划)</view> | ||
89 | + | ||
90 | + | ||
91 | + <view class="itemright flexone time"> | ||
92 | + <view class="commontwo commonenter"> | ||
93 | + {{peopledetail.arrivetime_text}} | ||
94 | + </view> | ||
95 | + | ||
96 | + </view> | ||
97 | + | ||
98 | + | ||
99 | + | ||
100 | + </view> | ||
101 | + <view class="useboxitem backitem flextwo"> | ||
102 | + <view class="itemname commonone">从何地返静</view> | ||
103 | + | ||
104 | + | ||
105 | + <view class="itemright flexone"> | ||
106 | + <view class="commontwo commonenter"> | ||
107 | + {{peopledetail.from_province}}--{{peopledetail.from_city}}--{{peopledetail.from_region}} | ||
108 | + </view> | ||
109 | + | ||
110 | + </view> | ||
111 | + | ||
112 | + | ||
113 | + | ||
114 | + </view> | ||
115 | + | ||
116 | + <view class="useboxitem backitem flextwo"> | ||
117 | + <view class="itemname commonone">目的地</view> | ||
118 | + | ||
119 | + | ||
120 | + <view class="itemright flexone"> | ||
121 | + <view class="commontwo commonenter"> | ||
122 | + {{peopledetail.town_p_name}}--{{peopledetail.town_name}} | ||
123 | + </view> | ||
124 | + | ||
125 | + </view> | ||
126 | + | ||
127 | + | ||
128 | + | ||
129 | + </view> | ||
130 | + | ||
131 | + <view class="useboxitem backitem flextwo"> | ||
132 | + <view class="itemname commonone">详细地址(具体到门牌号)</view> | ||
133 | + | ||
134 | + <view class="itemright flexone"> | ||
135 | + <view class="commontwo men"> | ||
136 | + {{peopledetail.add}} | ||
137 | + </view> | ||
138 | + | ||
139 | + </view> | ||
140 | + | ||
141 | + | ||
142 | + | ||
143 | + </view> | ||
144 | + | ||
145 | + <view class="useboxitem backitem flextwo"> | ||
146 | + <view class="itemname commonone">是否有相应症状(发热、呕吐)</view> | ||
147 | + | ||
148 | + | ||
149 | + <view class="itemright flexone"> | ||
150 | + <view class="commontwo commonenter" wx:if="{{peopledetail.is_symptom==1}}"> | ||
151 | + 是 | ||
152 | + </view> | ||
153 | + <view class="commontwo commonenter" wx:else> | ||
154 | + 否 | ||
155 | + </view> | ||
156 | + </view> | ||
157 | + | ||
158 | + | ||
159 | + | ||
160 | + </view> | ||
161 | + | ||
162 | + <view class="useboxitem backitem flextwo"> | ||
163 | + <view class="itemname commonone">1月1日以来到过的城市</view> | ||
164 | + | ||
165 | + | ||
166 | + <view class="itemright flexone"> | ||
167 | + <view class="commontwo commonenter"> | ||
168 | + {{peopledetail.arrivecity}} | ||
169 | + </view> | ||
170 | + | ||
171 | + </view> | ||
172 | + | ||
173 | + | ||
174 | + | ||
175 | + </view> | ||
176 | + | ||
177 | + <view class="useboxitem backitem flextwo"> | ||
178 | + <view class="itemname commonone">两周内有无重度疫情区来往接触史</view> | ||
179 | + | ||
180 | + | ||
181 | + <view class="itemright flexone istouch"> | ||
182 | + <view class="commontwo commonenter" wx:if="{{peopledetail.is_epidemic==1}}"> | ||
183 | + 是 | ||
184 | + </view> | ||
185 | + <view class="commontwo commonenter" wx:else> | ||
186 | + 否 | ||
187 | + </view> | ||
188 | + | ||
189 | + </view> | ||
190 | + | ||
191 | + | ||
192 | + | ||
193 | + </view> | ||
194 | + <view class="useboxitem backitem flextwo"> | ||
195 | + <view class="itemname commonone">企业审核确认</view> | ||
196 | + <view class="itemright flexone"> | ||
197 | + <view class="commontwo commonenter"> | ||
198 | + {{peopledetail.is_company}} | ||
199 | + </view> | ||
200 | + </view> | ||
201 | + | ||
202 | + </view> | ||
203 | + | ||
204 | + <view class="footerbox flextwo" wx:if="{{peopledetail.is_company=='审核中'}}"> | ||
205 | + <view class="footerboxitem fotleft" bindtap="tongguo">通过</view> | ||
206 | + <view class="footerboxitem fotright" bindtap="bohui">驳回</view> | ||
207 | + </view> | ||
208 | + | ||
209 | + | ||
210 | +</view> |
pages/backpeopledetail/backpeopledetail.wxss
0 → 100644
1 | +page { | ||
2 | + background: #fbf8fb; | ||
3 | +} | ||
4 | + | ||
5 | +.commonenter { | ||
6 | + margin-right: 0; | ||
7 | + text-align: right; | ||
8 | +} | ||
9 | + | ||
10 | +.danweiname { | ||
11 | + width: 420rpx; | ||
12 | + overflow: hidden; | ||
13 | + text-overflow: ellipsis; | ||
14 | + white-space: nowrap; | ||
15 | +} | ||
16 | + | ||
17 | +.istouch { | ||
18 | + width: 150rpx; | ||
19 | +} | ||
20 | +.fotleft{ | ||
21 | + width:200rpx; | ||
22 | + height:80rpx; | ||
23 | + color:#fff; | ||
24 | + font-size: 28rpx; | ||
25 | + text-align: center; | ||
26 | + line-height: 80rpx; | ||
27 | + border-radius: 40rpx; | ||
28 | + background: #1C8FFF; | ||
29 | +} | ||
30 | +.fotright{ | ||
31 | + width:200rpx; | ||
32 | + height:80rpx; | ||
33 | + color:#fff; | ||
34 | + font-size: 28rpx; | ||
35 | + text-align: center; | ||
36 | + line-height: 80rpx; | ||
37 | + border-radius: 40rpx; | ||
38 | + background: #BDC4CE; | ||
39 | +} | ||
40 | +.footerbox{ | ||
41 | + padding: 32rpx 56rpx; | ||
42 | + box-sizing: border-box; | ||
43 | +} |
pages/backpeoplelist/backpeoplelist.js
0 → 100644
1 | +// pages/backpeoplelist/backpeoplelist.js | ||
2 | +const app=getApp() | ||
3 | +Page({ | ||
4 | + | ||
5 | + /** | ||
6 | + * 页面的初始数据 | ||
7 | + */ | ||
8 | + data: { | ||
9 | + page:1, | ||
10 | + peoplelist:[], | ||
11 | + xiangindex: 0, | ||
12 | + xiangname: '请选择乡镇', | ||
13 | + xiangid: '', | ||
14 | + quname: '请选择社区', | ||
15 | + quid: '', | ||
16 | + quindex: 0, | ||
17 | + xiangarray:[], | ||
18 | + quarray:[], | ||
19 | + }, | ||
20 | + | ||
21 | + /** | ||
22 | + * 生命周期函数--监听页面加载 | ||
23 | + */ | ||
24 | + onLoad: function (options) { | ||
25 | + this.getpeoplelist(); | ||
26 | + | ||
27 | + | ||
28 | + }, | ||
29 | + selectqu(){ | ||
30 | + if(this.data.xiangid==''){ | ||
31 | + wx.showToast({ | ||
32 | + title: '请先选择乡镇', | ||
33 | + icon:'none' | ||
34 | + }) | ||
35 | + } | ||
36 | + }, | ||
37 | + // 获取乡镇 | ||
38 | + // getxiang() { | ||
39 | + // let that = this; | ||
40 | + // var url = '/api/index/town'; | ||
41 | + // var params = { | ||
42 | + // type: 1, | ||
43 | + // pid: '' | ||
44 | + | ||
45 | + // } | ||
46 | + // app.post(url, params).then((res) => { | ||
47 | + // console.log(res); | ||
48 | + // that.setData({ | ||
49 | + // xiangarray: res.town, | ||
50 | + // xiangname: res.town[0].name, | ||
51 | + // xiangid: res.town[0].id | ||
52 | + // }) | ||
53 | + // console.log(this.data.xiangarray) | ||
54 | + // that.getqu() | ||
55 | + | ||
56 | + | ||
57 | + // }).catch((err) => { | ||
58 | + | ||
59 | + // }) | ||
60 | + // }, | ||
61 | + // bindxiangChange: function (e) { | ||
62 | + | ||
63 | + // this.setData({ | ||
64 | + // xiangname: this.data.xiangarray[e.detail.value].name, | ||
65 | + | ||
66 | + // xiangid: this.data.xiangarray[e.detail.value].id, | ||
67 | + // xiangindex: e.detail.value | ||
68 | + | ||
69 | + // }) | ||
70 | + | ||
71 | + // this.getqu() | ||
72 | + | ||
73 | + | ||
74 | + // }, | ||
75 | + | ||
76 | + // getqu() { | ||
77 | + // let that = this; | ||
78 | + // var url = '/api/index/town'; | ||
79 | + // var params = { | ||
80 | + // type: 2, | ||
81 | + // pid: that.data.xiangid | ||
82 | + | ||
83 | + // } | ||
84 | + // app.post(url, params).then((res) => { | ||
85 | + // console.log(res); | ||
86 | + // that.setData({ | ||
87 | + // quarray: res.town, | ||
88 | + // quid:res.town[0].id, | ||
89 | + // quname:res.town[0].name | ||
90 | + | ||
91 | + // }) | ||
92 | + // console.log(this.data.quid) | ||
93 | + | ||
94 | + | ||
95 | + | ||
96 | + // }).catch((err) => { | ||
97 | + | ||
98 | + // }) | ||
99 | + // }, | ||
100 | + // bindquChange: function (e) { | ||
101 | + | ||
102 | + // this.setData({ | ||
103 | + // quname: this.data.quarray[e.detail.value].name, | ||
104 | + | ||
105 | + // quid: this.data.quarray[e.detail.value].id, | ||
106 | + // quindex: e.detail.value | ||
107 | + | ||
108 | + // }) | ||
109 | + | ||
110 | + | ||
111 | + | ||
112 | + | ||
113 | + // }, | ||
114 | + getpeoplelist(){ | ||
115 | + let that = this; | ||
116 | + var url = '/api/user/back_people'; | ||
117 | + var params = { | ||
118 | + town_pid:that.data.xiangid, | ||
119 | + town_id:that.data.quid, | ||
120 | + admin_token: wx.getStorageSync("usertoken"), | ||
121 | + page:this.data.page | ||
122 | + } | ||
123 | + app.post(url, params,"post").then((res) => { | ||
124 | + console.log(res); | ||
125 | + that.setData({ | ||
126 | + peoplelist: that.data.peoplelist.concat(res.back) | ||
127 | + }) | ||
128 | + | ||
129 | + | ||
130 | + | ||
131 | + }).catch((err) => { | ||
132 | + | ||
133 | + }) | ||
134 | + }, | ||
135 | + peopledetail(e){ | ||
136 | + let id=e.currentTarget.dataset.id; | ||
137 | + wx.navigateTo({ | ||
138 | + url: '/pages/backpeopledetail/backpeopledetail?id='+id, | ||
139 | + }) | ||
140 | + }, | ||
141 | + | ||
142 | + search(){ | ||
143 | + this.getpeoplelist() | ||
144 | + }, | ||
145 | + | ||
146 | + /** | ||
147 | + * 生命周期函数--监听页面初次渲染完成 | ||
148 | + */ | ||
149 | + onReady: function () { | ||
150 | + | ||
151 | + }, | ||
152 | + | ||
153 | + /** | ||
154 | + * 生命周期函数--监听页面显示 | ||
155 | + */ | ||
156 | + onShow: function () { | ||
157 | + | ||
158 | + }, | ||
159 | + | ||
160 | + /** | ||
161 | + * 生命周期函数--监听页面隐藏 | ||
162 | + */ | ||
163 | + onHide: function () { | ||
164 | + | ||
165 | + }, | ||
166 | + | ||
167 | + /** | ||
168 | + * 生命周期函数--监听页面卸载 | ||
169 | + */ | ||
170 | + onUnload: function () { | ||
171 | + | ||
172 | + }, | ||
173 | + | ||
174 | + /** | ||
175 | + * 页面相关事件处理函数--监听用户下拉动作 | ||
176 | + */ | ||
177 | + onPullDownRefresh: function () { | ||
178 | + wx.showNavigationBarLoading() //在标题栏中显示加载 | ||
179 | + this.setData({ | ||
180 | + page: 1, | ||
181 | + peoplelist: [] | ||
182 | + }) | ||
183 | + | ||
184 | + this.getpeoplelist() | ||
185 | + //模拟加载 | ||
186 | + | ||
187 | + setTimeout(function () { | ||
188 | + | ||
189 | + // complete | ||
190 | + | ||
191 | + wx.hideNavigationBarLoading() //完成停止加载 | ||
192 | + | ||
193 | + wx.stopPullDownRefresh() //停止下拉刷新 | ||
194 | + | ||
195 | + }, 1000); | ||
196 | + }, | ||
197 | + | ||
198 | + /** | ||
199 | + * 页面上拉触底事件的处理函数 | ||
200 | + */ | ||
201 | + onReachBottom: function () { | ||
202 | + let newpage=this.data.page; | ||
203 | + newpage++; | ||
204 | + this.setData({ | ||
205 | + page:newpage | ||
206 | + }) | ||
207 | + this.getpeoplelist() | ||
208 | + }, | ||
209 | + | ||
210 | + /** | ||
211 | + * 用户点击右上角分享 | ||
212 | + */ | ||
213 | + onShareAppMessage: function () { | ||
214 | + | ||
215 | + } | ||
216 | +}) |
pages/backpeoplelist/backpeoplelist.json
0 → 100644
pages/backpeoplelist/backpeoplelist.wxml
0 → 100644
1 | +<!-- <view class="flextwo range"> | ||
2 | + <view class="flexone"> | ||
3 | + <view class="rangeimg"> | ||
4 | + <image src="/img/address.png"></image> | ||
5 | + </view> | ||
6 | + <view class="flexone"> | ||
7 | + <picker value="{{xiangindex}}" range="{{xiangarray}}" range-key="name" bindchange="bindxiangChange"> | ||
8 | + <view class="picker"> | ||
9 | + <view class="rangename">{{xiangname}}</view> | ||
10 | + </view> | ||
11 | + </picker> | ||
12 | + | ||
13 | + <view class="rangename" wx:if="{{xiangid==''}}" bindtap="selectqu">请选择社区</view> | ||
14 | + <picker value="{{quindex}}" range="{{quarray}}" range-key="name" bindchange="bindquChange" wx:else> | ||
15 | + <view class="picker"> | ||
16 | + <view class="rangename">{{quname}}</view> | ||
17 | + </view> | ||
18 | + </picker> | ||
19 | + </view> | ||
20 | + | ||
21 | + </view> | ||
22 | + | ||
23 | + <view class="sou" bindtap="search">搜索</view> | ||
24 | + | ||
25 | +</view> --> | ||
26 | + | ||
27 | +<view class="nodata" wx:if="{{peoplelist.length==0}}">暂无数据</view> | ||
28 | +<view class="backpeoplebox" wx:else> | ||
29 | + <view class="backtop" wx:for="{{peoplelist}}" wx:key="" bindtap="peopledetail" data-id="{{item.id}}"> | ||
30 | + | ||
31 | + <view class="useboxitem flextwo"> | ||
32 | + <view class="itemname commonone">{{item.name}}</view> | ||
33 | + </view> | ||
34 | + <view class="useboxitem backitem flextwo"> | ||
35 | + <view class="itemname commonone">联系电话</view> | ||
36 | + | ||
37 | + | ||
38 | + <view class="itemright flexone"> | ||
39 | + <view class="commontwo commonenter"> | ||
40 | + {{item.mobile}} | ||
41 | + </view> | ||
42 | + | ||
43 | + </view> | ||
44 | + | ||
45 | + | ||
46 | + | ||
47 | + </view> | ||
48 | + | ||
49 | + <view class="useboxitem backitem flextwo"> | ||
50 | + <view class="itemname commonone">到静海时间(计划)</view> | ||
51 | + | ||
52 | + | ||
53 | + <view class="itemright flexone time"> | ||
54 | + <view class="commontwo commonenter"> | ||
55 | + {{item.arrivetime_text}} | ||
56 | + </view> | ||
57 | + | ||
58 | + </view> | ||
59 | + | ||
60 | + | ||
61 | + | ||
62 | + </view> | ||
63 | + <view class="useboxitem backitem flextwo"> | ||
64 | + <view class="itemname commonone">从何地返静</view> | ||
65 | + | ||
66 | + | ||
67 | + <view class="itemright flexone"> | ||
68 | + <view class="commontwo commonenter"> | ||
69 | + {{item.from_province}}--{{item.from_city}}--{{item.from_region}} | ||
70 | + </view> | ||
71 | + | ||
72 | + </view> | ||
73 | + | ||
74 | + | ||
75 | + | ||
76 | + </view> | ||
77 | + | ||
78 | + <view class="useboxitem backitem flextwo"> | ||
79 | + <view class="itemname commonone">目的地</view> | ||
80 | + | ||
81 | + | ||
82 | + <view class="itemright flexone"> | ||
83 | + <view class="commontwo commonenter"> | ||
84 | + {{item.town_p_name}}--{{item.town_name}} | ||
85 | + </view> | ||
86 | + | ||
87 | + </view> | ||
88 | + | ||
89 | + | ||
90 | + | ||
91 | + </view> | ||
92 | + <view class="useboxitem backitem flextwo"> | ||
93 | + <view class="itemname commonone">详细地址(具体到门牌号)</view> | ||
94 | + <view class="itemright flexone"> | ||
95 | + <view class="commontwo men"> | ||
96 | + {{item.add}} | ||
97 | + </view> | ||
98 | + | ||
99 | + </view> | ||
100 | + | ||
101 | + | ||
102 | + | ||
103 | + </view> | ||
104 | + <view class="useboxitem backitem flextwo"> | ||
105 | + <view class="itemname commonone">企业审核确认</view> | ||
106 | + <view class="itemright flexone"> | ||
107 | + <view class="commontwo men"> | ||
108 | + {{item.is_company}} | ||
109 | + </view> | ||
110 | + | ||
111 | + </view> | ||
112 | + | ||
113 | + | ||
114 | + | ||
115 | + </view> | ||
116 | + | ||
117 | + </view> | ||
118 | + <!-- | ||
119 | + <view class="backtop"> | ||
120 | + | ||
121 | + <view class="useboxitem flextwo"> | ||
122 | + <view class="itemname commonone">王某某</view> | ||
123 | + | ||
124 | + | ||
125 | + | ||
126 | + | ||
127 | + | ||
128 | + | ||
129 | + </view> | ||
130 | + <view class="useboxitem backitem flextwo"> | ||
131 | + <view class="itemname commonone">联系电话</view> | ||
132 | + | ||
133 | + | ||
134 | + <view class="itemright flexone"> | ||
135 | + <view class="commontwo commonenter"> | ||
136 | + 13247219819 | ||
137 | + </view> | ||
138 | + | ||
139 | + </view> | ||
140 | + | ||
141 | + | ||
142 | + | ||
143 | + </view> | ||
144 | + | ||
145 | + <view class="useboxitem backitem flextwo"> | ||
146 | + <view class="itemname commonone">到静海时间(计划)</view> | ||
147 | + | ||
148 | + | ||
149 | + <view class="itemright flexone time"> | ||
150 | + <view class="commontwo commonenter"> | ||
151 | + 2020/1/21/15:00 | ||
152 | + </view> | ||
153 | + | ||
154 | + </view> | ||
155 | + | ||
156 | + | ||
157 | + | ||
158 | + </view> | ||
159 | + <view class="useboxitem backitem flextwo"> | ||
160 | + <view class="itemname commonone">从何地返静</view> | ||
161 | + | ||
162 | + | ||
163 | + <view class="itemright flexone"> | ||
164 | + <view class="commontwo commonenter"> | ||
165 | + 河北沧州 | ||
166 | + </view> | ||
167 | + | ||
168 | + </view> | ||
169 | + | ||
170 | + | ||
171 | + | ||
172 | + </view> | ||
173 | + | ||
174 | + <view class="useboxitem backitem flextwo"> | ||
175 | + <view class="itemname commonone">目的地</view> | ||
176 | + | ||
177 | + | ||
178 | + <view class="itemright flexone"> | ||
179 | + <view class="commontwo commonenter"> | ||
180 | + 天津静海 | ||
181 | + </view> | ||
182 | + | ||
183 | + </view> | ||
184 | + | ||
185 | + | ||
186 | + | ||
187 | + </view> | ||
188 | + | ||
189 | + </view> | ||
190 | + | ||
191 | + <view class="backtop"> | ||
192 | + | ||
193 | + <view class="useboxitem flextwo"> | ||
194 | + <view class="itemname commonone">王某某</view> | ||
195 | + | ||
196 | + | ||
197 | + | ||
198 | + | ||
199 | + | ||
200 | + | ||
201 | + </view> | ||
202 | + <view class="useboxitem backitem flextwo"> | ||
203 | + <view class="itemname commonone">联系电话</view> | ||
204 | + | ||
205 | + | ||
206 | + <view class="itemright flexone"> | ||
207 | + <view class="commontwo commonenter"> | ||
208 | + 13247219819 | ||
209 | + </view> | ||
210 | + | ||
211 | + </view> | ||
212 | + | ||
213 | + | ||
214 | + | ||
215 | + </view> | ||
216 | + | ||
217 | + <view class="useboxitem backitem flextwo"> | ||
218 | + <view class="itemname commonone">到静海时间(计划)</view> | ||
219 | + | ||
220 | + | ||
221 | + <view class="itemright flexone time"> | ||
222 | + <view class="commontwo commonenter"> | ||
223 | + 2020/1/21/15:00 | ||
224 | + </view> | ||
225 | + | ||
226 | + </view> | ||
227 | + | ||
228 | + | ||
229 | + | ||
230 | + </view> | ||
231 | + <view class="useboxitem backitem flextwo"> | ||
232 | + <view class="itemname commonone">从何地返静</view> | ||
233 | + | ||
234 | + | ||
235 | + <view class="itemright flexone"> | ||
236 | + <view class="commontwo commonenter"> | ||
237 | + 河北沧州 | ||
238 | + </view> | ||
239 | + | ||
240 | + </view> | ||
241 | + | ||
242 | + | ||
243 | + | ||
244 | + </view> | ||
245 | + | ||
246 | + <view class="useboxitem backitem flextwo"> | ||
247 | + <view class="itemname commonone">目的地</view> | ||
248 | + | ||
249 | + | ||
250 | + <view class="itemright flexone"> | ||
251 | + <view class="commontwo commonenter"> | ||
252 | + 天津静海 | ||
253 | + </view> | ||
254 | + | ||
255 | + </view> | ||
256 | + | ||
257 | + | ||
258 | + | ||
259 | + </view> | ||
260 | + | ||
261 | + </view> --> | ||
262 | +</view> |
pages/backpeoplelist/backpeoplelist.wxss
0 → 100644
1 | + | ||
2 | +page{ | ||
3 | + background: #FBF8FB | ||
4 | +} | ||
5 | +.rangeimg{ | ||
6 | + width:32rpx; | ||
7 | + height:32rpx; | ||
8 | + font-size: 0; | ||
9 | + margin-right: 8rpx; | ||
10 | +} | ||
11 | +.rangename{ | ||
12 | + color:#06121E; | ||
13 | + font-size:28rpx; | ||
14 | + margin-left:12rpx; | ||
15 | +} | ||
16 | +.range{ | ||
17 | + padding:30rpx; | ||
18 | + background: #fff; | ||
19 | + | ||
20 | +} | ||
21 | +.backtop{ | ||
22 | + width:690rpx; | ||
23 | + margin:20rpx auto 0; | ||
24 | + border-radius:16rpx; | ||
25 | +} | ||
26 | +.commonenter{ | ||
27 | + margin-right:0; | ||
28 | + text-align: right | ||
29 | +} | ||
30 | +.backitem{ | ||
31 | + border-bottom:none | ||
32 | +} | ||
33 | +.time{ | ||
34 | + width:300rpx; | ||
35 | +} | ||
36 | +.backpeoplebox{ | ||
37 | + padding-bottom: 30rpx; | ||
38 | +} | ||
39 | +.sou{ | ||
40 | + color:#232323; | ||
41 | + font-size: 28rpx; | ||
42 | + padding:5rpx 20rpx; | ||
43 | + box-sizing: border-box; | ||
44 | + border:1rpx solid #f5f5f5; | ||
45 | + border-radius: 14rpx; | ||
46 | +} | ||
47 | + | ||
48 | +.nodata{ | ||
49 | + color:#999; | ||
50 | + font-size: 36rpx; | ||
51 | + text-align: center; | ||
52 | + margin-top:36rpx; | ||
53 | + | ||
54 | + | ||
55 | + | ||
56 | +} |
pages/businessoffice/businessoffice.js
0 → 100644
1 | +// pages/businessoffice/businessoffice.js | ||
2 | +Page({ | ||
3 | + | ||
4 | + /** | ||
5 | + * 页面的初始数据 | ||
6 | + */ | ||
7 | + data: { | ||
8 | + navarr:['全部','登记中','登记完成','登记失败'], | ||
9 | + sel:0 | ||
10 | + }, | ||
11 | + | ||
12 | + /** | ||
13 | + * 生命周期函数--监听页面加载 | ||
14 | + */ | ||
15 | + onLoad: function (options) { | ||
16 | + | ||
17 | + }, | ||
18 | + | ||
19 | + selnav(e){ | ||
20 | + this.setData({ | ||
21 | + sel:e.currentTarget.dataset.index | ||
22 | + }) | ||
23 | + }, | ||
24 | + | ||
25 | + /** | ||
26 | + * 生命周期函数--监听页面初次渲染完成 | ||
27 | + */ | ||
28 | + onReady: function () { | ||
29 | + | ||
30 | + }, | ||
31 | + | ||
32 | + /** | ||
33 | + * 生命周期函数--监听页面显示 | ||
34 | + */ | ||
35 | + onShow: function () { | ||
36 | + | ||
37 | + }, | ||
38 | + | ||
39 | + /** | ||
40 | + * 生命周期函数--监听页面隐藏 | ||
41 | + */ | ||
42 | + onHide: function () { | ||
43 | + | ||
44 | + }, | ||
45 | + | ||
46 | + /** | ||
47 | + * 生命周期函数--监听页面卸载 | ||
48 | + */ | ||
49 | + onUnload: function () { | ||
50 | + | ||
51 | + }, | ||
52 | + | ||
53 | + /** | ||
54 | + * 页面相关事件处理函数--监听用户下拉动作 | ||
55 | + */ | ||
56 | + onPullDownRefresh: function () { | ||
57 | + | ||
58 | + }, | ||
59 | + | ||
60 | + /** | ||
61 | + * 页面上拉触底事件的处理函数 | ||
62 | + */ | ||
63 | + onReachBottom: function () { | ||
64 | + | ||
65 | + }, | ||
66 | + | ||
67 | + /** | ||
68 | + * 用户点击右上角分享 | ||
69 | + */ | ||
70 | + onShareAppMessage: function () { | ||
71 | + | ||
72 | + } | ||
73 | +}) |
pages/businessoffice/businessoffice.json
0 → 100644
pages/businessoffice/businessoffice.wxml
0 → 100644
1 | +<view class="nav flexone"> | ||
2 | + <view class="navitem {{sel==index?'navactive':''}}" wx:for="{{navarr}}" data-index="{{index}}" bindtap="selnav">{{item}}</view> | ||
3 | + <!-- <view class="navitem">登记中</view> | ||
4 | + <view class="navitem">登记完成</view> | ||
5 | + <view class="navitem">登记失败</view> --> | ||
6 | +</view> | ||
7 | + | ||
8 | + | ||
9 | +<view class="box"> | ||
10 | + <view class="commonpadding"> | ||
11 | + <view class="statetop flextwo"> | ||
12 | + <view class="bname">隔离上报</view> | ||
13 | + <!-- wx:if="{{item.status==1}}" --> | ||
14 | + <view class="stateing" >处理中</view> | ||
15 | + <view class="statefinish" >处理中</view> | ||
16 | + <view class="statefail" >处理中</view> | ||
17 | + <!-- <view class="statek" wx:else>已处理</view> --> | ||
18 | + </view> | ||
19 | + | ||
20 | + <view class="reason">12月3日营业</view> | ||
21 | + <view class="itembox"> | ||
22 | + <view class="item flexone"> | ||
23 | + <view class="itemleft">联系人:</view> | ||
24 | + <view class="itemright">123</view> | ||
25 | + </view> | ||
26 | + <view class="item flexone"> | ||
27 | + <view class="itemleft">联系电话:</view> | ||
28 | + <view class="itemright">123</view> | ||
29 | + </view> | ||
30 | + <view class="item flex"> | ||
31 | + <view class="itemleft">现住地址:</view> | ||
32 | + <view class="itemright">456 </view> | ||
33 | + </view> | ||
34 | + <view class="itemdate"> | ||
35 | + <view class="datetime">7896</view> | ||
36 | + </view> | ||
37 | + </view> | ||
38 | + | ||
39 | + </view> | ||
40 | + | ||
41 | + | ||
42 | +</view> |
pages/businessoffice/businessoffice.wxss
0 → 100644
1 | +page { | ||
2 | + background: #f9f9f9; | ||
3 | +} | ||
4 | + | ||
5 | +.item { | ||
6 | + padding: 8rpx 0; | ||
7 | + box-sizing: border-box; | ||
8 | +} | ||
9 | + | ||
10 | +.itemleft { | ||
11 | + color: #bdc4ce; | ||
12 | + font-size: 28rpx; | ||
13 | + width: 160rpx; | ||
14 | +} | ||
15 | + | ||
16 | +.itemright { | ||
17 | + width: 547rpx; | ||
18 | + color: #3d444c; | ||
19 | + font-size: 28rpx; | ||
20 | + margin-left: 10rpx; | ||
21 | +} | ||
22 | + | ||
23 | +.bname { | ||
24 | + color: #06121f; | ||
25 | + font-size: 32rpx; | ||
26 | + font-weight: bold; | ||
27 | +} | ||
28 | + | ||
29 | +.reason { | ||
30 | + color: #3d444c; | ||
31 | + font-size: 28rpx; | ||
32 | + margin-top: 24rpx; | ||
33 | +} | ||
34 | + | ||
35 | +.itembox { | ||
36 | + margin-top: 24rpx; | ||
37 | +} | ||
38 | + | ||
39 | +.commonpadding { | ||
40 | + padding: 40rpx 32rpx; | ||
41 | + box-sizing: border-box; | ||
42 | + margin-bottom: 16rpx; | ||
43 | +} | ||
44 | + | ||
45 | +.nodatabox { | ||
46 | + width: 400rpx; | ||
47 | + height: 400rpx; | ||
48 | + display: flex; | ||
49 | + flex-direction: column; | ||
50 | + justify-content: center; | ||
51 | + align-items: center; | ||
52 | + position: absolute; | ||
53 | + top: 50%; | ||
54 | + left: 50%; | ||
55 | + transform: translate(-50%, -50%); | ||
56 | +} | ||
57 | + | ||
58 | +image { | ||
59 | + width: 100%; | ||
60 | + height: 100%; | ||
61 | +} | ||
62 | + | ||
63 | +.noimg { | ||
64 | + width: 258rpx; | ||
65 | + height: 218rpx; | ||
66 | + font-size: 0; | ||
67 | +} | ||
68 | + | ||
69 | +.nodataword { | ||
70 | + color: #8c9198; | ||
71 | + font-size: 28rpx; | ||
72 | + margin-top: 48rpx; | ||
73 | +} | ||
74 | + | ||
75 | +.itemdate { | ||
76 | + display: flex; | ||
77 | + justify-content: flex-end; | ||
78 | + align-items: center; | ||
79 | + color: #bdc4ce; | ||
80 | + font-size: 24rpx; | ||
81 | +} | ||
82 | + | ||
83 | +/* 处理中 */ | ||
84 | + | ||
85 | +.stateing { | ||
86 | + width: 88rpx; | ||
87 | + height: 42rpx; | ||
88 | + background: rgba(255, 242, 238, 1); | ||
89 | + opacity: 1; | ||
90 | + border-radius: 8rpx; | ||
91 | + color: #f95828; | ||
92 | + font-size: 24rpx; | ||
93 | + text-align: center; | ||
94 | + line-height: 42rpx; | ||
95 | + font-weight: bold; | ||
96 | +} | ||
97 | + | ||
98 | +/* 登记完成 */ | ||
99 | + | ||
100 | +.statefinish { | ||
101 | + width: 112rpx; | ||
102 | + height: 42rpx; | ||
103 | + background: rgba(238, 238, 238, 1); | ||
104 | + opacity: 1; | ||
105 | + border-radius: 8rpx; | ||
106 | + color: #8c9198; | ||
107 | + font-size: 24rpx; | ||
108 | + text-align: center; | ||
109 | + line-height: 42rpx; | ||
110 | + font-weight: bold; | ||
111 | +} | ||
112 | + | ||
113 | +.statefail { | ||
114 | + width: 112rpx; | ||
115 | + height: 42rpx; | ||
116 | + background: rgba(255, 238, 238, 1); | ||
117 | + opacity: 1; | ||
118 | + border-radius: 8rpx; | ||
119 | + color: #ff1414; | ||
120 | + font-size: 24rpx; | ||
121 | + text-align: center; | ||
122 | + line-height: 42rpx; | ||
123 | + font-weight: bold; | ||
124 | +} | ||
125 | + | ||
126 | +/* 头部导航 */ | ||
127 | + | ||
128 | +.nav { | ||
129 | + padding: 22rpx 32rpx; | ||
130 | + box-sizing: border-box; | ||
131 | + background: #fff; | ||
132 | + margin-bottom: 16rpx; | ||
133 | + justify-content: space-around; | ||
134 | +} | ||
135 | + | ||
136 | +.navitem { | ||
137 | + color: #8c9198; | ||
138 | + font-size: 32rpx; | ||
139 | + margin-right: 76rpx; | ||
140 | +} | ||
141 | + | ||
142 | +.navitem:last-child { | ||
143 | + margin-right: 0; | ||
144 | +} | ||
145 | + | ||
146 | +.navactive { | ||
147 | + color: #000; | ||
148 | + font-size: 32rpx; | ||
149 | + font-weight: bold; | ||
150 | + position: relative; | ||
151 | +} | ||
152 | + | ||
153 | +.navactive:after { | ||
154 | + display:block; | ||
155 | + content:''; | ||
156 | + width: 32rpx; | ||
157 | + height: 8rpx; | ||
158 | + background: rgba(28, 143, 255, 1); | ||
159 | + opacity: 1; | ||
160 | + position: absolute; | ||
161 | + left:50%; | ||
162 | + bottom:-20rpx; | ||
163 | + transform: translateX(-50%) | ||
164 | +} |
pages/clock/clock.js
0 → 100644
1 | +// pages/clock/clock.js | ||
2 | +const app=getApp() | ||
3 | +Page({ | ||
4 | + /** | ||
5 | + * 页面的初始数据 | ||
6 | + */ | ||
7 | + data: { | ||
8 | + wai:false, | ||
9 | + companyid:'', | ||
10 | + is_first: '', | ||
11 | + day: '', | ||
12 | + status: '', | ||
13 | + token:'', | ||
14 | + qrcode: '', | ||
15 | + address:'', | ||
16 | + first_scan: '', | ||
17 | + this_scan: '', | ||
18 | + // 二维码显示 | ||
19 | + showcode:false, | ||
20 | + codeurl:'' | ||
21 | + }, | ||
22 | + | ||
23 | + /** | ||
24 | + * 生命周期函数--监听页面加载 | ||
25 | + */ | ||
26 | + onLoad: function (options) { | ||
27 | + console.log(options) | ||
28 | + this.setData({ | ||
29 | + companyid: options.scene | ||
30 | + }) | ||
31 | + this.clock() | ||
32 | + }, | ||
33 | + | ||
34 | + // 显示二维码 | ||
35 | + sub(){ | ||
36 | + this.setData({ | ||
37 | + showcode:true | ||
38 | + }) | ||
39 | + }, | ||
40 | + // 隐藏二维码 | ||
41 | + closecode(){ | ||
42 | + this.setData({ | ||
43 | + showcode:false | ||
44 | + }) | ||
45 | + }, | ||
46 | + | ||
47 | + // 保存图片 | ||
48 | + //点击保存到相册 | ||
49 | + baocun: function () { | ||
50 | + console.log(999) | ||
51 | + var that = this | ||
52 | + wx.getSetting({ | ||
53 | + success(res) { | ||
54 | + if (!res.authSetting['scope.writePhotosAlbum']) { | ||
55 | + wx.authorize({ | ||
56 | + scope: 'scope.writePhotosAlbum', | ||
57 | + success() { //这里是用户同意授权后的回调 | ||
58 | + | ||
59 | + | ||
60 | + wx.saveImageToPhotosAlbum({ | ||
61 | + filePath: that.data.codeurl, | ||
62 | + success(res) { | ||
63 | + wx.showModal({ | ||
64 | + content: '图片已保存到相册', | ||
65 | + showCancel: false, | ||
66 | + confirmText: '好的', | ||
67 | + confirmColor: '#333', | ||
68 | + success: function (res) { | ||
69 | + if (res.confirm) { | ||
70 | + console.log('用户点击确定'); | ||
71 | + /* 该隐藏的隐藏 */ | ||
72 | + that.setData({ | ||
73 | + maskHidden: false | ||
74 | + }) | ||
75 | + } | ||
76 | + }, | ||
77 | + fail: function (res) { | ||
78 | + | ||
79 | + } | ||
80 | + }) | ||
81 | + } | ||
82 | + }) | ||
83 | + | ||
84 | + | ||
85 | + | ||
86 | + }, | ||
87 | + fail() { //这里是用户拒绝授权后的回调 | ||
88 | + | ||
89 | + | ||
90 | + // wx.openSetting({ | ||
91 | + // success: function (data) { | ||
92 | + // console.log(data) | ||
93 | + // if (data.authSetting["scope.writePhotosAlbum"] === true) { | ||
94 | + // console.log("是否授权成功") | ||
95 | + // } else { | ||
96 | + // applyApi.toast("授权失败"); | ||
97 | + // } | ||
98 | + // } | ||
99 | + // }) | ||
100 | + wx.showModal({ | ||
101 | + title: '提示', | ||
102 | + content: '您取消授权,无法保存图片,点击确定打开权限', | ||
103 | + success(res) { | ||
104 | + if (res.confirm) { | ||
105 | + console.log('用户点击确定') | ||
106 | + wx.openSetting({ | ||
107 | + success(res) { | ||
108 | + console.log(res.authSetting) | ||
109 | + // res.authSetting = { | ||
110 | + // "scope.userInfo": true, | ||
111 | + // "scope.userLocation": true | ||
112 | + // } | ||
113 | + } | ||
114 | + }) | ||
115 | + } else if (res.cancel) { | ||
116 | + console.log('用户点击取消') | ||
117 | + } | ||
118 | + } | ||
119 | + }) | ||
120 | + | ||
121 | + } | ||
122 | + }) | ||
123 | + } else { //用户已经授权过了 | ||
124 | + | ||
125 | + console.log(that.data.codeurl) | ||
126 | + wx.saveImageToPhotosAlbum({ | ||
127 | + filePath: that.data.codeurl, | ||
128 | + success(res) { | ||
129 | + wx.showModal({ | ||
130 | + content: '图片已保存到相册', | ||
131 | + showCancel: false, | ||
132 | + confirmText: '好的', | ||
133 | + confirmColor: '#333', | ||
134 | + success: function (res) { | ||
135 | + if (res.confirm) { | ||
136 | + console.log('用户点击确定'); | ||
137 | + /* 该隐藏的隐藏 */ | ||
138 | + that.setData({ | ||
139 | + maskHidden: false | ||
140 | + }) | ||
141 | + } | ||
142 | + }, | ||
143 | + fail: function (res) { | ||
144 | + | ||
145 | + } | ||
146 | + }) | ||
147 | + } | ||
148 | + }) | ||
149 | + } | ||
150 | + } | ||
151 | + }) | ||
152 | + | ||
153 | + }, | ||
154 | + | ||
155 | + savefilecode() { | ||
156 | + let that = this; | ||
157 | + console.log(that.data.codeurl) | ||
158 | + wx.downloadFile({ | ||
159 | + url: that.data.codeurl, | ||
160 | + header: {}, | ||
161 | + success: function (res) { | ||
162 | + console.log('下载图片下载图片下载图片', res) | ||
163 | + var tempFilePath = res.tempFilePath | ||
164 | + //console.log('临时文件地址是:' + tempFilePath) | ||
165 | + wx.saveFile({ | ||
166 | + tempFilePath: tempFilePath, | ||
167 | + success: function (res) { | ||
168 | + console.log(res) | ||
169 | + var saveFilePath = res.savedFilePath; | ||
170 | + that.setData({ | ||
171 | + codeurl: res.savedFilePath | ||
172 | + }) | ||
173 | + | ||
174 | + console.log('123456855555555', that.data.qrcode) | ||
175 | + | ||
176 | + }, //可以将saveFilePath写入到页面数据中 | ||
177 | + fail: function (res) { }, | ||
178 | + complete: function (res) { | ||
179 | + console.log('complete后的res数据:') | ||
180 | + }, | ||
181 | + }) //, | ||
182 | + }, | ||
183 | + // fail: function (res) { | ||
184 | + // wx.showModal({ | ||
185 | + // title: '下载失败', | ||
186 | + // content: '请联系管理员', | ||
187 | + // }) | ||
188 | + // }, | ||
189 | + complete: function (res) { }, | ||
190 | + }) | ||
191 | + }, | ||
192 | + | ||
193 | + getuser() { | ||
194 | + let that = this; | ||
195 | + var url = '/api/user/index'; | ||
196 | + var params = { | ||
197 | + | ||
198 | + | ||
199 | + } | ||
200 | + app.post(url, params).then((res) => { | ||
201 | + console.log(res); | ||
202 | + | ||
203 | + that.setData({ | ||
204 | + codeurl: res.user_qrcode, | ||
205 | + | ||
206 | + }) | ||
207 | + | ||
208 | + that.savefilecode() | ||
209 | + | ||
210 | + | ||
211 | + | ||
212 | + | ||
213 | + | ||
214 | + | ||
215 | + | ||
216 | + }).catch((err) => { | ||
217 | + | ||
218 | + }) | ||
219 | + | ||
220 | + }, | ||
221 | + clock(){ | ||
222 | + let that = this; | ||
223 | + var url = '/api/user/check_in'; | ||
224 | + var params = { | ||
225 | + company_id: that.data.companyid, | ||
226 | + | ||
227 | + } | ||
228 | + app.post(url, params,"post").then((res) => { | ||
229 | + console.log(res); | ||
230 | + that.setData({ | ||
231 | + address: res.address, | ||
232 | + is_first: res.is_first, | ||
233 | + day: res.day, | ||
234 | + status:res.status, | ||
235 | + first_scan: res.first_scan, | ||
236 | + this_scan: res.this_scan | ||
237 | + }) | ||
238 | + | ||
239 | + if(res.day<14&&res.status==2){ | ||
240 | + | ||
241 | + wx.setNavigationBarColor({ | ||
242 | + frontColor: '#ffffff', // 必写项 | ||
243 | + backgroundColor: '#D4012D', // 必写项 | ||
244 | + | ||
245 | + }) | ||
246 | + } | ||
247 | + }).catch((err) => { | ||
248 | + | ||
249 | + }) | ||
250 | + }, | ||
251 | + clocklist(){ | ||
252 | + wx.navigateTo({ | ||
253 | + url: '/pages/clocklist/clocklist', | ||
254 | + }) | ||
255 | + }, | ||
256 | + | ||
257 | + dengji() { | ||
258 | + wx.redirectTo({ | ||
259 | + | ||
260 | + | ||
261 | + url: '/pages/backpeople/backpeople?clock=' + 1 + '&scene=' + this.data.companyid, | ||
262 | + }) | ||
263 | + }, | ||
264 | + | ||
265 | + /** | ||
266 | + * 生命周期函数--监听页面初次渲染完成 | ||
267 | + */ | ||
268 | + onReady: function () { | ||
269 | + | ||
270 | + }, | ||
271 | + | ||
272 | + /** | ||
273 | + * 生命周期函数--监听页面显示 | ||
274 | + */ | ||
275 | + onShow: function () { | ||
276 | + let token = wx.getStorageSync("token"); | ||
277 | + this.setData({ | ||
278 | + token:token | ||
279 | + }) | ||
280 | + | ||
281 | + if (token == '') { | ||
282 | + wx.setNavigationBarTitle({ | ||
283 | + title: '等待打卡' | ||
284 | + }) | ||
285 | + | ||
286 | + wx.showToast({ | ||
287 | + title: '请先授权登录', | ||
288 | + icon: "none" | ||
289 | + }) | ||
290 | + | ||
291 | + setTimeout(function () { | ||
292 | + wx.redirectTo({ | ||
293 | + url: '/pages/start/start', | ||
294 | + }) | ||
295 | + }, 1000) | ||
296 | + | ||
297 | + | ||
298 | + | ||
299 | + let url = '/pages/clock/clock?scene='+this.data.companyid; | ||
300 | + wx.setStorageSync("url", url) | ||
301 | + wx.setStorageSync("nologin", true) | ||
302 | + }else { | ||
303 | + let that = this; | ||
304 | + var url = '/api/user/index'; | ||
305 | + var params = { | ||
306 | + } | ||
307 | + app.post(url, params).then((res) => { | ||
308 | + console.log(res); | ||
309 | + that.setData({ | ||
310 | + qrcode: res.qrcode | ||
311 | + }) | ||
312 | + if (res.qrcode==''){ | ||
313 | + wx.setNavigationBarTitle({ | ||
314 | + title: '请登记' | ||
315 | + }) | ||
316 | + }else{ | ||
317 | + wx.setNavigationBarTitle({ | ||
318 | + title: '打卡成功' | ||
319 | + }) | ||
320 | + | ||
321 | + that.getuser() | ||
322 | + } | ||
323 | + | ||
324 | + | ||
325 | + | ||
326 | + | ||
327 | + | ||
328 | + | ||
329 | + }).catch((err) => { | ||
330 | + | ||
331 | + }) | ||
332 | + | ||
333 | + | ||
334 | + } | ||
335 | + }, | ||
336 | + | ||
337 | + /** | ||
338 | + * 生命周期函数--监听页面隐藏 | ||
339 | + */ | ||
340 | + onHide: function () { | ||
341 | + | ||
342 | + }, | ||
343 | + | ||
344 | + /** | ||
345 | + * 生命周期函数--监听页面卸载 | ||
346 | + */ | ||
347 | + onUnload: function () { | ||
348 | + | ||
349 | + }, | ||
350 | + | ||
351 | + /** | ||
352 | + * 页面相关事件处理函数--监听用户下拉动作 | ||
353 | + */ | ||
354 | + onPullDownRefresh: function () { | ||
355 | + | ||
356 | + }, | ||
357 | + | ||
358 | + /** | ||
359 | + * 页面上拉触底事件的处理函数 | ||
360 | + */ | ||
361 | + onReachBottom: function () { | ||
362 | + | ||
363 | + }, | ||
364 | + | ||
365 | + /** | ||
366 | + * 用户点击右上角分享 | ||
367 | + */ | ||
368 | + onShareAppMessage: function () { | ||
369 | + | ||
370 | + } | ||
371 | +}) |
pages/clock/clock.json
0 → 100644
pages/clock/clock.wxml
0 → 100644
1 | +<view class="dengbox" wx:if="{{qrcode==''&&token!=''}}"> | ||
2 | + <view class="writebac"> | ||
3 | + <!-- --> | ||
4 | + <view class="toppic"> | ||
5 | + <image src="/img/write.png"></image> | ||
6 | + </view> | ||
7 | + <view class="writename">请先登记个人信息</view> | ||
8 | + <view class="writebtn" bindtap="dengji">去登记</view> | ||
9 | + </view> | ||
10 | +</view> | ||
11 | + | ||
12 | +<view class="{{day<14&&status==2?'dakapagered':'dakapageblue'}}" wx:else> | ||
13 | + <view class="clockbac"> | ||
14 | + <!-- --> | ||
15 | + <!-- 打卡图标--> | ||
16 | + | ||
17 | + <view class="clockpic" wx:if="{{day<14&&status==2}}"> | ||
18 | + <image src="/img/rediusse.png"></image> | ||
19 | + </view> | ||
20 | + <view class="clockpic" wx:else> | ||
21 | + <image src="/img/clocksuccess.png"></image> | ||
22 | + </view> | ||
23 | + <view class="clocknameone" wx:if="{{token!=''}}">打卡成功</view> | ||
24 | + <view class="clocknameone" wx:else>等待打卡</view> | ||
25 | + | ||
26 | + <view wx:if="{{token!=''&&qrcode!=''}}"> | ||
27 | + | ||
28 | + <view class="clocktext" wx:if="{{is_first==1}}"> | ||
29 | + 您已完成 | ||
30 | + <text class="first">首次</text>打卡 | ||
31 | + | ||
32 | + </view> | ||
33 | + <view class="clocktext" wx:else> | ||
34 | + 您距离首次打卡 | ||
35 | + <text class="first">{{day}}</text>天 | ||
36 | + | ||
37 | + </view> | ||
38 | + </view> | ||
39 | + | ||
40 | + <!-- 打卡时间 --> | ||
41 | + <view class="clocktimebox" wx:if="{{qrcode!=''&&token!=''}}"> | ||
42 | + <view class="clocktimetop flextwo onetop"> | ||
43 | + <view class="clocktimeleft"> | ||
44 | + 首次打卡 | ||
45 | + </view> | ||
46 | + <view class="clocktimeright"> | ||
47 | + <view class="clockname"> | ||
48 | + {{first_scan.company_name}} | ||
49 | + </view> | ||
50 | + <view class="clocktime">{{first_scan.createtime}}</view> | ||
51 | + </view> | ||
52 | + </view> | ||
53 | + <view class="clocktimetop flextwo sectop"> | ||
54 | + <view class="clocktimeleft"> | ||
55 | + 本次打卡 | ||
56 | + </view> | ||
57 | + <view class="clocktimeright"> | ||
58 | + <view class="clockname"> | ||
59 | + {{this_scan.company_name}} | ||
60 | + </view> | ||
61 | + <view class="clocktime">{{this_scan.createtime}}</view> | ||
62 | + </view> | ||
63 | + </view> | ||
64 | + </view> | ||
65 | + | ||
66 | + <!-- 外地还是本地 --> | ||
67 | + | ||
68 | + <view class="waiben" wx:if="{{token!=''&&qrcode!=''}}"> | ||
69 | + <!-- --> | ||
70 | + <view class="wai" wx:if="{{status=='1'}}">{{address}}</view> | ||
71 | + <view class="nei" wx:else>{{address}}</view> | ||
72 | + <view class="writebtn jilubtn redbtn" bindtap="clocklist" wx:if="{{day<14&&status==2}}">打卡记录</view> | ||
73 | + <view class="writebtn jilubtn " bindtap="clocklist" wx:else>打卡记录</view> | ||
74 | + <!-- 页面二维码 --> | ||
75 | + <view class="jiaotop"> | ||
76 | + <view class="botjiao" bindtap="sub"> | ||
77 | + <image src="/img/icon_q.png"></image> | ||
78 | + </view> | ||
79 | + </view> | ||
80 | + </view> | ||
81 | + | ||
82 | + | ||
83 | + | ||
84 | + | ||
85 | + </view> | ||
86 | +</view> | ||
87 | + | ||
88 | + | ||
89 | + | ||
90 | +<!-- 弹层二维码 --> | ||
91 | +<view class="registerk" wx:if="{{showcode}}"> | ||
92 | + <view class="codewrap"> | ||
93 | + <view class="codetop"> | ||
94 | + <image src="/img/codetopimg.png"></image> | ||
95 | + <view class="codename">我的二维码</view> | ||
96 | + </view> | ||
97 | + <view class="codekimg" bindlongpress="baocun"> | ||
98 | + <image src="{{codeurl}}"></image> | ||
99 | + </view> | ||
100 | + <view class="ansave">长按保存二维码</view> | ||
101 | + | ||
102 | + </view> | ||
103 | + <view class="closeimg" bindtap="closecode"> | ||
104 | + <image src="/img/closecode.png"></image> | ||
105 | + </view> | ||
106 | +</view> |
pages/clock/clock.wxss
0 → 100644
1 | +/* page { | ||
2 | + background: #1d8efe; | ||
3 | +} */ | ||
4 | + | ||
5 | +.writebac { | ||
6 | + background: #1d8efe; | ||
7 | +} | ||
8 | + | ||
9 | +.clockbac { | ||
10 | + width: 686rpx; | ||
11 | + height: 1113rpx; | ||
12 | + background: rgba(255, 255, 255, 1); | ||
13 | + opacity: 1; | ||
14 | + border-radius: 8rpx; | ||
15 | + margin: 64rpx auto 0; | ||
16 | + overflow: hidden; | ||
17 | +} | ||
18 | + | ||
19 | +.clockpic { | ||
20 | + width: 220rpx; | ||
21 | + height: 220rpx; | ||
22 | + font-size: 0; | ||
23 | + margin: 62rpx auto 0; | ||
24 | +} | ||
25 | + | ||
26 | +.clocknameone { | ||
27 | + color: #06121e; | ||
28 | + font-size: 40rpx; | ||
29 | + font-weight: bold; | ||
30 | + margin-top: 32rpx; | ||
31 | + text-align: center; | ||
32 | +} | ||
33 | + | ||
34 | +.clocktext { | ||
35 | + margin-top: 50rpx; | ||
36 | + color: #06121e; | ||
37 | + font-size: 32rpx; | ||
38 | + font-weight: bold; | ||
39 | + text-align: center; | ||
40 | +} | ||
41 | + | ||
42 | +/* 打卡时间 */ | ||
43 | + | ||
44 | +.clocktimebox { | ||
45 | + padding: 0 48rpx; | ||
46 | + box-sizing: border-box; | ||
47 | + margin-top: 34rpx; | ||
48 | +} | ||
49 | + | ||
50 | +.clocktimetop { | ||
51 | + padding: 36rpx 0; | ||
52 | + box-sizing: border-box; | ||
53 | +} | ||
54 | + | ||
55 | +.clocktimeleft { | ||
56 | + color: #06121e; | ||
57 | + font-size: 30rpx; | ||
58 | + font-weight: bold; | ||
59 | +} | ||
60 | + | ||
61 | +.clockname { | ||
62 | + width:440rpx; | ||
63 | + overflow: hidden; | ||
64 | + text-overflow: ellipsis; | ||
65 | + white-space: nowrap; | ||
66 | + text-align: right; | ||
67 | + color: #0a1015; | ||
68 | + font-size: 24rpx; | ||
69 | +} | ||
70 | + | ||
71 | +.clocktime { | ||
72 | + width:440rpx; | ||
73 | + overflow: hidden; | ||
74 | + text-overflow: ellipsis; | ||
75 | + white-space: nowrap; | ||
76 | + text-align: right; | ||
77 | + color: #8c9198; | ||
78 | + font-size: 20rpx; | ||
79 | + margin-top: 8rpx; | ||
80 | +} | ||
81 | + | ||
82 | +.sectop { | ||
83 | + margin-top: 32rpx; | ||
84 | + border-bottom: 1rpx solid #f5f5f5; | ||
85 | + padding-top: 0; | ||
86 | +} | ||
87 | +.writebtn{ | ||
88 | + margin-top:60rpx | ||
89 | +} | ||
90 | + | ||
91 | +.onetop { | ||
92 | + border-top: 1rpx solid #f5f5f5; | ||
93 | +} | ||
94 | + | ||
95 | +.first { | ||
96 | + color: #1c8fff; | ||
97 | + font-size: 60rpx; | ||
98 | + font-weight: bold; | ||
99 | + margin: 0 10rpx; | ||
100 | +} | ||
101 | + | ||
102 | +.wai { | ||
103 | + width: 488rpx; | ||
104 | + padding: 0 12rpx; | ||
105 | + box-sizing: border-box; | ||
106 | + overflow: hidden; | ||
107 | + text-overflow: ellipsis; | ||
108 | + white-space: nowrap; | ||
109 | + height: 92rpx; | ||
110 | + background: rgba(230, 243, 255, 1); | ||
111 | + opacity: 1; | ||
112 | + border-radius: 8rpx; | ||
113 | + color: #1c8fff; | ||
114 | + font-size: 32rpx; | ||
115 | + text-align: center; | ||
116 | + line-height: 92rpx; | ||
117 | + margin: 32rpx auto 0; | ||
118 | +} | ||
119 | + | ||
120 | +.nei { | ||
121 | + width: 488rpx; | ||
122 | + overflow: hidden; | ||
123 | + text-overflow: ellipsis; | ||
124 | + white-space: nowrap; | ||
125 | + padding: 0 12rpx; | ||
126 | + box-sizing: border-box; | ||
127 | + height: 92rpx; | ||
128 | + background: rgba(255, 240, 230, 1); | ||
129 | + opacity: 1; | ||
130 | + border-radius: 8rpx; | ||
131 | + color: #fc8749; | ||
132 | + font-size: 32rpx; | ||
133 | + text-align: center; | ||
134 | + line-height: 92rpx; | ||
135 | + margin: 32rpx auto 0; | ||
136 | +} | ||
137 | + | ||
138 | +/* page { | ||
139 | + background: #1d8efe; | ||
140 | +} */ | ||
141 | + | ||
142 | +page { | ||
143 | + height: 100%; | ||
144 | +} | ||
145 | + | ||
146 | +.dengbox { | ||
147 | + width: 100%; | ||
148 | + height: 100%; | ||
149 | + overflow: hidden; | ||
150 | + background: #1d8efe; | ||
151 | +} | ||
152 | + | ||
153 | +.dakapageblue { | ||
154 | + width: 100%; | ||
155 | + height: 100%; | ||
156 | + overflow: hidden; | ||
157 | + background: #1d8efe; | ||
158 | +} | ||
159 | + | ||
160 | +.dakapagered { | ||
161 | + width: 100%; | ||
162 | + height: 100%; | ||
163 | + overflow: hidden; | ||
164 | + background: #d3012e; | ||
165 | +} | ||
166 | + | ||
167 | +.writebac { | ||
168 | + width: 686rpx; | ||
169 | + height: 660rpx; | ||
170 | + background: #fff; | ||
171 | + opacity: 1; | ||
172 | + border-radius: 8rpx; | ||
173 | + margin: 64rpx auto 0; | ||
174 | + overflow: hidden; | ||
175 | +} | ||
176 | + | ||
177 | +.toppic { | ||
178 | + width: 300rpx; | ||
179 | + height: 300rpx; | ||
180 | + font-size: 0; | ||
181 | + margin: 72rpx auto 0; | ||
182 | +} | ||
183 | + | ||
184 | +.writename { | ||
185 | + color: #06121e; | ||
186 | + font-size: 40rpx; | ||
187 | + font-weight: bold; | ||
188 | + margin-top: 32rpx; | ||
189 | + text-align: center; | ||
190 | +} | ||
191 | +.redbtn{ | ||
192 | + background: #D4012D; | ||
193 | + color:#fff; | ||
194 | +} | ||
195 | + | ||
196 | +/*二维码 */ | ||
197 | + | ||
198 | +.jiaotop { | ||
199 | + display: flex; | ||
200 | + justify-content: center; | ||
201 | + align-items: center; | ||
202 | + position: absolute; | ||
203 | + top:10rpx; | ||
204 | + right: 0rpx; | ||
205 | + z-index: 999 | ||
206 | +} | ||
207 | + | ||
208 | +.botjiao { | ||
209 | + width: 80rpx; | ||
210 | + height: 80rpx; | ||
211 | + background: rgba(28, 143, 255, 1); | ||
212 | + border-radius: 50%; | ||
213 | + opacity: 1; | ||
214 | + display: flex; | ||
215 | + align-items: center; | ||
216 | + justify-content: center | ||
217 | +} | ||
218 | + | ||
219 | +.codeimg { | ||
220 | + width: 50rpx; | ||
221 | + height: 50rpx; | ||
222 | + font-size: 0; | ||
223 | +} | ||
224 | +/* 弹层二维码 */ | ||
225 | +.codewrap { | ||
226 | + width: 606rpx; | ||
227 | + height: 696rpx; | ||
228 | + background: rgba(255, 255, 255, 1); | ||
229 | + box-shadow: 0rpx 6rpx 12rpx rgba(0, 0, 0, 0.16); | ||
230 | + opacity: 1; | ||
231 | + border-radius: 24rpx; | ||
232 | + position: absolute; | ||
233 | + top: 50%; | ||
234 | + left: 50%; | ||
235 | + transform: translate(-50%, -50%); | ||
236 | +} | ||
237 | + | ||
238 | +.codetop { | ||
239 | + width: 606rpx; | ||
240 | + height: 186rpx; | ||
241 | + font-size: 0; | ||
242 | + position: relative; | ||
243 | + top: 0; | ||
244 | + left: 0; | ||
245 | +} | ||
246 | + | ||
247 | +.codename { | ||
248 | + color: #fff; | ||
249 | + font-size: 40rpx; | ||
250 | + position: absolute; | ||
251 | + top: 50%; | ||
252 | + left: 50%; | ||
253 | + transform: translate(-50%, -50%); | ||
254 | +} | ||
255 | + | ||
256 | +.closeimg { | ||
257 | + width: 72rpx; | ||
258 | + height: 72rpx; | ||
259 | + font-size: 0; | ||
260 | + position: absolute; | ||
261 | + bottom: 10%; | ||
262 | + left: 50%; | ||
263 | + transform: translateX(-50%); | ||
264 | +} | ||
265 | + | ||
266 | +.ansave { | ||
267 | + color: #06121e; | ||
268 | + font-size: 36rpx; | ||
269 | + font-weight: bold; | ||
270 | + margin-top: 40rpx; | ||
271 | + text-align: center; | ||
272 | +} | ||
273 | + | ||
274 | +.codekimg { | ||
275 | + width: 260rpx; | ||
276 | + height: 260rpx; | ||
277 | + font-size: 0; | ||
278 | + margin: 80rpx auto 0; | ||
279 | +} | ||
280 | +.waiben{ | ||
281 | + position: relative | ||
282 | +} |
-
请 注册 或 登录 后发表评论