珠宝小程序前端代码
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

39 lines
663 B

3 months ago
3 months ago
3 months ago
  1. <template>
  2. <view class="page">
  3. <navbar title="详情" leftClick @leftClick="$utils.navigateBack" />
  4. <view style="padding: 20rpx;">
  5. <uv-parse :content="detail.details"></uv-parse>
  6. </view>
  7. </view>
  8. </template>
  9. <script>
  10. export default {
  11. data() {
  12. return {
  13. detail: {},
  14. id: 0,
  15. }
  16. },
  17. onLoad(args) {
  18. this.id = args.id
  19. this.queryNewsById()
  20. },
  21. methods: {
  22. //公告信息-根据id查询公告信息
  23. queryNewsById() {
  24. this.$api('getRiceAdDetail', {
  25. id: this.id
  26. }, res => {
  27. if (res.code == 200) {
  28. this.detail = res.result
  29. }
  30. })
  31. },
  32. }
  33. }
  34. </script>
  35. <style scoped lang="scss">
  36. .page {}
  37. </style>