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
fc9956b3
Commit
fc9956b3
authored
Sep 06, 2021
by
罗超
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
13119ca9
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
712 additions
and
524 deletions
+712
-524
index.vue
components/pubu/index.vue
+712
-524
No files found.
components/pubu/index.vue
View file @
fc9956b3
<
template
>
<
template
>
<view
class=
""
>
<view
class=
""
>
<u-tabs
:list=
"dataObj.catList"
:current=
"current"
:active-color=
"mainColor"
@
change=
"change"
<u-tabs
:active-item-style=
"activeTab"
:bar-style=
"barStyle"
style=
"margin-bottom: 30rpx"
v-if=
"dataObj.showCat"
>
:list=
"dataObj.catList"
:current=
"current"
:active-color=
"mainColor"
@
change=
"change"
:active-item-style=
"activeTab"
:bar-style=
"barStyle"
style=
"margin-bottom: 30rpx"
v-if=
"dataObj.showCat"
>
</u-tabs>
</u-tabs>
<view
v-if=
"dataObj.showCat"
>
<view
v-if=
"dataObj.showCat"
>
<u-empty
v-if=
"curDataObj.goodsList.length == 0"
text=
"暂无内容"
mode=
"list"
></u-empty>
<u-empty
<view
v-if=
"curDataObj.goodsList.length > 0"
v-if=
"curDataObj.goodsList.length == 0"
:style=
"
{'background-color':dataObj.backgroundColor?dataObj.backgroundColor:'#fff'}">
text=
"暂无内容"
mode=
"list"
></u-empty>
<view
v-if=
"curDataObj.goodsList.length > 0"
:style=
"
{
'background-color': dataObj.backgroundColor
? dataObj.backgroundColor
: '#fff',
}"
>
<view
class=
"con"
v-if=
"dataObj.listStyle == 5"
>
<view
class=
"con"
v-if=
"dataObj.listStyle == 5"
>
<view
class=
"left"
>
<view
class=
"left"
>
<view
v-for=
"(item, index) in curDataObj.goodsList"
:key=
"index"
v-if=
"index % 2 == 0"
<view
class=
"left-item"
>
v-for=
"(item, index) in curDataObj.goodsList"
<image
:src=
"item.picUrl"
class=
"item-img"
mode=
"widthFix"
@
click=
"jumpPage(item)"
></image>
:key=
"index"
v-if=
"index % 2 == 0"
class=
"left-item"
>
<image
:src=
"item.picUrl"
class=
"item-img"
mode=
"widthFix"
@
click=
"jumpPage(item)"
></image>
<view
class=
"item-title"
>
<view
class=
"item-title"
>
{{
item
.
name
}}
{{
item
.
name
}}
</view>
</view>
<view
class=
"flex between CreateByInfo"
>
<view
class=
"flex between CreateByInfo"
>
<view
class=
"flex CreateByName"
@
click=
"jumpPagePerson(item)"
>
<view
class=
"flex CreateByName"
@
click=
"jumpPagePerson(item)"
>
<image
:src=
"item.CreateByIco"
class=
"item-headimg"
mode=
"aspectFill"
></image>
<image
:src=
"item.CreateByIco"
class=
"item-headimg"
mode=
"aspectFill"
></image>
{{
item
.
CreateBy
}}
{{
item
.
CreateBy
}}
</view>
</view>
<view
class=
"flex zanNum"
>
<view
class=
"flex zanNum"
>
<image
src=
"https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/weizan.png"
<image
class=
"item-zanimg"
mode=
"aspectFill"
@
click=
"dianzan(item)"
src=
"https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/weizan.png"
v-if=
"item.IsDianZan == 0"
></image>
class=
"item-zanimg"
<image
src=
"https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/yizan.png"
mode=
"aspectFill"
class=
"item-zanimg"
mode=
"aspectFill"
@
click=
"quxiaodianzan(item)"
@
click=
"dianzan(item)"
v-if=
"item.IsDianZan > 0"
></image>
{{
item
.
DianZanNum
}}
v-if=
"item.IsDianZan == 0"
></image>
<image
src=
"https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/yizan.png"
class=
"item-zanimg"
mode=
"aspectFill"
@
click=
"quxiaodianzan(item)"
v-if=
"item.IsDianZan > 0"
></image
>
{{
item
.
DianZanNum
}}
</view>
</view>
</view>
</view>
</view>
</view>
</view>
</view>
<view
class=
"right"
>
<view
class=
"right"
>
<view
v-for=
"(item, index) in curDataObj.goodsList"
:key=
"index"
v-if=
"index % 2 == 1"
<view
class=
"left-item"
>
v-for=
"(item, index) in curDataObj.goodsList"
<image
:src=
"item.picUrl"
class=
"item-img"
mode=
"widthFix"
@
click=
"jumpPage(item)"
></image>
:key=
"index"
v-if=
"index % 2 == 1"
class=
"left-item"
>
<image
:src=
"item.picUrl"
class=
"item-img"
mode=
"widthFix"
@
click=
"jumpPage(item)"
></image>
<view
class=
"item-title"
>
<view
class=
"item-title"
>
{{
item
.
name
}}
{{
item
.
name
}}
</view>
</view>
<view
class=
"flex between CreateByInfo"
>
<view
class=
"flex between CreateByInfo"
>
<view
class=
"flex CreateByName"
@
click=
"jumpPagePerson(item)"
>
<view
class=
"flex CreateByName"
@
click=
"jumpPagePerson(item)"
>
<image
:src=
"item.CreateByIco"
class=
"item-headimg"
mode=
"aspectFill"
></image>
<image
:src=
"item.CreateByIco"
class=
"item-headimg"
mode=
"aspectFill"
></image>
{{
item
.
CreateBy
}}
{{
item
.
CreateBy
}}
</view>
</view>
<view
class=
"flex zanNum"
>
<view
class=
"flex zanNum"
>
<image
src=
"https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/weizan.png"
<image
class=
"item-zanimg"
mode=
"aspectFill"
@
click=
"dianzan(item)"
src=
"https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/weizan.png"
v-if=
"item.IsDianZan == 0"
></image>
class=
"item-zanimg"
<image
src=
"https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/yizan.png"
mode=
"aspectFill"
class=
"item-zanimg"
mode=
"aspectFill"
@
click=
"quxiaodianzan(item)"
@
click=
"dianzan(item)"
v-if=
"item.IsDianZan > 0"
></image>
{{
item
.
DianZanNum
}}
v-if=
"item.IsDianZan == 0"
></image>
<image
src=
"https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/yizan.png"
class=
"item-zanimg"
mode=
"aspectFill"
@
click=
"quxiaodianzan(item)"
v-if=
"item.IsDianZan > 0"
></image
>
{{
item
.
DianZanNum
}}
</view>
</view>
</view>
</view>
</view>
</view>
...
@@ -57,21 +119,43 @@
...
@@ -57,21 +119,43 @@
</view>
</view>
<view
class=
"con2"
v-if=
"dataObj.listStyle == -1"
>
<view
class=
"con2"
v-if=
"dataObj.listStyle == -1"
>
<view
class=
"list"
>
<view
class=
"list"
>
<view
v-for=
"(item, index) in curDataObj.goodsList"
:key=
"index"
class=
"list-item"
>
<view
<image
:src=
"item.picUrl"
class=
"list-item-img"
mode=
"widthFix"
@
click=
"jumpPage(item)"
>
v-for=
"(item, index) in curDataObj.goodsList"
:key=
"index"
class=
"list-item"
>
<image
:src=
"item.picUrl"
class=
"list-item-img"
mode=
"widthFix"
@
click=
"jumpPage(item)"
>
</image>
</image>
<view
class=
"flex between CreateByInfo"
>
<view
class=
"flex between CreateByInfo"
>
<view
class=
"flex CreateByName"
@
click=
"jumpPagePerson(item)"
>
<view
class=
"flex CreateByName"
@
click=
"jumpPagePerson(item)"
>
<image
:src=
"item.CreateByIco"
class=
"item-headimg"
mode=
"aspectFill"
></image>
<image
:src=
"item.CreateByIco"
class=
"item-headimg"
mode=
"aspectFill"
></image>
{{
item
.
CreateBy
}}
{{
item
.
CreateBy
}}
</view>
</view>
<view
class=
"flex zanNum"
>
<view
class=
"flex zanNum"
>
<image
src=
"https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/weizan.png"
<image
class=
"item-zanimg"
mode=
"aspectFill"
@
click=
"dianzan(item)"
src=
"https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/weizan.png"
v-if=
"item.IsDianZan == 0"
></image>
class=
"item-zanimg"
<image
src=
"https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/yizan.png"
mode=
"aspectFill"
class=
"item-zanimg"
mode=
"aspectFill"
@
click=
"quxiaodianzan(item)"
@
click=
"dianzan(item)"
v-if=
"item.IsDianZan > 0"
></image>
{{
item
.
DianZanNum
}}
v-if=
"item.IsDianZan == 0"
></image>
<image
src=
"https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/yizan.png"
class=
"item-zanimg"
mode=
"aspectFill"
@
click=
"quxiaodianzan(item)"
v-if=
"item.IsDianZan > 0"
></image
>
{{
item
.
DianZanNum
}}
</view>
</view>
</view>
</view>
</view>
</view>
...
@@ -80,53 +164,109 @@
...
@@ -80,53 +164,109 @@
</view>
</view>
</view>
</view>
<view
v-if=
"!dataObj.showCat"
>
<view
v-if=
"!dataObj.showCat"
>
<u-empty
v-if=
"dataList.length == 0"
text=
"暂无内容"
mode=
"list"
></u-empty>
<u-empty
<view
v-if=
"dataList.length > 0"
v-if=
"dataList.length == 0"
:style=
"
{'background-color':dataObj.backgroundColor?dataObj.backgroundColor:'#fff'}">
text=
"暂无内容"
mode=
"list"
></u-empty>
<view
v-if=
"dataList.length > 0"
:style=
"
{
'background-color': dataObj.backgroundColor
? dataObj.backgroundColor
: '#fff',
}"
>
<view
class=
"con"
v-if=
"dataObj.listStyle == 5"
>
<view
class=
"con"
v-if=
"dataObj.listStyle == 5"
>
<view
class=
"left"
>
<view
class=
"left"
>
<view
v-for=
"(item, index) in dataList"
:key=
"index"
v-if=
"index % 2 == 0"
class=
"left-item"
>
<view
<image
:src=
"item.picUrl"
class=
"item-img"
mode=
"widthFix"
@
click=
"jumpPage(item)"
></image>
v-for=
"(item, index) in dataList"
:key=
"index"
v-if=
"index % 2 == 0"
class=
"left-item"
>
<image
:src=
"item.picUrl"
class=
"item-img"
mode=
"widthFix"
@
click=
"jumpPage(item)"
></image>
<view
class=
"item-title"
>
<view
class=
"item-title"
>
{{
item
.
name
}}
{{
item
.
name
}}
</view>
</view>
<view
class=
"item-title"
>
<view
class=
"item-title"
>
{{
item
.
name
}}
{{
item
.
name
}}
</view>
</view>
<view
class=
"flex between CreateByInfo"
>
<view
class=
"flex between CreateByInfo"
>
<view
class=
"flex CreateByName"
@
click=
"jumpPagePerson(item)"
>
<view
class=
"flex CreateByName"
@
click=
"jumpPagePerson(item)"
>
<image
:src=
"item.CreateByIco"
class=
"item-headimg"
mode=
"aspectFill"
></image>
<image
:src=
"item.CreateByIco"
class=
"item-headimg"
mode=
"aspectFill"
></image>
{{
item
.
CreateBy
}}
{{
item
.
CreateBy
}}
</view>
</view>
<view
class=
"flex zanNum"
>
<view
class=
"flex zanNum"
>
<image
src=
"https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/weizan.png"
<image
class=
"item-zanimg"
mode=
"aspectFill"
@
click=
"dianzan(item)"
src=
"https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/weizan.png"
v-if=
"item.IsDianZan == 0"
></image>
class=
"item-zanimg"
<image
src=
"https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/yizan.png"
mode=
"aspectFill"
class=
"item-zanimg"
mode=
"aspectFill"
@
click=
"quxiaodianzan(item)"
@
click=
"dianzan(item)"
v-if=
"item.IsDianZan > 0"
></image>
{{
item
.
DianZanNum
}}
v-if=
"item.IsDianZan == 0"
></image>
<image
src=
"https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/yizan.png"
class=
"item-zanimg"
mode=
"aspectFill"
@
click=
"quxiaodianzan(item)"
v-if=
"item.IsDianZan > 0"
></image
>
{{
item
.
DianZanNum
}}
</view>
</view>
</view>
</view>
</view>
</view>
</view>
</view>
<view
class=
"right"
>
<view
class=
"right"
>
<view
v-for=
"(item, index) in dataList"
:key=
"index"
v-if=
"index % 2 == 1"
class=
"left-item"
>
<view
<image
:src=
"item.picUrl"
class=
"item-img"
mode=
"widthFix"
@
click=
"jumpPage(item)"
></image>
v-for=
"(item, index) in dataList"
:key=
"index"
v-if=
"index % 2 == 1"
class=
"left-item"
>
<image
:src=
"item.picUrl"
class=
"item-img"
mode=
"widthFix"
@
click=
"jumpPage(item)"
></image>
<view
class=
"item-title"
>
<view
class=
"item-title"
>
{{
item
.
name
}}
{{
item
.
name
}}
</view>
</view>
<view
class=
"flex between CreateByInfo"
>
<view
class=
"flex between CreateByInfo"
>
<view
class=
"flex CreateByName"
@
click=
"jumpPagePerson(item)"
>
<view
class=
"flex CreateByName"
@
click=
"jumpPagePerson(item)"
>
<image
:src=
"item.CreateByIco"
class=
"item-headimg"
mode=
"aspectFill"
></image>
<image
:src=
"item.CreateByIco"
class=
"item-headimg"
mode=
"aspectFill"
></image>
{{
item
.
CreateBy
}}
{{
item
.
CreateBy
}}
</view>
</view>
<view
class=
"flex zanNum"
>
<view
class=
"flex zanNum"
>
<image
src=
"https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/weizan.png"
<image
class=
"item-zanimg"
mode=
"aspectFill"
@
click=
"dianzan(item)"
src=
"https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/weizan.png"
v-if=
"item.IsDianZan == 0"
></image>
class=
"item-zanimg"
<image
src=
"https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/yizan.png"
mode=
"aspectFill"
class=
"item-zanimg"
mode=
"aspectFill"
@
click=
"quxiaodianzan(item)"
@
click=
"dianzan(item)"
v-if=
"item.IsDianZan > 0"
></image>
{{
item
.
DianZanNum
}}
v-if=
"item.IsDianZan == 0"
></image>
<image
src=
"https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/yizan.png"
class=
"item-zanimg"
mode=
"aspectFill"
@
click=
"quxiaodianzan(item)"
v-if=
"item.IsDianZan > 0"
></image
>
{{
item
.
DianZanNum
}}
</view>
</view>
</view>
</view>
</view>
</view>
...
@@ -134,21 +274,43 @@
...
@@ -134,21 +274,43 @@
</view>
</view>
<view
class=
"con2"
v-if=
"dataObj.listStyle == -1"
>
<view
class=
"con2"
v-if=
"dataObj.listStyle == -1"
>
<view
class=
"list"
>
<view
class=
"list"
>
<view
v-for=
"(item, index) in curDataObj.goodsList"
:key=
"index"
class=
"list-item"
>
<view
<image
:src=
"item.picUrl"
class=
"list-item-img"
mode=
"widthFix"
@
click=
"jumpPage(item)"
>
v-for=
"(item, index) in curDataObj.goodsList"
:key=
"index"
class=
"list-item"
>
<image
:src=
"item.picUrl"
class=
"list-item-img"
mode=
"widthFix"
@
click=
"jumpPage(item)"
>
</image>
</image>
<view
class=
"flex between CreateByInfo"
>
<view
class=
"flex between CreateByInfo"
>
<view
class=
"flex CreateByName"
@
click=
"jumpPagePerson(item)"
>
<view
class=
"flex CreateByName"
@
click=
"jumpPagePerson(item)"
>
<image
:src=
"item.CreateByIco"
class=
"item-headimg"
mode=
"aspectFill"
></image>
<image
:src=
"item.CreateByIco"
class=
"item-headimg"
mode=
"aspectFill"
></image>
{{
item
.
CreateBy
}}
{{
item
.
CreateBy
}}
</view>
</view>
<view
class=
"flex zanNum"
>
<view
class=
"flex zanNum"
>
<image
src=
"https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/weizan.png"
<image
class=
"item-zanimg"
mode=
"aspectFill"
@
click=
"dianzan(item)"
src=
"https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/weizan.png"
v-if=
"item.IsDianZan == 0"
></image>
class=
"item-zanimg"
<image
src=
"https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/yizan.png"
mode=
"aspectFill"
class=
"item-zanimg"
mode=
"aspectFill"
@
click=
"quxiaodianzan(item)"
@
click=
"dianzan(item)"
v-if=
"item.IsDianZan > 0"
></image>
{{
item
.
DianZanNum
}}
v-if=
"item.IsDianZan == 0"
></image>
<image
src=
"https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/yizan.png"
class=
"item-zanimg"
mode=
"aspectFill"
@
click=
"quxiaodianzan(item)"
v-if=
"item.IsDianZan > 0"
></image
>
{{
item
.
DianZanNum
}}
</view>
</view>
</view>
</view>
</view>
</view>
...
@@ -157,16 +319,25 @@
...
@@ -157,16 +319,25 @@
</view>
</view>
</view>
</view>
<view
<view
class=
"choosetype"
:style=
"
{ background: mainColor }" v-if="isShowFabu">
class=
"choosetype"
:style=
"
{ background: mainColor }"
v-if="isShowFabu"
>
<view
class=
"fabutiezi"
@
click=
"jumpfabu(1)"
>
<view
class=
"fabutiezi"
@
click=
"jumpfabu(1)"
>
<image
src=
"https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/tiezifabu.png"
mode=
""
<image
class=
"img"
/>
src=
"https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/tiezifabu.png"
mode=
""
class=
"img"
/>
发布帖子
发布帖子
</view>
</view>
<view
class=
"fabuhuodong"
@
click=
"jumpfabu(2)"
>
<view
class=
"fabuhuodong"
@
click=
"jumpfabu(2)"
>
<image
src=
"https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/huodongfabu.png"
mode=
""
<image
class=
"img"
/>
src=
"https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/huodongfabu.png"
mode=
""
class=
"img"
/>
发布活动
发布活动
</view>
</view>
</view>
</view>
...
@@ -180,19 +351,31 @@
...
@@ -180,19 +351,31 @@
</view>
-->
</view>
-->
<!-- 发布动态按钮 -->
<!-- 发布动态按钮 -->
<view
class=
"fbanniu"
@
click=
"toggleFabu"
>
<view
class=
"fbanniu"
@
click=
"toggleFabu"
>
<image
src=
"https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/fabupyq.png"
style=
"height: 26rpx"
<image
mode=
"aspectFit"
></image>
src=
"https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/fabupyq.png"
style=
"height: 26rpx"
mode=
"aspectFit"
></image>
<text
style=
"font-size: 10px; color: #fff"
>
发布
</text>
<text
style=
"font-size: 10px; color: #fff"
>
发布
</text>
</view>
</view>
<auth
v-if=
"showAuth"
@
changeuserinfo=
"reloadUserinfo"
@
gbAuth=
"gbAuth"
></auth>
<auth
<u-modal
v-model=
"show"
:content=
"showtext"
:show-cancel-button=
"true"
@
confirm=
"queren"
></u-modal>
v-if=
"showAuth"
@
changeuserinfo=
"reloadUserinfo"
@
gbAuth=
"gbAuth"
></auth>
<u-modal
v-model=
"show"
:content=
"showtext"
:show-cancel-button=
"true"
@
confirm=
"queren"
></u-modal>
</view>
</view>
</
template
>
</
template
>
<
script
>
<
script
>
import
auth
from
"@/components/auth/index.vue"
;
import
auth
from
"@/components/auth/index.vue"
;
export
default
{
export
default
{
props
:
[
"dataObj"
],
props
:
[
"dataObj"
],
components
:
{
components
:
{
auth
,
auth
,
...
@@ -209,13 +392,13 @@
...
@@ -209,13 +392,13 @@
u
:
{},
u
:
{},
isAttestation
:
0
,
isAttestation
:
0
,
activeTab
:
{
activeTab
:
{
color
:
'#111111'
,
color
:
"#111111"
,
'font-weight'
:
800
,
"font-weight"
:
800
,
'font-size'
:
'34rpx'
"font-size"
:
"34rpx"
,
},
},
barStyle
:
{
barStyle
:
{
height
:
'6rpx'
,
height
:
"6rpx"
,
}
},
};
};
},
},
computed
:
{},
computed
:
{},
...
@@ -281,13 +464,14 @@
...
@@ -281,13 +464,14 @@
}
}
},
},
queren
()
{
queren
()
{
let
mall_UserInfo
=
uni
.
getStorageSync
(
"mall_UserInfo"
)
?
let
mall_UserInfo
=
uni
.
getStorageSync
(
"mall_UserInfo"
)
uni
.
getStorageSync
(
"mall_UserInfo"
)
:
?
uni
.
getStorageSync
(
"mall_UserInfo"
)
null
;
:
null
;
if
(
mall_UserInfo
!=
null
)
{
if
(
mall_UserInfo
!=
null
)
{
if
(
this
.
isAttestation
==
0
)
{
if
(
this
.
isAttestation
==
0
)
{
uni
.
navigateTo
({
uni
.
navigateTo
({
url
:
"/pages/blindDate/editData?UserId="
+
url
:
"/pages/blindDate/editData?UserId="
+
mall_UserInfo
.
UserId
+
mall_UserInfo
.
UserId
+
"&Jumptype=2&type=1"
,
"&Jumptype=2&type=1"
,
});
});
...
@@ -306,7 +490,8 @@
...
@@ -306,7 +490,8 @@
ActivityDiscussId
:
0
,
ActivityDiscussId
:
0
,
IsSelectActivity
:
1
,
IsSelectActivity
:
1
,
};
};
this
.
request2
({
this
.
request2
(
{
url
:
"/api/AppletMiai/GetDianZan"
,
url
:
"/api/AppletMiai/GetDianZan"
,
data
:
msg
,
data
:
msg
,
},
},
...
@@ -333,7 +518,8 @@
...
@@ -333,7 +518,8 @@
ActivityDiscussId
:
0
,
ActivityDiscussId
:
0
,
IsSelectActivity
:
1
,
IsSelectActivity
:
1
,
};
};
this
.
request2
({
this
.
request2
(
{
url
:
"/api/AppletMiai/GetDianZan"
,
url
:
"/api/AppletMiai/GetDianZan"
,
data
:
msg
,
data
:
msg
,
},
},
...
@@ -354,23 +540,24 @@
...
@@ -354,23 +540,24 @@
},
},
getisAttestation
()
{
getisAttestation
()
{
//认证成功
//认证成功
this
.
request2
({
this
.
request2
(
{
url
:
"/api/Mall/GetHome"
,
url
:
"/api/Mall/GetHome"
,
data
:
{
data
:
{
page_id
:
0
,
page_id
:
0
,
open_school
:
0
,
open_school
:
0
,
StoreId
:
0
StoreId
:
0
,
},
},
},
},
(
res
)
=>
{
(
res
)
=>
{
uni
.
setStorageSync
(
"basedata"
,
res
.
data
);
uni
.
setStorageSync
(
"basedata"
,
res
.
data
);
let
basedata
=
wx
.
getStorageSync
(
"basedata"
);
let
basedata
=
wx
.
getStorageSync
(
"basedata"
);
this
.
isAttestation
=
basedata
.
user_info
.
isAttestation
?
this
.
isAttestation
=
basedata
.
user_info
.
isAttestation
basedata
.
user_info
.
isAttestation
:
?
basedata
.
user_info
.
isAttestation
0
;
:
0
;
this
.
isFaTie
=
basedata
.
user_info
.
isFaTie
?
this
.
isFaTie
=
basedata
.
user_info
.
isFaTie
basedata
.
user_info
.
isFaTie
:
?
basedata
.
user_info
.
isFaTie
0
;
:
0
;
},
},
(
error
)
=>
{}
(
error
)
=>
{}
);
);
...
@@ -386,80 +573,81 @@
...
@@ -386,80 +573,81 @@
return
;
return
;
}
}
});
});
this
.
dataList
=
this
.
dataObj
.
list
this
.
dataList
=
this
.
dataObj
.
list
;
},
},
};
};
</
script
>
</
script
>
<
style
lang=
"scss"
>
<
style
lang=
"scss"
>
.flex
{
.flex
{
display
:
flex
;
display
:
flex
;
align-items
:
center
;
align-items
:
center
;
}
}
.between
{
.between
{
justify-content
:
space-between
;
justify-content
:
space-between
;
}
}
.con
{
.con
{
display
:
flex
;
display
:
flex
;
justify-content
:
space-between
;
justify-content
:
space-between
;
box-sizing
:
border-box
;
box-sizing
:
border-box
;
padding-bottom
:
90rpx
;
padding-bottom
:
90rpx
;
padding
:
30rpx
;
padding
:
30rpx
;
// background-color: #eaebec;
// background-color: #eaebec;
}
}
.item-title
{
.item-title
{
font-family
:
PingFang
SC
;
font-family
:
PingFang
SC
;
font-size
:
28rpx
;
font-size
:
28rpx
;
font-weight
:
bold
;
font-weight
:
bold
;
color
:
#111111
;
color
:
#111111
;
box-sizing
:
border-box
;
box-sizing
:
border-box
;
padding
:
20rpx
20rpx
0
20rpx
;
padding
:
20rpx
20rpx
0
20rpx
;
overflow
:
hidden
;
overflow
:
hidden
;
text-overflow
:
ellipsis
;
text-overflow
:
ellipsis
;
display
:
-
webkit-box
;
display
:
-
webkit-box
;
-webkit-line-clamp
:
2
;
-webkit-line-clamp
:
2
;
-webkit-box-orient
:
vertical
;
-webkit-box-orient
:
vertical
;
}
}
.CreateByInfo
{
.CreateByInfo
{
background-color
:
#fff
;
background-color
:
#fff
;
height
:
90rpx
;
height
:
90rpx
;
box-sizing
:
border-box
;
box-sizing
:
border-box
;
padding
:
0
20rpx
;
padding
:
0
20rpx
;
}
}
.CreateByName
,
.CreateByName
,
.zanNum
{
.zanNum
{
font-size
:
22rpx
;
font-size
:
22rpx
;
font-family
:
PingFang
SC
;
font-family
:
PingFang
SC
;
// font-weight: 500;
// font-weight: 500;
color
:
#111111
;
color
:
#111111
;
}
}
.item-img
{
.item-img
{
width
:
100%
;
width
:
100%
;
height
:
auto
;
height
:
auto
;
display
:
block
;
display
:
block
;
min-height
:
20rpx
;
min-height
:
20rpx
;
}
border-radius
:
8rpx
8rpx
0
0
;
}
.item-headimg
{
.item-headimg
{
width
:
50rpx
;
width
:
50rpx
;
height
:
50rpx
;
height
:
50rpx
;
border-radius
:
50%
;
border-radius
:
50%
;
margin-right
:
10rpx
;
margin-right
:
10rpx
;
}
}
.item-zanimg
{
.item-zanimg
{
width
:
26rpx
;
width
:
26rpx
;
height
:
28rpx
;
height
:
28rpx
;
border-radius
:
50%
;
border-radius
:
50%
;
margin-right
:
10rpx
;
margin-right
:
10rpx
;
}
}
.left
,
.left
,
.right
{
.right
{
width
:
330rpx
;
width
:
330rpx
;
.left-item
{
.left-item
{
...
@@ -472,29 +660,29 @@
...
@@ -472,29 +660,29 @@
// display: flex;
// display: flex;
// flex-wrap: wrap;
// flex-wrap: wrap;
}
}
}
}
// -----------列表模式样式-----------
// -----------列表模式样式-----------
.con2
{
.con2
{
box-sizing
:
border-box
;
box-sizing
:
border-box
;
padding-bottom
:
90rpx
;
padding-bottom
:
90rpx
;
padding
:
30rpx
;
padding
:
30rpx
;
// background-color: #eaebec;
// background-color: #eaebec;
}
}
.list-item
{
.list-item
{
width
:
100%
;
width
:
100%
;
margin-bottom
:
30rpx
;
margin-bottom
:
30rpx
;
border-radius
:
30rpx
;
border-radius
:
30rpx
;
overflow
:
hidden
;
overflow
:
hidden
;
}
}
.list-item-img
{
.list-item-img
{
width
:
100%
;
width
:
100%
;
height
:
20rpx
;
height
:
20rpx
;
}
}
.choosetype
{
.choosetype
{
position
:
fixed
;
position
:
fixed
;
right
:
20rpx
;
right
:
20rpx
;
bottom
:
270rpx
;
bottom
:
270rpx
;
...
@@ -522,24 +710,24 @@
...
@@ -522,24 +710,24 @@
margin-right
:
10rpx
;
margin-right
:
10rpx
;
}
}
}
}
}
}
// .fabuBtn {
// .fabuBtn {
// position: fixed;
// position: fixed;
// right: 30rpx;
// right: 30rpx;
// bottom: 130rpx;
// bottom: 130rpx;
// width: 100rpx;
// width: 100rpx;
// height: 100rpx;
// height: 100rpx;
// // background-color: #00c6c1;
// // background-color: #00c6c1;
// border-radius: 50%;
// border-radius: 50%;
// text-align: center;
// text-align: center;
// line-height: 99rpx;
// line-height: 99rpx;
// font-size: 32rpx;
// font-size: 32rpx;
// font-family: PingFang SC;
// font-family: PingFang SC;
// font-weight: 500;
// font-weight: 500;
// color: #ffffff;
// color: #ffffff;
// }
// }
.fbanniu
{
.fbanniu
{
width
:
42px
;
width
:
42px
;
height
:
42px
;
height
:
42px
;
border-radius
:
21px
;
border-radius
:
21px
;
...
@@ -552,5 +740,5 @@
...
@@ -552,5 +740,5 @@
align-items
:
center
;
align-items
:
center
;
justify-content
:
center
;
justify-content
:
center
;
z-index
:
99
;
z-index
:
99
;
}
}
</
style
>
</
style
>
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