Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
7
7-Eleven
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
高淑倩
7-Eleven
Commits
44c74735
Commit
44c74735
authored
May 31, 2020
by
谢中龙
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改参数
parent
cb25350b
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
6 deletions
+13
-6
index.js
src/config/index.js
+1
-1
categoryPro.js
src/subPackage/page/pages/categoryPro/categoryPro.js
+9
-2
currentLinkRouter.js
src/utils/currentLinkRouter.js
+3
-3
No files found.
src/config/index.js
View file @
44c74735
...
...
@@ -454,7 +454,7 @@ const prod_brand_config = {
touchPointStorageTime
:
30
*
60
*
1000
,
//单位毫秒
orderingMustOpenCard
:
false
,
canRefundDaysAfterDelivery
:
15
,
//发货后多少天之内可显示申请退款按钮
isOpenSelfMention
:
tru
e
,
// 是否开启门店自提
isOpenSelfMention
:
fals
e
,
// 是否开启门店自提
hasLiveVideo
:
false
,
//是否有直播功能
guiderCanScanQrcode
:
true
,
//导购是否有扫一扫功能
isNeedGetLocation
:
true
,
//是否开启小程序获取位置(提交订单时获取门店信息)
...
...
src/subPackage/page/pages/categoryPro/categoryPro.js
View file @
44c74735
...
...
@@ -42,6 +42,7 @@ wxService.page({
currentTab
:
'recommend'
,
proStyle
:
false
,
tagId
:
null
,
pageFrom
:
''
,
},
/**
...
...
@@ -49,8 +50,9 @@ wxService.page({
*/
onLoad
:
function
(
options
)
{
let
type
=
options
.
type
;
this
.
data
.
pageFrom
=
type
;
//说明是从分类中过来的
if
(
!
type
){
if
(
!
type
||
type
==
'category'
){
if
(
options
&&
options
.
id
)
{
this
.
setData
({
'form.mallCategoryId'
:
options
.
id
...
...
@@ -149,7 +151,12 @@ wxService.page({
this
.
data
.
form
.
order
=
'desc'
;
}
wxService
.
post
(
`/sale/product/mallCategory/listPageProductByMallCategoryIdAndItsSons?pageNo=
${
pageNo
}
&pageSize=
${
pageSize
}
`
,
this
.
data
.
form
).
then
(
res
=>
{
let
url
=
`/sale/product/mallCategory/listPageProductByMallCategoryIdAndItsSons?pageNo=
${
pageNo
}
&pageSize=
${
pageSize
}
`
;
if
(
this
.
data
.
pageFrom
==
'category'
){
url
=
`/sale/product/buyer/listPageByCategoryId?pageNo=
${
pageNo
}
&pageSize=
${
pageSize
}
`
}
wxService
.
post
(
url
,
this
.
data
.
form
).
then
(
res
=>
{
const
{
result
,
data
}
=
res
.
data
if
(
result
==
0
&&
data
.
content
)
{
wx
.
hideLoading
()
...
...
src/utils/currentLinkRouter.js
View file @
44c74735
...
...
@@ -55,7 +55,7 @@ function currentLinkRouter(event, _this) {
}
else
if
(
curItemType
.
link
.
type
==
8
)
{
wxService
.
router
(
`/pages/productDetail/productDetail?id=
${
currentClickType
}
`
)
}
else
if
(
curItemType
.
link
.
type
==
9
)
{
wxService
.
router
(
`/subPackage/page/pages/categoryPro/categoryPro?id=
${
currentClickType
}
`
)
wxService
.
router
(
`/subPackage/page/pages/categoryPro/categoryPro?id=
${
currentClickType
}
&type=category
`
)
}
else
if
(
curItemType
.
link
.
type
==
10
)
{
wxService
.
router
(
`/subPackage/page/pages/categoryPro/categoryPro?id=
${
currentClickType
}
&type=pTag`
)
}
...
...
@@ -80,7 +80,7 @@ function currentLinkRouter(event, _this) {
}
else
if
(
rowObj
.
type
==
9
)
{
// 分类
wxService
.
router
(
`/subPackage/page/pages/categoryPro/categoryPro?id=
${
currentClickRow
}
`
)
wxService
.
router
(
`/subPackage/page/pages/categoryPro/categoryPro?id=
${
currentClickRow
}
&type=category
`
)
}
else
if
(
rowObj
.
type
==
10
)
{
wxService
.
router
(
`/subPackage/page/pages/categoryPro/categoryPro?id=
${
currentClickRow
}
&type=pTag`
)
}
...
...
@@ -102,7 +102,7 @@ function currentLinkRouter(event, _this) {
}
else
if
(
rowObj
.
type
==
9
)
{
// 分类
wxService
.
router
(
`/subPackage/page/pages/categoryPro/categoryPro?id=
${
currentClickRow
}
`
)
wxService
.
router
(
`/subPackage/page/pages/categoryPro/categoryPro?id=
${
currentClickRow
}
&type=category
`
)
}
else
if
(
rowObj
.
type
==
10
)
{
wxService
.
router
(
`/subPackage/page/pages/categoryPro/categoryPro?id=
${
currentClickRow
}
&type=pTag`
)
}
...
...
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