Commit e637ffbb authored by 实打实的's avatar 实打实的

小修改

parent b546d22d
......@@ -121,7 +121,7 @@ export const dosign = {
export const judgeAuthority = {
"code": 10012,
"data": {
"authority": "yes"
"authority": "no"
},
"message": null,
"success": true
......
......@@ -13,7 +13,7 @@
"@spark/guideact": "^1.0.11",
"@spark/projectx": "^1.0.3",
"@spark/share": "^1.0.29",
"@spark/ui": "^1.0.25",
"@spark/ui": "^2.0.36",
"axios": "^0.19.2",
"css-loader": "^3.6.0",
"duiba-utils": "^1.0.2",
......
'use strict';
import React, { Component } from 'react';
import { Toast } from '@spark/ui';
import { Toast, Loading } from '@spark/ui';
import resList from '../../resconfig/resList';
import API from '../../api';
import './task.less';
......@@ -10,16 +10,20 @@ class Task extends Component {
super(props);
this.state = {
resList: resList,
flag: true
flag: ''
};
}
componentDidMount() {
Loading.show();
this.judgeAuthority();
}
judgeAuthority = async () => {
const result = await API.judgeAuthority();
let result = await API.judgeAuthority();
if (result && result.success) {
if (typeof result.data == 'string') {
result.data = JSON.parse(result.data);
}
if (result.data.authority == 'yes') {
this.setState({
flag: false,
......@@ -34,6 +38,7 @@ class Task extends Component {
Toast("网络错误,请刷新页面后重试");
}
Loading.hide();
}
toApplyCard = () => {
......@@ -56,11 +61,7 @@ class Task extends Component {
<img className="xing_qiu_da_zuo_zhan " src={this.state.resList['654f2e6f-aea1-4555-979b-3ca520ed7381'].url} />
<img className="dong_wu_lian_meng " src={this.state.resList['b635ec14-2e70-4f6c-b304-d031e4b0b5d9'].url} />
</div>
<img
className="fan_hui_nong_chang_an_niu "
src={this.state.resList['74bb50cd-5998-4274-af3e-e91b20099433'].url}
onClick={this.props.closeWin}
/>
<div className="jiao_hu_kuang ">
<img className="qian_jing " src={this.state.resList['d9131617-ff12-4e1b-87ea-97304f2f5316'].url} />
{this.state.flag && <img className="qu_ban_li md14" src={this.state.resList['bd9cf4ad-19c0-42b7-a003-fd3a0e948215'].url} onClick={this.toApplyCard} />}
......@@ -86,6 +87,11 @@ class Task extends Component {
}
/>
</div>
<img
className="fan_hui_nong_chang_an_niu "
src={this.state.resList['74bb50cd-5998-4274-af3e-e91b20099433'].url}
onClick={this.props.closeWin}
/>
</div>
);
}
......
......@@ -9,6 +9,13 @@
dependencies:
regenerator-runtime "^0.13.4"
"@babel/runtime@^7.12.1", "@babel/runtime@^7.12.5", "@babel/runtime@^7.7.6":
version "7.14.6"
resolved "http://npm.dui88.com:80/@babel%2fruntime/-/runtime-7.14.6.tgz#535203bc0892efc7dec60bdc27b2ecf6e409062d"
integrity sha1-U1IDvAiS78fexgvcJ7Ls9uQJBi0=
dependencies:
regenerator-runtime "^0.13.4"
"@spark/api-base@^1.0.11", "@spark/api-base@^1.0.12":
version "1.0.36"
resolved "http://npm.dui88.com:80/@spark%2fapi-base/-/api-base-1.0.36.tgz#7c9aaa8d1337dae9701417563f4466bd51efc435"
......@@ -21,6 +28,24 @@
spark-wrapper-fyge "^1.0.4"
yarn "^1.22.10"
"@spark/api-base@^2.0.17", "@spark/api-base@^2.0.7", "@spark/api-base@^2.0.9":
version "2.0.29"
resolved "http://npm.dui88.com:80/@spark%2fapi-base/-/api-base-2.0.29.tgz#8a2a7947fd1f71c668555b8fb6f3d410d16ad8ff"
integrity sha512-oHdTNi8Ilj/1FaHabw7wsWTjOy4LdJ1dQY0jRG88ESWjTvIzcU3p76P0xExqvhUjKJ3mUKakPUIjf6g6aqvVGA==
dependencies:
"@spark/common-helpers" "^1.0.19"
"@spark/utils" "^2.0.3"
"@spark/common-helpers@^1.0.1", "@spark/common-helpers@^1.0.19":
version "1.0.21"
resolved "http://npm.dui88.com:80/@spark%2fcommon-helpers/-/common-helpers-1.0.21.tgz#e4a60a9efbd5c76717ee3ac03504c2068a6eee35"
integrity sha512-1TKpt40iX0G4/yA89ju+KU340GwEiJgNSEHPCYO/Wgwi6seHbHlcVHgBD6TiKoNTIuAG+3xPhioS18zszjbbNg==
dependencies:
"@babel/runtime" "^7.12.5"
"@spark/api-base" "^2.0.7"
"@spark/projectx" "^2.0.10"
duiba-utils "^1.0.6"
"@spark/guideact@^1.0.11":
version "1.0.11"
resolved "http://npm.dui88.com:80/@spark%2fguideact/-/guideact-1.0.11.tgz#f682ac943d861a1721dfcd00a1dc2d3c4b817ff4"
......@@ -36,6 +61,15 @@
dependencies:
"@types/react" "^16.9.56"
"@spark/projectx@^2.0.10":
version "2.0.13"
resolved "http://npm.dui88.com:80/@spark%2fprojectx/-/projectx-2.0.13.tgz#a87cb7642a9a5e93e5aee752f04eb5f5814972eb"
integrity sha512-ow8ATHzlq7SXVJveP4LdLpF+k2eGwKpKrDTr2scfp+LMtlxbLQIXZL/D7RQVwTwJnk7zIYw6gKlpaTKmdXqfmg==
dependencies:
"@spark/api-base" "^2.0.9"
"@spark/common-helpers" "^1.0.1"
"@spark/utils" "^2.0.19"
"@spark/share@^1.0.29":
version "1.0.35"
resolved "http://npm.dui88.com:80/@spark%2fshare/-/share-1.0.35.tgz#674b9998aa24d0f9a48eadbf234e8376d510f1e6"
......@@ -45,16 +79,17 @@
"@spark/utils" "^1.0.34"
"@types/react" "^16.9.56"
"@spark/ui@^1.0.25":
version "1.0.42"
resolved "http://npm.dui88.com:80/@spark%2fui/-/ui-1.0.42.tgz#54f99bfaa1887a4f159ad4c638b8ca0f7daf4438"
integrity sha512-GDbmAkELM9wh88KZuarZJhWdg4shIFiKJrKlB/ZwjX/Jnq9z9nmNAPnNErq5m+ii1aZjQLCLxjkeF3W98L0cew==
"@spark/ui@^2.0.36":
version "2.0.36"
resolved "http://npm.dui88.com:80/@spark%2fui/-/ui-2.0.36.tgz#6806cc07d46c2126f755f451ff29bdcf0d3441ee"
integrity sha512-QI9R2h9LNeVqOCIs3NztTN7HAkkAHpLnM9TVNFVdWfg5vZw50vCkdEEJC59pxDdANg2Um21HzQEkeTQn5QB/xQ==
dependencies:
"@types/classnames" "^2.2.11"
"@types/hammerjs" "^2.0.36"
"@types/react" "^16.9.56"
"@spark/utils" "^2.0.20"
classnames "^2.2.6"
hammerjs "^2.0.8"
history "*"
react-router-dom "*"
spark-wrapper-fyge "^1.0.30"
"@spark/utils@^1.0.22", "@spark/utils@^1.0.34":
version "1.0.38"
......@@ -66,21 +101,22 @@
crypto-js "^4.0.0"
html2canvas "^1.0.0-rc.7"
"@types/classnames@^2.2.11":
version "2.2.11"
resolved "http://npm.dui88.com:80/@types%2fclassnames/-/classnames-2.2.11.tgz#2521cc86f69d15c5b90664e4829d84566052c1cf"
integrity sha1-JSHMhvadFcW5BmTkgp2EVmBSwc8=
"@spark/utils@^2.0.19", "@spark/utils@^2.0.20", "@spark/utils@^2.0.3":
version "2.0.41"
resolved "http://npm.dui88.com:80/@spark%2futils/-/utils-2.0.41.tgz#e707663f53709cfd07f8a1e5de1a4259e3ea1546"
integrity sha512-DXrBiQyAKRz6gSmGnuUV+RFrpKNGrV54CILqy1blADI5DSUXuC0/aDqorJv2JKZPToM01tUNb056IlcqMuoWYg==
dependencies:
"@spark/api-base" "^2.0.17"
crypto-js "^4.0.0"
howler "^2.2.1"
html-shot "^1.0.13"
intersection-observer "^0.12.0"
"@types/crypto-js@^4.0.1":
version "4.0.1"
resolved "http://npm.dui88.com:80/@types%2fcrypto-js/-/crypto-js-4.0.1.tgz#3a4bd24518b0e6c5940da4e2659eeb2ef0806963"
integrity sha1-OkvSRRiw5sWUDaTiZZ7rLvCAaWM=
"@types/hammerjs@^2.0.36":
version "2.0.39"
resolved "http://npm.dui88.com:80/@types%2fhammerjs/-/hammerjs-2.0.39.tgz#4be64bbacf3813c79c0dab895c6b0fdc7d5e513f"
integrity sha1-S+ZLus84E8ecDauJXGsP3H1eUT8=
"@types/json-schema@^7.0.5":
version "7.0.7"
resolved "http://npm.dui88.com:80/@types%2fjson-schema/-/json-schema-7.0.7.tgz#98a993516c859eb0d5c4c8f098317a9ea68db9ad"
......@@ -296,7 +332,7 @@ debug@=3.1.0:
dependencies:
ms "2.0.0"
duiba-utils@^1.0.2:
duiba-utils@^1.0.0, duiba-utils@^1.0.2, duiba-utils@^1.0.6:
version "1.0.9"
resolved "http://npm.dui88.com:80/duiba-utils/-/duiba-utils-1.0.9.tgz#7a1e09e08a8754a1563b18aa6b117cb270f76877"
integrity sha512-3YB5w05gNruS4yyN0cx2Qktr0vG0AXYOumfV6WYlzlMx3kGX3AihBLT2/PouERtkLfFk2q4cIikSkgwramHTmg==
......@@ -372,6 +408,14 @@ fyge@^2.0.17:
dependencies:
typedoc "^0.20.20"
fyge@^3.0.4:
version "3.0.4"
resolved "http://npm.dui88.com:80/fyge/-/fyge-3.0.4.tgz#decbb6052175832c2342ec659ad916c0b0570eac"
integrity sha512-YEh4Aw/kG1czP4l9tKSdKW77z1q/EzC0kV+tind/TxoCX2odUvqVbVszcEv6Xgsko0ZZgGOPPI0G9qBpiq9Paw==
dependencies:
duiba-utils "^1.0.0"
tslib "^2.1.0"
glob@^7.0.0:
version "7.1.6"
resolved "http://npm.dui88.com:80/glob/-/glob-7.1.6.tgz#141f33b81a7c2492e125594307480c46679278a6"
......@@ -418,13 +462,42 @@ has@^1.0.3:
dependencies:
function-bind "^1.1.1"
hoist-non-react-statics@^3.3.0:
history@*:
version "5.0.0"
resolved "http://npm.dui88.com:80/history/-/history-5.0.0.tgz#0cabbb6c4bbf835addb874f8259f6d25101efd08"
integrity sha1-DKu7bEu/g1rduHT4JZ9tJRAe/Qg=
dependencies:
"@babel/runtime" "^7.7.6"
history@^4.9.0:
version "4.10.1"
resolved "http://npm.dui88.com:80/history/-/history-4.10.1.tgz#33371a65e3a83b267434e2b3f3b1b4c58aad4cf3"
integrity sha1-MzcaZeOoOyZ0NOKz87G0xYqtTPM=
dependencies:
"@babel/runtime" "^7.1.2"
loose-envify "^1.2.0"
resolve-pathname "^3.0.0"
tiny-invariant "^1.0.2"
tiny-warning "^1.0.0"
value-equal "^1.0.1"
hoist-non-react-statics@^3.1.0, hoist-non-react-statics@^3.3.0:
version "3.3.2"
resolved "http://npm.dui88.com:80/hoist-non-react-statics/-/hoist-non-react-statics-3.3.2.tgz#ece0acaf71d62c2969c2ec59feff42a4b1a85b45"
integrity sha1-7OCsr3HWLClpwuxZ/v9CpLGoW0U=
dependencies:
react-is "^16.7.0"
howler@^2.2.1:
version "2.2.2"
resolved "http://npm.dui88.com:80/howler/-/howler-2.2.2.tgz#0523b737bd2a7b0a0885e57acb9eede26c13807d"
integrity sha1-BSO3N70qewoIheV6y57t4mwTgH0=
html-shot@^1.0.13:
version "1.0.19"
resolved "http://npm.dui88.com:80/html-shot/-/html-shot-1.0.19.tgz#604ba966ab50acb8b5fb29ef46c4242002a32147"
integrity sha512-tvDrW44f+r93kOPHAl6fJAEu/Qv8pFWveJjBED68SPNksszw8N4QbLaTjpev/Tr7Hb4yl+ZPxT2ctfHjFkFpRg==
html2canvas@^1.0.0-rc.7:
version "1.0.0-rc.7"
resolved "http://npm.dui88.com:80/html2canvas/-/html2canvas-1.0.0-rc.7.tgz#70c159ce0e63954a91169531894d08ad5627ac98"
......@@ -489,6 +562,11 @@ intersection-observer@^0.11.0:
resolved "http://npm.dui88.com:80/intersection-observer/-/intersection-observer-0.11.0.tgz#f4ea067070326f68393ee161cc0a2ca4c0040c6f"
integrity sha1-9OoGcHAyb2g5PuFhzAospMAEDG8=
intersection-observer@^0.12.0:
version "0.12.0"
resolved "http://npm.dui88.com:80/intersection-observer/-/intersection-observer-0.12.0.tgz#6c84628f67ce8698e5f9ccf857d97718745837aa"
integrity sha1-bIRij2fOhpjl+cz4V9l3GHRYN6o=
invariant@^2.2.4:
version "2.2.4"
resolved "http://npm.dui88.com:80/invariant/-/invariant-2.2.4.tgz#610f3c92c9359ce1db616e538008d23ff35158e6"
......@@ -513,6 +591,11 @@ is-directory@^0.3.1:
resolved "http://npm.dui88.com:80/is-directory/-/is-directory-0.3.1.tgz#61339b6f2475fc772fd9c9d83f5c8575dc154ae1"
integrity sha1-YTObbyR1/Hcv2cnYP1yFddwVSuE=
isarray@0.0.1:
version "0.0.1"
resolved "http://npm.dui88.com:80/isarray/-/isarray-0.0.1.tgz#8a18acfca9a8f4177e09abfc6038939b05d1eedf"
integrity sha1-ihis/Kmo9Bd+Cav8YDiTmwXR7t8=
"js-tokens@^3.0.0 || ^4.0.0":
version "4.0.0"
resolved "http://npm.dui88.com:80/js-tokens/-/js-tokens-4.0.0.tgz#19203fb59991df98e3a287050d4647cdeaf32499"
......@@ -582,7 +665,7 @@ lodash@^4.17.21:
resolved "http://npm.dui88.com:80/lodash/-/lodash-4.17.21.tgz#679591c564c3bffaae8454cf0b3df370c3d6911c"
integrity sha1-Z5WRxWTDv/quhFTPCz3zcMPWkRw=
loose-envify@^1.0.0, loose-envify@^1.1.0, loose-envify@^1.4.0:
loose-envify@^1.0.0, loose-envify@^1.1.0, loose-envify@^1.2.0, loose-envify@^1.3.1, loose-envify@^1.4.0:
version "1.4.0"
resolved "http://npm.dui88.com:80/loose-envify/-/loose-envify-1.4.0.tgz#71ee51fa7be4caec1a63839f7e682d8132d30caf"
integrity sha1-ce5R+nvkyuwaY4OffmgtgTLTDK8=
......@@ -606,6 +689,14 @@ marked@^2.0.0:
resolved "http://npm.dui88.com:80/marked/-/marked-2.0.0.tgz#9662bbcb77ebbded0662a7be66ff929a8611cee5"
integrity sha1-lmK7y3frve0GYqe+Zv+SmoYRzuU=
mini-create-react-context@^0.4.0:
version "0.4.1"
resolved "http://npm.dui88.com:80/mini-create-react-context/-/mini-create-react-context-0.4.1.tgz#072171561bfdc922da08a60c2197a497cc2d1d5e"
integrity sha1-ByFxVhv9ySLaCKYMIZekl8wtHV4=
dependencies:
"@babel/runtime" "^7.12.1"
tiny-warning "^1.0.3"
minimatch@^3.0.0, minimatch@^3.0.4:
version "3.0.4"
resolved "http://npm.dui88.com:80/minimatch/-/minimatch-3.0.4.tgz#5166e286457f03306064be5497e8dbb0c3d32083"
......@@ -677,6 +768,13 @@ path-parse@^1.0.6:
resolved "http://npm.dui88.com:80/path-parse/-/path-parse-1.0.6.tgz#d62dbb5679405d72c4737ec58600e9ddcf06d24c"
integrity sha1-1i27VnlAXXLEc37FhgDp3c8G0kw=
path-to-regexp@^1.7.0:
version "1.8.0"
resolved "http://npm.dui88.com:80/path-to-regexp/-/path-to-regexp-1.8.0.tgz#887b3ba9d84393e87a0a0b9f4cb756198b53548a"
integrity sha1-iHs7qdhDk+h6CgufTLdWGYtTVIo=
dependencies:
isarray "0.0.1"
postcss-load-config@^2.0.0:
version "2.1.2"
resolved "http://npm.dui88.com:80/postcss-load-config/-/postcss-load-config-2.1.2.tgz#c5ea504f2c4aef33c7359a34de3573772ad7502a"
......@@ -814,6 +912,35 @@ react-redux@^5.0.7:
react-is "^16.6.0"
react-lifecycles-compat "^3.0.0"
react-router-dom@*:
version "5.2.0"
resolved "http://npm.dui88.com:80/react-router-dom/-/react-router-dom-5.2.0.tgz#9e65a4d0c45e13289e66c7b17c7e175d0ea15662"
integrity sha1-nmWk0MReEyieZsexfH4XXQ6hVmI=
dependencies:
"@babel/runtime" "^7.1.2"
history "^4.9.0"
loose-envify "^1.3.1"
prop-types "^15.6.2"
react-router "5.2.0"
tiny-invariant "^1.0.2"
tiny-warning "^1.0.0"
react-router@5.2.0:
version "5.2.0"
resolved "http://npm.dui88.com:80/react-router/-/react-router-5.2.0.tgz#424e75641ca8747fbf76e5ecca69781aa37ea293"
integrity sha1-Qk51ZByodH+/duXsyml4GqN+opM=
dependencies:
"@babel/runtime" "^7.1.2"
history "^4.9.0"
hoist-non-react-statics "^3.1.0"
loose-envify "^1.3.1"
mini-create-react-context "^0.4.0"
path-to-regexp "^1.7.0"
prop-types "^15.6.2"
react-is "^16.6.0"
tiny-invariant "^1.0.2"
tiny-warning "^1.0.0"
react@^16.4.1:
version "16.14.0"
resolved "http://npm.dui88.com:80/react/-/react-16.14.0.tgz#94d776ddd0aaa37da3eda8fc5b6b18a4c9a3114d"
......@@ -853,6 +980,11 @@ resolve-from@^3.0.0:
resolved "http://npm.dui88.com:80/resolve-from/-/resolve-from-3.0.0.tgz#b22c7af7d9d6881bc8b6e653335eebcb0a188748"
integrity sha1-six699nWiBvItuZTM17rywoYh0g=
resolve-pathname@^3.0.0:
version "3.0.0"
resolved "http://npm.dui88.com:80/resolve-pathname/-/resolve-pathname-3.0.0.tgz#99d02224d3cf263689becbb393bc560313025dcd"
integrity sha1-mdAiJNPPJjaJvsuzk7xWAxMCXc0=
resolve@^1.1.6:
version "1.20.0"
resolved "http://npm.dui88.com:80/resolve/-/resolve-1.20.0.tgz#629a013fb3f70755d6f0b7935cc1c2c5378b1975"
......@@ -929,6 +1061,13 @@ spark-wrapper-fyge@^1.0.16, spark-wrapper-fyge@^1.0.2, spark-wrapper-fyge@^1.0.4
dependencies:
fyge "^2.0.17"
spark-wrapper-fyge@^1.0.30:
version "1.1.3"
resolved "http://npm.dui88.com:80/spark-wrapper-fyge/-/spark-wrapper-fyge-1.1.3.tgz#3f57360e50b456fec982b030640bad48f3531cde"
integrity sha512-74F4cqWg/GD/RjU8nXxKBRGBYFu6ieM4f4EPd3xWSN16cQoEOD4m3eZ0SImUiavRfgIb2bo+DgSEvi1l97W+4A==
dependencies:
fyge "^3.0.4"
sprintf-js@~1.0.2:
version "1.0.3"
resolved "http://npm.dui88.com:80/sprintf-js/-/sprintf-js-1.0.3.tgz#04e6926f662895354f3dd015203633b857297e2c"
......@@ -966,6 +1105,21 @@ symbol-observable@^1.2.0:
resolved "http://npm.dui88.com:80/symbol-observable/-/symbol-observable-1.2.0.tgz#c22688aed4eab3cdc2dfeacbb561660560a00804"
integrity sha1-wiaIrtTqs83C3+rLtWFmBWCgCAQ=
tiny-invariant@^1.0.2:
version "1.1.0"
resolved "http://npm.dui88.com:80/tiny-invariant/-/tiny-invariant-1.1.0.tgz#634c5f8efdc27714b7f386c35e6760991d230875"
integrity sha1-Y0xfjv3CdxS384bDXmdgmR0jCHU=
tiny-warning@^1.0.0, tiny-warning@^1.0.3:
version "1.0.3"
resolved "http://npm.dui88.com:80/tiny-warning/-/tiny-warning-1.0.3.tgz#94a30db453df4c643d0fd566060d60a875d84754"
integrity sha1-lKMNtFPfTGQ9D9VmBg1gqHXYR1Q=
tslib@^2.1.0:
version "2.3.0"
resolved "http://npm.dui88.com:80/tslib/-/tslib-2.3.0.tgz#803b8cdab3e12ba581a4ca41c8839bbb0dacb09e"
integrity sha1-gDuM2rPhK6WBpMpByIObuw2ssJ4=
typedoc-default-themes@^0.12.7:
version "0.12.7"
resolved "http://npm.dui88.com:80/typedoc-default-themes/-/typedoc-default-themes-0.12.7.tgz#d44f68d40a3e90a19b5ea7be4cc6ed949afe768d"
......@@ -1015,6 +1169,11 @@ util-deprecate@^1.0.2:
resolved "http://npm.dui88.com:80/util-deprecate/-/util-deprecate-1.0.2.tgz#450d4dc9fa70de732762fbd2d4a28981419a0ccf"
integrity sha1-RQ1Nyfpw3nMnYvvS1KKJgUGaDM8=
value-equal@^1.0.1:
version "1.0.1"
resolved "http://npm.dui88.com:80/value-equal/-/value-equal-1.0.1.tgz#1e0b794c734c5c0cade179c437d356d931a34d6c"
integrity sha1-Hgt5THNMXAyt4XnEN9NW2TGjTWw=
vscode-textmate@^5.2.0:
version "5.2.0"
resolved "http://npm.dui88.com:80/vscode-textmate/-/vscode-textmate-5.2.0.tgz#01f01760a391e8222fe4f33fbccbd1ad71aed74e"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment