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
e0dc0867
Commit
e0dc0867
authored
Jul 31, 2020
by
黄媛媛
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
详情会员跳转
parent
b7031508
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
37 additions
and
5 deletions
+37
-5
goods.vue
pages/goods/goods.vue
+25
-2
index.vue
pages/share/buyInterest/index.vue
+12
-3
No files found.
pages/goods/goods.vue
View file @
e0dc0867
...
...
@@ -15,7 +15,7 @@
<view
class=
"is_share"
v-if=
"g.share > 0"
style=
"top:240px;"
>
<image
src=
"@/static/images/icon/WechatIMG424.png"
style=
"width: 20px; margin-left: 12px; opacity: 1;"
style=
"width: 20px; margin-left: 12px; opacity: 1;
height: auto;
"
mode=
"widthFix"
/>
<view
...
...
@@ -100,7 +100,7 @@
g
.
goods_marketing_award
.
integral
.
title
}}
</text>
</view>
<view
style=
"display: flex;flex-direction: row;align-items: center"
v-if=
"g.goods_marketing_award.PresentFXGradeMsg != ''"
>
<view
style=
"display: flex;flex-direction: row;align-items: center"
v-if=
"g.goods_marketing_award.PresentFXGradeMsg != ''"
@
click=
"goVIP"
>
<u-tag
text=
"送会员"
type=
"error"
/>
<text
style=
"margin-left: 5px; font-size: 12px;"
>
{{
g
.
goods_marketing_award
.
PresentFXGradeMsg
...
...
@@ -329,6 +329,7 @@ export default {
showAuth
:
false
,
isAllowShare
:
1
,
u
:
{},
vipState
:{},
};
},
components
:
{
...
...
@@ -369,6 +370,7 @@ export default {
// }
this
.
init
();
this
.
initPage
();
this
.
getVipId
()
this
.
mc
=
this
.
$uiConfig
.
mainColor
;
this
.
secondary
=
this
.
$uiConfig
.
secondary
;
...
...
@@ -466,6 +468,27 @@ export default {
url
:
"/pages/goods/comment-list?id="
+
this
.
id
,
});
},
getVipId
(){
//获取会员ID
this
.
request2
(
{
url
:
"/api/AppletGoods/GetAppletVipGradeInfo"
,
data
:
{},
},
(
res
)
=>
{
if
(
res
.
data
){
this
.
vipState
=
res
.
data
.
VIPModel
}
// this.initRecommend();
},
);
},
goVIP
(){
//跳转到购买的页面查看
let
GradeId
=
this
.
vipState
.
Id
uni
.
navigateTo
({
url
:
"/pages/share/buyInterest/index?showLook=1&GradeId="
+
GradeId
,
});
},
init
()
{
this
.
loading
=
true
;
this
.
request2
(
...
...
pages/share/buyInterest/index.vue
View file @
e0dc0867
...
...
@@ -64,9 +64,11 @@
{{
dataList
.
Description
}}
</view>
</view>
<view
class=
"vip_lastdiv"
>
<view
class=
"vip_lastdiv"
>
<img
src=
"https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/vip_btm.png"
alt=
""
>
<button
class=
"my_VipLastBtn"
@
click=
"openImediate"
>
立即购买
</button>
<button
class=
"my_VipLastBtn"
@
click=
"openImediate"
v-if=
"showLook==0"
>
立即购买
</button>
<button
class=
"my_VipLastBtn"
@
click=
"goback"
v-if=
"showLook==1"
>
返回
</button>
</view>
</view>
</view>
...
...
@@ -86,7 +88,8 @@ export default {
pageSize
:
10
},
GradeId
:
0
,
Money
:
0
Money
:
0
,
showLook
:
0
};
},
created
()
{
...
...
@@ -111,6 +114,9 @@ export default {
if
(
option
){
this
.
GradeId
=
option
.
GradeId
;
this
.
Money
=
option
.
Money
;
if
(
option
.
showLook
){
//从详情跳转过来查看内容的 不能购买
this
.
showLook
=
option
.
showLook
}
}
this
.
init
();
},
...
...
@@ -166,6 +172,9 @@ export default {
}
}
);
},
goback
(){
uni
.
navigateBack
()
}
}
};
...
...
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