Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mr-julyedu
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
baiguangyao
mr-julyedu
Commits
cc93bc3a
Commit
cc93bc3a
authored
Aug 16, 2019
by
xuzhenghua
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test
parent
32d1f461
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
280 additions
and
313 deletions
+280
-313
build/asset-manifest.json
+0
-0
build/index.html
+0
-0
build/precache-manifest.19afcb629ae7daab1243c6cab5de5257.js
+0
-263
build/precache-manifest.c82dafc969e6f6974d99db74511704ee.js
+263
-0
build/service-worker.js
+1
-1
src/common/Course/course.scss
+0
-1
src/components/classify/index.js
+4
-4
src/components/my/edit.js
+3
-7
src/components/myOrders/index.js
+8
-32
src/components/order/index.js
+1
-1
src/components/shopCart/index.js
+0
-4
No files found.
build/asset-manifest.json
View file @
cc93bc3a
This diff is collapsed.
Click to expand it.
build/index.html
View file @
cc93bc3a
This diff is collapsed.
Click to expand it.
build/precache-manifest.19afcb629ae7daab1243c6cab5de5257.js
deleted
100644 → 0
View file @
32d1f461
self
.
__precacheManifest
=
[
{
"revision"
:
"7878eff7a63246dc89b3"
,
"url"
:
"/static/css/purchased.fb5cdbc2.chunk.css"
},
{
"revision"
:
"cd02f0f346c07e005619"
,
"url"
:
"/static/css/BargainMiddlePage.6d24aba4.chunk.css"
},
{
"revision"
:
"43c53d060907de881b06"
,
"url"
:
"/static/css/Classify.5ed0fc89.chunk.css"
},
{
"revision"
:
"43c53d060907de881b06"
,
"url"
:
"/static/js/Classify.51d89cce.chunk.js"
},
{
"revision"
:
"5694413a2021bbdc9058"
,
"url"
:
"/static/css/CourseList.5ce769bd.chunk.css"
},
{
"revision"
:
"5694413a2021bbdc9058"
,
"url"
:
"/static/js/CourseList.c76007ff.chunk.js"
},
{
"revision"
:
"6d676318dce81460fd5e"
,
"url"
:
"/static/css/DrawDocument.aeb3f822.chunk.css"
},
{
"revision"
:
"6d676318dce81460fd5e"
,
"url"
:
"/static/js/DrawDocument.1aed9418.chunk.js"
},
{
"revision"
:
"d48d7fdf8af4e690c4c4"
,
"url"
:
"/static/css/Examination.280c19c2.chunk.css"
},
{
"revision"
:
"d48d7fdf8af4e690c4c4"
,
"url"
:
"/static/js/Examination.29e9c55f.chunk.js"
},
{
"revision"
:
"3e70770f08638bf32f14"
,
"url"
:
"/static/js/MyEdit.085de024.chunk.js"
},
{
"revision"
:
"4be068b7a08929549f3b"
,
"url"
:
"/static/css/Order.061a2017.chunk.css"
},
{
"revision"
:
"4be068b7a08929549f3b"
,
"url"
:
"/static/js/Order.9bb33601.chunk.js"
},
{
"revision"
:
"cfad0e336606bee2e95b"
,
"url"
:
"/static/js/Orderinfo.20a5f741.chunk.js"
},
{
"revision"
:
"89ebec2151665987e176"
,
"url"
:
"/static/css/PayOrder.a9111f28.chunk.css"
},
{
"revision"
:
"89ebec2151665987e176"
,
"url"
:
"/static/js/PayOrder.b19cb7bf.chunk.js"
},
{
"revision"
:
"5d289710bee9eed106f8"
,
"url"
:
"/static/css/Preferential.99c1fc9f.chunk.css"
},
{
"revision"
:
"5d289710bee9eed106f8"
,
"url"
:
"/static/js/Preferential.12ba0792.chunk.js"
},
{
"revision"
:
"3559fad5c9505bbf94fa"
,
"url"
:
"/static/css/SearchResult.b968f5d5.chunk.css"
},
{
"revision"
:
"3559fad5c9505bbf94fa"
,
"url"
:
"/static/js/SearchResult.932745ed.chunk.js"
},
{
"revision"
:
"8755ad6126e75cc118ac"
,
"url"
:
"/static/css/ShopCart.8f4c32db.chunk.css"
},
{
"revision"
:
"8755ad6126e75cc118ac"
,
"url"
:
"/static/js/ShopCart.6656005c.chunk.js"
},
{
"revision"
:
"b0d4bf0eae6d543a22f6"
,
"url"
:
"/static/css/aist-share.a97e13d0.chunk.css"
},
{
"revision"
:
"b0d4bf0eae6d543a22f6"
,
"url"
:
"/static/js/aist-share.9f7dd020.chunk.js"
},
{
"revision"
:
"5631a7951a6559fa1809"
,
"url"
:
"/static/css/coupons.f2c7a13b.chunk.css"
},
{
"revision"
:
"5631a7951a6559fa1809"
,
"url"
:
"/static/js/coupons.1a550880.chunk.js"
},
{
"revision"
:
"32632e74fc5521004320"
,
"url"
:
"/static/css/detail.bf05380d.chunk.css"
},
{
"revision"
:
"32632e74fc5521004320"
,
"url"
:
"/static/js/detail.f598b4a0.chunk.js"
},
{
"revision"
:
"79260ad29fdf1a8af368"
,
"url"
:
"/static/css/main.a6bfbdfe.chunk.css"
},
{
"revision"
:
"79260ad29fdf1a8af368"
,
"url"
:
"/static/js/main.0199246b.chunk.js"
},
{
"revision"
:
"cd0c976558b5469b64eb"
,
"url"
:
"/static/css/myorders.99c740b6.chunk.css"
},
{
"revision"
:
"cd0c976558b5469b64eb"
,
"url"
:
"/static/js/myorders.b8058807.chunk.js"
},
{
"revision"
:
"cd02f0f346c07e005619"
,
"url"
:
"/static/js/BargainMiddlePage.b44705d9.chunk.js"
},
{
"revision"
:
"7878eff7a63246dc89b3"
,
"url"
:
"/static/js/purchased.249d4ca9.chunk.js"
},
{
"revision"
:
"ba76c6d79d37c0acc597"
,
"url"
:
"/static/js/runtime~main.821d28f7.js"
},
{
"revision"
:
"68309ce95ee8e6619fb2"
,
"url"
:
"/static/css/search.ed8f7a59.chunk.css"
},
{
"revision"
:
"68309ce95ee8e6619fb2"
,
"url"
:
"/static/js/search.8e8657cc.chunk.js"
},
{
"revision"
:
"59057b1a4eed05aa2d1b"
,
"url"
:
"/static/css/shareposter.175bee2a.chunk.css"
},
{
"revision"
:
"59057b1a4eed05aa2d1b"
,
"url"
:
"/static/js/shareposter.c9eef843.chunk.js"
},
{
"revision"
:
"61a96633df0063764bda"
,
"url"
:
"/static/css/study.8867122f.chunk.css"
},
{
"revision"
:
"61a96633df0063764bda"
,
"url"
:
"/static/js/study.d85e86ef.chunk.js"
},
{
"revision"
:
"fc7bbabd7568c5d79d0d"
,
"url"
:
"/static/css/togroup.f08bc5f3.chunk.css"
},
{
"revision"
:
"fc7bbabd7568c5d79d0d"
,
"url"
:
"/static/js/togroup.009cca29.chunk.js"
},
{
"revision"
:
"a454ba8077db3e430a7b"
,
"url"
:
"/static/css/video.f9b71225.chunk.css"
},
{
"revision"
:
"a454ba8077db3e430a7b"
,
"url"
:
"/static/js/video.f1d18f06.chunk.js"
},
{
"revision"
:
"80011994e30adf599e5f47fcc81bc06d"
,
"url"
:
"/static/media/progress-share-bg.80011994.png"
},
{
"revision"
:
"ed3170c380aeadbe8bce"
,
"url"
:
"/static/js/24.934915a8.chunk.js"
},
{
"revision"
:
"81a489ac63f2f2df5ab412e0782bd54c"
,
"url"
:
"/static/media/kanjia_cg_icon.81a489ac.png"
},
{
"revision"
:
"511b7ff8512b90c261ec"
,
"url"
:
"/static/js/25.1870eb17.chunk.js"
},
{
"revision"
:
"1055584d8d0a73e16754"
,
"url"
:
"/static/js/26.459339e6.chunk.js"
},
{
"revision"
:
"bf51ccc733319bcc56b89eec5dde1394"
,
"url"
:
"/static/media/iconfont.bf51ccc7.svg"
},
{
"revision"
:
"5bc851b57bda3beef0e0"
,
"url"
:
"/static/js/27.3e36787f.chunk.js"
},
{
"revision"
:
"55ad4bbcfbe7879698a2538de5145a09"
,
"url"
:
"/static/media/iconfont.55ad4bbc.ttf"
},
{
"revision"
:
"89a4742579953c6bd595"
,
"url"
:
"/static/js/28.d9cbdaaa.chunk.js"
},
{
"revision"
:
"10b7bd5b99a2a0a2f1a30d7ed72ec1a0"
,
"url"
:
"/static/media/iconfont.10b7bd5b.eot"
},
{
"revision"
:
"6547d8a65becdda08b88"
,
"url"
:
"/static/js/29.d1dc2a9e.chunk.js"
},
{
"revision"
:
"d9bc424b15d521a0c979da25ea02c1c9"
,
"url"
:
"/static/media/iconfont.d9bc424b.woff"
},
{
"revision"
:
"2805adea99a81435cfca"
,
"url"
:
"/static/js/30.425f9e4f.chunk.js"
},
{
"revision"
:
"2805adea99a81435cfca"
,
"url"
:
"/static/css/30.57d8b033.chunk.css"
},
{
"revision"
:
"6547d8a65becdda08b88"
,
"url"
:
"/static/css/29.35e22f8c.chunk.css"
},
{
"revision"
:
"89a4742579953c6bd595"
,
"url"
:
"/static/css/28.bf839917.chunk.css"
},
{
"revision"
:
"5bc851b57bda3beef0e0"
,
"url"
:
"/static/css/27.42a89c77.chunk.css"
},
{
"revision"
:
"511b7ff8512b90c261ec"
,
"url"
:
"/static/css/25.73976871.chunk.css"
},
{
"revision"
:
"ed3170c380aeadbe8bce"
,
"url"
:
"/static/css/24.e59d820f.chunk.css"
},
{
"revision"
:
"7f0fe68cee1701345761bab038f96b53"
,
"url"
:
"/index.html"
}
];
\ No newline at end of file
build/precache-manifest.c82dafc969e6f6974d99db74511704ee.js
0 → 100644
View file @
cc93bc3a
self
.
__precacheManifest
=
[
{
"revision"
:
"b8e123fde720f524782a"
,
"url"
:
"/static/css/purchased.4b0044ec.chunk.css"
},
{
"revision"
:
"87ac9b801cc4602c24c1"
,
"url"
:
"/static/css/BargainMiddlePage.9e05243b.chunk.css"
},
{
"revision"
:
"9dfc7d8a89f9a7af4696"
,
"url"
:
"/static/css/Classify.e3e9b348.chunk.css"
},
{
"revision"
:
"9dfc7d8a89f9a7af4696"
,
"url"
:
"/static/js/Classify.8f70e71e.chunk.js"
},
{
"revision"
:
"9b6ea59252b346985c50"
,
"url"
:
"/static/css/CourseList.369bce9d.chunk.css"
},
{
"revision"
:
"9b6ea59252b346985c50"
,
"url"
:
"/static/js/CourseList.16197c11.chunk.js"
},
{
"revision"
:
"548446d19bb43d3558fd"
,
"url"
:
"/static/css/DrawDocument.2e7d81ca.chunk.css"
},
{
"revision"
:
"548446d19bb43d3558fd"
,
"url"
:
"/static/js/DrawDocument.63014a63.chunk.js"
},
{
"revision"
:
"89742ee4f836984fee47"
,
"url"
:
"/static/css/Examination.fc9da1d2.chunk.css"
},
{
"revision"
:
"89742ee4f836984fee47"
,
"url"
:
"/static/js/Examination.f5d80e04.chunk.js"
},
{
"revision"
:
"460ffa95b5cf083e70ac"
,
"url"
:
"/static/js/MyEdit.9a853067.chunk.js"
},
{
"revision"
:
"c8de33f84cd0850a6611"
,
"url"
:
"/static/css/Order.6576554c.chunk.css"
},
{
"revision"
:
"c8de33f84cd0850a6611"
,
"url"
:
"/static/js/Order.0c7e1013.chunk.js"
},
{
"revision"
:
"1863444ef8c666a19138"
,
"url"
:
"/static/js/Orderinfo.d6e4402a.chunk.js"
},
{
"revision"
:
"5fa69f51b46ea90e6685"
,
"url"
:
"/static/css/PayOrder.21570c76.chunk.css"
},
{
"revision"
:
"5fa69f51b46ea90e6685"
,
"url"
:
"/static/js/PayOrder.dd708d6a.chunk.js"
},
{
"revision"
:
"e33824cb46f686e2b20d"
,
"url"
:
"/static/css/Preferential.3b4dfe41.chunk.css"
},
{
"revision"
:
"e33824cb46f686e2b20d"
,
"url"
:
"/static/js/Preferential.9b1a91f7.chunk.js"
},
{
"revision"
:
"265c91ead875b8de258e"
,
"url"
:
"/static/css/SearchResult.8711b264.chunk.css"
},
{
"revision"
:
"265c91ead875b8de258e"
,
"url"
:
"/static/js/SearchResult.c62b17a7.chunk.js"
},
{
"revision"
:
"9456aecd3f9595edfa3b"
,
"url"
:
"/static/css/ShopCart.a93db4c0.chunk.css"
},
{
"revision"
:
"9456aecd3f9595edfa3b"
,
"url"
:
"/static/js/ShopCart.3e2c914c.chunk.js"
},
{
"revision"
:
"a22bdcc3a69902f013ac"
,
"url"
:
"/static/css/aist-share.bef8c404.chunk.css"
},
{
"revision"
:
"a22bdcc3a69902f013ac"
,
"url"
:
"/static/js/aist-share.c9ca71ca.chunk.js"
},
{
"revision"
:
"e28cebf61659950400ad"
,
"url"
:
"/static/css/coupons.9ece7350.chunk.css"
},
{
"revision"
:
"e28cebf61659950400ad"
,
"url"
:
"/static/js/coupons.b1a48a76.chunk.js"
},
{
"revision"
:
"aedfa59c612c0fe3e555"
,
"url"
:
"/static/css/detail.a913111e.chunk.css"
},
{
"revision"
:
"aedfa59c612c0fe3e555"
,
"url"
:
"/static/js/detail.80587c4d.chunk.js"
},
{
"revision"
:
"963785a2bb72e3ff37ee"
,
"url"
:
"/static/css/main.9d637326.chunk.css"
},
{
"revision"
:
"963785a2bb72e3ff37ee"
,
"url"
:
"/static/js/main.492c0069.chunk.js"
},
{
"revision"
:
"13c2dd59ef3471690b20"
,
"url"
:
"/static/css/myorders.3ab93c8e.chunk.css"
},
{
"revision"
:
"13c2dd59ef3471690b20"
,
"url"
:
"/static/js/myorders.edebe46c.chunk.js"
},
{
"revision"
:
"87ac9b801cc4602c24c1"
,
"url"
:
"/static/js/BargainMiddlePage.a95f6e3a.chunk.js"
},
{
"revision"
:
"b8e123fde720f524782a"
,
"url"
:
"/static/js/purchased.92e79803.chunk.js"
},
{
"revision"
:
"100bfbcdee65a7ef9bca"
,
"url"
:
"/static/js/runtime~main.9ebe8825.js"
},
{
"revision"
:
"869c7499febe794e0209"
,
"url"
:
"/static/css/search.9fa57dd6.chunk.css"
},
{
"revision"
:
"869c7499febe794e0209"
,
"url"
:
"/static/js/search.6ec31863.chunk.js"
},
{
"revision"
:
"ad7eaf4c8d4fc9316e9d"
,
"url"
:
"/static/css/shareposter.82081d02.chunk.css"
},
{
"revision"
:
"ad7eaf4c8d4fc9316e9d"
,
"url"
:
"/static/js/shareposter.9232c7eb.chunk.js"
},
{
"revision"
:
"fccc58441ec30e5ee03b"
,
"url"
:
"/static/css/study.2f1e5759.chunk.css"
},
{
"revision"
:
"fccc58441ec30e5ee03b"
,
"url"
:
"/static/js/study.094b201f.chunk.js"
},
{
"revision"
:
"51fa2bc9e23db5570a9e"
,
"url"
:
"/static/css/togroup.49988cae.chunk.css"
},
{
"revision"
:
"51fa2bc9e23db5570a9e"
,
"url"
:
"/static/js/togroup.9320e36f.chunk.js"
},
{
"revision"
:
"f632131a36a6ba2f85c7"
,
"url"
:
"/static/css/video.d14c8276.chunk.css"
},
{
"revision"
:
"f632131a36a6ba2f85c7"
,
"url"
:
"/static/js/video.1ce71966.chunk.js"
},
{
"revision"
:
"80011994e30adf599e5f47fcc81bc06d"
,
"url"
:
"/static/media/progress-share-bg.80011994.png"
},
{
"revision"
:
"16274ed6be9269db6892"
,
"url"
:
"/static/js/24.22a751e3.chunk.js"
},
{
"revision"
:
"81a489ac63f2f2df5ab412e0782bd54c"
,
"url"
:
"/static/media/kanjia_cg_icon.81a489ac.png"
},
{
"revision"
:
"252714de79855bced93c"
,
"url"
:
"/static/js/25.ba0a34d5.chunk.js"
},
{
"revision"
:
"974e41da299faef3a065"
,
"url"
:
"/static/js/26.e30099ca.chunk.js"
},
{
"revision"
:
"bf51ccc733319bcc56b89eec5dde1394"
,
"url"
:
"/static/media/iconfont.bf51ccc7.svg"
},
{
"revision"
:
"d41e24a91c2bd004867b"
,
"url"
:
"/static/js/27.a73b7964.chunk.js"
},
{
"revision"
:
"55ad4bbcfbe7879698a2538de5145a09"
,
"url"
:
"/static/media/iconfont.55ad4bbc.ttf"
},
{
"revision"
:
"444e178bbf52355c88a3"
,
"url"
:
"/static/js/28.d5ea3878.chunk.js"
},
{
"revision"
:
"10b7bd5b99a2a0a2f1a30d7ed72ec1a0"
,
"url"
:
"/static/media/iconfont.10b7bd5b.eot"
},
{
"revision"
:
"b32c2e05a50e935988ac"
,
"url"
:
"/static/js/29.27e7cc9e.chunk.js"
},
{
"revision"
:
"d9bc424b15d521a0c979da25ea02c1c9"
,
"url"
:
"/static/media/iconfont.d9bc424b.woff"
},
{
"revision"
:
"834e5417d675790bc9c6"
,
"url"
:
"/static/js/30.5bd56f41.chunk.js"
},
{
"revision"
:
"834e5417d675790bc9c6"
,
"url"
:
"/static/css/30.bc06dce4.chunk.css"
},
{
"revision"
:
"b32c2e05a50e935988ac"
,
"url"
:
"/static/css/29.ecbb6f9a.chunk.css"
},
{
"revision"
:
"444e178bbf52355c88a3"
,
"url"
:
"/static/css/28.5ed15c7e.chunk.css"
},
{
"revision"
:
"d41e24a91c2bd004867b"
,
"url"
:
"/static/css/27.694b4628.chunk.css"
},
{
"revision"
:
"252714de79855bced93c"
,
"url"
:
"/static/css/25.1b3a6258.chunk.css"
},
{
"revision"
:
"16274ed6be9269db6892"
,
"url"
:
"/static/css/24.4a7b6220.chunk.css"
},
{
"revision"
:
"a32019e7e581b4d783f19d8b7f26c938"
,
"url"
:
"/index.html"
}
];
\ No newline at end of file
build/service-worker.js
View file @
cc93bc3a
...
@@ -14,7 +14,7 @@
...
@@ -14,7 +14,7 @@
importScripts
(
"https://storage.googleapis.com/workbox-cdn/releases/3.6.3/workbox-sw.js"
);
importScripts
(
"https://storage.googleapis.com/workbox-cdn/releases/3.6.3/workbox-sw.js"
);
importScripts
(
importScripts
(
"/precache-manifest.
19afcb629ae7daab1243c6cab5de5257
.js"
"/precache-manifest.
c82dafc969e6f6974d99db74511704ee
.js"
);
);
workbox
.
clientsClaim
();
workbox
.
clientsClaim
();
...
...
src/common/Course/course.scss
View file @
cc93bc3a
...
@@ -13,7 +13,6 @@
...
@@ -13,7 +13,6 @@
.course-title
{
.course-title
{
font-size
:
14px
;
font-size
:
14px
;
color
:
$color_333
;
color
:
$color_333
;
min-height
:
38px
;
line-height
:
19px
;
line-height
:
19px
;
margin-top
:
9px
;
margin-top
:
9px
;
}
}
...
...
src/components/classify/index.js
View file @
cc93bc3a
import
React
,
{
Component
}
from
'react'
;
import
React
,
{
Component
}
from
'react'
;
import
{
WithTab
}
from
'@/HOCs'
import
{
WithTab
}
from
'@/HOCs'
import
'./index.scss'
;
import
'./index.scss'
;
import
{
http
}
from
"@/utils"
;
import
{
http
}
from
"@/utils"
;
import
{
Link
}
from
'react-router-dom'
import
{
Link
}
from
'react-router-dom'
import
{
Toast
}
from
'antd-mobile'
import
{
Toast
}
from
'antd-mobile'
import
{
HeaderBar
}
from
"@/common"
import
{
HeaderBar
}
from
"@/common"
...
@@ -32,14 +32,14 @@ class Classify extends Component {
...
@@ -32,14 +32,14 @@ class Classify extends Component {
if
(
res
.
data
.
data
.
common
.
length
>
0
)
{
if
(
res
.
data
.
data
.
common
.
length
>
0
)
{
this
.
setState
({
this
.
setState
({
basics
:
res
.
data
.
data
.
common
[
0
],
basics
:
res
.
data
.
data
.
common
[
0
],
advanced
:
res
.
data
.
data
.
common
[
1
]
||
[]
,
advanced
:
res
.
data
.
data
.
common
[
1
],
})
})
}
}
if
(
res
.
data
.
data
.
special
.
length
>
0
)
{
if
(
res
.
data
.
data
.
special
.
length
>
0
)
{
this
.
setState
({
this
.
setState
({
camp
:
res
.
data
.
data
.
special
[
0
],
camp
:
res
.
data
.
data
.
special
[
0
],
employment
:
res
.
data
.
data
.
special
[
1
]
||
[]
,
employment
:
res
.
data
.
data
.
special
[
1
],
special
:
res
.
data
.
data
.
special
[
2
]
||
[]
,
special
:
res
.
data
.
data
.
special
[
2
],
})
})
}
}
}
else
{
}
else
{
...
...
src/components/my/edit.js
View file @
cc93bc3a
...
@@ -18,10 +18,10 @@ class MyEdut extends PureComponent {
...
@@ -18,10 +18,10 @@ class MyEdut extends PureComponent {
}
}
// 点击编辑
// 点击编辑
toEditName
=
(
name
)
=>
{
toEditName
=
()
=>
{
this
.
setState
({
this
.
setState
({
isShow
:
true
,
isShow
:
true
,
value
:
name
value
:
''
})
})
}
}
// 取消
// 取消
...
@@ -61,10 +61,6 @@ class MyEdut extends PureComponent {
...
@@ -61,10 +61,6 @@ class MyEdut extends PureComponent {
})
})
this
.
props
.
updateUser
({
data
:
{
username
:
this
.
state
.
value
}})
this
.
props
.
updateUser
({
data
:
{
username
:
this
.
state
.
value
}})
Toast
.
info
(
'修改成功'
,
2
)
Toast
.
info
(
'修改成功'
,
2
)
}
else
if
(
res
.
data
.
code
===
4008
)
{
this
.
setState
({
isShow
:
false
})
}
else
{
}
else
{
Toast
.
info
(
res
.
data
.
msg
,
2
)
Toast
.
info
(
res
.
data
.
msg
,
2
)
}
}
...
@@ -84,7 +80,7 @@ class MyEdut extends PureComponent {
...
@@ -84,7 +80,7 @@ class MyEdut extends PureComponent {
<
div
className
=
'my-mess'
>
<
div
className
=
'my-mess'
>
<
img
src
=
{
avatar
}
alt
=
""
/>
<
img
src
=
{
avatar
}
alt
=
""
/>
<
span
className
=
"name"
>
{
username
}
<
/span
>
<
span
className
=
"name"
>
{
username
}
<
/span
>
<
span
onClick
=
{
this
.
toEditName
.
bind
(
this
,
username
)
}
className
=
"edit"
>
编辑
<
/span
>
<
span
onClick
=
{
this
.
toEditName
}
className
=
"edit"
>
编辑
<
/span
>
<
/div
>
<
/div
>
<
div
className
=
"out-login"
onClick
=
{
this
.
outLogin
}
>
<
div
className
=
"out-login"
onClick
=
{
this
.
outLogin
}
>
退出登录
退出登录
...
...
src/components/myOrders/index.js
View file @
cc93bc3a
...
@@ -6,47 +6,35 @@ import {http, api} from "@/utils"
...
@@ -6,47 +6,35 @@ import {http, api} from "@/utils"
import
{
Link
}
from
'react-router-dom'
import
{
Link
}
from
'react-router-dom'
import
{
Modal
,
Toast
}
from
'antd-mobile'
import
{
Modal
,
Toast
}
from
'antd-mobile'
import
Loading
from
'@/common/Loading'
import
Loading
from
'@/common/Loading'
import
InfiniteScroll
from
'react-infinite-scroller'
import
{
debounce
}
from
'lodash'
const
alert
=
Modal
.
alert
const
alert
=
Modal
.
alert
class
MyOrders
extends
Component
{
class
MyOrders
extends
Component
{
page
=
1
constructor
(
props
)
{
constructor
(
props
)
{
super
(
props
)
super
(
props
)
this
.
state
=
{
this
.
state
=
{
data
:
[],
data
:
[],
pageNum
:
1
,
isLoading
:
true
isLoading
:
true
,
total
:
0
,
}
}
}
}
componentDidMount
()
{
componentDidMount
()
{
this
.
getList
(
this
.
page
)
this
.
getList
()
}
getMore
=
debounce
(()
=>
{
if
(
this
.
state
.
data
.
length
%
10
===
0
){
this
.
getList
(
++
this
.
page
)
}
}
},
200
)
// 获取订单
// 获取订单
getList
=
()
=>
{
getList
=
()
=>
{
http
.
get
(
`
${
API
.
home
}
/m/my/orders/
${
this
.
page
}
/10
`
,).
then
((
res
)
=>
{
http
.
get
(
`
${
API
.
home
}
/m/my/orders/
1/1
`
,).
then
((
res
)
=>
{
if
(
res
.
data
.
code
===
200
)
{
if
(
res
.
data
.
code
===
200
)
{
this
.
setState
({
this
.
setState
({
data
:
this
.
state
.
data
.
concat
(
res
.
data
.
data
)
,
data
:
res
.
data
.
data
,
isLoading
:
false
isLoading
:
false
})
})
}
else
{
}
else
{
Toast
.
info
(
res
.
data
.
msg
,
2
);
Toast
.
info
(
res
.
data
.
msg
,
2
);
}
}
})
})
}
}
// 取消订单
// 取消订单
...
@@ -80,13 +68,6 @@ class MyOrders extends Component {
...
@@ -80,13 +68,6 @@ class MyOrders extends Component {
<
Loading
isLoading
=
{
this
.
state
.
isLoading
}
>
<
Loading
isLoading
=
{
this
.
state
.
isLoading
}
>
{
{
this
.
state
.
data
&&
this
.
state
.
data
.
length
>
0
?
this
.
state
.
data
&&
this
.
state
.
data
.
length
>
0
?
<
InfiniteScroll
pageStart
=
{
0
}
hasMore
=
{
true
}
loadMore
=
{
this
.
getMore
.
bind
(
this
)}
useWindow
=
{
true
}
>
{
this
.
state
.
data
.
map
((
item
,
index
)
=>
{
this
.
state
.
data
.
map
((
item
,
index
)
=>
{
return
(
return
(
<
div
className
=
"order-body"
key
=
{
index
}
>
<
div
className
=
"order-body"
key
=
{
index
}
>
...
@@ -101,17 +82,14 @@ class MyOrders extends Component {
...
@@ -101,17 +82,14 @@ class MyOrders extends Component {
<
/p
>
<
/p
>
<
p
className
=
'order-content text-overflow-2'
>
{
item
.
description
}
<
/p
>
<
p
className
=
'order-content text-overflow-2'
>
{
item
.
description
}
<
/p
>
<
p
className
=
'order-des'
>
<
p
className
=
'order-des'
>
<
span
<
span
className
=
'order-newprice'
>
¥
{
item
.
pay_amount
}
<
/span
>
className
=
'order-newprice'
>
¥
{
item
.
pay_amount
}
<
/span
>
<
span
className
=
'order-price'
>
¥
{
item
.
price0
}
<
/span
>
<
span
className
=
'order-price'
>
¥
{
item
.
price0
}
<
/span
>
<
/p
>
<
/p
>
<
/div
>
<
/div
>
)
)
return
(
return
(
<
div
className
=
"order-wrap"
key
=
{
index
}
>
<
div
className
=
"order-wrap"
key
=
{
index
}
>
<
OrderList
info
=
{
Info
}
src
=
{
item
.
image_name
}
<
OrderList
info
=
{
Info
}
src
=
{
item
.
image_name
}
isSign
=
{
item
.
is_aist
}
isSign
=
{
item
.
is_aist
}
id
=
{
item
.
course_id
}
><
/OrderList
>
id
=
{
item
.
course_id
}
><
/OrderList
>
<
/div
>
<
/div
>
)
)
...
@@ -121,13 +99,11 @@ class MyOrders extends Component {
...
@@ -121,13 +99,11 @@ class MyOrders extends Component {
<
PayInfo
item
=
{
item
}
cancel
=
{
this
.
cancel
}
/
>
<
PayInfo
item
=
{
item
}
cancel
=
{
this
.
cancel
}
/
>
<
/div
>
<
/div
>
)
)
})
})
:
<
div
className
=
"cart-tip"
>
}
<
/InfiniteScroll> : <div className="cart-tip"
>
<
p
className
=
'cart-mess'
>
您还没有订单哦,快去逛逛吧
~<
/p
>
<
p
className
=
'cart-mess'
>
您还没有订单哦,快去逛逛吧
~<
/p
>
<
Link
to
=
'/classify'
>
去逛逛
<
/Link
>
<
Link
to
=
'/classify'
>
去逛逛
<
/Link
>
<
/div
>
<
/div
>
}
}
<
/Loading
>
<
/Loading
>
<
/div
>
<
/div
>
)
)
...
...
src/components/order/index.js
View file @
cc93bc3a
...
@@ -353,7 +353,7 @@ class Order extends Component {
...
@@ -353,7 +353,7 @@ class Order extends Component {
{
{
useBalance
?
(
useBalance
?
(
<>
<>
<
span
style
=
{{
color
:
'#FF2121'
,
fontSize
:
'15px'
,
marginRight
:
"6px"
}}
>
{
`-
¥
${
offset
}
`
}
<
/span
>
<
span
style
=
{{
color
:
'#FF2121'
,
fontSize
:
'15px'
,
marginRight
:
"6px"
}}
>
{
`-
${
offset
}
`
}
<
/span
>
<
i
className
=
{
`iconfont icondanseshixintubiao-5 balance-used`
}
onClick
=
{
throttle
(
this
.
useBalance
,
600
)}
><
/i
>
<
i
className
=
{
`iconfont icondanseshixintubiao-5 balance-used`
}
onClick
=
{
throttle
(
this
.
useBalance
,
600
)}
><
/i
>
<
/
>
<
/
>
)
:
(
)
:
(
...
...
src/components/shopCart/index.js
View file @
cc93bc3a
...
@@ -153,10 +153,6 @@ class Cart extends Component {
...
@@ -153,10 +153,6 @@ class Cart extends Component {
http
.
post
(
`
${
API
.
home
}
/m/cart/remove`
,
data
).
then
((
res
)
=>
{
http
.
post
(
`
${
API
.
home
}
/m/cart/remove`
,
data
).
then
((
res
)
=>
{
if
(
res
.
data
.
code
===
200
)
{
if
(
res
.
data
.
code
===
200
)
{
this
.
getList
()
this
.
getList
()
this
.
setState
({
allPrice
:
0
,
checkedNum
:
0
})
}
else
{
}
else
{
Toast
.
info
(
res
.
data
.
msg
,
2
);
Toast
.
info
(
res
.
data
.
msg
,
2
);
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment