作者 lihongjuan

123

@@ -459,8 +459,9 @@ @@ -459,8 +459,9 @@
459 } 459 }
460 460
461 .dibu { 461 .dibu {
462 - position: absolute;  
463 - bottom: 45rpx; 462 + /* position: absolute;
  463 + bottom: 45rpx; */
  464 + margin-top:40rpx;
464 width: 750rpx; 465 width: 750rpx;
465 display: flex; 466 display: flex;
466 flex-direction: column; 467 flex-direction: column;
@@ -43,7 +43,10 @@ @@ -43,7 +43,10 @@
43 </view> 43 </view>
44 <view class="yiqihead"> 44 <view class="yiqihead">
45 <view class="yiqiheadleft">复核数量</view> 45 <view class="yiqiheadleft">复核数量</view>
46 - <view class="yiqiheadright">{{equipment_log.fuhe}}</view> 46 + <view class="yiqiheadright">
  47 + <input type="number" placeplaceholder="请输入复核数量" v-model="fuhe" placeholder-class="fuheshuliangname" />
  48 + <!-- {{}} -->
  49 + </view>
47 </view> 50 </view>
48 </view> 51 </view>
49 <view class="yewu"> 52 <view class="yewu">
@@ -98,7 +101,7 @@ @@ -98,7 +101,7 @@
98 <view class="imgbox"> 101 <view class="imgbox">
99 102
100 <view v-for="(item,index) in imglist" :key="index" class="imgshang"> 103 <view v-for="(item,index) in imglist" :key="index" class="imgshang">
101 - <view class="upload" > 104 + <view class="upload">
102 <image :src="item" @click="viewimgtu(index)"></image> 105 <image :src="item" @click="viewimgtu(index)"></image>
103 <view class="chahao" @click="del(index)"> 106 <view class="chahao" @click="del(index)">
104 <image src="../../static/img/chahao3.png"></image> 107 <image src="../../static/img/chahao3.png"></image>
@@ -108,31 +111,36 @@ @@ -108,31 +111,36 @@
108 <view class="upload" @click="shoseimg"> 111 <view class="upload" @click="shoseimg">
109 <image src="/static/img/upload.png"></image> 112 <image src="/static/img/upload.png"></image>
110 </view> 113 </view>
111 - 114 +
112 <view class='upload' @click="camera"> 115 <view class='upload' @click="camera">
113 <image src="/static/img/camera.png"></image> 116 <image src="/static/img/camera.png"></image>
114 </view> 117 </view>
115 118
116 </view> 119 </view>
117 </view> 120 </view>
118 - 121 +
119 <view class="photo" v-else> 122 <view class="photo" v-else>
120 <view class="aboutphoto">相关照片</view> 123 <view class="aboutphoto">相关照片</view>
121 - 124 +
122 <view class="imgbox"> 125 <view class="imgbox">
123 - 126 +
124 <view v-for="(item,index) in imglist" :key="index" class="imgshang"> 127 <view v-for="(item,index) in imglist" :key="index" class="imgshang">
125 - <view class="upload" > 128 + <view class="upload">
126 <image :src="item" @click="viewimgtu(index)"></image> 129 <image :src="item" @click="viewimgtu(index)"></image>
127 - 130 +
128 </view> 131 </view>
129 </view> 132 </view>
130 -  
131 - 133 +
  134 +
132 </view> 135 </view>
133 </view> 136 </view>
134 137
135 - <view class="subshuju" @click="edifenxiangor?set_number:''" v-if="edifenxiangor">提交数据</view> 138 + <!-- <view class="subshuju" >提交数据</view> -->
  139 +
  140 + <!-- <view @click="tijiao">提交数据</view> -->
  141 + <!-- <view class="subshuju" @click="edifenxiangor?tijiao:''" v-if="edifenxiangor">提交数据{{edifenxiangor}}</view> -->
  142 + <view class="subshuju" @click="tijiao" v-if="edifenxiangor">提交数据</view>
  143 + <view class="subshuju" v-else>提交数据</view>
136 <!-- <view class="subshuju" v-else>提交数据</view> --> 144 <!-- <view class="subshuju" v-else>提交数据</view> -->
137 <view class="tupianshangchuan" v-if="picshangchuan">图片上传中</view> 145 <view class="tupianshangchuan" v-if="picshangchuan">图片上传中</view>
138 146
@@ -158,20 +166,21 @@ @@ -158,20 +166,21 @@
158 ziduan5: "", 166 ziduan5: "",
159 image: [], 167 image: [],
160 chuanimg: '/static/img/upload.png', 168 chuanimg: '/static/img/upload.png',
161 - imglist:[],  
162 - number:'',  
163 - id:'',  
164 - is_share:0,  
165 - fenxiangor:true,  
166 - edifenxiangor:true,  
167 - picshangchuan:false 169 + imglist: [],
  170 + number: '',
  171 + id: '',
  172 + is_share: 0,
  173 + fenxiangor: true,
  174 + edifenxiangor: true,
  175 + picshangchuan: false,
  176 + fuhe:''
168 } 177 }
169 }, 178 },
170 methods: { 179 methods: {
171 //选择照片 180 //选择照片
172 shoseimg() { 181 shoseimg() {
173 - let baseurl=uni.getStorageSync("baseurl")  
174 - 182 + let baseurl = uni.getStorageSync("baseurl")
  183 +
175 uni.chooseImage({ 184 uni.chooseImage({
176 count: 1, 185 count: 1,
177 sizeType: ['original', 'compressed'], 186 sizeType: ['original', 'compressed'],
@@ -179,18 +188,18 @@ @@ -179,18 +188,18 @@
179 // sourceType: ['camera'],//拍摄照片 188 // sourceType: ['camera'],//拍摄照片
180 // sourceType: '', 189 // sourceType: '',
181 success: (chooseImageRes) => { 190 success: (chooseImageRes) => {
182 - this.picshangchuan=true 191 + this.picshangchuan = true
183 const tempFilePaths = chooseImageRes.tempFilePaths; 192 const tempFilePaths = chooseImageRes.tempFilePaths;
184 - 193 +
185 let images = tempFilePaths[0] 194 let images = tempFilePaths[0]
186 console.log(images) 195 console.log(images)
187 let head = { 196 let head = {
188 'token': uni.getStorageSync('token'), 197 'token': uni.getStorageSync('token'),
189 - 198 +
190 } 199 }
191 - 200 +
192 uni.uploadFile({ 201 uni.uploadFile({
193 - url: baseurl+'/api/person/upload', 202 + url: baseurl + '/api/person/upload',
194 filePath: tempFilePaths[0], 203 filePath: tempFilePaths[0],
195 name: 'images', 204 name: 'images',
196 token: uni.getStorageSync('token'), 205 token: uni.getStorageSync('token'),
@@ -198,10 +207,10 @@ @@ -198,10 +207,10 @@
198 header: head, 207 header: head,
199 // images:images 208 // images:images
200 success: (uploadFileRes) => { 209 success: (uploadFileRes) => {
201 - this.picshangchuan=false  
202 - 210 + this.picshangchuan = false
  211 +
203 let data = JSON.parse(uploadFileRes.data) 212 let data = JSON.parse(uploadFileRes.data)
204 - this.imglist.push(data.data.src) 213 + this.imglist.push(data.data.src)
205 } 214 }
206 }); 215 });
207 }, 216 },
@@ -210,33 +219,33 @@ @@ -210,33 +219,33 @@
210 console.log(err, "失败的回调") 219 console.log(err, "失败的回调")
211 } 220 }
212 }); 221 });
213 -  
214 -  
215 - 222 +
  223 +
  224 +
216 }, 225 },
217 //拍摄照片上传 226 //拍摄照片上传
218 - 227 +
219 camera() { 228 camera() {
220 - let baseurl=uni.getStorageSync("baseurl") 229 + let baseurl = uni.getStorageSync("baseurl")
221 uni.chooseImage({ 230 uni.chooseImage({
222 - count:1, 231 + count: 1,
223 sizeType: ['original', 'compressed'], 232 sizeType: ['original', 'compressed'],
224 //sourceType: ['album'], //从相册选择 233 //sourceType: ['album'], //从相册选择
225 - sourceType: ['camera'],//拍摄照片 234 + sourceType: ['camera'], //拍摄照片
226 // sourceType: '', 235 // sourceType: '',
227 success: (chooseImageRes) => { 236 success: (chooseImageRes) => {
228 - this.picshangchuan=true 237 + this.picshangchuan = true
229 const tempFilePaths = chooseImageRes.tempFilePaths; 238 const tempFilePaths = chooseImageRes.tempFilePaths;
230 - 239 +
231 let images = tempFilePaths[0] 240 let images = tempFilePaths[0]
232 - 241 +
233 let head = { 242 let head = {
234 'token': uni.getStorageSync('token'), 243 'token': uni.getStorageSync('token'),
235 - 244 +
236 } 245 }
237 - 246 +
238 uni.uploadFile({ 247 uni.uploadFile({
239 - url: baseurl+'/api/person/upload', 248 + url: baseurl + '/api/person/upload',
240 filePath: tempFilePaths[0], 249 filePath: tempFilePaths[0],
241 name: 'images', 250 name: 'images',
242 token: uni.getStorageSync('token'), 251 token: uni.getStorageSync('token'),
@@ -244,10 +253,10 @@ @@ -244,10 +253,10 @@
244 header: head, 253 header: head,
245 // images:images 254 // images:images
246 success: (uploadFileRes) => { 255 success: (uploadFileRes) => {
247 - this.picshangchuan=false 256 + this.picshangchuan = false
248 let data = JSON.parse(uploadFileRes.data) 257 let data = JSON.parse(uploadFileRes.data)
249 -  
250 - this.imglist.push(data.data.src) 258 +
  259 + this.imglist.push(data.data.src)
251 } 260 }
252 }); 261 });
253 }, 262 },
@@ -256,71 +265,74 @@ @@ -256,71 +265,74 @@
256 console.log(err, "失败的回调") 265 console.log(err, "失败的回调")
257 } 266 }
258 }); 267 });
259 -  
260 -  
261 - 268 +
  269 +
  270 +
