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
58f35743
Commit
58f35743
authored
Aug 13, 2024
by
蔡亮华(贵阳日报)
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
完善商家入驻页面
parent
2bf239f3
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
56 additions
and
1 deletion
+56
-1
detail.vue
src/pages/storeEntry/detail.vue
+56
-1
No files found.
src/pages/storeEntry/detail.vue
View file @
58f35743
...
@@ -265,12 +265,28 @@ const chooseShopType = (id, name) => {
...
@@ -265,12 +265,28 @@ const chooseShopType = (id, name) => {
});
});
if
(
!
hasSameData
)
{
if
(
!
hasSameData
)
{
choosedShopInfo
.
value
.
push
({
areaId
:
id
,
areaName
:
name
,
qualifications
:
''
});
choosedShopInfo
.
value
.
push
({
areaId
:
id
,
areaName
:
name
,
qualifications
:
''
});
tempChoosedData
.
value
.
push
(
id
);
tempChoosedData
.
value
.
push
(
{
areaId
:
id
,
areaName
:
name
,
qualifications
:
''
,
tag
:
'add'
}
);
}
else
{
}
else
{
choosedShopInfo
.
value
=
choosedShopInfo
.
value
.
filter
((
item
)
=>
{
choosedShopInfo
.
value
=
choosedShopInfo
.
value
.
filter
((
item
)
=>
{
if
(
item
.
areaId
===
id
)
{
/* tempChoosedData.value.push({
areaId: id,
areaName: name,
qualifications: item.qualifications,
tag: 'delete',
}); */
// tempChoosedData.value.forEach(())
tempChoosedData
.
value
.
filter
((
sitem
)
=>
sitem
.
tag
!==
'add'
);
console
.
log
(
'tempChoosedData'
);
console
.
log
(
tempChoosedData
.
value
);
console
.
log
(
'choosedShopInfo'
);
console
.
log
(
choosedShopInfo
.
value
);
}
return
item
.
areaId
!==
id
;
return
item
.
areaId
!==
id
;
});
});
}
}
console
.
log
(
'临时数组'
);
console
.
log
(
tempChoosedData
.
value
);
};
};
// 删除图片之前的提示
// 删除图片之前的提示
...
@@ -489,6 +505,41 @@ const show = ref(false);
...
@@ -489,6 +505,41 @@ const show = ref(false);
// 关闭店铺分类弹出层
// 关闭店铺分类弹出层
const
handleClose
=
()
=>
{
const
handleClose
=
()
=>
{
show
.
value
=
false
;
show
.
value
=
false
;
tempChoosedData
.
value
.
forEach
((
item
)
=>
{
if
(
item
.
tag
===
'add'
)
{
// 删除
// console.log('应该删除' + item.areaName);
// console.log('删除前的choosedShopInfo');
// console.log(choosedShopInfo.value);
for
(
let
i
=
0
;
i
<
choosedShopInfo
.
value
.
length
;
i
++
)
{
if
(
item
.
areaId
===
choosedShopInfo
.
value
[
i
].
areaId
)
{
choosedShopInfo
.
value
.
splice
(
i
,
1
);
}
}
}
else
{
// 添加
choosedShopInfo
.
value
.
push
(
reactive
({
areaId
:
item
.
areaId
,
areaName
:
item
.
areaName
,
qualifications
:
item
.
qualifications
,
}),
);
}
});
console
.
log
(
'删除后的choosedShopInfo'
);
console
.
log
(
choosedShopInfo
.
value
);
setTimeout
(()
=>
{
testFileList
.
value
=
choosedShopInfo
.
value
.
reduce
((
obj
,
item
)
=>
{
if
(
item
.
qualifications
===
''
)
{
obj
[
item
.
areaId
]
=
[];
}
else
{
obj
[
item
.
areaId
]
=
[{
url
:
fileDomain
+
item
.
qualifications
}];
}
return
obj
;
},
{});
},
1000
);
};
};
// 原添加的店铺分类个数
// 原添加的店铺分类个数
const
originChooseCategoryLength
=
0
;
const
originChooseCategoryLength
=
0
;
...
@@ -512,6 +563,7 @@ const chooseCategory = () => {
...
@@ -512,6 +563,7 @@ const chooseCategory = () => {
// 显示店铺分类弹窗
// 显示店铺分类弹窗
const
showclass
=
()
=>
{
const
showclass
=
()
=>
{
show
.
value
=
true
;
show
.
value
=
true
;
tempChoosedData
.
value
=
[];
};
};
const
isCategoryNull
=
ref
(
false
);
const
isCategoryNull
=
ref
(
false
);
...
@@ -824,6 +876,7 @@ page {
...
@@ -824,6 +876,7 @@ page {
font-size
:
var
(
--
wot-input-fs
,
var
(
--
wot-cell-title-fs
,
14px
));
font-size
:
var
(
--
wot-input-fs
,
var
(
--
wot-cell-title-fs
,
14px
));
color
:
var
(
--
wot-input-placeholder-color
,
#bfbfbf
);
color
:
var
(
--
wot-input-placeholder-color
,
#bfbfbf
);
}
}
.text.shopcateboxtxt
{
.text.shopcateboxtxt
{
margin-left
:
0px
;
margin-left
:
0px
;
}
}
...
@@ -866,8 +919,10 @@ page {
...
@@ -866,8 +919,10 @@ page {
.newAddCertification
{
.newAddCertification
{
margin-top
:
40rpx
;
margin-top
:
40rpx
;
.citem
{
.citem
{
margin-bottom
:
20rpx
;
margin-bottom
:
20rpx
;
.titleOfC
{
.titleOfC
{
margin-bottom
:
10rpx
;
margin-bottom
:
10rpx
;
display
:
block
;
display
:
block
;
...
...
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