123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182 |
- <template>
- <div>
- <div v-for="item in this.ordmodel" :key="item.id">
- <div>
- <div v-if="item.mode_type == 1">
- <div class="modefive">
- <img src="static/images/a.jpg" style="width:315px;height:200px">
- </div>
- </div>
- <div class="modetwo" v-if="item.mode_type == 2">
- <div><span>{{item.title}}: {{item.Hosaddress.address}}</span></div>
- </div>
- <div v-if="item.mode_type == 3">
- <div class="modeone">
- <span>{{item.title}}: 13318464642</span><br>
- <span>{{item.title}}: 13318464642</span><br>
- <span>{{item.title}}: 13318464642</span><br>
- </div>
- </div>
- <div class="modefour" v-if="item.mode_type == 4">
- <div><span>{{item.title}}: {{item.Worktime.worktime}}</span></div>
- </div>
- <div class="modethree" v-if="item.mode_type == 5">
- <div><span>{{item.title}}: {{item.Rideway.ride_way}}</span></div>
- </div>
- </div>
- </div>
- </div>
- </template>
-
- <script>
- import { getOrderModel } from '@/api/site/site'
- import { fchown } from 'fs';
- export default {
- name: "contact-us",
- data(){
- return{
- ordmodel:[],
- sstt:[
- "ss1",
- "ss2",
- "ss3",
- "ss4",
- ],
- }
- },
- methods:{
- getOrderModel(){
- getOrderModel().then(response=>{
- if(response.data.state == 1){
- var ordmodel = response.data.data.ordmodel;
- this.ordmodel = response.data.data.ordmodel;
-
- for (let index = 0; index < this.ordmodel.length; index++) {
- var images = this.ordmodel[index].Oldration.rotation_images;
- console.log("images是什么?",images)
- }
- console.log(images)
- console.log("我爱你中国",ordmodel)
- }
- })
- }
- },
- created(){
- this.getOrderModel();
- },
-
- }
- </script>
-
- <style scoped>
- .us{
- width: 320px;
- height: 220px;
- /* border: solid 1px red; */
- }
-
- .hosname{
- width:300px;
- height: 30px;
- /* border:solid 1px red; */
- margin-top: 20px;
- margin-left: 10px;
- font-size: 20px;
- font-weight: 700;
- }
-
- .hosaddress{
- width:300px;
- height: 54px;
- /* border:solid 1px red; */
- margin-left: 10px;
- }
- .hosphone{
- width:300px;
- height: 30px;
- /* border:solid 1px red; */
- margin-left: 10px;
- font-size: 14px;
- margin-bottom: 5px;
- }
-
- .hostake{
- width:300px;
- height: 100px;
- /* border:solid 1px red; */
- margin-left: 10px;
- font-size: 14px;
- margin-bottom: 5px;
- }
-
- .ordmodel{
- width:330px;
- height: 200px;
- border: solid 1px red;
- background-color: #666666;
- }
-
- .ss1{
- width: 320px;
- height: 220px;
- background-color: red;
- }
- .ss2{
- width:300px;
- height: 30px;
- background-color: yellow;
- margin-top: 20px;
- margin-left: 10px;
- font-size: 20px;
- font-weight: 700;
- }
- .modeone{
- width: 300px;
- height: 100%;
- /* background-color: red; */
- color: black;
- /* border:solid 1px red; */
- font-size: 14px;
- margin-bottom: 5px;
- }
-
- .modetwo{
- width: 300px;
- height: 100%;
- /* border: solid 1px red; */
- font-size: 14px;
- margin-bottom: 5px;
- }
-
- .modefour{
- width: 300px;
- height: 30px;
- color: black;
- /* border:solid 1px red; */
- font-size: 14px;
- margin-bottom: 5px;
- }
-
- .modethree{
- width: 300px;
- height: 100%;
- color: black;
- /* border:solid 1px red; */
- font-size: 14px;
- margin-bottom: 10px;
- }
-
- .modefive{
- width:315px;
- height: 200px;
- /* border: solid 1px red; */
- margin-bottom: 5px;
- }
-
- .rotation{
- width: 320px;
- height: 220px;
- /* border: solid 1px red; */
- }
- </style>
|