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
e66d74d6
Commit
e66d74d6
authored
Jul 24, 2020
by
zhengke
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改
parent
b0bbdd6e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
41 additions
and
14 deletions
+41
-14
goods.vue
pages/goods/goods.vue
+41
-14
No files found.
pages/goods/goods.vue
View file @
e66d74d6
...
@@ -12,7 +12,7 @@
...
@@ -12,7 +12,7 @@
@
click=
"previewImage"
@
click=
"previewImage"
></u-swiper>
></u-swiper>
<!-- TODO 分销价格未做 is_share_price -->
<!-- TODO 分销价格未做 is_share_price -->
<view
class=
"is_share"
v-if=
"g.share > 0"
>
<view
class=
"is_share"
v-if=
"g.share > 0"
style=
"top:240px;"
>
<image
<image
src=
"@/static/images/icon/WechatIMG424.png"
src=
"@/static/images/icon/WechatIMG424.png"
style=
"width: 20px; margin-left: 12px; opacity: 1;"
style=
"width: 20px; margin-left: 12px; opacity: 1;"
...
@@ -32,6 +32,26 @@
...
@@ -32,6 +32,26 @@
<Text>
¥
{{
g
.
share
}}
</Text>
<Text>
¥
{{
g
.
share
}}
</Text>
</view>
</view>
</view>
</view>
<view
class=
"is_share"
v-if=
"g.myBuyCommission>0"
>
<image
src=
"@/static/images/icon/WechatIMG424.png"
style=
"width: 20px; margin-left: 12px; opacity: 1;"
mode=
"widthFix"
/>
<view
style=
"
display: flex;
flex-direction: column;
margin-left: 8px;
font-size: 11px;
color: #fff;
opacity: 1;
"
>
<Text>
自购最高返利
</Text>
<Text>
¥
{{
g
.
myBuyCommission
}}
</Text>
</view>
</view>
</view>
</view>
<view
class=
"g-info"
>
<view
class=
"g-info"
>
<view
class=
"g-name u-skeleton-rect"
>
{{
g
.
name
}}
</view>
<view
class=
"g-name u-skeleton-rect"
>
{{
g
.
name
}}
</view>
...
@@ -330,17 +350,19 @@ export default {
...
@@ -330,17 +350,19 @@ export default {
uni
.
setStorageSync
(
"pid"
,
{
pid
:
option
.
user_id
});
uni
.
setStorageSync
(
"pid"
,
{
pid
:
option
.
user_id
});
}
}
this
.
u
=
uni
.
getStorageSync
(
"mall_UserInfo"
);
this
.
u
=
uni
.
getStorageSync
(
"mall_UserInfo"
);
if
(
!
this
.
u
)
{
// if (!this.u) {
this
.
u
=
{
// this.u = {
nickName
:
"未登录"
,
// nickName: "未登录",
avatarUrl
:
""
,
// avatarUrl: "",
};
// };
this
.
showAuth
=
true
;
// this.showAuth = true;
}
else
{
// } else {
this
.
init
();
// this.init();
this
.
initPage
();
// this.initPage();
}
// }
this
.
init
();
this
.
initPage
();
this
.
mc
=
this
.
$uiConfig
.
mainColor
;
this
.
mc
=
this
.
$uiConfig
.
mainColor
;
this
.
secondary
=
this
.
$uiConfig
.
secondary
;
this
.
secondary
=
this
.
$uiConfig
.
secondary
;
...
@@ -465,9 +487,13 @@ export default {
...
@@ -465,9 +487,13 @@ export default {
// );
// );
this.detailContent = richtext;
this.detailContent = richtext;
this.loading = false;
this.loading = false;
this.initComments();
//登录在调用评论接口
if (this.u) {
this.initComments();
this.setFootMarkInfo(res.data.goods.id);
}
this.initRecommend();
this.initRecommend();
this.setFootMarkInfo(res.data.goods.id);
} else {
} else {
this.isExsitGoods = false;
this.isExsitGoods = false;
}
}
...
@@ -506,6 +532,7 @@ export default {
...
@@ -506,6 +532,7 @@ export default {
(res) => {
(res) => {
console.log(res, "pinglun");
console.log(res, "pinglun");
this.comments = res.data.pageData;
this.comments = res.data.pageData;
// this.initRecommend();
// this.initRecommend();
}
}
);
);
...
...
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