1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677 |
- <template>
- <view class="content">
- <view class="top hflex acenter jcenter">
- <view class="time">{{time}}</view>
- </view>
- <view class="box">
- <view class="hflex acenter">
- <view class="dian" v-if="is_read"></view>
- <view class="title">{{title}}</view>
- </view>
- <u-parse :content="text"></u-parse>
- </view>
- </view>
- </template>
- <script>
- import $api from '@/static/js/api.js'
- var that = ''
- export default {
- data() {
- return {
- id: '',
- time: '08-12 23:19:34',
- title: '第一批00后,已经被找工作难哭了?',
- text: '大厂CEO+北大教授+职场培训师教你求职拿offer!还有好礼送不停!大厂CEO+北大教授+职场培训师教你求职拿offer!还有好礼送不停!大厂CEO+北大教授+职场培训师教你求职拿offer!还有好礼送不停!',
- is_read: 1
- }
- },
- onLoad(options) {
- that = this
- that.id = options.id
- },
- methods: {
-
- },
- }
- </script>
- <style lang="scss" scoped>
- .content {
- background-color: #F4f4f4;
- padding: 0 30rpx 0;
- .top {
- width: 100%;
- padding: 24rpx 0;
- .time {
- height: 32rpx;
- background: #D8D8D8;
- border-radius: 20rpx;
- box-sizing: border-box;
- padding: 0 20rpx;
- font-size: 24rpx;
- font-weight: 300;
- color: #FFFFFF;
- line-height: 32rpx;
- }
- }
- .box {
- width: 100%;
- box-sizing: border-box;
- padding: 48rpx 20rpx;
- background-color: #fff;
- border-radius: 24rpx;
- .dian {
- width: 12rpx;
- height: 12rpx;
- border-radius: 50%;
- background-color: #ff4646;
- margin-right: 8rpx;
- }
- .title {
- font-size: 32rpx;
- color: #222;
- }
- }
- }
- </style>
|