Ver código fonte

导游导览图片展示

yf_zd 5 anos atrás
pai
commit
b0572d2aa4

+ 1 - 1
templates/outerNet/tourist.html

@@ -68,7 +68,7 @@
                         <div class="sendTime title">{{sightsee.upl_time}}</div>
                         <div class="prodectIntro">
                             <div class="prodectImg">
-                                <img src="http://127.0.0.1:8000/{{sightsee.sightisee_img }}" alt="">
+                                <img src="http://127.0.0.1:8000/{{sightsee.sightsee_img}}" alt="">
                             </div>
                             <div class="descTxt">
                                 <div><span>景点名称:</span>{{sightsee.name}}</div>

+ 1 - 1
templates/outerNet/touristList.html

@@ -56,7 +56,7 @@
                          {% if sightsee|length %} {% for hotelItem in sightsee %}
                         <li class="hotelItem">
                             <a href="tourist?id={{hotelItem.id}}">
-                                <img src="{{hotelItem.hotel_img}}" alt="">
+                                <img src="http://127.0.0.1:8000/{{hotelItem.sightsee_img}}" alt="">
                                 <div class="hotelDetial">
                                     <h2>{{hotelItem.name}}</h2>
                                     <div class="abstract-wrap">