262 }, 271 },
263 //删除图片 272 //删除图片
264 - del(index){  
265 - let newimglist=this.imglist;  
266 - for(var i=0;i<newimglist.length;i++){  
267 - if(i==index){  
268 - newimglist.splice(i,1) 273 + del(index) {
  274 + let newimglist = this.imglist;
  275 + for (var i = 0; i < newimglist.length; i++) {
  276 + if (i == index) {
  277 + newimglist.splice(i, 1)
269 } 278 }
270 - 279 +
271 } 280 }
272 -  
273 - this.imglist=newimglist;  
274 - console.log('9999888',this.imglist) 281 +
  282 + this.imglist = newimglist;
  283 + console.log('9999888', this.imglist)
275 }, 284 },
276 - 285 +
277 // 获取数管剩余时间次数 286 // 获取数管剩余时间次数
278 - 287 +
279 // 获取数板信息详情 288 // 获取数板信息详情
  289 +
  290 +
280 get_shubandetail() { 291 get_shubandetail() {
281 - console.log('666666',this.number) 292 + console.log('666666', this.number)
282 let t = this; 293 let t = this;
283 let url = "api/equipment/getEquipmentDetail"; 294 let url = "api/equipment/getEquipmentDetail";
284 let param = { 295 let param = {
285 number: this.number, 296 number: this.number,
286 equipment_log_id: t.id, 297 equipment_log_id: t.id,
287 - is_share:t.is_share  
288 - 298 + is_share: t.is_share
  299 +
289 }; 300 };
290 app.post(url, param, 'post').then(r => { 301 app.post(url, param, 'post').then(r => {
291 - 302 +
292 t.equipment_log = r.equipment_log; 303 t.equipment_log = r.equipment_log;
293 - t.biaoshi=r.equipment_log.biaoshi;  
294 - t.description=r.equipment_log.description;  
295 - t.ziduan1=r.equipment_log.ziduan1;  
296 - t.ziduan2=r.equipment_log.ziduan2;  
297 - t.ziduan3=r.equipment_log.ziduan3;  
298 - t.ziduan4=r.equipment_log.ziduan4;  
299 - t.ziduan5=r.equipment_log.ziduan5;  
300 - t.imglist=r.equipment_log.images  
301 -  
302 - 304 + t.fuhe=r.equipment_log.fuhe
  305 + t.biaoshi = r.equipment_log.biaoshi;
  306 + t.description = r.equipment_log.description;
  307 + t.ziduan1 = r.equipment_log.ziduan1;
  308 + t.ziduan2 = r.equipment_log.ziduan2;
  309 + t.ziduan3 = r.equipment_log.ziduan3;
  310 + t.ziduan4 = r.equipment_log.ziduan4;
  311 + t.ziduan5 = r.equipment_log.ziduan5;
  312 + t.imglist = r.equipment_log.images
  313 +
  314 +
303 }).catch(err => { 315 }).catch(err => {
304 console.log(err) 316 console.log(err)
305 }) 317 })
306 }, 318 },
307 // 提交数据 319 // 提交数据
308 - set_number() { 320 + tijiao() {
309 console.log(123) 321 console.log(123)
310 let t = this; 322 let t = this;
311 -  
312 - if (this.imglist.length == 0) {  
313 - uni.showToast({  
314 - title: '请上传相关图片',  
315 - icon: 'none'  
316 - })  
317 - return false  
318 - } 323 +
  324 + // if (this.imglist.length == 0) {
  325 + // uni.showToast({
  326 + // title: '请上传相关图片',
  327 + // icon: 'none'
  328 + // })
  329 + // return false
  330 + // }
319 let url = "api/equipment/setEquipmentLog"; 331 let url = "api/equipment/setEquipmentLog";
320 let param = { 332 let param = {
321 number: t.equipment_log.number, 333 number: t.equipment_log.number,
322 equipment_log_id: t.equipment_log.id, 334 equipment_log_id: t.equipment_log.id,
323 - fuhe: t.equipment_log.fuhe, 335 + fuhe: t.fuhe,
324 biaoshi: t.biaoshi, 336 biaoshi: t.biaoshi,
325 description: t.description, 337 description: t.description,
326 ziduan1: t.ziduan1, 338 ziduan1: t.ziduan1,
@@ -333,18 +345,22 @@ @@ -333,18 +345,22 @@
333 app.post(url, param, 'post').then(r => { 345 app.post(url, param, 'post').then(r => {
334 console.log(r) 346 console.log(r)
335 uni.showToast({ 347 uni.showToast({
336 - title:'编辑成功',  
337 - icon:'none' 348 + title: '编辑成功',
  349 + icon: 'none'
338 }) 350 })
339 - t.edifenxiangor=false 351 + t.edifenxiangor = false
340 }).catch(err => { 352 }).catch(err => {
341 console.log(err) 353 console.log(err)
  354 + uni.showToast({
  355 + title: err.msg,
  356 + icon: 'none'
  357 + });
342 }) 358 })
343 }, 359 },
344 //图片预览 360 //图片预览
345 viewimgtu(index) { 361 viewimgtu(index) {
346 - console.log('999000',index)  
347 - 362 + console.log('999000', index)
  363 +
348 uni.previewImage({ 364 uni.previewImage({
349 current: this.imglist[index], 365 current: this.imglist[index],
350 urls: this.imglist, 366 urls: this.imglist,
@@ -356,28 +372,28 @@ @@ -356,28 +372,28 @@
356 372
357 }, 373 },
358 onLoad(options) { 374 onLoad(options) {
359 -  
360 -  
361 - console.log('777777',options)  
362 - this.number=options.number;  
363 - this.id=options.id;  
364 - if(options.type==1){  
365 - this.is_share=1;  
366 - this.fenxiangor=false;  
367 - this.edifenxiangor=false  
368 - }else{  
369 - this.is_share=0;  
370 - this.fenxiangor=true;  
371 - this.edifenxiangor=true 375 +
  376 +
  377 + console.log('777777', options)
  378 + this.number = options.number;
  379 + this.id = options.id;
  380 + if (options.type == 1) {
  381 + this.is_share = 1;
  382 + this.fenxiangor = false;
  383 + this.edifenxiangor = false
  384 + } else {
  385 + this.is_share = 0;
  386 + this.fenxiangor = true;
  387 + this.edifenxiangor = true
372 } 388 }
373 - 389 +
374 this.get_shubandetail() 390 this.get_shubandetail()
375 }, 391 },
376 -  
377 - 392 +
  393 +
378 onShow() { 394 onShow() {
379 -  
380 - 395 +
  396 +
381 }, 397 },
382 onShareAppMessage: function(res) { 398 onShareAppMessage: function(res) {
383 if (res.from === 'button') { 399 if (res.from === 'button') {
@@ -385,22 +401,24 @@ @@ -385,22 +401,24 @@
385 } 401 }
386 return { 402 return {
387 title: "智能点数小程序", 403 title: "智能点数小程序",
388 - path: 'pages/shubandetail/shubandetail?share=' + 'true'+'&type='+1+'&number='+this.number+'&id='+this.id 404 + path: 'pages/shubandetail/shubandetail?share=' + 'true' + '&type=' + 1 + '&number=' + this.number + '&id=' + this.id
389 } 405 }
390 }, 406 },
391 } 407 }
392 </script> 408 </script>
393 409
394 <style> 410 <style>
395 - .imgbox{  
396 - display:flex; 411 + .imgbox {
  412 + display: flex;
397 align-items: center; 413 align-items: center;
398 flex-wrap: wrap; 414 flex-wrap: wrap;
399 } 415 }
400 - .imgshang{  
401 - display:flex; 416 +
  417 + .imgshang {
  418 + display: flex;
402 align-items: center; 419 align-items: center;
403 } 420 }
  421 +
404 .infotou { 422 .infotou {
405 background: #fff; 423 background: #fff;
406 padding: 34rpx 32rpx; 424 padding: 34rpx 32rpx;
@@ -500,6 +518,15 @@ @@ -500,6 +518,15 @@
500 color: #7F8389; 518 color: #7F8389;
501 font-size: 28rpx; 519 font-size: 28rpx;
502 } 520 }
  521 + .yiqiheadright input{
  522 + text-align: right;
  523 + }
  524 +
  525 + .fuheshuliangname {
  526 + color: #7F8389;
  527 + font-size: 28rpx;
  528 +
  529 + }
503 530
504 .yewu { 531 .yewu {
505 background: #FFFFFF; 532 background: #FFFFFF;
@@ -543,15 +570,16 @@ @@ -543,15 +570,16 @@
543 height: 160rpx; 570 height: 160rpx;
544 font-size: 0; 571 font-size: 0;
545 margin-top: 30rpx; 572 margin-top: 30rpx;
546 - margin-left:14rpx; 573 + margin-left: 14rpx;
547 position: relative; 574 position: relative;
548 } 575 }
549 - .chahao{  
550 - width:40rpx;  
551 - height:40rpx;  
552 - position:absolute;  
553 - top:-10rpx;  
554 - right:-10rpx; 576 +
  577 + .chahao {
  578 + width: 40rpx;
  579 + height: 40rpx;
  580 + position: absolute;
  581 + top: -10rpx;
  582 + right: -10rpx;
555 } 583 }
556 584
557 .subshuju { 585 .subshuju {
@@ -567,19 +595,20 @@ @@ -567,19 +595,20 @@
567 line-height: 100rpx; 595 line-height: 100rpx;
568 margin: 42rpx auto; 596 margin: 42rpx auto;
569 } 597 }
570 - .tupianshangchuan{  
571 - width:200rpx;  
572 - height:50rpx; 598 +
  599 + .tupianshangchuan {
  600 + width: 200rpx;
  601 + height: 50rpx;
573 background: #3E3A39; 602 background: #3E3A39;
574 - color:#fff; 603 + color: #fff;
575 font-size: 24rpx; 604 font-size: 24rpx;
576 text-align: center; 605 text-align: center;
577 line-height: 50rpx; 606 line-height: 50rpx;
578 opacity: 0.5; 607 opacity: 0.5;
579 position: absolute; 608 position: absolute;
580 border-radius: 20rpx; 609 border-radius: 20rpx;
581 - top:45%;  
582 - left:50%;  
583 - transform: translate(-50%,-50%) 610 + top: 45%;
  611 + left: 50%;
  612 + transform: translate(-50%, -50%)
584 } 613 }
585 </style> 614 </style>
@@ -36,9 +36,9 @@ @@ -36,9 +36,9 @@
36 </view> 36 </view>
37 <view class="remaintime"> 37 <view class="remaintime">
38 <view class="remainleft">剩余可用时间:{{shengyu_time}}</view> 38 <view class="remainleft">剩余可用时间:{{shengyu_time}}</view>
39 - <view class="remainright"> 39 + <!-- <view class="remainright">
40 <image src="/static/img/row.png"></image> 40 <image src="/static/img/row.png"></image>
41 - </view> 41 + </view> -->
42 </view> 42 </view>
43 <view class="shubanbox"> 43 <view class="shubanbox">
44 <view class="shubanhead"> 44 <view class="shubanhead">
@@ -131,7 +131,7 @@ @@ -131,7 +131,7 @@
131 131
132 this.picshangchuan=true; 132 this.picshangchuan=true;
133 this.qudingshow = false; 133 this.qudingshow = false;
134 - console.log('888777666555',this.qudingshow) 134 +
135 135
136 136
137 // uni.showToast({ 137 // uni.showToast({
@@ -159,7 +159,7 @@ @@ -159,7 +159,7 @@
159 success: (uploadFileRes) => { 159 success: (uploadFileRes) => {
160 this.picshangchuan=false; 160 this.picshangchuan=false;
161 this.qudingshow = true; 161 this.qudingshow = true;
162 - console.log('888777666555',this.qudingshow) 162 +
163 163
164 // uni.hideLoading(); 164 // uni.hideLoading();
165 165
@@ -323,7 +323,7 @@ @@ -323,7 +323,7 @@
323 this.hours = hrStr; 323 this.hours = hrStr;
324 this.minutes = minStr; 324 this.minutes = minStr;
325 this.seconds = secStr; 325 this.seconds = secStr;
326 - console.log(this.days) 326 +
327 327
328 328
329 totalSecond--; 329 totalSecond--;
@@ -395,7 +395,8 @@ @@ -395,7 +395,8 @@
395 }, 395 },
396 onShow() { 396 onShow() {
397 console.log(777) 397 console.log(777)
398 - this.qudingshow = true 398 + this.qudingshow = true;
  399 +
399 }, 400 },
400 mounted() { 401 mounted() {
401 console.log(77766555) 402 console.log(77766555)
@@ -319,9 +319,9 @@ @@ -319,9 +319,9 @@
319 </view> 319 </view>
320 </view> 320 </view>
321 <view class="yewuxinxiitem"> 321 <view class="yewuxinxiitem">
322 - <view class="yewuxinleft">钥</view> 322 + <view class="yewuxinleft">钥</view>
323 <view class="yewuinput"> 323 <view class="yewuinput">
324 - <input type="text" placeholder="请输入钥" placeholder-class="enteryewu" v-model="mSign" /> 324 + <input type="text" placeholder="请输入钥" placeholder-class="enteryewu" v-model="mSign" />
325 </view> 325 </view>
326 </view> 326 </view>
327 <view class="yewubottom"> 327 <view class="yewubottom">
@@ -381,7 +381,8 @@ @@ -381,7 +381,8 @@
381 fengxiangshare: true, 381 fengxiangshare: true,
382 is_share: 0, 382 is_share: 0,
383 fileimg: [], 383 fileimg: [],
384 - quedingmi:true 384 + quedingmi:true,
  385 +
385 } 386 }
386 }, 387 },
387 methods: { 388 methods: {
@@ -450,6 +451,19 @@ @@ -450,6 +451,19 @@
450 t.ziduan5=r.info.ziduan5 451 t.ziduan5=r.info.ziduan5
451 t.fileimg[0] = r.info.files 452 t.fileimg[0] = r.info.files
452 t.images = r.images; 453 t.images = r.images;
  454 + console.log('999999',r.printer.machine_code)
  455 +
  456 + if(r.printer.machine_code!=null){
  457 + t.machineCode=r.printer.machine_code
  458 + }
  459 +
  460 + console.log('909086',t.machineCode)
  461 +
  462 + if(r.printer.m_sign!=null){
  463 + t.mSign=r.printer.m_sign
  464 + }
  465 +
  466 + console.log('808096',t.mSign)
453 // 管径列表 467 // 管径列表
454 t.log_list = r.log_list; 468 t.log_list = r.log_list;
455 t.count = r.count 469 t.count = r.count
@@ -480,7 +494,10 @@ @@ -480,7 +494,10 @@
480 var sec = second - day * 3600 * 24 - hr * 3600 - min * 60; 494 var sec = second - day * 3600 * 24 - hr * 3600 - min * 60;
481 var secStr = sec.toString(); 495 var secStr = sec.toString();
482 if (secStr.length == 1) secStr = secStr; 496 if (secStr.length == 1) secStr = secStr;
483 - this.shengyu_time = dayStr + '天' + hrStr + '小时' + minStr + "分钟" 497 + this.shengyu_time = dayStr + '天' + hrStr + '小时' + minStr + "分钟";
  498 +
  499 +
  500 +
484 }, 501 },
485 // 更新数管数据 502 // 更新数管数据
486 get_update() { 503 get_update() {
@@ -698,8 +715,6 @@ @@ -698,8 +715,6 @@
698 display: flex; 715 display: flex;
699 align-items: center; 716 align-items: center;
700 justify-content: space-between; 717 justify-content: space-between;
701 -  
702 -  
703 } 718 }
704 719
705 image { 720 image {
@@ -60,6 +60,7 @@ @@ -60,6 +60,7 @@
60 <image src="/static/img/suo.png"></image> 60 <image src="/static/img/suo.png"></image>
61 <view class="keshijian">剩余可用时间:{{guanshowshengyuqixian}}</view> 61 <view class="keshijian">剩余可用时间:{{guanshowshengyuqixian}}</view>
62 <view class="remaincishu">剩余使用次数:{{shenyu.times}}</view> 62 <view class="remaincishu">剩余使用次数:{{shenyu.times}}</view>
  63 + <view class='newuser'>新用户赠送100次</view>
63 </view> 64 </view>
64 65
65 <view class="shubanlist"> 66 <view class="shubanlist">
@@ -111,7 +112,9 @@ @@ -111,7 +112,9 @@
111 guanshowshengyuqixian:0, 112 guanshowshengyuqixian:0,
112 numbername:'', 113 numbername:'',
113 saoshuban_number:'扫码获取', 114 saoshuban_number:'扫码获取',
114 - entershuban_number:'' 115 + entershuban_number:'',
  116 + clcikcshuban:'',
  117 + clickshuguan:''
115 } 118 }
116 }, 119 },
117 methods: { 120 methods: {
@@ -121,11 +124,14 @@ @@ -121,11 +124,14 @@
121 this.currentTab = id; 124 this.currentTab = id;
122 if (id == 1) { 125 if (id == 1) {
123 this.banpage = 1; 126 this.banpage = 1;
124 - this.shubanlist = [] 127 + this.shubanlist = [];
  128 + this.clcikcshuban=1
125 this.shubantaocanlist(); 129 this.shubantaocanlist();
126 this.get_bianhao(); 130 this.get_bianhao();
  131 +
127 } else { 132 } else {
128 this.guanpage = 1; 133 this.guanpage = 1;
  134 + this.clickshuguan=1;
129 this.shuguanlist = []; 135 this.shuguanlist = [];
130 this.getshuguanlist(); 136 this.getshuguanlist();
131 this.get_shenyu() 137 this.get_shenyu()
@@ -309,16 +315,24 @@ @@ -309,16 +315,24 @@
309 }, 315 },
310 //数板套餐列表 316 //数板套餐列表
311 shubantaocanlist() { 317 shubantaocanlist() {
312 - console.log('111000999') 318 +
  319 + console.log('88888',this.clcikcshuban)
  320 +
313 let param = { 321 let param = {
314 page: this.banpage 322 page: this.banpage
315 } 323 }
316 app.post("api/wxpay/getPlateMealList", param, 'get') 324 app.post("api/wxpay/getPlateMealList", param, 'get')
317 .then(res => { 325 .then(res => {
318 - console.log('999000999')  
319 -  
320 - console.log(res);  
321 - this.shubanlist = this.shubanlist.concat(res) 326 +
  327 +
  328 + if(this.clcikcshuban==1){
  329 + // console.log('这是数板数据')
  330 + this.shubanlist=res
  331 + }else{
  332 + // console.log('这是拼接数板数据')
  333 + this.shubanlist = this.shubanlist.concat(res)
  334 + }
  335 +
322 }) 336 })
323 .catch(err => { 337 .catch(err => {
324 console.log(err) 338 console.log(err)
@@ -326,19 +340,45 @@ @@ -326,19 +340,45 @@
326 }, 340 },
327 //数管套餐购买列表 341 //数管套餐购买列表
328 getshuguanlist() { 342 getshuguanlist() {
  343 + console.log('99999',this.clickshuguan)
  344 +
  345 + // uni.showLoading({
  346 + // title:'数据加载中',
  347 + // mask:true
  348 + //
  349 + // })
329 let param = { 350 let param = {
330 page: this.guanpage 351 page: this.guanpage
331 } 352 }
332 app.post("api/wxpay/getTubeMealList", param, 'get') 353 app.post("api/wxpay/getTubeMealList", param, 'get')
333 .then(res => { 354 .then(res => {
334 console.log(res); 355 console.log(res);
335 - this.shuguanlist = this.shuguanlist.concat(res);  
336 - console.log('898989',this.shuguanlist) 356 + if(this.clickshuguan==1){
  357 + // console.log('这是数管数据')
  358 + this.shuguanlist=res
  359 + }else{
  360 + // console.log('这是拼接数管数据',this.clickshuguan)
  361 + this.shuguanlist = this.shuguanlist.concat(res);
  362 + }
  363 +
  364 +
  365 +
  366 +
  367 + // uni.hideLoading()
  368 + // console.log('898989',this.shuguanlist)
337 369
338 370
339 }) 371 })
340 - .catch(err => {}); 372 + .catch(err => {
  373 + // uni.hideLoading()
  374 +
  375 + });
341 }, 376 },
  377 +
  378 +
  379 +
  380 +
  381 +
342 // 判断数板仪编号是否有效 382 // 判断数板仪编号是否有效
343 //数板订单 383 //数板订单
344 ordershuban(e) { 384 ordershuban(e) {
@@ -649,6 +689,9 @@ @@ -649,6 +689,9 @@
649 }, 689 },
650 // 触底事件 690 // 触底事件
651 onReachBottom() { 691 onReachBottom() {
  692 + this.clcikcshuban='';
  693 + this.clickshuguan=''
  694 +
652 let nebanpage = this.banpage; 695 let nebanpage = this.banpage;
653 nebanpage++; 696 nebanpage++;
654 this.banpage = nebanpage 697 this.banpage = nebanpage
@@ -882,7 +925,7 @@ @@ -882,7 +925,7 @@
882 925
883 .keshijian { 926 .keshijian {
884 position: absolute; 927 position: absolute;
885 - top: 44rpx; 928 + top: 20rpx;
886 left: 34rpx; 929 left: 34rpx;
887 color: #FFFFFF; 930 color: #FFFFFF;
888 font-size: 28rpx; 931 font-size: 28rpx;
@@ -891,12 +934,20 @@ @@ -891,12 +934,20 @@
891 934
892 .remaincishu { 935 .remaincishu {
893 position: absolute; 936 position: absolute;
894 - top: 120rpx; 937 + top: 77rpx;
895 left: 34rpx; 938 left: 34rpx;
896 color: #FFFFFF; 939 color: #FFFFFF;
897 font-size: 28rpx; 940 font-size: 28rpx;
898 941
899 } 942 }
  943 + .newuser{
  944 + position: absolute;
  945 + bottom:20rpx;
  946 + left: 34rpx;
  947 + color: #FFFFFF;
  948 + font-size: 28rpx;
  949 +
  950 + }
900 .haomatext{ 951 .haomatext{
901 color: 952 color:
902 } 953 }