家政小程序
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.

detail.vue 2.6KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. <style lang="less">
  2. </style>
  3. <template>
  4. <div>
  5. <Row>
  6. <Col span="18">
  7. <Card>
  8. <Form :label-width="100">
  9. <FormItem label="分类1:">
  10. <span>{{formContent.classify1}}</span>
  11. </FormItem>
  12. <FormItem label="分类2:">
  13. <span>{{formContent.classify2}}</span>
  14. </FormItem>
  15. <FormItem label="选项:">
  16. <span>{{formContent.options}}</span>
  17. </FormItem>
  18. <FormItem label="备注:">
  19. <span>{{formContent.notes}}</span>
  20. </FormItem>
  21. <FormItem label="联系人:">
  22. <span>{{formContent.contact}}</span>
  23. </FormItem>
  24. <FormItem label="服务地址:">
  25. <span>{{formContent.address}}</span>
  26. </FormItem>
  27. <FormItem label="联系电话:">
  28. <span>{{formContent.phone}}</span>
  29. </FormItem>
  30. <FormItem label="订单图片:">
  31. <span v-html="photo"></span>
  32. </FormItem>
  33. <FormItem label="订单价格:">
  34. <span>{{formContent.price}}</span>
  35. </FormItem>
  36. <FormItem label="订单状态:">
  37. <span>{{formContent.status}}</span>
  38. </FormItem>
  39. <FormItem label="订单评论:">
  40. <span>{{formContent.comment}}</span>
  41. </FormItem>
  42. </Form>
  43. <div class="submit">
  44. <Button @click="back" size="large" type="primary">返回</Button>
  45. </div>
  46. </Card>
  47. </Col>
  48. </Row>
  49. </div>
  50. </template>
  51. <script>
  52. export default {
  53. name: 'detail',
  54. props: {
  55. formContent: Object
  56. },
  57. computed: {
  58. photo() {
  59. let src = this.formContent.photo;
  60. if (src) {
  61. return `<img src="${src}" />`;
  62. } else {
  63. return '';
  64. }
  65. }
  66. },
  67. data () {
  68. return {
  69. }
  70. },
  71. methods: {
  72. back() {
  73. this.$emit("back");
  74. }
  75. }
  76. };
  77. </script>