Web/Views/JY/List.cshtml

(开头部分) 2KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

@model List<Conris.DBA.Model.JY>


    <table class="tablelist">
    	<thead>
    	<tr>
        <th>序号<i class="sort"><img src="/Content/images/px.gif" /></i></th>
             <th>交易号</th>
            <th>民宿</th>
        <th>房主姓名</th>
  <th>房主电话</th>
            <th>客户姓名</th>
            <th>客户电话</th>
            <th>单价</th>
             <th>入住时间</th>
            <th>天数</th>
            <th>总价</th>
          
                <th>状态</th>
        <th>操作</th>
        </tr>
        </thead>
        <tbody>
              @if (Model != null && Model.Count > 0)
{
    int i = 0; 
       
            foreach (var item in Model)
        {
            i++;    
            <tr>
                <td>@i</td>
                <td>@item.JYNo</td>
                <td>@item.FYID</td>
                <td>@item.Str2</td>
                <td>@item.TPhone</td>
                <td>@item.Str3</td>

                <td>@item.Phone</td>
                <td>@item.Price</td>
                <td>@item.HT</td>
                <td>@item.Num</td>
                <td>@item.Total</td>
                @if (item.Str1 == "支付成功" || item.Str1 == "入住成功" || item.Str1 == "已评价")
                {
                    <td style="color:lawngreen;">@item.Str1</td>
                }
                else
                {
                    <td style="color:red;">@item.Str1</td>
                }


                <td>
                    <a href="/JY/Detail?ID=@item.ID">查看</a>
                    @if (item.UserID == @Conris.Services.UserInfoService.GetNowUserID() && item.Str1 == "待付款")
                    {
                        <a href="#" onclick="zf(@item.ID)">支付</a>
                    }
                    @if (item.UserID == @Conris.Services.UserInfoService.GetNowUserID() && item.Str1 == "入住成功")
后面还有 18 行代码,购买后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明

AI 解读

登录后可用,每次 10 积分,解读结果公开显示在下面。

还没有人解读过这个文件。