|
@@ -3,7 +3,11 @@
|
|
|
<view class="content">
|
|
|
<view class="title">{{ item.title }}</view>
|
|
|
<view class="desc">
|
|
|
- <text>发布于:{{ item.createTime }}</text>
|
|
|
+ <text class="time">发布于:{{ item.createTime }}</text>
|
|
|
+ <button class="fx" open-type="share">
|
|
|
+ <text class="icon"></text>
|
|
|
+ <text>分享</text>
|
|
|
+ </button>
|
|
|
</view>
|
|
|
<view class="con">
|
|
|
<u-divider :dot="true"></u-divider>
|
|
@@ -29,7 +33,16 @@ export default {
|
|
|
}
|
|
|
});
|
|
|
},
|
|
|
- methods: {}
|
|
|
+ methods: {},
|
|
|
+ //分享
|
|
|
+ onShareAppMessage: function (res) {
|
|
|
+ return {
|
|
|
+ title: this.item.title,
|
|
|
+ path: '/pages/notice/detail?id=' + this.item.id,
|
|
|
+ success: (res) => {},
|
|
|
+ fail: (res) => {}
|
|
|
+ };
|
|
|
+ }
|
|
|
};
|
|
|
</script>
|
|
|
|
|
@@ -48,12 +61,27 @@ export default {
|
|
|
padding-top: 15px;
|
|
|
font-size: 13px;
|
|
|
color: #7c8388;
|
|
|
- text {
|
|
|
+ .time {
|
|
|
padding-right: 25px;
|
|
|
}
|
|
|
+ .fx {
|
|
|
+ background-color: white;
|
|
|
+ float: right;
|
|
|
+ font-size: 15px;
|
|
|
+ margin-right: -14px;
|
|
|
+ margin-top: -13px;
|
|
|
+ color: $main-color;
|
|
|
+ .icon{
|
|
|
+ padding-right: 3px;
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|
|
|
.con {
|
|
|
font-size: 14px;
|
|
|
+ line-height: 23px;
|
|
|
+ image {
|
|
|
+ border-radius: 5px !important;
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
</style>
|