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

123 lines
2.4 KiB

2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
  1. <template>
  2. <view class="home-content">
  3. <view class="gray-line"/>
  4. <view class="from">
  5. <view class="from-line">
  6. <span class="label-class">订单编号:</span>
  7. <view><input v-model="order.orderCode"/></view>
  8. </view>
  9. <view class="from-line">
  10. <span class="label-class">创建时间:</span>
  11. <view><input v-model="order.createTime"/></view>
  12. </view>
  13. <view class="from-line">
  14. <span class="label-class">姓名:</span>
  15. <view><input v-model="order.userName"/></view>
  16. </view>
  17. <view class="from-line">
  18. <span class="label-class">联系方式:</span>
  19. <view><input v-model="order.mobilePhone"/></view>
  20. </view>
  21. <view class="from-line">
  22. <span class="label-class">学校:</span>
  23. <view><input v-model="order.schoolName"/></view>
  24. </view>
  25. <view class="from-line">
  26. <span class="label-class">年级:</span>
  27. <view><input v-model="order.gradeName"/></view>
  28. </view>
  29. <view class="from-line">
  30. <span class="label-class">班级:</span>
  31. <view><input v-model="order.className"/></view>
  32. </view>
  33. <view class="from-line">
  34. <span class="label-class">价格:</span>
  35. <view><input v-model="order.totalPrice"/></view>
  36. </view>
  37. </view>
  38. <view class="gray-line"/>
  39. <view class="from">
  40. <view class="from-line">
  41. <span class="label-class">订阅内容</span>
  42. </view>
  43. <view class="form-context" v-for="(item,index) in order.list" >
  44. ¥ {{item.unitPrice}} {{item.bookitems}}
  45. </view>
  46. </view>
  47. </view>
  48. </template>
  49. <script>
  50. export default {
  51. data() {
  52. return {
  53. order:{}
  54. }
  55. },
  56. methods: {
  57. getById(id){
  58. this.$api('getOrderById', {'id':id}).then(res => {
  59. if(res.code == 200){
  60. this.order =res.result;
  61. }
  62. })
  63. }
  64. },
  65. onLoad(optons) {
  66. console.log("optons.id"+optons.id)
  67. this.getById(optons.id)
  68. }
  69. }
  70. </script>
  71. <style lang="scss" scoped>
  72. .home-content {
  73. .gray-line {
  74. width: 100vw;
  75. height: 10rpx;
  76. background-color: #F0F0F0;
  77. }
  78. .from {
  79. margin-top: 20rpx;
  80. background-color: #FFFFFF;
  81. padding: 25rpx;
  82. }
  83. .from-line {
  84. height: 78rpx;
  85. display: flex;
  86. background-color: #FFFFFF;
  87. .label-class{
  88. line-height: 68rpx;
  89. width: 148rpx;
  90. color: #333;
  91. }
  92. input{
  93. padding-left: 10rpx;
  94. height: 68rpx;
  95. color: #aaa;
  96. }
  97. }
  98. .form-context{
  99. padding: 36rpx;
  100. color: #888;
  101. font-size: 30rpx;
  102. }
  103. }
  104. </style>