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
da9e3391
Commit
da9e3391
authored
Aug 24, 2020
by
Mac
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
58cae99b
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
7 deletions
+11
-7
shopinfo.vue
components/shopinfo/shopinfo.vue
+8
-5
index.vue
pages/index/index.vue
+1
-1
user-center.vue
pages/user-center/user-center.vue
+2
-1
No files found.
components/shopinfo/shopinfo.vue
View file @
da9e3391
<
template
>
<view
class=
"Sbox"
:style=
"
{ 'background-image': 'url(https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Test/Upload/Goods/1597636248000_978.png)', backgroundSize: '100% 80px' }"
:style=
"
{ 'background-image': 'url('+ad.backgroundPicUrl+')', backgroundSize: '100% 80px' }"
v-if="Id==0"
>
<view
style=
"display: flex;flex-direction: row;align-items: center;"
>
<u-avatar
:src=
"shopData.Logo"
size=
"100"
slot=
"addBtn"
></u-avatar>
...
...
@@ -14,7 +15,6 @@
<image
mode=
"aspectFit"
src=
"../../static/images/icon/img-share-status.png"
@
click=
"clickHandler(item.link.url)"
style=
"height:100%;width: 100%;"
/>
</button>
...
...
@@ -28,20 +28,23 @@ export default {
props
:
[
"ad"
],
data
()
{
return
{
shopData
:{}
shopData
:{},
Id
:
0
}
},
created
()
{
this
.
Id
=
uni
.
getStorageSync
(
"mall_UserInfo"
)
?
uni
.
getStorageSync
(
"mall_UserInfo"
).
UserSmallShopId
:
0
;
this
.
getSmallShopById
()
},
methods
:{
getSmallShopById
(){
let
Id
=
uni
.
getStorageSync
(
"mall_UserInfo"
)
?
uni
.
getStorageSync
(
"mall_UserInfo"
).
UserSmallShopId
:
0
;
this
.
request2
(
{
url
:
'/api/AppletUser/GetSmallShopById'
,
data
:
{
// Id: Id
// Id:
this.
Id
Id
:
5
}
},
...
...
pages/index/index.vue
View file @
da9e3391
...
...
@@ -50,7 +50,7 @@
<quicknav
v-if=
"d.id == 'quick-nav' && d.data.navSwitch == 1"
:navs=
"d.data"
:key=
"di"
></quicknav>
<pingtuan
v-if=
"d.id == 'pintuan'"
:goods=
"d.data"
:key=
"di"
></pingtuan>
<shopinfo
v-if=
"d.id == 'shop-info' "
:goods=
"d.data"
:key=
"di"
></shopinfo>
<!--
<shopinfo
v-if=
'di==1'
:goods=
"d.data"
:key=
"di"
></shopinfo>
-->
</
template
>
</view>
...
...
pages/user-center/user-center.vue
View file @
da9e3391
...
...
@@ -241,6 +241,7 @@ export default {
},
pandu
(
item
){
let
flag
=
true
;
let
IsOpen
=
this
.
shopBasics
.
model
.
IsOpen
?
this
.
shopBasics
.
model
.
IsOpen
:
1
switch
(
item
.
link_url
)
{
case
"/pages/share/index/index"
:
...
...
@@ -254,7 +255,7 @@ export default {
break
;
case
"/pages/microShop/index/index"
:
//开启
if
(
this
.
shopBasics
.
model
.
IsOpen
==
2
)
if
(
IsOpen
==
2
)
{
if
(
this
.
mall_UserInfo
.
SmallShopId
==
0
&&
this
.
mall_UserInfo
.
UserSmallShopId
!=
0
)
{
...
...
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