证书查询及详情

This commit is contained in:
shijing 2023-05-09 15:46:35 +08:00
parent 5e503af495
commit d8802c0ef7
43 changed files with 265 additions and 351 deletions

View File

@ -5,7 +5,6 @@
"pages/main/enroll/enroll",
"pages/main/threshold/threshold",
"pages/main/Introduction/Introduction",
"pages/main/certificate/certificate",
"pages/index/index",
"pages/logs/logs",
"pages/login/registe/registe",
@ -56,12 +55,12 @@
],
"window": {
"backgroundTextStyle": "light",
"navigationBarBackgroundColor": "#438af4",
"navigationBarBackgroundColor": "#ffffff",
"navigationBarTitleText": "国检集团气味学堂",
"navigationBarTextStyle": "white"
"navigationBarTextStyle": "black"
},
"tabBar": {
"color": "#666666",
"color": "#000000",
"selectedColor": "#438af4",
"borderStyle": "black",
"backgroundColor": "#ffffff",

View File

@ -13,8 +13,10 @@
.fontAli {
font-family: Ali;
}
.page, page{
page{
font-family: Ali;
/* padding: 20rpx; */
box-sizing: border-box;
}
/* .page, page{
font-family:"webfont" !important;
@ -24,3 +26,9 @@
-moz-osx-font-smoothing: grayscale;
} */
button[type='primary'] {
background-color: #438af4!important;
}
button[disabled][type='primary'] {
background-color: #fafafa!important;
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.7 KiB

After

Width:  |  Height:  |  Size: 5.4 KiB

1
images/chaxunWIcon.svg Normal file
View File

@ -0,0 +1 @@
<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1683337902738" class="icon" viewBox="0 0 1027 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="36042" xmlns:xlink="http://www.w3.org/1999/xlink" width="128.375" height="128"><path d="M718.222222 846.222222h-469.333333a14.222222 14.222222 0 0 1 0-28.444444h469.333333a14.222222 14.222222 0 0 1 0 28.444444zM497.777778 739.555556H184.888889a28.444444 28.444444 0 0 1-28.444445-28.444445V256a28.444444 28.444444 0 0 1 28.444445-28.444444h611.555555a28.444444 28.444444 0 0 1 28.444445 28.444444v199.111111h-28.444445V256H184.888889v455.111111h312.888889z" fill="#ffffff" p-id="36043"></path><path d="M497.777778 504.888889H263.111111a14.222222 14.222222 0 0 1 0-28.444445H497.777778a14.222222 14.222222 0 0 1 0 28.444445zM604.444444 405.333333h-341.333333a14.222222 14.222222 0 0 1 0-28.444444h341.333333a14.222222 14.222222 0 0 1 0 28.444444zM462.222222 604.444444h-199.111111a14.222222 14.222222 0 0 1 0-28.444444h199.111111a14.222222 14.222222 0 0 1 0 28.444444zM714.993778 675.413333l42.140444-42.126222 136.760889 136.775111-42.126222 42.126222z" fill="#ffffff" p-id="36044"></path><path d="M662.328889 706.417778a125.724444 125.724444 0 1 1 89.031111-36.835556 125.44 125.44 0 0 1-89.031111 36.835556z m0-223.146667a97.28 97.28 0 1 0 68.835555 28.444445A97.137778 97.137778 0 0 0 662.328889 483.555556z" fill="#ffffff" p-id="36045"></path></svg>

After

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.8 KiB

After

Width:  |  Height:  |  Size: 4.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.8 KiB

After

Width:  |  Height:  |  Size: 2.8 KiB

1
images/kaoshiWIcon.svg Normal file
View File

@ -0,0 +1 @@
<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1683337822792" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="31008" xmlns:xlink="http://www.w3.org/1999/xlink" width="128" height="128"><path d="M112.64 148.48v805.546667H819.2V148.48H112.64z m-11.946667-35.84h732.16c6.826667 0 11.946667 3.413333 17.066667 6.826667 5.12 5.12 6.826667 10.24 6.826667 17.066666v829.44c0 6.826667-3.413333 11.946667-6.826667 17.066667-5.12 5.12-10.24 6.826667-17.066667 6.826667H100.693333c-6.826667 0-11.946667-3.413333-17.066666-6.826667-5.12-5.12-6.826667-10.24-6.826667-17.066667V136.533333c-1.706667-13.653333 10.24-23.893333 23.893333-23.893333z m0 0" fill="#ffffff" p-id="31009"></path><path d="M197.973333 307.2h146.773334c17.066667 0 23.893333 8.533333 23.893333 23.893333 0 17.066667-8.533333 23.893333-23.893333 23.893334h-146.773334c-17.066667 0-23.893333-8.533333-23.893333-23.893334-1.706667-15.36 6.826667-23.893333 23.893333-23.893333z m0 0M197.973333 453.973333h146.773334c17.066667 0 23.893333 8.533333 23.893333 23.893334 0 17.066667-8.533333 23.893333-23.893333 23.893333h-146.773334c-17.066667 0-23.893333-8.533333-23.893333-23.893333-1.706667-17.066667 6.826667-23.893333 23.893333-23.893334z m0 0M197.973333 599.04h146.773334c17.066667 0 23.893333 8.533333 23.893333 23.893333 0 17.066667-8.533333 23.893333-23.893333 23.893334h-146.773334c-17.066667 0-23.893333-8.533333-23.893333-23.893334-1.706667-15.36 6.826667-23.893333 23.893333-23.893333z m0 0M197.973333 745.813333H733.866667c17.066667 0 23.893333 8.533333 23.893333 23.893334 0 17.066667-8.533333 23.893333-23.893333 23.893333H197.973333c-17.066667 0-23.893333-8.533333-23.893333-23.893333-1.706667-15.36 6.826667-23.893333 23.893333-23.893334z m0 0M539.306667 390.826667l35.84-35.84 61.44 61.44-35.84 35.84h-61.44v-61.44z m54.613333-59.733334l273.066667-283.306666c8.533333-8.533333 20.48-13.653333 32.426666-13.653334 13.653333 0 25.6 5.12 34.133334 13.653334s13.653333 22.186667 13.653333 34.133333c0 13.653333-5.12 25.6-13.653333 34.133333L653.653333 392.533333l-59.733333-61.44z m0 0" fill="#ffffff" p-id="31010"></path></svg>

After

Width:  |  Height:  |  Size: 2.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.4 KiB

After

Width:  |  Height:  |  Size: 2.9 KiB

BIN
images/logoImg.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 62 KiB

1
images/moniWIcon.svg Normal file
View File

@ -0,0 +1 @@
<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1683337849294" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="32362" xmlns:xlink="http://www.w3.org/1999/xlink" width="128" height="128"><path d="M364 482.4c-107.8 0-195.4-87.7-195.4-195.4S256.2 91.5 364 91.5c107.8 0 195.4 87.7 195.4 195.4S471.7 482.4 364 482.4z m0-350.9c-85.7 0-155.4 69.7-155.4 155.4S278.3 442.4 364 442.4 519.4 372.7 519.4 287 449.7 131.5 364 131.5zM482.8 925.2c-8.9 0-17.7-1.1-26.3-3.2l-275.7-67.5c-5.5-1.3-10.2-5-12.9-10-2.7-5-3.1-10.9-1.2-16.2l47-131.3c3.6-10 14.3-15.4 24.5-12.4l147.7 43.6V588c0-23.2 10.5-44.8 29.7-60.9 18.1-15.2 42-23.5 67.2-23.5 25.2 0 49.1 8.4 67.2 23.5 19.1 16 29.7 37.6 29.7 60.9 0 0.6 0.1 66-0.2 131.7-0.7 136.2-2.4 141.1-4 145.8-6.3 18-18.9 33.3-36.4 44.2-16.6 10.1-36.1 15.5-56.3 15.5zM211.9 821L466 883.2c5.5 1.3 11.1 2 16.8 2 24.9 0 47-12.9 54.3-31.6 2.1-19.9 2.7-172.3 2.5-265.7 0-24.5-25.5-44.4-56.8-44.4S426 563.4 426 587.9v167c0 6.3-3 12.2-8 16-5.1 3.8-11.6 4.9-17.6 3.2L245 728.4 211.9 821zM69.5 871c-2.5 0-5-0.5-7.4-1.4-10.3-4.1-15.2-15.7-11.1-26l83.5-208.9c4.1-10.3 15.7-15.2 26-11.1s15.2 15.7 11.1 26L88.1 858.4C85 866.3 77.4 871 69.5 871zM247.9 921H39c-11 0-20-9-20-20s9-20 20-20h208.9c11 0 20 9 20 20s-8.9 20-20 20zM656.5 875.2c-11 0-20-9-20-20s9-20 20-20c174.8 0 317.1-142.2 317.1-317.1 0-174.8-142.2-317.1-317.1-317.1-11 0-20-9-20-20s9-20 20-20c48.2 0 95 9.4 139 28.1 42.5 18 80.7 43.7 113.5 76.5s58.5 71 76.5 113.5c18.6 44 28.1 90.8 28.1 139s-9.4 95-28.1 139c-18 42.5-43.7 80.7-76.5 113.5s-71 58.5-113.5 76.5c-44 18.7-90.8 28.1-139 28.1z" fill="#ffffff" p-id="32363"></path><path d="M857.9 565h-174c-11 0-20-9-20-20V301c0-11 9-20 20-20s20 9 20 20v224h154c11 0 20 9 20 20s-8.9 20-20 20z" fill="#ffffff" p-id="32364"></path></svg>

After

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 911 B

After

Width:  |  Height:  |  Size: 1.0 KiB

1
images/shipinWIcon.svg Normal file
View File

@ -0,0 +1 @@
<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1683338956765" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="49619" xmlns:xlink="http://www.w3.org/1999/xlink" width="128" height="128"><path d="M800.336842 590.147368l-48.505263-35.031579-2.694737-2.694736V105.094737c0-40.421053-32.336842-70.063158-72.757895-70.063158H673.684211L134.736842 134.736842c-35.031579 2.694737-70.063158 29.642105-70.063158 70.063158V754.526316c0 35.031579 26.947368 64.673684 67.368421 78.147368l603.621053 153.6h18.863158c21.557895 0 40.421053-5.389474 51.2-16.168421 13.473684-10.778947 21.557895-29.642105 21.557895-51.2V638.652632c-2.694737-18.863158-10.778947-37.726316-26.947369-48.505264z m-13.473684 331.452632c0 10.778947-2.694737 16.168421-8.084211 21.557895-8.084211 8.084211-21.557895 8.084211-40.421052 8.08421L140.126316 797.642105c-18.863158-5.389474-37.726316-21.557895-37.726316-40.421052V204.8c0-18.863158 18.863158-32.336842 37.726316-32.336842l541.642105-99.705263c18.863158 0 32.336842 16.168421 32.336842 32.336842v444.631579c0 13.473684 5.389474 26.947368 16.168421 35.031579l48.505263 35.031579c5.389474 5.389474 8.084211 10.778947 8.084211 18.863158v282.947368zM889.263158 105.094737h-88.926316c-10.778947 0-18.863158 8.084211-18.863158 18.863158s8.084211 18.863158 18.863158 18.863158H889.263158c18.863158 0 32.336842 16.168421 32.336842 32.336842v609.010526c0 18.863158-16.168421 32.336842-32.336842 32.336842h-18.863158c-10.778947 0-18.863158 8.084211-18.863158 18.863158s8.084211 18.863158 18.863158 18.863158h18.863158c40.421053 0 72.757895-32.336842 72.757895-70.063158V177.852632c-2.694737-40.421053-32.336842-72.757895-72.757895-72.757895z" p-id="49620" fill="#ffffff"></path><path d="M412.294737 258.694737c-126.652632 0-231.747368 102.4-231.747369 231.747368 0 126.652632 102.4 231.747368 231.747369 231.747369s231.747368-102.4 231.747368-231.747369c0-126.652632-102.4-231.747368-231.747368-231.747368z m0 425.768421c-107.789474 0-194.021053-86.231579-194.021053-194.021053s86.231579-194.021053 194.021053-194.021052 194.021053 86.231579 194.021052 194.021052-86.231579 194.021053-194.021052 194.021053z" p-id="49621" fill="#ffffff"></path><path d="M530.863158 463.494737L377.263158 361.094737c-10.778947-5.389474-21.557895-5.389474-32.336842 0-10.778947 5.389474-16.168421 16.168421-16.168421 26.947368V592.842105c0 10.778947 5.389474 21.557895 16.168421 26.947369 5.389474 2.694737 10.778947 5.389474 16.168421 5.389473 5.389474 0 10.778947-2.694737 16.168421-5.389473l153.6-102.4c10.778947-5.389474 16.168421-16.168421 16.168421-26.947369s-5.389474-21.557895-16.168421-26.947368z m-164.378947 118.568421v-183.242105l137.431578 91.621052-137.431578 91.621053z" p-id="49622" fill="#ffffff"></path></svg>

After

Width:  |  Height:  |  Size: 2.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.4 KiB

After

Width:  |  Height:  |  Size: 3.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.3 KiB

After

Width:  |  Height:  |  Size: 5.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1010 B

After

Width:  |  Height:  |  Size: 1.9 KiB

1
images/yewuWIcon.svg Normal file
View File

@ -0,0 +1 @@
<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1683337984301" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="43076" xmlns:xlink="http://www.w3.org/1999/xlink" width="128" height="128"><path d="M891.75 559.4h-0.44v-438a57.32 57.32 0 0 0-57.26-57.25H333.29a55 55 0 0 0-55 55V173H203a66.56 66.56 0 0 0-66.48 66.48v321.3a67.91 67.91 0 0 0-54.23 66.42v259.69a67.88 67.88 0 0 0 67.8 67.81h741.66a67.88 67.88 0 0 0 67.8-67.81V627.2a67.87 67.87 0 0 0-67.8-67.8zM333.29 105.7h500.76a15.72 15.72 0 0 1 15.71 15.7v438H663.84A67.87 67.87 0 0 0 596 627.2v4.8a26.29 26.29 0 0 1-26.26 26.25h-97.69A26.29 26.29 0 0 1 445.79 632v-4.8A67.87 67.87 0 0 0 378 559.4h-58.13V119.11a13.43 13.43 0 0 1 13.42-13.41zM203 214.55h75.3V559.4H178.08V239.47A25 25 0 0 1 203 214.55z m715 672.34a26.28 26.28 0 0 1-26.25 26.25H150.09a26.28 26.28 0 0 1-26.25-26.25V627.2a26.29 26.29 0 0 1 26.25-26.2H378a26.29 26.29 0 0 1 26.25 26.25V632a67.87 67.87 0 0 0 67.81 67.8h97.73a67.87 67.87 0 0 0 67.8-67.8v-4.8a26.29 26.29 0 0 1 26.25-26.2h227.91A26.29 26.29 0 0 1 918 627.2z" p-id="43077" fill="#ffffff"></path><path d="M407.1 273.55h355.42a20.78 20.78 0 0 0 0-41.56H407.1a20.78 20.78 0 0 0 0 41.56zM390 416.13h389.67a20.78 20.78 0 0 0 0-41.55H390a20.78 20.78 0 1 0 0 41.55z" p-id="43078" fill="#ffffff"></path></svg>

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.9 KiB

After

Width:  |  Height:  |  Size: 3.5 KiB

1
images/ziliaoWIcon.svg Normal file
View File

@ -0,0 +1 @@
<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1683338011284" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="45079" xmlns:xlink="http://www.w3.org/1999/xlink" width="128" height="128"><path d="M265.12071 800.655682V243.965943h64.629844v556.690762h-64.629844v-0.001023z m-97.263013-50.345541V294.316601h64.624727v455.99354h-64.624727z m194.530119-564.71449h493.754487v652.823024h-493.754487V185.595651z m-16.317608 685.460287h526.390727c9.007123 0 16.318631-7.312531 16.318631-16.318631V169.26474c0-9.008146-7.312531-16.319655-16.318631-16.319655H346.070208c-9.01531 0-16.319655 7.312531-16.319654 16.319655v42.068034h-80.943359c-9.019403 0-16.331934 7.306392-16.331934 16.319654l0.007163 34.025887h-80.944382c-9.019403 0-16.318631 7.311508-16.318631 16.318631V766.628772c0 9.007123 7.299229 16.307375 16.318631 16.307375h80.944382v34.03919c0 9.008146 7.305368 16.318631 16.324771 16.318631h80.943359v21.443339c0 9.007123 7.304345 16.318631 16.319654 16.318631z" fill="#ffffff" p-id="45080"></path><path d="M441.346988 268.000288h168.762298v118.4055H441.346988V268.000288z m-16.318631 151.048903h201.400583c9.014286 0 16.318631-7.312531 16.318632-16.312492l0.004093-151.061182c0-9.013263-7.309462-16.324771-16.322725-16.324772H425.028357c-9.008146 0-16.319655 7.312531-16.319655 16.331935v151.054019c0 9.000983 7.311508 16.312492 16.319655 16.312492zM425.028357 518.601335h368.473406c9.013263 0 16.324771-7.302298 16.324771-16.315561s-7.312531-16.318631-16.324771-16.318632H425.028357c-9.008146 0-16.319655 7.305368-16.319655 16.318632s7.311508 16.326818 16.319655 16.315561zM425.028357 618.160643h368.473406c9.013263 0 16.324771-7.312531 16.324771-16.330911 0-9.008146-7.312531-16.318631-16.324771-16.318632H425.028357c-9.008146 0-16.319655 7.311508-16.319655 16.318632 0 9.019403 7.311508 16.330911 16.319655 16.330911zM425.028357 717.709717h368.473406c9.013263 0 16.324771-7.299229 16.324771-16.318631 0-9.007123-7.312531-16.307375-16.324771-16.307375H425.028357c-9.008146 0-16.319655 7.300252-16.319655 16.307375 0 9.019403 7.311508 16.318631 16.319655 16.318631z" fill="#ffffff" p-id="45081"></path></svg>

After

Width:  |  Height:  |  Size: 2.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.2 KiB

After

Width:  |  Height:  |  Size: 3.8 KiB

View File

@ -22,7 +22,7 @@ Page({
onLoad: function () {
var that = this
wx.stopPullDownRefresh();
// that.getList(that.data.query)
that.getList(that.data.query)
},
/**

View File

@ -1,15 +1,18 @@
<view class="page">
<view class="head">{{count}}条资讯</view>
<view class="weui-cells weui-cells_after-title" style="margin-top:0px">
<view class="weui-cells weui-cells_after-title" style="margin-top:0px;padding: 20rpx;">
<block wx:for="{{results}}" wx:key="unique">
<navigator url="detail?id={{item.id}}" class="weui-media-box weui-media-box_appmsg" hover-class="weui-cell_active">
<view class="weui-media-box__bd weui-media-box__bd_in-appmsg">
<navigator url="detail?id={{item.id}}" style="margin-bottom: 20rpx;box-shadow: 0 0 13rpx 8rpx #f7f7f7;" hover-class="weui-cell_active">
<view class="weui-media-box__bd weui-media-box__bd_in-appmsg" style="padding: 20rpx;border: 1rpx solid #f7f7f7;border-radius: 10rpx;">
<view class="weui-media-box__title">
{{item.title}}</view>
<view class="weui-media-box__desc">
<text wx:if="{{item.is_top}}" style="color:red">置顶 </text>
<span>{{item.ifrom}} {{item.update_time}}</span>
<text wx:if="{{item.is_top}}" style="color:red;font-size: 24rpx;border: 1rpx solid red;border-radius: 6rpx;display: inline-block;padding: 2rpx 10rpx;">置顶 </text>
{{item.title}}
</view>
<view class="weui-media-box__desc" >
<!-- <text wx:if="{{item.is_top}}" style="color:red">置顶 </text> -->
<view style="text-indent: 1em;">发布人:{{item.ifrom}}</view>
<view style="text-indent: 1em;">发布时间:{{item.update_time}}</view>
</view>
</view>
</navigator>

View File

@ -13,6 +13,8 @@ Page({
* 生命周期函数--监听页面加载
*/
onLoad: function (options) {
debugger;
console.log(options)
let id = options.id
this.getDetail(id)
},

View File

@ -1,6 +1,6 @@
<!--pages/candidate/detail.wxml-->
<view style="margin-left:12px;margin-right:12px">
<image style="width: 100%;height:200px" src="/images/bg.png" mode="aspectFit"></image>
<view style="text-align: center;">
<image class="logoImg" src="/images/logoImg.png" mode="aspectFit"></image>
</view>
<view class="weui-panel__bd">
<view class="weui-media-box weui-media-box_text" style="text-align:center">
@ -21,5 +21,6 @@
</view>
<a class="weui-btn weui-btn_primary" bindtap="goCandidate">查看证书</a>
<a class="weui-btn weui-btn_default" bindtap="copyUrl">复制证书链接</a>
<a class="weui-btn weui-btn_default" bindtap="godetail">答题信息</a>
<a class="weui-btn weui-btn_default" bindtap="downDoc">下载完整文档</a>
<a class="weui-btn weui-btn_default" bindtap="godetail" wx:if="{{candidate.examtest!==null}}">答题信息</a>
<a class="weui-btn weui-btn_default" bindtap="downDoc" wx:if="{{candidate.examtest!==null}}">下载完整文档</a>

View File

@ -1 +1,7 @@
/* pages/candidate/detail.wxss */
.logoImg{
width:200rpx;
height:200rpx;
margin-top: 50rpx;
border-radius: 100rpx;
}

View File

@ -1,55 +1,86 @@
// pages/candidate/index.js
const api = require("../../utils/request.js");
Page({
/**
* 页面的初始数据
*/
data: {
ID_number:null,
realname:null,
candidates:[]
},
/**
* 生命周期函数--监听页面加载
*/
onLoad: function (options) {
if(getApp().globalData.userinfo.ID_number && getApp().globalData.userinfo.realname){
this.setData({
ID_number:getApp().globalData.userinfo.ID_number,
realname:getApp().globalData.userinfo.realname,
})
this.search()
search:null,
candidates:[],
query: {
page: 1,
limit: 10
}
},
/**
* 生命周期函数--监听页面初次渲染完成
*/
onReady: function () {
onLoad: function () {
},
/**
* 生命周期函数--监听页面显示
*/
onShow: function () {
this.getList();
},
/**
* 生命周期函数--监听页面隐藏
*/
onHide: function () {
getList: function() {
wx.showLoading({
title: '正在加载...',
})
api.request('/crm/candidate/my/', 'GET').then(res=>{
wx.hideLoading()
this.setData({
candidates:res.data,
})
}).catch(
wx.hideLoading()
)
},
/**
* 生命周期函数--监听页面卸载
*/
onUnload: function () {
bindinput: function(e){
this.setData({
search:e.detail.value
})
},
copyUrl: function(e){
wx.setClipboardData({
data: e.currentTarget.dataset.url,
success: function (res) {
wx.showToast({
title: '复制成功,可前往自带浏览器粘贴访问',
icon: 'none'
})
}
})
},
search: function() {
// debugger;
if(this.data.search!==null&&this.data.search!==''){
var data = {search:this.data.search};
wx.showLoading({
title: '查询中..',
mask:true
})
api.request('/crm/candidate/', 'GET', data).then(res => {
this.setData({
candidates:res.data.results
})
wx.hideLoading()
}).catch(e=>{
wx.hideLoading()
})
// api.request('/crm/consumer/realinfo/', 'POST', data).then(res=>{
// })
}else{
wx.showToast({
title: '请填写正确的证书编号或身份证号',
icon: 'none',
duration: 1500
})
}
},
toDetail: function(e){
debugger;
var url = e.currentTarget.dataset.url;
var id = e.currentTarget.dataset.id;
console.log(id)
getApp().globalData.candidate_url = url
wx.navigateTo({
url: 'detail?id='+id,
})
},
/**
@ -64,71 +95,6 @@ Page({
*/
onReachBottom: function () {
},
/**
* 用户点击右上角分享
*/
onShareAppMessage: function () {
},
bindinput1: function(e){
this.data.realname = e.detail.value
},
bindinput2: function(e){
this.data.ID_number = e.detail.value
},
copyUrl: function(e){
wx.setClipboardData({
data: e.currentTarget.dataset.url,
success: function (res) {
wx.showToast({
title: '复制成功,可前往自带浏览器粘贴访问',
icon: 'none'
})
}
})
},
search: function() {
if(this.data.realname && this.data.ID_number){
var data = {
realname:this.data.realname,
ID_number:this.data.ID_number
}
wx.showLoading({
title: '查询中..',
mask:true
})
api.request('/crm/consumer/candidate/', 'GET', data).then(res => {
wx.hideLoading({
success: (res) => {},
})
// console.log(res.data.candidates)
this.setData({
candidates:res.data.candidates
})
}).catch(e=>{
wx.hideLoading({
success: (res) => {},
})
})
api.request('/crm/consumer/realinfo/', 'POST', data).then(res=>{
})
}else{
wx.showToast({
title: '请填写姓名和身份证号',
icon: 'none',
duration: 1500
})
}
},
toDetail: function(e){
var url = e.currentTarget.dataset.url
getApp().globalData.candidate_url = url
wx.navigateTo({
url: 'detail',
})
}
})

View File

@ -1,3 +1,6 @@
{
"usingComponents": {}
"usingComponents": {},
"enablePullDownRefresh": true,
"onReachBottomDistance": 50,
"navigationBarTitleText": "证书查询"
}

View File

@ -1,41 +1,31 @@
<view class="page" style="padding: 20rpx 30rpx;box-sizing: border-box;">
<view class="weui-cells__title">查询信息</view>
<view class="weui-cells weui-cells_after-title">
<view class="weui-cell">
<view class="weui-cell__hd"><label class="weui-label">真实姓名</label></view>
<view class="weui-cell__bd">
<input class="weui-input" placeholder="填写真实姓名" placeholder-class="weui-input__placeholder" bindinput="bindinput1"
value="{{realname}}" />
</view>
</view>
<view class="weui-cell">
<view class="weui-cell__hd"><label class="weui-label">身份证号</label></view>
<view class="weui-cell__bd">
<input class="weui-input" type="idcard" placeholder="填写身份证号" placeholder-class="weui-input__placeholder"
bindinput="bindinput2" value="{{ID_number}}" />
</view>
</view>
</view>
<view style="text-align:center;margin-top:4px;">
<view>
<view class="searWrap">
<input class="infoInput" placeholder="填写证书编号/身份证号" placeholder-class="weui-input__placeholder" bindinput="bindinput"
value="{{ID_number}}"/>
<view class="searchBtn" bindtap="search">查询</view>
</view>
<view class="weui-cells__title">查询结果</view>
<view wx:if="{{candidates.length}}">
<block wx:for="{{candidates}}" wx:key="unique">
<view class="weui-cell" data-url="{{item.img}}" bindlongpress="copyUrl">
<view class="weui-cell__bd">
<view class="weui-media-box__title">
单号:{{item.report_number}}</view>
<view class="weui-media-box__desc">
<view style="color:darkblue">发证日期:{{item.issue_date}}</view>
<view class="listWrap">
<view wx:if="{{candidates.length}}">
<view class="listTitle">证书列表</view>
<block wx:for="{{candidates}}" wx:key="unique">
<view class="weui-cell" data-url="{{item.img}}" data-id="{{item.id}}" bindlongpress="copyUrl" style="border-bottom: 1rpx solid #eeeeee;" bindtap="toDetail">
<view class="weui-cell__bd">
<view class="weui-media-box__title">
姓名:{{item.consumer_name}}</view>
<view class="weui-media-box__desc">
<view style="color:darkblue"> 证书号:{{item.number}}</view>
</view>
<view class="weui-media-box__desc">
<view>发证日期:{{item.issue_date}}</view>
</view>
</view>
<view class="weui-cell__ft">
<view style="color:green">通过考核</view>
<!-- <view >长按复制地址去浏览器打开</view> -->
</view>
</view>
<view class="weui-cell__ft">
<view style="color:green">通过考核</view>
<view >长按复制地址去浏览器打开</view>
</view>
</view>
</block>
</block>
</view>
<view wx:else style="text-align:center">暂无证书信息</view>
</view>
<view class="noCertificate" wx:else>暂无证书信息</view>
</view>

View File

@ -1,16 +1,36 @@
/* pages/candidate/index.wxss */
.searWrap{
display: flex;
margin-top: 30rpx;
}
.searchBtn{
width: 300rpx;
/* flex: 2; */
width: 150rpx;
height: 100rpx;
line-height: 100rpx;
margin: 100rpx auto;
text-align: center;
color: #ffffff;
font-size: 36rpx;
border-radius: 40rpx;
margin-right: 20rpx;
background-color:#438af4 ;
}
.noCertificate{
color: #666666;
text-align:center;
.infoInput{
flex: 4;
height: 100rpx;
line-height: 100rpx;
padding: 0 20rpx;
box-sizing: border-box;
border: 1rpx solid #dddddd;
border-radius: 40rpx;
margin: 0 20rpx;
}
.listWrap{
padding: 20rpx;
box-sizing: border-box;
}
.listTitle{
height: 70rpx;
padding-left: 30rpx;
line-height: 70rpx;
font-size: 36rpx;
}

View File

@ -1,9 +1,6 @@
.head{
width:100%;
height:30px;
color:#fff;
background-color: cornflowerblue;
text-align: left;
display:flex;
flex-direction: row;
}
@ -33,7 +30,7 @@
z-index: 10;
width: 100%;
position: fixed;
padding-bottom: 20rpx;
padding: 15rpx 0;
background-color:#438af4
}
.typeBtns{

View File

@ -1,9 +1,5 @@
.head{
width:100%;
height:30px;
color:#fff;
background-color: cornflowerblue;
text-align: left;
display:flex;
flex-direction: row;
}
@ -42,7 +38,9 @@
width: 100%;
position: fixed;
padding-bottom: 20rpx;
background-color:#438af4
padding: 15rpx;
background-color: #438af4;
box-sizing: border-box;
}
.typeBtns{
margin: auto;

View File

@ -1,86 +0,0 @@
// pages/lianxi/index.js
const api = require("../../../utils/request.js");
Page({
/**
* 页面的初始数据
*/
data: {
results: [],
count:1,
query: {
page: 1,
limit: 10
}
},
/**
* 生命周期函数--监听页面加载
*/
onLoad: function () {
// that.getList(that.data.query)
},
/**
* 生命周期函数--监听页面初次渲染完成
*/
onReady: function () {
},
/**
* 生命周期函数--监听页面显示
*/
onShow: function () {
},
getList: function () {
var that = this
},
baogaodan(){
wx.navigateTo({
url: '/pages/candidate/my',
})
},
chengji(){
wx.navigateTo({
url: '/pages/candidate/index',
})
},
/**
* 生命周期函数--监听页面隐藏
*/
onHide: function () {
},
/**
* 生命周期函数--监听页面卸载
*/
onUnload: function () {
},
/**
* 页面相关事件处理函数--监听用户下拉动作
*/
onPullDownRefresh: function () {
},
/**
* 页面上拉触底事件的处理函数
*/
onReachBottom: function () {
},
/**
* 用户点击右上角分享
*/
onShareAppMessage: function () {
},
})

View File

@ -1,6 +0,0 @@
{
"usingComponents": {},
"enablePullDownRefresh": true,
"onReachBottomDistance": 50,
"navigationBarTitleText": "证书查询"
}

View File

@ -1,6 +0,0 @@
<view>
<view>
<view class="searchBtn" bindtap="baogaodan">报告单查询</view>
<view class="searchBtn" bindtap="chengji">成绩查询</view>
</view>
</view>

View File

@ -1,10 +0,0 @@
.searchBtn{
width: 400rpx;
height: 100rpx;
line-height: 100rpx;
margin: 100rpx auto;
text-align: center;
color: #ffffff;
border-radius: 40rpx;
background-color:#438af4 ;
}

View File

@ -21,9 +21,9 @@ Page({
nowWork:null,
userinfo:{},
msgList: [
{ title: "欢迎使用气味分析小程序!" },
{ title: "首次访问用户有3次自助模考机会" },
{ title: "如有疑问,请致电课程顾问" },
{ title: "欢迎使用气味培训平台" },
{ title: "欢迎使用气味培训平台" },
{ title: "欢迎使用气味培训平台" },
]
},
imgH: function (e) {
@ -119,11 +119,18 @@ Page({
wx.navigateTo({
url: '/pages/main/Introduction/Introduction',
})
},
//成绩查询
goScore(){
wx.navigateTo({
url: '/pages/candidate/index',
})
},
//证书查询
goCertificate(){
wx.navigateTo({
url: '/pages/main/certificate/certificate',
url: '/pages/candidate/index',
})
},
//参加考试
@ -228,12 +235,6 @@ Page({
}
}
},
goScore(){
wx.navigateTo({
url: '/pages/candidate/index',
})
},
testList: function (){
wx.navigateTo({
url: '/pages/test/list',

View File

@ -1,8 +1,7 @@
<view class="page">
<view style="background-color: #ffffff;position: fixed;top: 0;left: 0;z-index: 10;width: 100%;">
<!-- <input class="weui-input searchInput" maxlength="10" bindinput="search" placeholder="搜题"/> -->
<!-- <view style="background-color: #ffffff;position: fixed;top: 0;left: 0;z-index: 10;width: 100%;">
<mp-searchbar class="searchWrap" bindselectresult="selectResult" search="{{search}}" placeholder="搜题"></mp-searchbar>
</view>
</view> -->
<!-- 轮播图 -->
<view class="page-section page-section-spacing swiper">
<swiper indicator-dots="{{indicatorDots}}" autoplay="{{autoplay}}" interval="{{interval}}" duration="{{duration}}" style='height:{{Hei}}'>
@ -23,7 +22,6 @@
</swiper>
<!-- 快捷按钮 -->
<view class="listItemsWrap">
<!-- <view class="listItemsTitle"> 人员考试</view> -->
<a class="topItem" bindtap="goIntroduction">
<image class="topItemImg" src="/images/yewu.png" mode="widthFix"></image>
<view class="topItemText">业务介绍</view>
@ -37,7 +35,7 @@
<view class="topItemText">证书查询</view>
</a>
<a class="topItem" bindtap="goExam">
<image class="topItemImg" src="/images/canjiakaoshi.png" mode="widthFix"></image>
<image class="topItemImg" src="/images/zizhukaoshi.png" mode="widthFix"></image>
<view class="topItemText">参加考试</view>
</a>
</view>
@ -55,7 +53,7 @@
<view class="listItemsTitle"> 人员考试</view>
<view wx:if="{{userinfo && userinfo.name}}">
<a class="topItem" bindtap="goYati">
<image class="topItemImg" src="/images/zizhukaoshi.png" mode="widthFix"></image>
<image class="topItemImg" src="/images/chengjichaxun.png" mode="widthFix"></image>
<view class="topItemText">押卷模考</view>
</a>
<a class="topItem" bindtap="goMoni">
@ -78,10 +76,6 @@
<image class="topItemImg" src="/images/kaoshijilu.png" mode="widthFix"></image>
<view class="topItemText">考试记录</view>
</a>
<a class="topItem" bindtap="goCertificate">
<image class="topItemImg" src="/images/chengjichaxun.png" mode="widthFix"></image>
<view class="topItemText">成绩查询</view>
</a>
<a class="topItem" bindtap="goVideo">
<image class="topItemImg" src="/images/video.png" mode="widthFix"></image>
<view class="topItemText fontAli">视频课程</view>
@ -94,6 +88,10 @@
</navigator>
</view>
</view>
<!-- <a class="topItem" bindtap="goScore">
<image class="topItemImg" src="/images/chengjichaxun.png" mode="widthFix"></image>
<view class="topItemText">成绩查询</view>
</a> -->
<!-- <view class="weui-cells weui-cells_after-title" style="margin-top:0px;padding: 20rpx;">
<view class="examDepTitle">人员考试</view>
<view class="weui-flex">

View File

@ -1,7 +1,5 @@
.page{
padding-top: 111rpx;
background: #f1f1f1;
padding-bottom: 20rpx;
padding: 20rpx 30rpx;
}
.searchWrap .weui-search-bar__form{
border-radius: 50rpx;
@ -34,49 +32,45 @@
background-color: #438af4;
}
.swiperImgItem{
padding: 1% 2% ;
height: 300rpx;
box-sizing: border-box;
background: #ffffff;
}
.swiperImg{
height: 300rpx;
border-radius: 30rpx;
}
.swiper_container1 {
height: 50rpx;
width: 96%;
height: 70rpx;
text-align: center;
margin: auto;
border-radius: 20rpx;
border-radius: 15rpx;
overflow: hidden;
margin-top: 7rpx;
margin-top: 20rpx;
}
.swiperTextItem{
box-sizing: border-box;
background: #ffffff;
}
.swiper_item1 {
height: 50rpx;
font-size: 30rpx;
font-weight: bold;
color:#79797e;
height: 70rpx;
line-height: 70rpx;
font-size: 28rpx;
color:red;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
background: #ffffff;
background: #f7f7f7;
}
.listItemsWrap{
width: 96%;
/* width: 96%; */
margin: 10rpx auto;
margin-top: 20rpx;
padding: 20rpx;
padding:10rpx 20rpx;
box-sizing: border-box;
background: #ffffff;
border-radius: 20rpx;
background: #f7f7f7;
box-shadow: 0 0 15rpx 5rpx #ffffff;
}
.listItemsTitle{
padding: 20rpx;
padding: 0 20rpx;
font-size: 30rpx;
font-weight: 600;
}
@ -89,7 +83,6 @@
width: 33.3%
}
.bigCard {
background-color: white;
height: 100%;
width:100%;
display: flex;

View File

@ -11,10 +11,12 @@ Page({
// {id:34232,name:'test',path:'',description:'test'},
// {id:34232,name:'test',path:'',description:'test'},
],
cateData:['标准文件','文献','指南','未分类'],
query: {
page: 1,
limit: 10,
type:'文档'
type:'文档',
cate:'标准文件'
}
},
onLoad: function () {
@ -45,8 +47,10 @@ Page({
},
typeChange(e){
this.setData({
active:e.target.dataset.type
['query.cate']:e.target.dataset.type,
['query.page']:1
})
this.getList();
},
itemClick(e){
console.log(e.currentTarget.dataset)

View File

@ -16,34 +16,29 @@
type: type,
}
</wxs>
<view class="page">
<view class="page" style="height:calc(100%-112rpx);box-sizing: border-box;">
<view class="weui-flex searchWrap" style="background-color: #ffffff;">
<input class="weui-input searchInput" maxlength="10" bindinput="bindKeyInput" placeholder="搜索文档名称"/>
<!-- <view class="searchBtn">搜索</view> -->
</view>
<view class="weui-flex" style="height: 100%;">
<view style="flex-shrink:0;width:200rpx;border-right: 1rpx solid #eeeeee;">
<view class="tabItem {{ active==0?'activeType':'' }}" bindtap="typeChange" data-type="0">
<view class="activeLine" wx:if="{{active==0}}"></view>标准文件
<view class="materialWrap" style="height:calc(100%-210rpx);">
<view class="tabWrap">
<view wx:for="{{cateData}}" class="tabItem {{ item==query.cate?'activeType':'' }}" bindtap="typeChange" data-type="{{item}}">
<view class="activeLine" wx:if="{{item==query.cate}}"></view>{{item}}
</view>
<!-- <view class="tabItem {{ active==1?'activeType':'' }}" bindtap="typeChange" data-type="1">
<view wx:if="{{active==1}}" class="activeLine"></view>其他资料
</view> -->
</view>
<view class="listWrap">
<view class="listWrap" style="width: calc(100%-200rpx);">
<block wx:for="{{results}}" wx:key="unique">
<view class="listItemWrap" bindtap="itemClick" data-id="{{item.id}}" data-name="{{item.name}}">
<view class="listItemImg">
<image wx:if="{{activeImage.type(item.path)=='pdf'}}" mode="widthFix" class="itemImg" src="/images/pdf.svg"></image>
<image wx:if="{{activeImage.type(item.path)=='word'}}" mode="widthFix" class=itemImg" src="/images/word.svg"></image>
<image wx:elif="{{activeImage.type(item.path)=='word'}}" mode="widthFix" class=itemImg" src="/images/word.svg"></image>
<image wx:elif="{{activeImage.type(item.path)=='ppt'}}" mode="widthFix" class="itemImg" src="/images/ppt.svg"></image>
<image wx:else class="itemImg" mode="widthFix" src="/images/file.svg"></image>
</view>
<view class="listItemText">
<view class="weui-media-box__title">{{item.name}}</view>
<view class="weui-media-box__desc" style="display: flex;">
<text>{{item.description}}</text>
<text wx:if="{{item.description!==null}}">{{item.description}}</text>
<view>
下载量:<text style="color:darkblue;font-weight:bold">{{item.down_count}}</text>
</view>

View File

@ -1,3 +1,6 @@
.page{
padding-top: 105rpx;
}
.head{
color:#fff;
background-color: cornflowerblue;
@ -5,8 +8,12 @@
}
.searchWrap {
padding: 20rpx 40rpx;
display: flex;
border-bottom: 2rpx solid #eeeeee;
display: flex;
border-bottom: 2rpx solid #eeeeee;
position: fixed;
top: 0;
width: 100%;
z-index: 100;
}
.searchInput{
height: 70rpx;
@ -41,17 +48,24 @@
top: 20rpx;
background-color: #438af4;
}
.tabWrap{
float: left;
width: 200rpx;
border-right: 1rpx solid #eeeeee;
position: fixed;
top: 90rpx;
}
.listWrap{
overflow: hidden;
margin-top:0px;
width: 100%;
padding-left: 200rpx;
}
.listItemWrap{
display: flex;
position: relative;
padding:20rpx 20rpx 0 20rpx;
}
.listItemImg{
flex-shrink:0;
float: left;
width: 120rpx;
}
.listItemImg>image{
@ -59,7 +73,7 @@
}
.listItemText{
padding-bottom: 20rpx;
width: 100%;
overflow: hidden;
border-bottom: 2rpx solid #eeeeee;
}
.downloadBtn{
@ -71,7 +85,7 @@
text-align: center;
border-radius: 10rpx;
font-size: 24rpx;
top: 50%;
bottom: 0;
transform: translateY(-50%);
}

View File

@ -7,8 +7,11 @@ Page({
* 页面的初始数据
*/
data: {
isTest:true,
results: [],
types:['自助模考','押卷模考','正式考试'],
query:{
type:"自助模考",//“自助模考”,“正式考试”,"押卷模考"
page:1,
limit:10
}
@ -18,28 +21,29 @@ Page({
* 生命周期函数--监听页面加载
*/
onLoad: function (options) {
var that = this
if(options.type=1){
that.data.query.type='正式考试'
that.data.query.workscope=getApp().globalData.userinfo.workscope
}
that.getList(that.data.query)
},
/**
* 生命周期函数--监听页面初次渲染完成
*/
onReady: function () {
// var that = this
// if(options.type=1){
// that.data.query.type='正式考试'
// that.data.query.workscope=getApp().globalData.userinfo.workscope
// }
// that.getList(that.data.query)
},
/**
* 生命周期函数--监听页面显示
*/
onShow: function () {
this.getList();
},
changeActive(e){
this.setData({
['query.page']:1,
['query.type']:e.target.dataset.type
})
this.getList();
},
getList: function () {
var that = this
var that = this;
api.request('/examtest/examtest/self/', 'GET', that.data.query).then(res => {
for(var i=0;i<res.data.results.length;i++){
res.data.results[i].took = util.formatSecond(res.data.results[i].took)
@ -49,7 +53,6 @@ Page({
} else {
that.data.results = that.data.results.concat(res.data.results)
}
that.setData({
results: that.data.results,
count: res.data.count

View File

@ -1,5 +1,10 @@
<view class="pages page">
<view class="head">共{{count}}条考试记录</view>
<view class="head">
<view style="display: flex;">
<view wx:for="{{types}}" wx:key="unique" class="typeBtn {{item==query.type ? 'activeBtn' : 'normalBtn'}}" data-type="{{item}}" bindtap="changeActive">{{item}}</view>
</view>
<text style="font-size: 28rpx;">共{{count}}条记录</text>
</view>
<view class="weui-cells weui-cells_after-title" style="margin-top:0px">
<block wx:for="{{results}}" wx:key="unique">
<navigator url="detail?id={{item.id}}" class="weui-media-box weui-media-box_appmsg" hover-class="weui-cell_active">
@ -20,9 +25,7 @@
<view class="weui-media-box__desc">
耗时:{{item.took}}
<view>开始考试时间:{{item.start_time}}</view>
</view>
</view>
<view class="weui-panel__ft weui-cell__ft_in-access">
<view class="weui-media-box__desc" style="color: #438af4;">答卷详情</view>

View File

@ -1,16 +1,28 @@
.pages{
box-sizing: border-box;
padding: 60rpx 10rpx 0 10rpx;
padding: 80rpx 10rpx 0 10rpx;
}
.head{
top: 0;
left: 0;
z-index: 10;
width: 100%;
color:#fff;
position: fixed;
text-align: center;
padding-bottom: 20rpx;
letter-spacing: 0.1em;
background-color:#438af4
height: 80rpx;
line-height: 50rpx;
padding: 20rpx 20rpx 0 20rpx;
box-sizing: border-box;
/* letter-spacing: 0.1em; */
display: flex;
justify-content: space-between;
}
.typeBtn{
min-width: 100rpx;
font-size: 34rpx;
text-align: center;
margin-right: 20rpx;
}
.activeBtn{
color: #438af4;
border-bottom: 4rpx solid #438af4;
}