Browse Source

首页修改余额充值

fuwencai 4 năm trước cách đây
mục cha
commit
2029d38618
1 tập tin đã thay đổi với 10 bổ sung3 xóa
  1. 10 3
      static/templates/login.html

+ 10 - 3
static/templates/login.html

@@ -111,7 +111,7 @@
                                 str += "<td style='width: 100px'>" + item.secret_key + "</td>";
                                 str += "<td style='width: 100px'>" + item.phone + "</td>";
                                 str += "<td style='width: 100px'>" + item.money + "</td>";
-                                str += "<td class='handle' style='width: 100px'><a href=\"/page/userRecharge?appId=" + item.app_id + "\">充值</a><a href=\"/page/chooseProductPage?appId="+item.app_id+"\">购买产品</a></td>";
+                                str += "<td class='handle' style='width: 100px'><a href=\"/page/userRecharge?appId=" + item.app_id + "\">余额充值</a><a href=\"/page/chooseProductPage?appId="+item.app_id+"\">购买产品</a></td>";
 
                                 str += "</tr>";
                             }
@@ -167,10 +167,17 @@
                                 str += "<td>" + item.call_times_limit_day + "</td>";
                                 str += "<td>" + item.data_num_limit_one_times + "</td>";
                                 if (item.product_id === 1000 || item.product_id === 1001) {
-                                    str += "<td class='handle' style='width: 100px'><a href=\"/page/projectListPage?appId=" + appId + "&key=" + key + "\" >测试接口</a></td>";
+                                    str += "<td class='handle' style='width: 100px ;text-align: left'><a href=\"/page/projectListPage?appId=" + appId + "&key=" + key + "\" >测试接口</a>";
                                 } else {
-                                    str += "<td class='handle' style='width: 100px'><a href=\"/page/projectListDetail?appId=" + appId + "&key=" + key + "\"  >测试接口</a></td>";
+                                    str += "<td class='handle' style='width: 100px;text-align: left'><a href=\"/page/projectListDetail?appId=" + appId + "&key=" + key + "\"  >测试接口</a>";
                                 }
+                                if (item.cost_model == 0){
+                                    str += "<a href=\"/page/projectListDetail?appId=" + appId + "\"  >剩余量充值</a>"
+                                }
+                                // else {
+                                //
+                                // }
+                                str += "</td>";
                                 str += "</tr>";
                             }
                             console.log(str);