68 lines
1.1 KiB
Vue
68 lines
1.1 KiB
Vue
|
|
<template>
|
|||
|
|
<view class="content">
|
|||
|
|
<view>
|
|||
|
|
<view class="title">{{content.title}}</view>
|
|||
|
|
<view class="time">发布时间:{{content.createtime}}</view>
|
|||
|
|
</view>
|
|||
|
|
</view>
|
|||
|
|
</template>
|
|||
|
|
|
|||
|
|
<script>
|
|||
|
|
import {
|
|||
|
|
mapState
|
|||
|
|
} from "vuex";
|
|||
|
|
export default {
|
|||
|
|
data() {
|
|||
|
|
return {
|
|||
|
|
content: "",
|
|||
|
|
url: null
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
components: {
|
|||
|
|
},
|
|||
|
|
computed: {
|
|||
|
|
...mapState(["user", "appTheme"]),
|
|||
|
|
},
|
|||
|
|
onLoad(option) { },
|
|||
|
|
methods: {
|
|||
|
|
getOrderDetail(orderno) {
|
|||
|
|
this.$model.GetAdListDetail({
|
|||
|
|
id: orderno
|
|||
|
|
}).then(res => {
|
|||
|
|
if (res.code != 0) return
|
|||
|
|
this.content = res.data
|
|||
|
|
console.log("资讯详情", res)
|
|||
|
|
});
|
|||
|
|
},
|
|||
|
|
preview(src, e) {
|
|||
|
|
// do something
|
|||
|
|
},
|
|||
|
|
navigate(href, e) {
|
|||
|
|
// do something
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
</script>
|
|||
|
|
|
|||
|
|
<style scoped>
|
|||
|
|
|
|||
|
|
.content {
|
|||
|
|
padding: 30rpx;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
.title {
|
|||
|
|
width: 100%;
|
|||
|
|
margin-bottom: 15px;
|
|||
|
|
text-align: left;
|
|||
|
|
font-size: 18px;
|
|||
|
|
font-weight: bold;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
.time {
|
|||
|
|
width: 100%;
|
|||
|
|
text-align: left;
|
|||
|
|
margin-bottom: 15px;
|
|||
|
|
color: #666;
|
|||
|
|
}
|
|||
|
|
</style>
|