Explorar o código

导游导览图片展示

yf_zd %!s(int64=5) %!d(string=hai) anos
pai
achega
b0572d2aa4
Modificáronse 2 ficheiros con 2 adicións e 2 borrados
  1. 1 1
      templates/outerNet/tourist.html
  2. 1 1
      templates/outerNet/touristList.html

+ 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">