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
58cae99b
Commit
58cae99b
authored
Aug 21, 2020
by
Mac
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
33888f71
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
101 additions
and
2 deletions
+101
-2
shopinfo.vue
components/shopinfo/shopinfo.vue
+87
-0
index.vue
pages/index/index.vue
+6
-0
index.vue
pages/microShop/index/index.vue
+6
-1
user-center.vue
pages/user-center/user-center.vue
+2
-1
No files found.
components/shopinfo/shopinfo.vue
0 → 100644
View file @
58cae99b
<
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' }"
>
<view
style=
"display: flex;flex-direction: row;align-items: center;"
>
<u-avatar
:src=
"shopData.Logo"
size=
"100"
slot=
"addBtn"
></u-avatar>
<view
class=
"shopbox_l_text"
>
<text
style=
" font-size: 30rpx;color: #111111;width: 100%;overflow: hidden;white-space: nowrap;text-overflow: ellipsis;"
>
{{
shopData
.
Name
}}
</text>
<text
style=
" font-size: 24rpx;color: #878787;width: 100%;overflow: hidden;white-space: nowrap;text-overflow: ellipsis;"
>
{{
shopData
.
Notice
}}
</text>
</view>
</view>
<button
class=
"fx"
open-type=
"share"
>
<image
mode=
"aspectFit"
src=
"../../static/images/icon/img-share-status.png"
@
click=
"clickHandler(item.link.url)"
style=
"height:100%;width: 100%;"
/>
</button>
</view>
</
template
>
<
script
>
export
default
{
props
:
[
"ad"
],
data
()
{
return
{
shopData
:{}
}
},
created
()
{
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
:
5
}
},
res
=>
{
if
(
res
.
resultCode
==
1
)
{
this
.
shopData
=
res
.
data
}
}
);
}
},
}
</
script
>
<
style
>
.Sbox
{
width
:
100%
;
height
:
80px
;
padding
:
0
30px
;
display
:
flex
;
flex-direction
:
row
;
align-items
:
center
;
justify-content
:
space-between
;
}
.Sbox
.shopbox_l_text
{
display
:
flex
;
flex-direction
:
column
;
justify-content
:
space-around
;
width
:
180px
;
height
:
100
rpx
;
margin-left
:
10px
;
}
.Sbox
.fx
{
width
:
65px
;
height
:
27px
;
border
:
none
;
outline
:
none
;
padding
:
0
;
margin
:
0
;
line-height
:
unset
;
}
</
style
>
pages/index/index.vue
View file @
58cae99b
...
@@ -49,6 +49,9 @@
...
@@ -49,6 +49,9 @@
<addialog
v-if=
"d.id == 'modal' && d.data.opened"
:ads=
"d.data"
:key=
"di"
></addialog>
<addialog
v-if=
"d.id == 'modal' && d.data.opened"
:ads=
"d.data"
:key=
"di"
></addialog>
<quicknav
v-if=
"d.id == 'quick-nav' && d.data.navSwitch == 1"
:navs=
"d.data"
:key=
"di"
></quicknav>
<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>
<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
>
</
template
>
</view>
</view>
</template>
</template>
...
@@ -102,7 +105,9 @@ import addialog from "@/components/addialog/index";
...
@@ -102,7 +105,9 @@ import addialog from "@/components/addialog/index";
import
quicknav
from
"@/components/quicknav/index"
;
import
quicknav
from
"@/components/quicknav/index"
;
import
coupon
from
"@/components/coupons/coupons"
;
import
coupon
from
"@/components/coupons/coupons"
;
import
pingtuan
from
"@/components/pingtuan/index"
;
import
pingtuan
from
"@/components/pingtuan/index"
;
import
shopinfo
from
"@/components/shopinfo/shopinfo"
;
import
auth
from
"@/components/auth/index.vue"
;
import
auth
from
"@/components/auth/index.vue"
;
export
default
{
export
default
{
data
()
{
data
()
{
return
{
return
{
...
@@ -147,6 +152,7 @@ export default {
...
@@ -147,6 +152,7 @@ export default {
quicknav
,
quicknav
,
coupon
,
coupon
,
pingtuan
,
pingtuan
,
shopinfo
,
auth
auth
},
},
onLoad
(
options
)
{
onLoad
(
options
)
{
...
...
pages/microShop/index/index.vue
View file @
58cae99b
...
@@ -118,7 +118,12 @@
...
@@ -118,7 +118,12 @@
</view>
</view>
</view>
</view>
<view
style=
"width: 60px;height: 30px;border-radius: 15px;color: #fff; margin-right: -30px;background-image: linear-gradient( to right,#FF8585,#ED4353);text-align: center;line-height: 30px;"
<view
style=
"width: 60px;height: 30px;border-radius: 15px;color: #fff; margin-right: -30px;background-image: linear-gradient( to right,#FF8585,#ED4353);text-align: center;line-height: 30px;"
@
click=
"goUrl('/pages/microShop/wdCase')"
@
click=
"goUrl('/pages/microShop/wdCase')"
v-if=
"SmallShops.UserInfo.CommissionWithdrawal>0"
>
<Text>
{{
SmallShops
.
CustomModel
.
WithdrawalText
}}
</Text>
</view>
<view
style=
"width: 60px;height: 30px;border-radius: 15px;color: #fff; margin-right: -30px;background: #ababab;text-align: center;line-height: 30px;"
v-if=
"SmallShops.UserInfo.CommissionWithdrawal
<
=
0
"
>
>
<Text>
{{
SmallShops
.
CustomModel
.
WithdrawalText
}}
</Text>
<Text>
{{
SmallShops
.
CustomModel
.
WithdrawalText
}}
</Text>
</view>
</view>
...
...
pages/user-center/user-center.vue
View file @
58cae99b
...
@@ -190,6 +190,7 @@ export default {
...
@@ -190,6 +190,7 @@ export default {
created
()
{
created
()
{
this
.
mainColor
=
this
.
$uiConfig
.
mainColor
;
this
.
mainColor
=
this
.
$uiConfig
.
mainColor
;
this
.
secondary
=
this
.
$uiConfig
.
secondary
;
this
.
secondary
=
this
.
$uiConfig
.
secondary
;
this
.
userinfo
();
},
},
onLoad
()
{
onLoad
()
{
this
.
navHeight
=
this
.
$navHeight
-
2
;
this
.
navHeight
=
this
.
$navHeight
-
2
;
...
@@ -229,7 +230,7 @@ export default {
...
@@ -229,7 +230,7 @@ export default {
uni
.
setNavigationBarTitle
({
uni
.
setNavigationBarTitle
({
title
:
'用户中心'
title
:
'用户中心'
});
});
this
.
userinfo
();
},
},
onShow
()
{
onShow
()
{
this
.
userinfo
();
this
.
userinfo
();
...
...
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