Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
groupPurchase-miniapp
Project
Project
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
彭佳妮(贵阳日报)
groupPurchase-miniapp
Commits
5fe273f8
Commit
5fe273f8
authored
Aug 02, 2024
by
陈宗胤(贵阳日报)
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
http://gitlab.platform.xinhuaapp.com/pengjiani/groupPurchase-miniapp
parents
10ffe92a
bdd970d7
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
22 deletions
+14
-22
packageDetails.vue
src/pages/packageDetails/packageDetails.vue
+12
-20
shop.vue
src/pages/shop/shop.vue
+1
-1
vite.config.ts
vite.config.ts
+1
-1
No files found.
src/pages/packageDetails/packageDetails.vue
View file @
5fe273f8
...
@@ -202,26 +202,18 @@ function getProdDetailFn(prodId) {
...
@@ -202,26 +202,18 @@ function getProdDetailFn(prodId) {
* 获取收藏
* 获取收藏
*/
*/
function
getCollectFn
(
shopId
)
{
function
getCollectFn
(
shopId
)
{
if
(
shopInfo
.
value
.
isCollect
===
0
)
{
getCollect
(
shopId
).
then
((
res
)
=>
{
shopInfo
.
value
.
privateIntFcount
++
;
if
(
res
.
code
===
0
)
{
shopInfo
.
value
.
isCollect
=
1
;
if
(
shopInfo
.
value
.
isCollect
===
0
)
{
}
else
{
shopInfo
.
value
.
privateIntFcount
++
;
shopInfo
.
value
.
privateIntFcount
--
;
shopInfo
.
value
.
isCollect
=
1
;
shopInfo
.
value
.
isCollect
=
0
;
}
else
{
}
shopInfo
.
value
.
privateIntFcount
--
;
shopInfo
.
value
.
console
.
log
(
'111'
);
shopInfo
.
value
.
isCollect
=
0
;
// getCollect(shopId).then((res) => {
}
// if (res.code === 0) {
shopInfo
.
value
.
console
.
log
(
'111'
);
// if (shopInfo.value.isCollect === 0) {
}
// shopInfo.value.privateIntFcount++;
});
// shopInfo.value.isCollect = 1;
// } else {
// shopInfo.value.privateIntFcount--;
// shopInfo.value.isCollect = 0;
// }
// shopInfo.value.console.log('111');
// }
// });
}
}
function
collectionFn
()
{
function
collectionFn
()
{
getCollectFn
(
shopId
.
value
);
getCollectFn
(
shopId
.
value
);
...
...
src/pages/shop/shop.vue
View file @
5fe273f8
...
@@ -533,7 +533,7 @@ const giveTheThumbs = (item, index) => {
...
@@ -533,7 +533,7 @@ const giveTheThumbs = (item, index) => {
*/
*/
const
viewAll
=
()
=>
{
const
viewAll
=
()
=>
{
getEvaluationPage
({
getEvaluationPage
({
current
:
params
.
value
.
current
,
current
:
1
,
size
:
commentTotal
.
value
,
size
:
commentTotal
.
value
,
shopId
:
params
.
value
.
shopId
,
shopId
:
params
.
value
.
shopId
,
}).
then
((
res
)
=>
{
}).
then
((
res
)
=>
{
...
...
vite.config.ts
View file @
5fe273f8
...
@@ -41,7 +41,7 @@ export default defineConfig({
...
@@ -41,7 +41,7 @@ export default defineConfig({
// 代理配置
// 代理配置
proxy
:
{
proxy
:
{
'/api'
:
{
'/api'
:
{
target
:
'http://
test.rhhzkj.com:8080
'
,
target
:
'http://
192.168.0.147:9999
'
,
changeOrigin
:
true
,
changeOrigin
:
true
,
rewrite
:
(
path
)
=>
path
.
replace
(
/^
\/
api/
,
''
),
rewrite
:
(
path
)
=>
path
.
replace
(
/^
\/
api/
,
''
),
},
},
...
...
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