Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
N
nyx
概览
Overview
Details
Activity
Cycle Analytics
版本库
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
问题
0
Issues
0
列表
Board
标记
里程碑
合并请求
0
Merge Requests
0
CI / CD
CI / CD
流水线
作业
日程表
图表
维基
Wiki
代码片段
Snippets
成员
Collapse sidebar
Close sidebar
活动
图像
聊天
创建新问题
作业
提交
Issue Boards
Open sidebar
发现
nyx
Commits
1414a507
Commit
1414a507
authored
Mar 23, 2020
by
jscat
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
nyx: 发现
1. 调整详情页的格式
parent
21cb52b6
隐藏空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
61 行增加
和
59 行删除
+61
-59
增值产品-小程序及app/nyx-master/pages/discover/note-info/note-info.js
+12
-2
增值产品-小程序及app/nyx-master/pages/discover/note-info/note-info.wxml
+16
-10
增值产品-小程序及app/nyx-master/pages/discover/note-info/note-info.wxss
+33
-47
没有找到文件。
增值产品-小程序及app/nyx-master/pages/discover/note-info/note-info.js
查看文件 @
1414a507
// pa
ges/index/note-info/note-info.js
// pa
ges/index/note-info/note-info.js
...
@@ -8,6 +8,7 @@ Page({
...
@@ -8,6 +8,7 @@ Page({
windowHeight
:
""
,
windowHeight
:
""
,
windowWidth
:
""
,
windowWidth
:
""
,
contentHeight
:
""
,
scrollLeft
:
0
,
//切换栏的滚动条位置
scrollLeft
:
0
,
//切换栏的滚动条位置
curIndex
:
0
,
curIndex
:
0
,
toView
:
'tag1'
,
toView
:
'tag1'
,
...
@@ -36,7 +37,15 @@ Page({
...
@@ -36,7 +37,15 @@ Page({
proDec
:
"都要买"
,
proDec
:
"都要买"
,
proPrice
:
"100"
,
proPrice
:
"100"
,
},
},
]
],
notes
:
{
note_image
:
"https://img.xiaohongshu.com/items/c1a0056ba9ba17b30446a0e040dc9e30@800w_90Q_1x_2o.jpg"
,
title
:
"便携香水加香一天"
,
writer
:
"无敌花木兰"
,
like
:
10
,
writer_image
:
"../../../icon/icon_avatar3.png"
},
},
},
...
@@ -50,6 +59,7 @@ Page({
...
@@ -50,6 +59,7 @@ Page({
this
.
setData
({
this
.
setData
({
windowHeight
:
windowHeight
,
windowHeight
:
windowHeight
,
windowWidth
:
windowWidth
,
windowWidth
:
windowWidth
,
contentHeight
:
windowHeight
*
0.75
+
30
,
})
})
wx
.
setNavigationBarTitle
({
wx
.
setNavigationBarTitle
({
...
...
增值产品-小程序及app/nyx-master/pages/discover/note-info/note-info.wxml
查看文件 @
1414a507
<view
class="page">
<view
class="page">
<view class="page">
<view class="page">
<scroll-view class="scroll-view_H" scroll-x scroll-with-animation style="width: 100%;height:{{windowHeight}}px" bindscroll="getSelectItem" scroll-left="{{scrollLeft}}">
<!-- 作者信息 -->
<view class="note-handle">
<image class="writer-image" src="{{notes.writer_image}}"/>
<span class="name">{{notes.writer}}</span>
</view>
<!-- 图片 -->
<scroll-view class="scroll-view_H" scroll-x scroll-with-animation style="width: 100%;height:{{contentHeight}}px" bindscroll="getSelectItem" scroll-left="{{scrollLeft}}">
<block wx:for="{{proList}}" wx:key="unique" wx:for-index="id" wx:for-item="item">
<block wx:for="{{proList}}" wx:key="unique" wx:for-index="id" wx:for-item="item">
<view class="scroll_item {{item.selected ? 'selected' : ''}}" data-index='{{item.index}}' bindtap='selectProItem'>
<view class="scroll_item {{item.selected ? 'selected' : ''}}" data-index='{{item.index}}' bindtap='selectProItem'>
<view class='proImg'><image src="{{item.proUrl}}" mode="widthFix"/></view>
<image src="{{item.proUrl}}" mode="widthFix"/>
<!-- <view class='detailBox'>
<view class='proTitle'>{{item.proTitle}}</view>
<view class='proDec'>{{item.proDec}}</view>
<view class='proPrice'>¥{{item.proPrice}}</view>
<navigator class='detailLink' url="../detail/detail?id={{item.id}}">查看详情 ></navigator>
</view> -->
</view>
</view>
</block>
</block>
</scroll-view>
</scroll-view>
<!-- 文字内容 -->
<view class="note">
<view class="note-info">
在欧洲国家中,目前意大利的新冠肺炎疫情形势最为严峻。截至当地时间21日18时,意大利累计确诊病例达到53578例,累计死亡病例达4825例。旅意侨胞和留学生如何保证安全?回国还是不回国?大使馆能提供哪些帮助?今天下午(北京时间3月22日17时),中国驻意大利大使李军华同旅意侨胞、留学生代表一起在线交流。
</view>
</view>
</view>
</view>
增值产品-小程序及app/nyx-master/pages/discover/note-info/note-info.wxss
查看文件 @
1414a507
.scro
ll-view_H{
.scro
ll-view_H{
.scroll-view_H{
.scroll-view_H{
position: relative;
width: 100%;
width: 100%;
text-align: center;
text-align: center;
white-space: nowrap;
white-space: nowrap;
...
@@ -11,11 +12,11 @@
...
@@ -11,11 +12,11 @@
display: inline-block;
display: inline-block;
border-radius: 20rpx !important ;
border-radius: 20rpx !important ;
overflow: hidden;
overflow: hidden;
transform: scale(0.9);
transform: scale(0.9
, 1
);
box-shadow: 0 0 10px #ccc;
/* box-shadow: 0 0 10px #ccc; */
vertical-align: top;
vertical-align: top;
top:
5
%;
top:
2
%;
height: 72%;
/* height: 72%; */
background-color: #fff;
background-color: #fff;
}
}
.scroll_item:first-child{
.scroll_item:first-child{
...
@@ -27,56 +28,42 @@
...
@@ -27,56 +28,42 @@
left: 0;
left: 0;
}
}
.scroll_item.selected{
.scroll_item.selected{
transform: scale(0.9);
/* transform: scale(0.9); */
border: solid 1px #ffcd54;
border: solid 1px #ffcd54;
}
}
.scroll_item .proImg{
border-top-left-radius: 20rpx;
border-top-right-radius: 20rpx;
width: 100%;
max-height: 200rpx;
position: absolute;
top: 0;
left: 0;
z-index: 0;
}
.scroll_item image {
.scroll_item image {
width: 100%;
width: 100%;
float: left;
float: left;
margin-top: 0;
border-top-left-radius: 20rpx;
border-top-left-radius: 20rpx;
border-top-right-radius: 20rpx;
border-top-right-radius: 20rpx;
}
}
.detailBox {
.note{
padding: 30rpx 5% 30rpx 5%;
width: 100%;
float: left;
/* position: fixed; */
width: 100%;
background: #fff;
border-bottom-left-radius: 20rpx;
border-radius: 5px;
border-bottom-right-radius: 20rpx;
float: left;
position: absolute;
bottom: 0;
left: 0;
z-index: 1;
background: #fff;
}
}
.proTitle {
.note-info{
font-size: 36rpx;
font-size: 13px;
color: #666;
line-height: 50rpx;
/* 后期用于 '展开' 功能 */
overflow: hidden;
/* overflow : hidden;
text-overflow: ellipsis;
text-overflow: ellipsis;
white-space: nowrap;
display: -webkit-box;
-webkit-line-clamp: 4;
-webkit-box-orient: vertical; */
margin-left: 10%;
margin-right: 10%;
margin-top: 20rpx;
}
}
.proDec {
.note-handle{
font-size: 30rpx;
display: flex;
color: #999;
flex-direction: row;
line-height: 50rpx;
}
}
.
proPrice
{
.
writer-image
{
font-size: 48r
px;
width: 30
px;
color: #CA414C
;
height: 30px
;
line-height: 90rpx
;
margin-left: 10%
;
}
}
.detailLink{
color: #666;
font-size: 30rpx;
}
\ No newline at end of file
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论