<template>
<gracePage :customHeader="false">
<!-- 页面主体 -->
<view slot="gBody" class="grace-body">
<!-- 左图 -->
<view class="grace-news-list">
<view class="grace-news-item">
<image
src="https://images.pexels.com/photos/2852438/pexels-photo-2852438.jpeg?auto=compress&cs=tinysrgb&dpr=1&w=500"
class="grace-news-img grace-news-img-l"></image>
<view class="grace-news-body">
<text class="grace-news-title">时间很短,天涯很远,往后的一山一水,一朝一夕,自己安静地走完</text>
<text class="grace-news-desc">倘若不慎走失迷途,跌入水中,也应该记得,有一条河流,叫重生。这世上任何地方,都可以生长;任何去处,都是归宿</text>
</view>
</view>
<view class="grace-news-info">
<view style="width:500rpx;" class="grace-nowrap">
<text class="grace-icons grace-news-info-text"> 9999</text>
<text class="grace-icons grace-news-info-text" style="margin-left:30rpx;"> GraceUI</text>
</view>
<text class="grace-icons grace-news-info-text"> 208</text>
</view>
</view>
<!-- 右图 -->
<view class="grace-news-list">
<view class="grace-news-item">
<view class="grace-news-body">
<text class="grace-news-title">繁华尽处,寻一处无人山谷,建一木制小屋,铺一青石小路,与你晨钟暮鼓,安之若素。</text>
<text class="grace-news-desc">仅仅坐拥新兴技术的头号玩家地位是不够的,还要成为更新技术的开拓者.</text>
</view>
<image src="https://images.pexels.com/photos/2372739/pexels-photo-2372739.jpeg?auto=compress&cs=tinysrgb&dpr=1&w=500"
class="grace-news-img grace-news-img-r"></image>
</view>
<view class="grace-news-info">
<view style="width:500rpx;" class="grace-nowrap">
<text class="grace-icons grace-news-info-text"> 9999</text>
<text class="grace-icons grace-news-info-text" style="margin-left:30rpx;"> GraceUI</text>
</view>
<text class="grace-icons grace-news-info-text"> 208</text>
</view>
</view>
<!-- 大图 -->
<view class="grace-news-list">
<text class="grace-news-title">这里没有“低端用户”,只有没被满足需求的用户。找准角度,参与者们已经进入流量新蓝海</text>
<view class="big-img">
<image src="https://images.pexels.com/photos/2372739/pexels-photo-2372739.jpeg?auto=compress&cs=tinysrgb&dpr=1&w=500"
class="big-image"></image>
</view>
<view class="grace-news-info">
<view style="width:500rpx;" class="grace-nowrap">
<text class="grace-icons grace-news-info-text"> 9999</text>
<text class="grace-icons grace-news-info-text" style="margin-left:30rpx;"> GraceUI</text>
</view>
<text class="grace-icons grace-news-info-text"> 208</text>
</view>
</view>
<!-- 多图 -->
<view class="grace-news-list">
<text class="grace-news-title">人生一梦,白云苍狗,错错对对,恩恩怨怨,终不过日月无声,水过无痕,所为弃者,一点执念而已。</text>
<view class="grace-news-img-list">
<view class="grace-news-imgs">
<image src="https://images.pexels.com/photos/2802416/pexels-photo-2802416.jpeg?auto=compress&cs=tinysrgb&dpr=1&w=500"
class="grace-news-imgs-img" mode="widthFix"></image>
</view>
<view class="grace-news-imgs">
<image src="https://images.pexels.com/photos/1007431/pexels-photo-1007431.jpeg?auto=compress&cs=tinysrgb&dpr=1&w=500"
class="grace-news-imgs-img" mode="widthFix"></image>
</view>
<view class="grace-news-imgs">
<image src="https://images.pexels.com/photos/1214566/pexels-photo-1214566.jpeg?auto=compress&cs=tinysrgb&dpr=1&w=500"
class="grace-news-imgs-img" mode="widthFix"></image>
</view>
<view class="grace-news-imgs">
<image src="https://images.pexels.com/photos/2204776/pexels-photo-2204776.jpeg?auto=compress&cs=tinysrgb&dpr=1&w=500"
class="grace-news-imgs-img" mode="widthFix"></image>
</view>
<view class="grace-news-imgs">
<image src="https://images.pexels.com/photos/2768238/pexels-photo-2768238.jpeg?auto=compress&cs=tinysrgb&dpr=1&w=500"
class="grace-news-imgs-img" mode="widthFix"></image>
</view>
<view class="grace-news-imgs">
<image src="https://images.pexels.com/photos/2767343/pexels-photo-2767343.jpeg?auto=compress&cs=tinysrgb&dpr=1&w=500"
class="grace-news-imgs-img" mode="widthFix"></image>
</view>
</view>
<view class="grace-news-info">
<view style="width:500rpx;" class="grace-nowrap">
<text class="grace-icons grace-news-info-text"> 9999</text>
<text class="grace-icons grace-news-info-text" style="margin-left:30rpx;"> GraceUI</text>
</view>
<text class="grace-icons grace-news-info-text"> 208</text>
</view>
</view>
</view>
</gracePage>
</template>
<script>
import gracePage from "../../graceUI/components/gracePage.vue";
export default {
components:{gracePage}
}
</script>
<style>
/* 请根据项目来规划自己的图片大小,请对图片进行等比缩放 */
.grace-news-img{width:220rpx; height:150rpx;}
.big-img{width:700rpx; height:388rpx; overflow:hidden; margin:15rpx 0;}
.big-image{width:700rpx; height:388rpx; border-radius:6rpx;}
.grace-news-imgs-img{width:225rpx;}
</style>
<template>
<gracePage :customHeader="false">
<!-- 页面主体 -->
<list slot="gBody" class="grace-body">
<!-- 左图 -->
<cell class="grace-news-list">
<view class="grace-news-item">
<image src="https://images.pexels.com/photos/2852438/pexels-photo-2852438.jpeg?auto=compress&cs=tinysrgb&dpr=1&w=500" class="grace-news-img grace-news-img-l"></image>
<view class="grace-news-body">
<text class="grace-news-title">[weex]时间很短,天涯很远,往后的一山一水,一朝一夕,自己安静地走完</text>
<text class="grace-news-desc">倘若不慎走失迷途,跌入水中,也应该记得,有一条河流,叫重生。这世上任何地方,都可以生长;任何去处,都是归宿</text>
</view>
</view>
<view class="grace-news-info">
<view style="width:500rpx;" class="grace-nowrap">
<text class="grace-icons grace-news-info-text"> 9999</text>
<text class="grace-icons grace-news-info-text" style="margin-left:30rpx;"> GraceUI</text>
</view>
<text class="grace-icons grace-news-info-text"> 208</text>
</view>
</cell>
<!-- 右图 -->
<cell class="grace-news-list">
<view class="grace-news-item">
<view class="grace-news-body">
<text class="grace-news-title">繁华尽处,寻一处无人山谷,建一木制小屋,铺一青石小路,与你晨钟暮鼓,安之若素。</text>
<text class="grace-news-desc">仅仅坐拥新兴技术的头号玩家地位是不够的,还要成为更新技术的开拓者.</text>
</view>
<image src="https://images.pexels.com/photos/2372739/pexels-photo-2372739.jpeg?auto=compress&cs=tinysrgb&dpr=1&w=500" class="grace-news-img grace-news-img-r"></image>
</view>
<view class="grace-news-info">
<view style="width:500rpx;" class="grace-nowrap">
<text class="grace-icons grace-news-info-text"> 9999</text>
<text class="grace-icons grace-news-info-text" style="margin-left:30rpx;"> GraceUI</text>
</view>
<text class="grace-icons grace-news-info-text"> 208</text>
</view>
</cell>
<!-- 大图 -->
<cell class="grace-news-list">
<text class="grace-news-title">这里没有“低端用户”,只有没被满足需求的用户。</text>
<view class="big-img">
<image src="https://images.pexels.com/photos/2372739/pexels-photo-2372739.jpeg?auto=compress&cs=tinysrgb&dpr=1&w=500" class="big-image"></image>
</view>
<view class="grace-news-info">
<view style="width:500rpx;" class="grace-nowrap">
<text class="grace-icons grace-news-info-text"> 9999</text>
<text class="grace-icons grace-news-info-text" style="margin-left:30rpx;"> GraceUI</text>
</view>
<text class="grace-icons grace-news-info-text"> 208</text>
</view>
</cell>
<!-- 多图 -->
<cell class="grace-news-list">
<text class="grace-news-title">人生一梦,白云苍狗,错错对对,恩恩怨怨,终不过日月无声,水过无痕,所为弃者,一点执念而已。</text>
<view class="grace-news-img-list">
<view class="grace-news-imgs"><image src="https://images.pexels.com/photos/2802416/pexels-photo-2802416.jpeg?auto=compress&cs=tinysrgb&dpr=1&w=500" class="grace-news-imgs-img"></image></view>
<view class="grace-news-imgs"><image src="https://images.pexels.com/photos/1007431/pexels-photo-1007431.jpeg?auto=compress&cs=tinysrgb&dpr=1&w=500" class="grace-news-imgs-img"></image></view>
<view class="grace-news-imgs"><image src="https://images.pexels.com/photos/1214566/pexels-photo-1214566.jpeg?auto=compress&cs=tinysrgb&dpr=1&w=500" class="grace-news-imgs-img"></image></view>
<view class="grace-news-imgs"><image src="https://images.pexels.com/photos/2204776/pexels-photo-2204776.jpeg?auto=compress&cs=tinysrgb&dpr=1&w=500" class="grace-news-imgs-img"></image></view>
<view class="grace-news-imgs"><image src="https://images.pexels.com/photos/2768238/pexels-photo-2768238.jpeg?auto=compress&cs=tinysrgb&dpr=1&w=500" class="grace-news-imgs-img"></image></view>
<view class="grace-news-imgs"><image src="https://images.pexels.com/photos/2767343/pexels-photo-2767343.jpeg?auto=compress&cs=tinysrgb&dpr=1&w=500" class="grace-news-imgs-img"></image></view>
</view>
<view class="grace-news-info">
<view style="width:500rpx;" class="grace-nowrap">
<text class="grace-icons grace-news-info-text"> 9999</text>
<text class="grace-icons grace-news-info-text" style="margin-left:30rpx;"> GraceUI</text>
</view>
<text class="grace-icons grace-news-info-text"> 208</text>
</view>
</cell>
</list>
</gracePage>
</template>
<script>
import gracePage from "../../graceUI/weexComponents/gracePage.nvue";
export default {
components:{gracePage}
}
</script>
<style>
/* 请根据项目来规划自己的图片大小,请对图片进行等比缩放 */
.grace-news-img{width:220rpx; height:150rpx;}
.big-img{width:700rpx; height:388rpx; overflow:hidden; margin:10rpx 0;}
.big-image{width:700rpx; height:388rpx; border-radius:6rpx;}
.grace-news-imgs-img{width:225rpx; height:380rpx;}
/* 此样式 hx 误报错误 需要使用不要担心控制台的错误信息 */
.grace-news-body{align-self:flex-start;}
</style>
.wxml
<gracePage customHeader="{{false}}">
<!-- 页面主体 -->
<view slot="gBody" class="grace-body">
<!-- 左图 -->
<view class="grace-news-list">
<view class="grace-news-item">
<image src="https://images.pexels.com/photos/2852438/pexels-photo-2852438.jpeg?auto=compress&cs=tinysrgb&dpr=1&w=500" class="grace-news-img grace-news-img-l"></image>
<view class="grace-news-body">
<text class="grace-news-title">时间很短,天涯很远,往后的一山一水,一朝一夕,自己安静地走完</text>
<text class="grace-news-desc">倘若不慎走失迷途,跌入水中,也应该记得,有一条河流,叫重生。这世上任何地方,都可以生长;任何去处,都是归宿</text>
</view>
</view>
<view class="grace-news-info">
<view style="width:500rpx;" class="grace-nowrap">
<text class="grace-icons icon-eye grace-news-info-text"> 9999</text>
<text class="grace-icons icon-write grace-news-info-text" style="margin-left:30rpx;"> GraceUI</text>
</view>
<text class="grace-icons icon-zan grace-news-info-text"> 208</text>
</view>
</view>
<!-- 右图 -->
<view class="grace-news-list">
<view class="grace-news-item">
<view class="grace-news-body">
<text class="grace-news-title">繁华尽处,寻一处无人山谷,建一木制小屋,铺一青石小路,与你晨钟暮鼓,安之若素。</text>
<text class="grace-news-desc">仅仅坐拥新兴技术的头号玩家地位是不够的,还要成为更新技术的开拓者.</text>
</view>
<image src="https://images.pexels.com/photos/2372739/pexels-photo-2372739.jpeg?auto=compress&cs=tinysrgb&dpr=1&w=500" class="grace-news-img grace-news-img-r"></image>
</view>
<view class="grace-news-info">
<view style="width:500rpx;" class="grace-nowrap">
<text class="grace-icons icon-eye grace-news-info-text"> 9999</text>
<text class="grace-icons icon-write grace-news-info-text" style="margin-left:30rpx;"> GraceUI</text>
</view>
<text class="grace-icons icon-zan grace-news-info-text"> 208</text>
</view>
</view>
<!-- 大图 -->
<view class="grace-news-list">
<text class="grace-news-title">这里没有“低端用户”,只有没被满足需求的用户。找准角度,参与者们已经进入流量新蓝海</text>
<view class="big-img">
<image src="https://images.pexels.com/photos/2372739/pexels-photo-2372739.jpeg?auto=compress&cs=tinysrgb&dpr=1&w=500" class="big-image"></image>
</view>
<view class="grace-news-info">
<view style="width:500rpx;" class="grace-nowrap">
<text class="grace-icons icon-eye grace-news-info-text"> 9999</text>
<text class="grace-icons icon-write grace-news-info-text" style="margin-left:30rpx;"> GraceUI</text>
</view>
<text class="grace-icons icon-zan grace-news-info-text"> 208</text>
</view>
</view>
<!-- 多图 -->
<view class="grace-news-list">
<text class="grace-news-title">人生一梦,白云苍狗,错错对对,恩恩怨怨,终不过日月无声,水过无痕,所为弃者,一点执念而已。</text>
<view class="grace-news-img-list">
<view class="grace-news-imgs">
<image src="https://images.pexels.com/photos/2802416/pexels-photo-2802416.jpeg?auto=compress&cs=tinysrgb&dpr=1&w=500"
class="grace-news-imgs-img" mode="widthFix"></image>
</view>
<view class="grace-news-imgs">
<image src="https://images.pexels.com/photos/1007431/pexels-photo-1007431.jpeg?auto=compress&cs=tinysrgb&dpr=1&w=500"
class="grace-news-imgs-img" mode="widthFix"></image>
</view>
<view class="grace-news-imgs">
<image src="https://images.pexels.com/photos/1214566/pexels-photo-1214566.jpeg?auto=compress&cs=tinysrgb&dpr=1&w=500"
class="grace-news-imgs-img" mode="widthFix"></image>
</view>
<view class="grace-news-imgs">
<image src="https://images.pexels.com/photos/2204776/pexels-photo-2204776.jpeg?auto=compress&cs=tinysrgb&dpr=1&w=500"
class="grace-news-imgs-img" mode="widthFix"></image>
</view>
<view class="grace-news-imgs">
<image src="https://images.pexels.com/photos/2768238/pexels-photo-2768238.jpeg?auto=compress&cs=tinysrgb&dpr=1&w=500"
class="grace-news-imgs-img" mode="widthFix"></image>
</view>
<view class="grace-news-imgs">
<image src="https://images.pexels.com/photos/2767343/pexels-photo-2767343.jpeg?auto=compress&cs=tinysrgb&dpr=1&w=500"
class="grace-news-imgs-img"></image>
</view>
</view>
<view class="grace-news-info">
<view style="width:500rpx;" class="grace-nowrap">
<text class="grace-icons icon-eye grace-news-info-text"> 9999</text>
<text class="grace-icons icon-write grace-news-info-text" style="margin-left:30rpx;"> GraceUI</text>
</view>
<text class="grace-icons icon-zan grace-news-info-text"> 208</text>
</view>
</view>
</view>
</gracePage>.json
{
"usingComponents": {
"gracePage" : "../../graceUI/components/gracePage"
}
}.wxss
/* 请根据项目来规划自己的图片大小,请对图片进行等比缩放 */
.grace-news-img{width:220rpx; height:150rpx;}
.big-img{width:700rpx; height:388rpx; overflow:hidden; margin:15rpx 0;}
.big-image{width:700rpx; height:388rpx; border-radius:6rpx;}
.grace-news-imgs-img{width:225rpx;}