Commit 41aaed9e9f9af0ad5011d68fc4122df38a101bc4

Authored by 起风了
2 parents a9c5bb83 e3296b98

Merge branch 'master' of http://39.98.150.180/frontend-uniapp/Civil-Affairs-Bureau-WeChar

manifest.json
1 { 1 {
2 "name" : "数字民政服务平台", 2 "name" : "数字民政服务平台",
3 - "appid" : "__UNI__E8DBEA9", 3 + "appid" : "__UNI__F8D20B4",
4 "description" : "", 4 "description" : "",
5 "versionName" : "1.0.2", 5 "versionName" : "1.0.2",
6 "versionCode" : "100", 6 "versionCode" : "100",
pages/declaration/declarationListdetail.vue
@@ -6,8 +6,8 @@ @@ -6,8 +6,8 @@
6 <view class="message-list"> 6 <view class="message-list">
7 <view class="titleall-box"> 7 <view class="titleall-box">
8 <view class="titleall-left"> 8 <view class="titleall-left">
9 - <view class="titleall-left-line"></view>基本信息  
10 - </view> 9 + <view class="titleall-left-line"></view>基本信息
  10 + </view>
11 </view> 11 </view>
12 <view class="info-box"> 12 <view class="info-box">
13 <view class="info-box-list"> 13 <view class="info-box-list">
pages/receiptRegistration/organization.vue
@@ -71,11 +71,15 @@ @@ -71,11 +71,15 @@
71 </view> 71 </view>
72 <view class="info-box"> 72 <view class="info-box">
73 <view class="info-box-list"> 73 <view class="info-box-list">
74 - <view class="serve">  
75 - <view class="serve-title">其他信息</view> 74 + <view>
  75 + <view class="serve-title" style="font-size: 25rpx;color: #909090;">其他信息</view>
  76 + <textarea v-model="form.reportRecord" placeholder="请输入"
  77 + placeholder-style="color:#3d3d3d;font-weight: bold;font-size: 25rpx;"
  78 + style="margin-top: 20rpx;"></textarea>
76 <view> 79 <view>
77 - <input placeholder-style="color:#3d3d3d;font-weight: bold;font-size: 25rpx;"  
78 - v-model="form.reportRecord" placeholder="请输入" style="text-align: right;" /> 80 +
  81 + <!-- <input placeholder-style="color:#3d3d3d;font-weight: bold;font-size: 25rpx;"
  82 + v-model="form.reportRecord" placeholder="请输入" style="text-align: right;" /> -->
79 </view> 83 </view>
80 </view> 84 </view>
81 </view> 85 </view>
@@ -275,7 +279,8 @@ @@ -275,7 +279,8 @@
275 var minute = now.getMinutes(); //获取当前分钟数(0-59) 279 var minute = now.getMinutes(); //获取当前分钟数(0-59)
276 var second = now.getSeconds(); //获取当前秒数(0-59) 280 var second = now.getSeconds(); //获取当前秒数(0-59)
277 this.form.reportTime = year + "-" + (month < 10 ? "0" + month : month) + "-" + (day < 10 ? "0" + day : 281 this.form.reportTime = year + "-" + (month < 10 ? "0" + month : month) + "-" + (day < 10 ? "0" + day :
278 - day) + " " + (hour < 10 ? "0" + hour : hour) + ":" + (minute < 10 ? "0" + minute : minute) + ":" + ( 282 + day) + " " + (hour < 10 ? "0" + hour : hour) + ":" + (minute < 10 ? "0" + minute : minute) + ":" +
  283 + (
279 second < 10 ? "0" + second : second); 284 second < 10 ? "0" + second : second);
280 }, 285 },
281 register() { 286 register() {
pages/receiptRegistration/receiptRegistration.scss
@@ -123,6 +123,7 @@ @@ -123,6 +123,7 @@
123 .serve-title { 123 .serve-title {
124 font-size: 25rpx; 124 font-size: 25rpx;
125 color: #909090; 125 color: #909090;
  126 + width: 25%;
126 } 127 }
127 .serve-right { 128 .serve-right {
128 font-size: 25rpx; 129 font-size: 25rpx;
pages/receiptRegistration/townShip.vue
@@ -4,16 +4,21 @@ @@ -4,16 +4,21 @@
4 <view class="content"> 4 <view class="content">
5 <view class="top-box" @click="gopath('/pages/receiptRegistration/receiptRegistrationList')"> 5 <view class="top-box" @click="gopath('/pages/receiptRegistration/receiptRegistrationList')">
6 <view>上报历史</view> 6 <view>上报历史</view>
7 - <view class="top-box-img"><image src="../../static/right2.png"></image></view> 7 + <view class="top-box-img">
  8 + <image src="../../static/right2.png"></image>
  9 + </view>
  10 + </view>
  11 + <view class="titleall-left">
  12 + <view class="titleall-left-line"></view>我要上报
8 </view> 13 </view>
9 - <view class="titleall-left"><view class="titleall-left-line"></view>我要上报</view>  
10 <view class="message-list"> 14 <view class="message-list">
11 <view class="info-box"> 15 <view class="info-box">
12 <view class="info-box-list"> 16 <view class="info-box-list">
13 <view class="serve"> 17 <view class="serve">
14 <view class="serve-title">发生地点</view> 18 <view class="serve-title">发生地点</view>
15 <view> 19 <view>
16 - <input placeholder-style="color:#3d3d3d;font-weight: bold;font-size: 25rpx;" v-model="form.incidentLocation" placeholder="请输入" style="text-align: right;"/> 20 + <input placeholder-style="color:#3d3d3d;font-weight: bold;font-size: 25rpx;"
  21 + v-model="form.incidentLocation" placeholder="请输入" style="text-align: right;" />
17 </view> 22 </view>
18 </view> 23 </view>
19 </view> 24 </view>
@@ -23,7 +28,8 @@ @@ -23,7 +28,8 @@
23 <view class="serve"> 28 <view class="serve">
24 <view class="serve-title">儿童姓名</view> 29 <view class="serve-title">儿童姓名</view>
25 <view> 30 <view>
26 - <input placeholder-style="color:#3d3d3d;font-weight: bold;font-size: 25rpx;" v-model="form.childName" placeholder="请输入" style="text-align: right;"/> 31 + <input placeholder-style="color:#3d3d3d;font-weight: bold;font-size: 25rpx;"
  32 + v-model="form.childName" placeholder="请输入" style="text-align: right;" />
27 </view> 33 </view>
28 </view> 34 </view>
29 </view> 35 </view>
@@ -46,7 +52,8 @@ @@ -46,7 +52,8 @@
46 <view class="serve"> 52 <view class="serve">
47 <view class="serve-title">儿童年龄</view> 53 <view class="serve-title">儿童年龄</view>
48 <view> 54 <view>
49 - <input placeholder-style="color:#3d3d3d;font-weight: bold;font-size: 25rpx;" v-model="form.age" placeholder="请输入" style="text-align: right;"/> 55 + <input placeholder-style="color:#3d3d3d;font-weight: bold;font-size: 25rpx;"
  56 + v-model="form.age" placeholder="请输入" style="text-align: right;" />
50 </view> 57 </view>
51 </view> 58 </view>
52 </view> 59 </view>
@@ -56,30 +63,45 @@ @@ -56,30 +63,45 @@
56 <view class="serve"> 63 <view class="serve">
57 <view class="serve-title">报告原因</view> 64 <view class="serve-title">报告原因</view>
58 <view> 65 <view>
59 - <input placeholder-style="color:#3d3d3d;font-weight: bold;font-size: 25rpx;" v-model="form.reportReason" placeholder="请输入" style="text-align: right;"/> 66 + <input placeholder-style="color:#3d3d3d;font-weight: bold;font-size: 25rpx;"
  67 + v-model="form.reportReason" placeholder="请输入" style="text-align: right;" />
60 </view> 68 </view>
61 </view> 69 </view>
62 </view> 70 </view>
63 </view> 71 </view>
64 <view class="info-box"> 72 <view class="info-box">
65 <view class="info-box-list"> 73 <view class="info-box-list">
66 - <view class="serve"> 74 + <view>
  75 + <view class="serve-title" style="font-size: 25rpx;color: #909090;">其他信息</view>
  76 + <textarea v-model="form.reportRecord" placeholder="请输入"
  77 + placeholder-style="color:#3d3d3d;font-weight: bold;font-size: 25rpx;"
  78 + style="margin-top: 20rpx;"></textarea>
  79 + <!-- <view>
  80 + <input placeholder-style="color:#3d3d3d;font-weight: bold;font-size: 25rpx;"
  81 + v-model="form.reportRecord" placeholder="请输入" style="text-align: right;" />
  82 + </view> -->
  83 + </view>
  84 + <!-- <view class="serve">
67 <view class="serve-title">其他信息</view> 85 <view class="serve-title">其他信息</view>
68 <view> 86 <view>
69 - <input placeholder-style="color:#3d3d3d;font-weight: bold;font-size: 25rpx;" v-model="form.reportRecord" placeholder="请输入" style="text-align: right;"/> 87 + <input placeholder-style="color:#3d3d3d;font-weight: bold;font-size: 25rpx;"
  88 + v-model="form.reportRecord" placeholder="请输入" style="text-align: right;" />
70 </view> 89 </view>
71 - </view> 90 + </view> -->
72 </view> 91 </view>
73 </view> 92 </view>
74 </view> 93 </view>
75 - <view class="titleall-left"><view class="titleall-left-line"></view>报告人信息</view> 94 + <view class="titleall-left">
  95 + <view class="titleall-left-line"></view>报告人信息
  96 + </view>
76 <view class="message-list"> 97 <view class="message-list">
77 <view class="info-box"> 98 <view class="info-box">
78 <view class="info-box-list"> 99 <view class="info-box-list">
79 <view class="serve"> 100 <view class="serve">
80 <view class="serve-title">姓名</view> 101 <view class="serve-title">姓名</view>
81 <view> 102 <view>
82 - <input placeholder-style="color:#3d3d3d;font-weight: bold;font-size: 25rpx;" v-model="form.reporterName" placeholder="请输入" style="text-align: right;"/> 103 + <input placeholder-style="color:#3d3d3d;font-weight: bold;font-size: 25rpx;"
  104 + v-model="form.reporterName" placeholder="请输入" style="text-align: right;" />
83 </view> 105 </view>
84 </view> 106 </view>
85 </view> 107 </view>
@@ -89,7 +111,8 @@ @@ -89,7 +111,8 @@
89 <view class="serve"> 111 <view class="serve">
90 <view class="serve-title">与儿童关系</view> 112 <view class="serve-title">与儿童关系</view>
91 <view> 113 <view>
92 - <input placeholder-style="color:#3d3d3d;font-weight: bold;font-size: 25rpx;" v-model="form.relationshipWithChild" placeholder="请输入" style="text-align: right;"/> 114 + <input placeholder-style="color:#3d3d3d;font-weight: bold;font-size: 25rpx;"
  115 + v-model="form.relationshipWithChild" placeholder="请输入" style="text-align: right;" />
93 </view> 116 </view>
94 </view> 117 </view>
95 </view> 118 </view>
@@ -99,7 +122,8 @@ @@ -99,7 +122,8 @@
99 <view class="serve"> 122 <view class="serve">
100 <view class="serve-title">电话</view> 123 <view class="serve-title">电话</view>
101 <view> 124 <view>
102 - <input placeholder-style="color:#3d3d3d;font-weight: bold;font-size: 25rpx;" v-model="form.phone" placeholder="请输入" style="text-align: right;"/> 125 + <input placeholder-style="color:#3d3d3d;font-weight: bold;font-size: 25rpx;"
  126 + v-model="form.phone" placeholder="请输入" style="text-align: right;" />
103 </view> 127 </view>
104 </view> 128 </view>
105 </view> 129 </view>
@@ -122,7 +146,8 @@ @@ -122,7 +146,8 @@
122 <view class="serve"> 146 <view class="serve">
123 <view class="serve-title">职业</view> 147 <view class="serve-title">职业</view>
124 <view> 148 <view>
125 - <input placeholder-style="color:#3d3d3d;font-weight: bold;font-size: 25rpx;" v-model="form.reporterOccupation" placeholder="请输入" style="text-align: right;"/> 149 + <input placeholder-style="color:#3d3d3d;font-weight: bold;font-size: 25rpx;"
  150 + v-model="form.reporterOccupation" placeholder="请输入" style="text-align: right;" />
126 </view> 151 </view>
127 </view> 152 </view>
128 </view> 153 </view>
@@ -132,31 +157,33 @@ @@ -132,31 +157,33 @@
132 <view class="serve"> 157 <view class="serve">
133 <view class="serve-title">单位名称</view> 158 <view class="serve-title">单位名称</view>
134 <view> 159 <view>
135 - <input placeholder-style="color:#3d3d3d;font-weight: bold;font-size: 25rpx;" v-model="form.reporterOrganizationName" placeholder="请输入" style="text-align: right;"/> 160 + <input placeholder-style="color:#3d3d3d;font-weight: bold;font-size: 25rpx;"
  161 + v-model="form.reporterOrganizationName" placeholder="请输入"
  162 + style="text-align: right;" />
136 </view> 163 </view>
137 </view> 164 </view>
138 </view> 165 </view>
139 </view> 166 </view>
140 </view> 167 </view>
141 <view class="page-footer"> 168 <view class="page-footer">
142 - <view class="footer-buy">  
143 - <view class="cart-add" @click="register">  
144 - <image src="../../static/btn5.png"></image>  
145 - <text>立即上报</text>  
146 - </view>  
147 - </view> 169 + <view class="footer-buy">
  170 + <view class="cart-add" @click="register">
  171 + <image src="../../static/btn5.png"></image>
  172 + <text>立即上报</text>
  173 + </view>
  174 + </view>
148 </view> 175 </view>
149 -  
150 - </view> 176 +
151 </view> 177 </view>
152 </view> 178 </view>
  179 + </view>
153 </template> 180 </template>
154 181
155 <script> 182 <script>
156 export default { 183 export default {
157 data() { 184 data() {
158 return { 185 return {
159 - form:{ 186 + form: {
160 reportTime: "", 187 reportTime: "",
161 reportPlatform: "", 188 reportPlatform: "",
162 incidentLocation: "", 189 incidentLocation: "",
@@ -181,10 +208,10 @@ @@ -181,10 +208,10 @@
181 index: 0 208 index: 0
182 }; 209 };
183 }, 210 },
184 - methods:{ 211 + methods: {
185 gopath(e) { 212 gopath(e) {
186 uni.navigateTo({ 213 uni.navigateTo({
187 - url:e 214 + url: e
188 }) 215 })
189 }, 216 },
190 // 选择性别 217 // 选择性别
@@ -207,15 +234,18 @@ @@ -207,15 +234,18 @@
207 var hour = now.getHours(); //获取当前小时数(0-23) 234 var hour = now.getHours(); //获取当前小时数(0-23)
208 var minute = now.getMinutes(); //获取当前分钟数(0-59) 235 var minute = now.getMinutes(); //获取当前分钟数(0-59)
209 var second = now.getSeconds(); //获取当前秒数(0-59) 236 var second = now.getSeconds(); //获取当前秒数(0-59)
210 - this.form.reportTime = year + "-" + (month<10?"0"+month:month) + "-" + (day<10?"0"+day:day) + " " + (hour<10?"0"+hour:hour) + ":" + (minute<10?"0"+minute:minute) + ":" + (second<10?"0"+second:second); 237 + this.form.reportTime = year + "-" + (month < 10 ? "0" + month : month) + "-" + (day < 10 ? "0" + day :
  238 + day) + " " + (hour < 10 ? "0" + hour : hour) + ":" + (minute < 10 ? "0" + minute : minute) + ":" +
  239 + (
  240 + second < 10 ? "0" + second : second);
211 }, 241 },
212 - register(){ 242 + register() {
213 this.getTime(); 243 this.getTime();
214 this.form.filingType = '个人'; 244 this.form.filingType = '个人';
215 this.form.reportType = '强制报告'; 245 this.form.reportType = '强制报告';
216 this.API.addRegistration(this.form).then(res => { 246 this.API.addRegistration(this.form).then(res => {
217 console.log(res) 247 console.log(res)
218 - if (res.code == 200 ) { 248 + if (res.code == 200) {
219 uni.showToast({ 249 uni.showToast({
220 icon: 'success', 250 icon: 'success',
221 title: '上报成功' 251 title: '上报成功'
@@ -227,7 +257,7 @@ @@ -227,7 +257,7 @@
227 }, 800) 257 }, 800)
228 } 258 }
229 }) 259 })
230 - 260 +
231 } 261 }
232 } 262 }
233 } 263 }
@@ -235,4 +265,4 @@ @@ -235,4 +265,4 @@
235 265
236 <style scoped lang="scss"> 266 <style scoped lang="scss">
237 @import 'receiptRegistration.scss'; 267 @import 'receiptRegistration.scss';
238 -</style> 268 -</style>
  269 +</style>
239 \ No newline at end of file 270 \ No newline at end of file