Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
2
20250310_人保春游
Project
Project
Details
Activity
Releases
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
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
SparkProjects
20250310_人保春游
Commits
417034c6
Commit
417034c6
authored
Mar 13, 2025
by
俞嘉婷
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
del: 旧接口 mock
parent
075896c1
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
1 addition
and
248 deletions
+1
-248
examineIndex.js
mock/common/examineIndex.js
+0
-37
salesManIndex.js
mock/common/salesManIndex.js
+0
-34
saveOrUpdateWork.js
mock/common/saveOrUpdateWork.js
+0
-7
index.js
mock/index.js
+1
-12
opus.js
mock/project/opus.js
+0
-85
index.js
src/api/index.js
+0
-32
index.js
src/store/index.js
+0
-41
No files found.
mock/common/examineIndex.js
deleted
100644 → 0
View file @
075896c1
module
.
exports
=
{
"code"
:
200
,
"data"
:
{
"totalCount"
:
63423987.750740975
,
"currentPage"
:
11314315.075550228
,
"totalPage"
:
-
36371444.33874133
,
"record"
:
[
{
"worksNum"
:
"in Duis culpa reprehenderit"
,
"worksImg"
:
"ut id"
,
"worksDesc"
:
"proident reprehenderit sed quis"
,
"uploadTime"
:
99647971.65115526
,
"worksTitle"
:
"ex cupidatat ullamco magna"
,
"sex"
:
"consequat voluptate deserunt sed minim"
},
{
"worksNum"
:
"ad"
,
"worksImg"
:
"sed eu"
,
"worksDesc"
:
"ea Duis"
,
"uploadTime"
:
15444091.361747697
,
"worksTitle"
:
"tempor Lorem do officia irure"
,
"sex"
:
"ut laboris sed do"
},
{
"worksNum"
:
"ipsum consequat"
,
"worksImg"
:
"nulla ut nisi"
,
"worksDesc"
:
"et quis laboris"
,
"uploadTime"
:
69808334.32919586
,
"worksTitle"
:
"voluptate quis irure sunt"
,
"sex"
:
"Lorem cillum quis consequat Duis"
}
]
},
"message"
:
"qui consequat esse in fugiat"
,
"success"
:
true
}
\ No newline at end of file
mock/common/salesManIndex.js
deleted
100644 → 0
View file @
075896c1
module
.
exports
=
{
"code"
:
200
,
"data"
:
{
"agreeFlag"
:
false
,
"ruleGuidePopFlag"
:
false
,
"examinePop"
:
{
"needPop"
:
false
,
"result"
:
true
,
"sendDrawNum"
:
-
30112326
},
"rankPop"
:
{
"needPop"
:
false
,
"result"
:
true
,
"prizeName"
:
"sit minim dolore"
,
"rank"
:
-
76350536.98477012
,
"prizeImg"
:
"in amet"
},
"uid"
:
"123123123"
,
"actStartTime"
:
Date
.
now
()
-
10000
,
"currentTime"
:
Date
.
now
(),
"actEndTime"
:
Date
.
now
()
+
100000
,
"guideFlag"
:
true
,
"ruleText"
:
"cupidatat"
,
"showAgentIcon"
:
true
,
"agreeText"
:
"ullamco ipsum cupidatat nulla Duis"
,
"agentCode"
:
null
,
"boundYkCode"
:
"fugiat ex"
,
"agent"
:
false
,
"vaildUid"
:
true
,
awardDesc
:
"好久啊上课的话就撒撒点话费"
},
"message"
:
"veniam"
,
"success"
:
true
};
\ No newline at end of file
mock/common/saveOrUpdateWork.js
deleted
100644 → 0
View file @
075896c1
module
.
exports
=
{
"code"
:
200
,
"data"
:
"cillum"
,
"message"
:
"amet ut occaecat ullamco"
,
"success"
:
true
,
}
\ No newline at end of file
mock/index.js
View file @
417034c6
...
@@ -3,12 +3,7 @@ const drawNum = require("./common/drawNum");
...
@@ -3,12 +3,7 @@ const drawNum = require("./common/drawNum");
const
coopFrontVariable
=
require
(
"./common/coopFrontVariable"
);
const
coopFrontVariable
=
require
(
"./common/coopFrontVariable"
);
const
coopSendCode
=
require
(
"./common/coopSendCode"
);
const
coopSendCode
=
require
(
"./common/coopSendCode"
);
const
coopCheckCode
=
require
(
"./common/coopCheckCode"
);
const
coopCheckCode
=
require
(
"./common/coopCheckCode"
);
const
saveOrUpdateWork
=
require
(
"./common/saveOrUpdateWork"
);
const
salesManIndex
=
require
(
"./common/salesManIndex"
);
const
examineIndex
=
require
(
"./common/examineIndex"
);
const
lockAgree
=
require
(
"./common/lockAgree"
);
const
lockAgree
=
require
(
"./common/lockAgree"
);
const
productSearch
=
require
(
"./common/productSearch"
);
const
saleDraw
=
require
(
"./common/saleDraw"
);
const
{
AESEncrypt
}
=
require
(
"./Crypto"
);
const
{
AESEncrypt
}
=
require
(
"./Crypto"
);
const
proxy
=
{
const
proxy
=
{
...
@@ -18,13 +13,7 @@ const proxy = {
...
@@ -18,13 +13,7 @@ const proxy = {
"GET /coop_frontVariable.query"
:
coopFrontVariable
,
"GET /coop_frontVariable.query"
:
coopFrontVariable
,
"POST /examine/coop_sendCode.do"
:
coopSendCode
,
"POST /examine/coop_sendCode.do"
:
coopSendCode
,
"POST /examine/coop_checkCode.do"
:
coopCheckCode
,
"POST /examine/coop_checkCode.do"
:
coopCheckCode
,
"POST /works/saveOrUpdateWork.do"
:
saveOrUpdateWork
,
"GET /main/agreePrivacy.do"
:
lockAgree
,
"GET /works/index.do"
:
salesManIndex
,
"POST /examine/examineIndex.do"
:
examineIndex
,
"GET /works/lockAgree.do"
:
lockAgree
,
"GET /works/productSearch.do"
:
productSearch
,
"GET /works/draw.do"
:
saleDraw
,
// 图片上传
// 图片上传
"POST /customActivity/duiba/imgUploadUrl"
:
{
"POST /customActivity/duiba/imgUploadUrl"
:
{
...
...
mock/project/opus.js
deleted
100644 → 0
View file @
075896c1
module
.
exports
=
{
"GET /works/workDetail.do"
:
{
"code"
:
null
,
"data"
:
{
"remainThumbsTimes"
:
1
,
"salesmanFlag"
:
false
,
"worksInfo"
:
{
"meFlag"
:
false
,
"rank"
:
1
,
"sex"
:
"1"
,
"thumbsNum"
:
13
,
"worksDesc"
:
"作品描述01"
,
"worksImg"
:
"https://yun.duiba.com.cn/upload/20250211/b4a78707.png"
,
"worksNum"
:
"tkh2urj38i"
,
"worksTitle"
:
"作品标题"
}
},
"message"
:
null
,
"success"
:
true
,
"timeStamp"
:
1738999317142
},
"GET /works/thumbsUp.do"
:
{
"code"
:
null
,
"data"
:
{
awardDrawTimes
:
1
},
"message"
:
'null'
,
"success"
:
true
,
"timeStamp"
:
1738999317142
},
"GET /works/commentRecords.do"
:
{
"code"
:
null
,
"data"
:
{
"list"
:
[
{
"avatar"
:
null
,
"content"
:
"评论3"
,
"nickname"
:
"157****1111"
,
"time"
:
1739005224000
},
{
"avatar"
:
null
,
"content"
:
"霸王差距"
,
"nickname"
:
"157****3681"
,
"time"
:
1737772863000
},
{
"avatar"
:
null
,
"content"
:
"茶百道"
,
"nickname"
:
"157****3681"
,
"time"
:
1737772853000
},
{
"avatar"
:
null
,
"content"
:
"蜜雪冰城甜蜜蜜"
,
"nickname"
:
"157****3681"
,
"time"
:
1737772844000
},
{
"avatar"
:
null
,
"content"
:
"你为什么不喝"
,
"nickname"
:
"4012516130575933"
,
"time"
:
1737772507000
},
{
"avatar"
:
null
,
"content"
:
"他奶奶的"
,
"nickname"
:
"4012516130575933"
,
"time"
:
1737772498000
},
{
"avatar"
:
null
,
"content"
:
"他妈"
,
"nickname"
:
"4012516130575933"
,
"time"
:
1737772488000
}
],
"totalCount"
:
7
,
"totalPage"
:
1
},
"message"
:
null
,
"success"
:
true
,
"timeStamp"
:
1739005828760
}
}
\ No newline at end of file
src/api/index.js
View file @
417034c6
...
@@ -118,32 +118,6 @@ const API = generateAPI({
...
@@ -118,32 +118,6 @@ const API = generateAPI({
},
},
queryInviteRecords
:
"inviteAssist_1/queryInviteRecords.do"
,
queryInviteRecords
:
"inviteAssist_1/queryInviteRecords.do"
,
/** 保存/修改作品信息*/
saveOrUpdateWork
:
{
uri
:
"works/saveOrUpdateWork.do"
,
method
:
"post"
,
contentType
:
"json"
,
headers
:
{
"Content-Type"
:
"application/json"
,
},
},
// 投稿玩法-作品详情
workDetail
:
'works/workDetail.do'
,
// 投稿玩法-作品评论记录
commentRecords
:
'works/commentRecords.do'
,
// 投稿玩法-作品评论
comment
:
{
uri
:
"works/comment.do"
,
method
:
"post"
,
contentType
:
"json"
,
},
// 投稿玩法-作品点赞
thumbsUp
:
{
uri
:
'works/thumbsUp.do'
,
withToken
:
true
,
},
// 推送使用
// 推送使用
outside
:
`inviteAssist_1/outside.do`
,
outside
:
`inviteAssist_1/outside.do`
,
...
@@ -154,12 +128,6 @@ const API = generateAPI({
...
@@ -154,12 +128,6 @@ const API = generateAPI({
showMsg
:
false
,
showMsg
:
false
,
},
},
/** 业务员抽奖接口 */
salesManDraw
:
{
uri
:
"works/draw.do"
,
withToken
:
true
,
},
////////////////////////////////////////////////////////
////////////////////////////////////////////////////////
index
:
"main/index.do"
,
index
:
"main/index.do"
,
...
...
src/store/index.js
View file @
417034c6
...
@@ -159,47 +159,6 @@ const store = makeAutoObservable({
...
@@ -159,47 +159,6 @@ const store = makeAutoObservable({
return
true
;
return
true
;
},
},
workDetailNum
:
getUrlParam
(
"worksNum"
),
//作品详情页作品编号
opusInfo
:
{},
endOpus
:
false
,
async
getOpusInfo
()
{
this
.
endOpus
=
false
const
{
success
,
data
}
=
await
API
.
workDetail
({
worksNum
:
this
.
workDetailNum
});
if
(
success
)
{
this
.
opusInfo
=
data
;
this
.
nowPage
=
1
;
this
.
commentInfo
=
[];
this
.
getCommentInfo
(
1
);
}
this
.
endOpus
=
true
},
commentInfo
:
[],
totalPage
:
0
,
nowPage
:
1
,
timeStamp
:
0
,
async
getCommentInfo
(
pageNum
)
{
const
{
success
,
data
,
timeStamp
}
=
await
API
.
commentRecords
({
worksNum
:
this
.
workDetailNum
,
pageNum
,
pageSize
:
20
});
if
(
success
)
{
this
.
timeStamp
=
timeStamp
;
this
.
commentInfo
=
this
.
commentInfo
.
concat
(
data
.
list
);
this
.
totalPage
=
data
.
totalPage
;
this
.
nowPage
=
pageNum
;
}
},
async
doComment
(
content
)
{
const
{
success
,
data
}
=
await
API
.
comment
({
worksNum
:
this
.
workDetailNum
,
content
});
if
(
success
)
{
modalStore
.
closePop
(
"Commentpop"
);
Toast
(
"发送成功~"
);
this
.
getOpusInfo
();
}
},
async
doThumbsUp
()
{
const
{
success
,
data
}
=
await
API
.
thumbsUp
({
worksNum
:
this
.
workDetailNum
});
if
(
success
)
{
modalStore
.
pushPop
(
"Pointsucpop"
,
data
.
awardDrawTimes
);
}
},
});
});
...
...
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