移动端
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

364 rivejä
8.8 KiB

  1. <template>
  2. <div class="app-container">
  3. <div class="header_main">
  4. 种子扫描
  5. <div class="return_btn" @click="onClickLeft"></div>
  6. <div class="add_btn" @click="onClickLeft"></div>
  7. <div class="top_box">
  8. <div class="top_01">
  9. <img src="../../../../static/images/lawEnforcement/new/retrospect_icon_10.png">
  10. <p>码上放心</p>
  11. </div>
  12. <img src="../../../../static/images/lawEnforcement/new/retrospect_icon_18.png" class="retrospect_icon" @click="$router.push({name:'lawEnforcementScan'})">
  13. <p class="tt">产品溯源信息</p>
  14. <div class="top_02">
  15. <p><i></i>一物一码</p>
  16. <p><i></i>扫码验真</p>
  17. <p><i></i>拒绝假货</p>
  18. </div>
  19. </div>
  20. <div class="jg"></div>
  21. </div>
  22. <div class="main">
  23. <div class="main_box">
  24. <a style="font-size: 14px;display: block;width: 100%;text-align: center;">{{scanLink}}</a>
  25. </div>
  26. <div class="iframe-wrap" v-if="scanLink.indexOf('http')>-1">
  27. <iframe id="iframe" :src="scanLink" class="iframe" width="100%" frameborder="0"></iframe>
  28. </div>
  29. <!-- <div class="main_box center_box" style="margin-top: 10px;">-->
  30. <!-- <img src="../../../../static/images/lawEnforcement/new/retrospect_icon_15.png" alt="">-->
  31. <!-- <p>该产品单元识别代码合规</p>-->
  32. <!-- <p>1534565635645126353535335656</p>-->
  33. <!-- </div>-->
  34. <!-- <div class="main_box" style="margin-top: 10px;">-->
  35. <!-- <van-cell :border="false">-->
  36. <!-- <template #title>-->
  37. <!-- <span class="custom-title">草甘膦铵盐</span>-->
  38. <!-- </template>-->
  39. <!-- </van-cell>-->
  40. <!-- <van-cell title="登记证号" :border="false" value="登记证号" />-->
  41. <!-- <van-cell title="有效成分" :border="false" value="有效成分" />-->
  42. <!-- <van-cell title="剂型" :border="false" value="剂型" />-->
  43. <!-- <van-cell title="总含量" :border="false" value="总含量" />-->
  44. <!-- <van-cell title="有效期至" :border="false" value="有效期至" />-->
  45. <!-- <van-cell title="登记持有人" :border="false" value="登记持有人" />-->
  46. <!-- </div>-->
  47. <!-- <div class="main_box" style="margin-top: 10px;">-->
  48. <!-- <van-cell title="防伪追溯网址" :border="false" value="防伪追溯网址" />-->
  49. <!-- <van-cell title="单元识别代码" :border="false" value="单元识别代码" />-->
  50. <!-- </div>-->
  51. </div>
  52. </div>
  53. </template>
  54. <script>
  55. import {getScheme, getSurveyByCaseId} from "@/api/lawEnforcement/index";
  56. import Cookies from "js-cookie";
  57. export default {
  58. name: "programmeDetail",
  59. data() {
  60. return {
  61. showBankType:false,
  62. showPayeeType:false,
  63. showPicker:false,
  64. form:{},
  65. bankType:'',
  66. payeeType:'',
  67. value:'',
  68. bankTypeOptions:[],
  69. payeeTypeOptions:[],
  70. tEnforceSchemeHandlerList:[],
  71. minDate: new Date(2020, 0, 1),
  72. maxDate: new Date(2025, 10, 1),
  73. currentDate: new Date(2021, 0, 17),
  74. activeNames: ['1'],
  75. activeNames1: ['1'],
  76. activeNames2: ['1'],
  77. scanLink:'',
  78. };
  79. },
  80. created() {
  81. // this.getDictionaries()
  82. console.log("aaaaaaaaaa")
  83. },
  84. methods: {
  85. getDictionaries(){
  86. getScheme(this.$route.query.id).then((response) => {
  87. this.form = response.data;
  88. });
  89. },
  90. },
  91. watch: {
  92. $route (to, from ) {
  93. // 监听路由变化, 实现类似 小程序的 onShow 事件
  94. console.log(to.path)
  95. if (to.path === '/lawEnforcement/retrospectDetail') {
  96. // do anything you want
  97. if (Cookies.get('scanLink')){
  98. alert(Cookies.get('scanLink').indexOf('http')>-1)
  99. this.scanLink = Cookies.get('scanLink');
  100. console.log(this.scanLink)
  101. }
  102. }
  103. }
  104. },
  105. }
  106. </script>
  107. <style scoped lang="scss">
  108. .jg{
  109. height: 80px;
  110. }
  111. .app-container {
  112. height: 100vh;
  113. overflow: hidden;
  114. }
  115. .iframe-wrap{
  116. position: relative;
  117. overflow: hidden;
  118. width: 100%;
  119. height: calc(100vh - 269PX);
  120. background: #eee;
  121. }
  122. .iframe{
  123. width: calc(100% + 20PX);
  124. border: none;
  125. position: absolute;
  126. right: -20PX;
  127. top: 0;
  128. bottom: 0;
  129. overflow-x: hidden; overflow-y: scroll;
  130. height: 100%;
  131. }
  132. .retrospect_icon{
  133. position: absolute;
  134. top: 0;
  135. right: 0;
  136. }
  137. .top_box{
  138. line-height: 1;
  139. text-align: left;
  140. width: 85%;
  141. margin: 0 auto;
  142. padding-bottom: 10PX;
  143. background: url('../../../../static/images/lawEnforcement/new/retrospect_icon_14.png') no-repeat right bottom;
  144. position: relative;
  145. .top_01{
  146. display: flex;
  147. align-items: center;
  148. font-size: 0.4rem;
  149. margin-top: 15PX;
  150. img{
  151. margin-right: 10PX;
  152. }
  153. }
  154. .tt{
  155. font-size: 0.7rem;
  156. margin-top: 15PX;
  157. }
  158. .top_02{
  159. display: flex;
  160. align-items: center;
  161. font-size: 0.3rem;
  162. margin-top: 15PX;
  163. i{
  164. display: inline-block;
  165. width: 15PX;
  166. height: 15PX;
  167. margin-right: 3PX;
  168. }
  169. p{
  170. display: flex;
  171. align-items: center;
  172. margin-right: 10PX;
  173. &:nth-child(1){
  174. i{
  175. background: url('../../../../static/images/lawEnforcement/new/retrospect_icon_11.png') no-repeat center;
  176. background-size: auto 15PX;
  177. }
  178. }
  179. &:nth-child(2){
  180. i{
  181. background: url('../../../../static/images/lawEnforcement/new/retrospect_icon_12.png') no-repeat center;
  182. background-size: auto 15PX;
  183. }
  184. }
  185. &:nth-child(3){
  186. i{
  187. background: url('../../../../static/images/lawEnforcement/new/retrospect_icon_13.png') no-repeat center;
  188. background-size: auto 15PX;
  189. }
  190. }
  191. }
  192. }
  193. }
  194. .main{
  195. position: relative;
  196. top: -30PX;
  197. }
  198. .center_box{
  199. text-align: center;
  200. padding: 30PX 0!important;
  201. p{
  202. margin-top: 15PX;
  203. &:nth-child(2){
  204. font-size: 0.4rem;
  205. color: #59C145;
  206. }
  207. &:nth-child(3){
  208. font-size: 0.4rem;
  209. color: #B4B0B0;
  210. display: inline-block;
  211. background: url('../../../../static/images/lawEnforcement/new/retrospect_icon_16.png') no-repeat left center;
  212. padding-left: 20PX;
  213. }
  214. }
  215. }
  216. /deep/ .van-cell{
  217. padding-bottom: 0;
  218. padding-top: 0;
  219. margin-bottom: 10PX;
  220. &:last-child{
  221. margin-bottom: 0;
  222. }
  223. }
  224. .header_main{
  225. height: 225PX;
  226. background: url('../../../../static/images/lawEnforcement/new/header_bg.png') no-repeat;
  227. background-size: 100% 100%;
  228. /*position: fixed;*/
  229. top: 0;
  230. left: 0;
  231. width: 100%;
  232. font-size: 36px;
  233. line-height: 116px;
  234. text-align: center;
  235. color: #fff;
  236. z-index: 999;
  237. .return_btn{
  238. width: 24px;
  239. height: 43.2px;
  240. background: url('../../../assets/images/sunVillage_info/list_icon_5.png') center center no-repeat;
  241. background-size: 20px 36px;
  242. position: absolute;
  243. left: 38px;
  244. top: 36px;
  245. }
  246. .add_btn{
  247. width: 56.4px;
  248. height: 40.8px;
  249. background: url('../../../../static/images/lawEnforcement/new/retrospect_icon_17.png') center center no-repeat;
  250. background-size: 47px 34px;
  251. position: absolute;
  252. right: 38px;
  253. top: 36px;
  254. }
  255. }
  256. /deep/ .van-radio--horizontal{
  257. margin-left: 0.32rem;
  258. margin-right: 0;
  259. }
  260. .peopleList{
  261. padding-right: 3%;
  262. .van-row{
  263. margin-bottom: 10PX;
  264. .van-col{
  265. text-align: center;
  266. font-size: 14PX;
  267. }
  268. &:first-child{
  269. .van-col{
  270. color: #1D6FE9;
  271. }
  272. }
  273. }
  274. }
  275. .main_title{
  276. font-size: 0.4rem;
  277. color: #1D6FE9;
  278. margin: 0.2rem 6%;
  279. margin-top: 0;
  280. position: relative;
  281. }
  282. .main_box{
  283. width: 96%;
  284. height: 58PX;
  285. margin: 0 auto 15PX;
  286. border-radius: 10PX;
  287. box-shadow: 0px 3px 6px 0px rgba(0,0,0,0.16);
  288. overflow: hidden;
  289. background-color: #FFF;
  290. padding: 10PX 0;
  291. .van-icon{
  292. vertical-align: middle;
  293. }
  294. .custom-title{
  295. font-size: 17PX;
  296. color: #333333;
  297. vertical-align: middle;
  298. line-height: 1;
  299. position: relative;
  300. }
  301. .tap{
  302. color: #1D6FE9;
  303. }
  304. .bgBlue{
  305. display: block;
  306. position: absolute;
  307. width: 17PX;
  308. height: 17PX;
  309. border-radius: 50%;
  310. background-color: rgba(29,111,233,0.26);
  311. top: -2PX;
  312. right: -8PX;
  313. }
  314. }
  315. .submitButton{
  316. width: 45%;
  317. margin: 0 auto;
  318. background-image: linear-gradient(to right, #2E79E9 , #77A6EF);
  319. text-align: center;
  320. color: #ffffff;
  321. height: 70px;
  322. line-height: 70px;
  323. border-radius: 8PX;
  324. margin-top: 25PX;
  325. }
  326. .addFamily{
  327. position: absolute;
  328. top: -2px;
  329. right: 0;
  330. border-radius: 50%;
  331. }
  332. </style>