contact-us.vue 4.2KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182
  1. <template>
  2. <div>
  3. <div v-for="item in this.ordmodel" :key="item.id">
  4. <div>
  5. <div v-if="item.mode_type == 1">
  6. <div class="modefive">
  7. <img src="static/images/a.jpg" style="width:315px;height:200px">
  8. </div>
  9. </div>
  10. <div class="modetwo" v-if="item.mode_type == 2">
  11. <div><span>{{item.title}}:&nbsp;&nbsp;{{item.Hosaddress.address}}</span></div>
  12. </div>
  13. <div v-if="item.mode_type == 3">
  14. <div class="modeone">
  15. <span>{{item.title}}:&nbsp;&nbsp;13318464642</span><br>
  16. <span>{{item.title}}:&nbsp;&nbsp;13318464642</span><br>
  17. <span>{{item.title}}:&nbsp;&nbsp;13318464642</span><br>
  18. </div>
  19. </div>
  20. <div class="modefour" v-if="item.mode_type == 4">
  21. <div><span>{{item.title}}:&nbsp;&nbsp;{{item.Worktime.worktime}}</span></div>
  22. </div>
  23. <div class="modethree" v-if="item.mode_type == 5">
  24. <div><span>{{item.title}}:&nbsp;&nbsp;{{item.Rideway.ride_way}}</span></div>
  25. </div>
  26. </div>
  27. </div>
  28. </div>
  29. </template>
  30. <script>
  31. import { getOrderModel } from '@/api/site/site'
  32. import { fchown } from 'fs';
  33. export default {
  34. name: "contact-us",
  35. data(){
  36. return{
  37. ordmodel:[],
  38. sstt:[
  39. "ss1",
  40. "ss2",
  41. "ss3",
  42. "ss4",
  43. ],
  44. }
  45. },
  46. methods:{
  47. getOrderModel(){
  48. getOrderModel().then(response=>{
  49. if(response.data.state == 1){
  50. var ordmodel = response.data.data.ordmodel;
  51. this.ordmodel = response.data.data.ordmodel;
  52. for (let index = 0; index < this.ordmodel.length; index++) {
  53. var images = this.ordmodel[index].Oldration.rotation_images;
  54. console.log("images是什么?",images)
  55. }
  56. console.log(images)
  57. console.log("我爱你中国",ordmodel)
  58. }
  59. })
  60. }
  61. },
  62. created(){
  63. this.getOrderModel();
  64. },
  65. }
  66. </script>
  67. <style scoped>
  68. .us{
  69. width: 320px;
  70. height: 220px;
  71. /* border: solid 1px red; */
  72. }
  73. .hosname{
  74. width:300px;
  75. height: 30px;
  76. /* border:solid 1px red; */
  77. margin-top: 20px;
  78. margin-left: 10px;
  79. font-size: 20px;
  80. font-weight: 700;
  81. }
  82. .hosaddress{
  83. width:300px;
  84. height: 54px;
  85. /* border:solid 1px red; */
  86. margin-left: 10px;
  87. }
  88. .hosphone{
  89. width:300px;
  90. height: 30px;
  91. /* border:solid 1px red; */
  92. margin-left: 10px;
  93. font-size: 14px;
  94. margin-bottom: 5px;
  95. }
  96. .hostake{
  97. width:300px;
  98. height: 100px;
  99. /* border:solid 1px red; */
  100. margin-left: 10px;
  101. font-size: 14px;
  102. margin-bottom: 5px;
  103. }
  104. .ordmodel{
  105. width:330px;
  106. height: 200px;
  107. border: solid 1px red;
  108. background-color: #666666;
  109. }
  110. .ss1{
  111. width: 320px;
  112. height: 220px;
  113. background-color: red;
  114. }
  115. .ss2{
  116. width:300px;
  117. height: 30px;
  118. background-color: yellow;
  119. margin-top: 20px;
  120. margin-left: 10px;
  121. font-size: 20px;
  122. font-weight: 700;
  123. }
  124. .modeone{
  125. width: 300px;
  126. height: 100%;
  127. /* background-color: red; */
  128. color: black;
  129. /* border:solid 1px red; */
  130. font-size: 14px;
  131. margin-bottom: 5px;
  132. }
  133. .modetwo{
  134. width: 300px;
  135. height: 100%;
  136. /* border: solid 1px red; */
  137. font-size: 14px;
  138. margin-bottom: 5px;
  139. }
  140. .modefour{
  141. width: 300px;
  142. height: 30px;
  143. color: black;
  144. /* border:solid 1px red; */
  145. font-size: 14px;
  146. margin-bottom: 5px;
  147. }
  148. .modethree{
  149. width: 300px;
  150. height: 100%;
  151. color: black;
  152. /* border:solid 1px red; */
  153. font-size: 14px;
  154. margin-bottom: 10px;
  155. }
  156. .modefive{
  157. width:315px;
  158. height: 200px;
  159. /* border: solid 1px red; */
  160. margin-bottom: 5px;
  161. }
  162. .rotation{
  163. width: 320px;
  164. height: 220px;
  165. /* border: solid 1px red; */
  166. }
  167. </style>