diff --git a/public/config.js b/public/config.js index a3e9862..1d6ece1 100644 --- a/public/config.js +++ b/public/config.js @@ -5,11 +5,12 @@ // SHOW_URL: "http://www.fatoaniic.com/ftpfile/", // } config = { - // API_URL: 'http://121.36.65.171:9999', - API_URL: 'http://172.119.50.121:8081', + // API_URL: 'http://172.119.50.248:8081', + API_URL: 'http://121.36.65.171:9999', + // API_URL: 'http://10.10.9.71:8081', - UPLOAD_URL: "http://61.135.192.42:8082/attachment/uploadOne", - DOWNLOAD_URL: "http://61.135.192.42:8082/api-ftp/ftp/download?filename=", - SHOW_URL: "http://www.fatoaniic.com/ftpfile/", + // UPLOAD_URL: "http://61.135.192.42:8082/attachment/uploadOne", + // DOWNLOAD_URL: "http://61.135.192.42:8082/api-ftp/ftp/download?filename=", + // SHOW_URL: "http://www.fatoaniic.com/ftpfile/", } \ No newline at end of file diff --git a/public/fwm/fwm.html b/public/fwm/fwm.html index d0629d9..c758a82 100644 --- a/public/fwm/fwm.html +++ b/public/fwm/fwm.html @@ -52,20 +52,6 @@ align-items: center; flex-direction: column; } - .search-input { - background: transparent; - width: 150px; - border: 1px solid #969696; - -webkit-appearance: none; - border-radius: 5px; - padding: 0 10px; - color: #333; - height: 35px; - font-size: 16px; - transition: background-color 50000s ease-in-out 0s; - -webkit-text-fill-color: #333 !important; - } - .search-container { position: relative; width: 100vw; @@ -88,14 +74,29 @@ position: relative; top:5px; width: 100%; - min-height: 200px; + min-height: 250px; background: #fff; border-radius: 20px; padding: 15px; word-wrap:break-word; /* font-weight: 550; */ } + .content-box .content-title { + position: relative; + display: inline-block; + width: 88px; + height: 30px; + font-weight: 550; + font-size: 14px; + line-height: 30px; + color: #000000; + vertical-align: top; + } .content-box .content-text { + position: relative; + display: inline-block; + width: 190px; + height: 30px; font-size: 14px; line-height: 30px; color: #000000; @@ -108,18 +109,6 @@ .text-indent-1 { text-indent:1em } - .aplayer-block { - position: relative; - /* bottom: 20px; */ - margin: 20px 0; - width: 100%; - height: 50px; - background: #fff; - border-radius: 25px; - } - .aplayer-block audio { - width: 100%; - } .nla-public { position: absolute; right: 15px; @@ -132,20 +121,20 @@
-

查询结果:

+

- -

尊敬的客户您好!

-

您所查询的商品编码为:

-

86.121.1377451536954687488/F574AH121Y7#.F

-

您查询的是由"北京顺鑫农业股份有限公司牛栏山酒厂"生产的正牌产品,请放心使用,谢谢您的查询。

-
-

查询次数:,首次查询时间为:

-
-
- + +
+ + 尊敬的客户您好!
+ + 尊敬的客户您好!
+
+ + 尊敬的客户您好!
+ + 尊敬的客户您好!尊敬的客户您好!尊敬的客户您好! + 尊敬的客户您好!尊敬的客户您好! 尊敬的客户您好!尊敬的客户您好!
@@ -158,11 +147,9 @@ // $("#sys_title").html(SYS_TITLE) var param = ''; var code = ''; - - // param = decodeURIComponent(window.location.href.split('?')[1]) param = window.location.href.split('?')[1] || '' - code = param.split('&')[0] || '0000LH5D2B82' - + code = param.split('&')[0] || '' + $("#gyhl_code").text(code) function checkSocureData() { if(code) { @@ -174,9 +161,10 @@ console.log(res.code); if(res.code == 200) { - $("#gyhl_code").text(res.data.gyhl_code) - $("#scan_count").text(res.data.scan_count) - $("#first_scan").text(res.data.first_scan) + $("#companyName").text(res.data.companyName) + $("#companyAddr").text(res.data.companyAddr) + $("#createTime").text(res.data.createTime) + $("#summary").text(res.data.summary) } else { console.log(res.msg) } diff --git a/public/fwm/img/search-bg.png b/public/fwm/img/search-bg.png index 7a878a1..911e262 100644 Binary files a/public/fwm/img/search-bg.png and b/public/fwm/img/search-bg.png differ diff --git a/public/index.html b/public/index.html index 1dea119..066c65d 100644 --- a/public/index.html +++ b/public/index.html @@ -5,7 +5,7 @@ - + 牛栏山工业互联网防伪系统 diff --git a/public/m.html b/public/m.html index dc74022..fd679c7 100644 --- a/public/m.html +++ b/public/m.html @@ -52,20 +52,6 @@ align-items: center; flex-direction: column; } - .search-input { - background: transparent; - width: 150px; - border: 1px solid #969696; - -webkit-appearance: none; - border-radius: 5px; - padding: 0 10px; - color: #333; - height: 35px; - font-size: 16px; - transition: background-color 50000s ease-in-out 0s; - -webkit-text-fill-color: #333 !important; - } - .search-container { position: relative; width: 100vw; @@ -101,7 +87,8 @@ color: #000000; } .content-box .num-text { - font-size: 13px; + font-size: 12px; + text-align: center; line-height: 30px; color: #C02932; } @@ -114,7 +101,7 @@ margin: 20px 0; width: 100%; height: 50px; - background: #fff; + /* background: #fff; */ border-radius: 25px; } .aplayer-block audio { @@ -126,6 +113,7 @@ width: 80px; height: 80px; bottom: 10px; + } @@ -133,18 +121,23 @@

查询结果:

-
- -

尊敬的客户您好!

-

您所查询的商品编码为:

-

86.121.1377451536954687488/F574AH121Y7#.F

-

您查询的是由"北京顺鑫农业股份有限公司牛栏山酒厂"生产的正牌产品,请放心使用,谢谢您的查询。

-
-

查询次数:,首次查询时间为:

+
+ +
-
+
@@ -161,8 +154,7 @@ // param = decodeURIComponent(window.location.href.split('?')[1]) param = window.location.href.split('?')[1] || '' - code = param.split('&')[0] || '0000LH5D2B82' - + code = param.split('&')[0] || '' function checkSocureData() { if(code) { @@ -174,11 +166,21 @@ console.log(res.code); if(res.code == 200) { + $("#patch").show() + $("#aplayerBlock").show() + $("#gyhl_code").text(res.data.gyhl_code) $("#scan_count").text(res.data.scan_count) $("#first_scan").text(res.data.first_scan) + + let url = config.API_URL + res.data.url + $('#play1').attr('src',url) + var fry_audio=$('#play1').get('0'); + fry_audio.load() + + // createAudioMP3(res.data.gyhl_code) } else { - console.log(res.msg) + $("#noFound").show() } }, error: function(err) { diff --git a/src/api/get.js b/src/api/get.js index ad633be..cdaa13c 100644 --- a/src/api/get.js +++ b/src/api/get.js @@ -42,3 +42,21 @@ export function generateFetch(params) { }); } +//发送短信 +export function sendMessage(params) { + return request({ + url: '/sms/send', + method: 'post', + data:params + }); +} +//短信验证并获取下载地址 +export function getDownloadUrl(params) { + return request({ + url: '/fetch/getDownloadUrl', + method: 'post', + data:params + }); +} + + diff --git a/src/utils/validate.ts b/src/utils/validate.ts index e2b17e4..0b10d6a 100644 --- a/src/utils/validate.ts +++ b/src/utils/validate.ts @@ -91,7 +91,15 @@ export function getDay() {   var dateStr = year + "-" + month + "-" + day; return dateStr } - +/*获取当前年月日*/ +export function getDay2() { + var nowDate = new Date(); +  var year = nowDate.getFullYear(); +  var month = nowDate.getMonth() + 1 < 10 ? "0" + (nowDate.getMonth() + 1) : nowDate.getMonth() + 1; +  var day = nowDate.getDate() < 10 ? "0" + nowDate.getDate() : nowDate.getDate(); +  var dateStr = year + "" + month + "" + day; +return dateStr +} /*获取当前年月日时分秒*/ export function getDayTime() { var nowDate = new Date(); diff --git a/src/views/get/addCancel.vue b/src/views/get/addCancel.vue index 8eb7c37..cd00757 100644 --- a/src/views/get/addCancel.vue +++ b/src/views/get/addCancel.vue @@ -106,7 +106,7 @@ import { getFetchList } from "@/api/get" import {addDiscard} from "@/api/cancel" -import {getDayTime} from "@/utils/validate" +import {getDayTime,getDay2} from "@/utils/validate" export default { name: "addGet", data() { @@ -118,7 +118,7 @@ export default { otherTotal:'50000万', }, form:{ - num:this.$route.query.ids || 'FMD_'+new Date().getTime(), + num:this.$route.query.ids || 'FMD_'+getDay2()+'_'+Math.floor(Math.random()*10000), theGetTime:this.$route.query.times || getDayTime(), qmdnum:'', fileName:'' diff --git a/src/views/get/addGet.vue b/src/views/get/addGet.vue index e0f1b43..db4bbae 100644 --- a/src/views/get/addGet.vue +++ b/src/views/get/addGet.vue @@ -76,7 +76,7 @@ import { addFetchList,getFetchDetail,updateFetch } from "@/api/get" import { getWhitelist } from "@/api/user" -import {getDayTime} from "@/utils/validate" +import {getDayTime,getDay2} from "@/utils/validate" import {summaryPortal} from '@/api/status'; export default { name: "addGet", @@ -85,7 +85,7 @@ export default { return { AllData:{}, id:this.$route.query.ids || "", - num:this.$route.query.ids || 'QMD_'+new Date().getTime(), + num:this.$route.query.ids || 'QMD_'+getDay2()+'_'+Math.floor(Math.random()*10000), theGetTime:this.$route.query.times || getDayTime(), paramsForm:{ params: [], diff --git a/src/views/get/cancel.vue b/src/views/get/cancel.vue index 91155ac..a01ecaf 100644 --- a/src/views/get/cancel.vue +++ b/src/views/get/cancel.vue @@ -93,7 +93,7 @@