Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
mallapp
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
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
viitto
mallapp
Commits
cd8de034
Commit
cd8de034
authored
Nov 23, 2020
by
Mac
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
缓存处理
parent
1a900fb4
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
42 additions
and
5 deletions
+42
-5
style11.vue
components/cats/style11.vue
+4
-0
style3.vue
components/cats/style3.vue
+4
-0
style4.vue
components/cats/style4.vue
+4
-0
style7.vue
components/cats/style7.vue
+4
-0
style8.vue
components/cats/style8.vue
+4
-0
store.vue
components/store/store.vue
+1
-1
list.vue
pages/goods/list.vue
+4
-0
index.vue
pages/index/index.vue
+1
-0
couponDetail.vue
pages/reserve/personal/couponDetail.vue
+4
-1
storeList.vue
pages/reserve/storeList.vue
+8
-3
search.vue
pages/search/search.vue
+4
-0
No files found.
components/cats/style11.vue
View file @
cd8de034
...
...
@@ -177,6 +177,10 @@
this
.
CategoryIdsList
.
push
(
this
.
CategoryIds1
,
this
.
CategoryIds2
);
this
.
msg
.
CategoryIds
=
this
.
CategoryIdsList
.
join
(
','
);
this
.
msg
.
StoreId
=
uni
.
getStorageSync
(
"storeId"
)?
uni
.
getStorageSync
(
"storeId"
).
storeId
:
0
;
let
IsOpenReserve
=
uni
.
getStorageSync
(
"GetAppConfig"
)?
uni
.
getStorageSync
(
"GetAppConfig"
).
IsOpenReserve
:
0
if
(
IsOpenReserve
==
0
){
//如果没开启 门店id赋值为0
this
.
msg
.
StoreId
=
0
}
this
.
isover
=
false
;
this
.
loading
=
true
;
let
url
...
...
components/cats/style3.vue
View file @
cd8de034
...
...
@@ -108,6 +108,10 @@
this
.
isover
=
false
;
this
.
loading
=
true
;
this
.
msg
.
StoreId
=
uni
.
getStorageSync
(
"storeId"
)?
uni
.
getStorageSync
(
"storeId"
).
storeId
:
0
;
let
IsOpenReserve
=
uni
.
getStorageSync
(
"GetAppConfig"
)?
uni
.
getStorageSync
(
"GetAppConfig"
).
IsOpenReserve
:
0
if
(
IsOpenReserve
==
0
){
//如果没开启 门店id赋值为0
this
.
msg
.
StoreId
=
0
}
let
url
if
(
this
.
IsEducation
==
1
)
{
url
=
'/api/AppletSchool/GetAppletCoursePageList'
...
...
components/cats/style4.vue
View file @
cd8de034
...
...
@@ -148,6 +148,10 @@
this
.
isover
=
false
;
this
.
loading
=
true
;
this
.
msg
.
StoreId
=
uni
.
getStorageSync
(
"storeId"
)?
uni
.
getStorageSync
(
"storeId"
).
storeId
:
0
;
let
IsOpenReserve
=
uni
.
getStorageSync
(
"GetAppConfig"
)?
uni
.
getStorageSync
(
"GetAppConfig"
).
IsOpenReserve
:
0
if
(
IsOpenReserve
==
0
){
//如果没开启 门店id赋值为0
this
.
msg
.
StoreId
=
0
}
let
url
if
(
this
.
IsEducation
==
1
)
{
url
=
'/api/AppletSchool/GetAppletCoursePageList'
...
...
components/cats/style7.vue
View file @
cd8de034
...
...
@@ -146,6 +146,10 @@
this
.
isover
=
false
;
this
.
loading
=
true
;
this
.
msg
.
StoreId
=
uni
.
getStorageSync
(
"storeId"
)?
uni
.
getStorageSync
(
"storeId"
).
storeId
:
0
;
let
IsOpenReserve
=
uni
.
getStorageSync
(
"GetAppConfig"
)?
uni
.
getStorageSync
(
"GetAppConfig"
).
IsOpenReserve
:
0
if
(
IsOpenReserve
==
0
){
//如果没开启 门店id赋值为0
this
.
msg
.
StoreId
=
0
}
let
url
if
(
this
.
IsEducation
==
1
)
{
url
=
'/api/AppletSchool/GetAppletCoursePageList'
...
...
components/cats/style8.vue
View file @
cd8de034
...
...
@@ -178,6 +178,10 @@
this
.
isover
=
false
;
this
.
loading
=
true
;
this
.
msg
.
StoreId
=
uni
.
getStorageSync
(
"storeId"
)?
uni
.
getStorageSync
(
"storeId"
).
storeId
:
0
;
let
IsOpenReserve
=
uni
.
getStorageSync
(
"GetAppConfig"
)?
uni
.
getStorageSync
(
"GetAppConfig"
).
IsOpenReserve
:
0
if
(
IsOpenReserve
==
0
){
//如果没开启 门店id赋值为0
this
.
msg
.
StoreId
=
0
}
let
url
if
(
this
.
IsEducation
==
1
)
{
url
=
'/api/AppletSchool/GetAppletCoursePageList'
...
...
components/store/store.vue
View file @
cd8de034
...
...
@@ -95,7 +95,7 @@
},
goStorelist
(){
//门店选择
uni
.
navigateTo
({
url
:
"/pages/reserve/storeList"
url
:
"/pages/reserve/storeList
?showtype=1
"
})
},
gostoreDetails
()
{
...
...
pages/goods/list.vue
View file @
cd8de034
...
...
@@ -172,6 +172,10 @@
this
.
showLoading
=
this
.
msg
.
pageIndex
!=
1
;
this
.
msg
.
GoodsPageType
=
uni
.
getStorageSync
(
"mall_UserInfo"
)?
uni
.
getStorageSync
(
"mall_UserInfo"
).
UserPageType
:
0
;
this
.
msg
.
StoreId
=
uni
.
getStorageSync
(
"storeId"
)?
uni
.
getStorageSync
(
"storeId"
).
storeId
:
0
;
let
IsOpenReserve
=
uni
.
getStorageSync
(
"GetAppConfig"
)?
uni
.
getStorageSync
(
"GetAppConfig"
).
IsOpenReserve
:
0
if
(
IsOpenReserve
==
0
){
//如果没开启 门店id赋值为0
this
.
msg
.
StoreId
=
0
}
this
.
request2
({
url
:
'/api/AppletGoods/GetAppletGoodsPageListForZY'
,
data
:
this
.
msg
...
...
pages/index/index.vue
View file @
cd8de034
...
...
@@ -463,6 +463,7 @@
},
(
res
)
=>
{
console
.
log
(
res
,
'res'
)
uni
.
setStorageSync
(
"GetAppConfig"
,
res
.
data
);
//方便在分类判断
if
(
res
.
resultCode
==
1
)
{
if
(
res
.
data
.
IsOpenReserve
==
1
){
this
.
getstore
();
...
...
pages/reserve/personal/couponDetail.vue
View file @
cd8de034
...
...
@@ -325,7 +325,10 @@
}
},
gostore
(
x
){
uni
.
setStorageSync
(
"storeId"
,
{
storeId
:
x
.
Id
});
let
IsOpenReserve
=
uni
.
getStorageSync
(
"GetAppConfig"
)?
uni
.
getStorageSync
(
"GetAppConfig"
).
IsOpenReserve
:
0
if
(
IsOpenReserve
==
1
){
//如果开启 门店id存储起来
uni
.
setStorageSync
(
"storeId"
,
{
storeId
:
x
.
Id
});
}
uni
.
navigateTo
({
url
:
"/pages/reserve/storeDetails?id="
+
x
.
Id
,
});
...
...
pages/reserve/storeList.vue
View file @
cd8de034
...
...
@@ -37,7 +37,7 @@
</view>
</view>
</view>
<view
class=
"choice"
@
click
.
stop=
"radioChange"
>
<view
class=
"choice"
@
click
.
stop=
"radioChange"
v-if=
"showtype==1"
>
<u-radio-group
v-model=
"currentChosen"
@
change=
'radioChange'
>
<u-radio
shape=
"circle"
...
...
@@ -102,11 +102,15 @@
CurrentPosition
:
''
,
OrderByType
:
3
,
},
showtype
:
0
,
};
},
onLoad
(
option
)
{
if
(
option
&&
option
.
showtype
){
this
.
showtype
=
option
.
showtype
}
this
.
mainColor
=
this
.
$uiConfig
.
mainColor
;
this
.
msg
.
CurrentPosition
=
uni
.
getStorageSync
(
"position"
)
&&
uni
.
getStorageSync
(
"position"
).
position
?
uni
.
getStorageSync
(
"position"
).
position
:
''
;
...
...
@@ -185,8 +189,9 @@
}
},
gostoreDetails
(
item
)
{
uni
.
setStorageSync
(
"storeId"
,
{
storeId
:
item
.
Id
});
if
(
this
.
showtype
==
1
){
//从组组建过来的缓存起来
uni
.
setStorageSync
(
"storeId"
,
{
storeId
:
item
.
Id
});
}
this
.
currentChosen
=
item
.
Id
// let pages = getCurrentPages(); // 当前页面
// let beforePage = pages[pages.length - 2]; // 前一个页面
...
...
pages/search/search.vue
View file @
cd8de034
...
...
@@ -183,6 +183,10 @@
var
UserPageType
=
uni
.
getStorageSync
(
"mall_UserInfo"
)
?
uni
.
getStorageSync
(
"mall_UserInfo"
).
UserPageType
:
0
;
let
url
let
StoreId
=
uni
.
getStorageSync
(
"storeId"
)?
uni
.
getStorageSync
(
"storeId"
).
storeId
:
0
;
let
IsOpenReserve
=
uni
.
getStorageSync
(
"GetAppConfig"
)?
uni
.
getStorageSync
(
"GetAppConfig"
).
IsOpenReserve
:
0
if
(
IsOpenReserve
==
0
){
//如果没开启 门店id赋值为0
StoreId
=
0
}
if
(
this
.
IsEducation
==
1
)
{
url
=
'/api/AppletSchool/GetAppletCoursePageList'
;
...
...
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