公众号项目
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.

58 lines
1.0 KiB

1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
  1. <template>
  2. <view class="home-pages">
  3. <view class="context">
  4. <text>名称:{{order.name}}</text>
  5. </view>
  6. <view class="context">
  7. <text>版本:{{order.type}}</text>
  8. </view>
  9. <view class="context">
  10. <text>内容:{{order.content}}</text>
  11. </view>
  12. <view class="context">
  13. <text>原价:{{order.oldPrice}}</text>
  14. </view>
  15. <view class="context">
  16. <text>现价:{{order.price}}</text>
  17. </view>
  18. <view class="context">
  19. <rich-text :nodes="order.details"></rich-text>
  20. </view>
  21. </view>
  22. </template>
  23. <script>
  24. export default {
  25. data() {
  26. return {
  27. order:{}
  28. }
  29. },
  30. methods: {
  31. getById(id){
  32. this.$api('getKwById', {'id':id}).then(res => {
  33. if(res.code == 200){
  34. this.order =res.result;
  35. }
  36. })
  37. }
  38. },
  39. onLoad(optons) {
  40. console.log("optons.id"+optons.id)
  41. this.getById(optons.id)
  42. }
  43. }
  44. </script>
  45. <style>
  46. .home-pages {
  47. padding: 28rpx 29rpx 0;
  48. min-height: 80vh;
  49. background-color: #F7F7F7;
  50. }
  51. .context {
  52. padding: 20rpx;
  53. background-color: #FFF;
  54. }
  55. </style>