tmodjs icon indicating copy to clipboard operation
tmodjs copied to clipboard

今天早上一升级,模板编译后样式发生问题,请问为啥要强制升级呢?

Open dlutwuwei opened this issue 11 years ago • 2 comments

<div class="search clx">

    <!---------点击时添加class的on属性-------->

      <div name="tripType" class="way">
        <p class="or"><%if(Model.PageCode == 1){ %>往返<%}else{ %>单程<%} %></p><i></i>
        <ul class="popadvse" style="width:130px;">
            <li code="0">单程</li>
            <li code="1">往返</li>
         </ul>
      </div>
      <input type="hidden" id="tripType" name="tripType" value="<%=Model.PageCode %>">

      <div class="dtation" method="city">
        <label for="text1">出发</label>
        <input type="text" id="iflightsrc" city="<%=Model.DepartureCityEn%>" code="<%=Model.DepartureCityCode %>"
        value="<%=Model.DepartureCityName %>(<%=Model.DepartureCityCode%>)">
      </div>
      <div class="dtation" method="city">
        <label for="text2">到达</label>
        <input type="text" id="iflightdest" city="<%=Model.ArriveCityEn %>" code="<%=Model.ArriveCityCode %>"
        value="<%=Model.ArriveCityName %>(<%=Model.ArriveCityCode %>)">
      </div>
      <div class="date" method="dt">
        <label for="text3">去程日期</label>
        <input type="text" id="dt" value="<%=Model.StartDate%>">
      </div>
      <div class="date" method="at" <%if(Model.PageCode == 0){ %>style="display: none"<%}%>>
        <label for="text3">回程日期</label>
        <input type="text" id="at" value="<%=Model.EndDate %>">
      </div>
      <div class="btn" method="search">搜 索</div>
       <div class="hbtn" method="extend"><i class='<%=Model.IsAdvance?"bot":""%>'></i>高级搜索</div>
        <div style="clear: right;display: none"></div>
<!----------高级搜索start------------>
      <div class="advse clx" method="direct" style=<%=Model.IsAdvance? "display:block":"display:none"%>>
        <form id="searchCondition" action=""><div class="direct clear">
          <p></p>
        </div>
        <input type="hidden" id="direct" name="direct" value="<%=Model.isDirect?1:0 %>">
        <%var cabins={ Y:"经济舱", F:"头等舱", C:"商务舱"} %>
        <!---------隐藏去掉下边class的on属性--------->
        <div name="classType" class="type">
          <p><i></i><span>舱位</span><b><%=cabins[Model.cabin==""?'Y':Model.cabin] %></b></p>
          <ul class="popadvse" style="width:150px;">
              <li code="Y">经济舱</li>
              <li code="C">商务舱</li>
              <li code="F">头等舱</li>        
          </ul>
        </div>
        <input type="hidden" id="classType" name="classType" value="<%=Model.cabin %>">

          <!---------隐藏去掉下边class的on属性--------->
          <%var atype =["成人","学生"] %>
        <div name="adultType" class="type">
          <p><i></i><span>乘客类型</span><b><%=atype[Model.atype] %></b></p>
          <ul class="popadvse" style="width:118px;">
            <li code="0">成人</li>
            <li code="1">学生</li>
          </ul>
        </div>
        <input type="hidden" id="adultType" name="adultType" value="<%=Model.atype %>">

        <!---------隐藏去掉下边class的on属性--------->
        <div name="psgCount" class="type num">
          <p><i></i><span>成人数</span><b><%=Model.psgCount %></b></p>
            <ul class="popadvse" style="width:50px;" method="adult">
                <li code="1">1</li>
                <li code="2">2</li>
                <li code="3">3</li>
                <li code="4">4</li>
                <li code="5">5</li>
                <li code="6">6</li>
                <li code="7">7</li>
                <li code="8">8</li>
                <li code="9">9</li>
            </ul>
        </div>
        <input id="psgCount" type="hidden" name="psgCount" value="<%=Model.psgCount %>">

        <!---------隐藏去掉下边class的on属性--------->
        <div id="childCount" class="type num">
          <p><i></i><span>儿童数</span><b><%=Model.chCount %></b></p>
          <ul class="popadvse" style="width:50px;"  method="child">
             <li code="0">0</li>
            <li code="1">1</li>
            <li code="2">2</li>
          </ul>
        </div>
        <input id="chCount" type="hidden" name="childCount" value="<%=Model.chCount %>">
        </form> 
    </div>
    <!----------高级搜索 end ------------>

</div>

<!----------------提示start------------------>
<% if (Model.EmergencyInfo != "")
    { %><div class="setip mt15" style="height: auto"><i></i><%= Model.EmergencyInfo %></div><% } %>
<!----------------提示 end ------------------>

<!----------------航班信息start------------------>
<div class="flnuminfor mt20">
    <h1><i></i><%=Model.DepartureCityName %><span class="<%if(Model.PageCode == 1){ %>round<%}else{ %>one<%} %>"></span><%=Model.ArriveCityName %>(<%=Model.PageType %>)</h1>    
    <%
    var date = new Date(Model.StartDate.replace(/-/g,'/')); 
    var backDate = new Date(Model.EndDate.replace(/-/g,'/'));
    %>
    <p class="date"><span><%=date.getMonth()+1%>月<%=date.getDate() %>日出发</span><%if(Model.PageCode==1){ %><span class="back"><%=backDate.getMonth()+1%>月<%=backDate.getDate() %>日返回</span><%} %> 共 <b id="fnum"></b>个航班</p>
    <p class="tip">所有航班起抵时间均为当地时间(24小时制)</p>
</div>
<!----------------航班信息 end ------------------>   

xx 错误的样式,搜索框没有闭合,把下面的元素包括进来了。

xx 升级前正确的样式

dlutwuwei avatar Aug 05 '14 04:08 dlutwuwei

麻烦协助定位具体问题,我才可能改善它。

tmodjs 不是强制升级的,你可以通过 npm 来安装任何一个版本,默认它是安装的最新版本

aui avatar Aug 06 '14 10:08 aui

刚才修复了一个内部正则的bug,它压缩html注释会出错,你再试试?

aui avatar Aug 07 '14 05:08 aui