页面优化

This commit is contained in:
“wanyongkang”
2024-02-24 13:58:39 +08:00
parent 95dc0c16be
commit abbef158af
16 changed files with 149 additions and 44 deletions

View File

@@ -239,7 +239,7 @@
<td v-if="site.nasname">{{site.status}}</td>
</tr>
</table>
<div v-if="!is_all && (product_id == 0)" class="text-center" style="margin-bottom: 20px;">
<div id="more" v-if="!is_all && (product_id == 0)" class="text-center" style="margin-bottom: 20px;">
<button @@click="get_index_data()" type="button" class="btn btn-link" style="font-size:25px;">
------------------------------------------更多
<svg width="1em" height="1em" viewBox="0 0 16 16" class="bi bi-chevron-double-down" fill="currentColor" xmlns="http://www.w3.org/2000/svg">
@@ -506,6 +506,7 @@
this.is_all = true;
},
search_all(){
$('#more').hide();
this.is_all = true;
if(!this.search_all_data){
this.select_product(0);
@@ -523,6 +524,7 @@
this.table_data = datalist;
},
search_product(){
$('#more').hide();
if(!this.search_product_data){
this.select_product(this.product_id);
return;

View File

@@ -483,7 +483,7 @@
@if(!string.IsNullOrWhiteSpace(ViewBag.errorTip))
{
<script>
alert('@ViewBag.errorTip')
alert('禁止续费,请联系客服')
history.go(-1);
</script>
}

View File

@@ -13,7 +13,7 @@
randomAccount = ValidateCodeHelper.MakeCharCode(2).ToLower() + ValidateCodeHelper.MakeNumCode(4).ToLower();
}
var product_id = Model.Product.Id;
if (product_id == 27) {
if (product_id == 27 || product_id == 6) {
randomPwd = ValidateCodeHelper.MakeNumCode(6).ToLower();
}
}
@@ -133,6 +133,10 @@
$(".tip").text("账户和密码不能为空");
return;
}
if (data.ProductId == 6 && data.Pwd.length<6) {
$(".tip").text("密码要大于6位");
return;
}
$.ajax({
type: 'POST',
url: '/api/course/v1/productaccount/CreateTestAccount',

View File

@@ -792,8 +792,9 @@
return true;
},
checkOnePwd() {
if (productId == 27) {
if (productId == 27 || productId == 6) {
if (this.OneBuyModel.Pwd.length < 7 || this.OneBuyModel.Pwd.length > 10 || !this.hasNumAndChar(this.OneBuyModel.Pwd)) {
alert("此产品密码必须大于6位");
this.OneChecker.PwdOk = false;
return false;
}
@@ -826,7 +827,7 @@
return true;
},
checkMorePwd() {
if (productId == 27) {
if (productId == 27 || productId == 6) {
if (this.MoreBuyModel.Pwd.length < 7 || this.MoreBuyModel.Pwd.length > 10 || !this.hasNumAndChar(this.MoreBuyModel.Pwd)) {
alert("此产品密码必须大于6位");
this.MoreChecker.PwdOk = false;

View File

@@ -480,7 +480,9 @@
<div class="row">
<div class="col-lg-6">
<div class="zhanghu">
<div class="accout_tit"><span class="lineBar"></span>账户信息</div>
<div class="accout_tit"><span class="lineBar"></span>账户信息
@* <a href="/user/upload" style="float:right;">上传协议书</a> *@
</div>
<div class="row">
<div class="col-lg-6 accoutLeft">
<p>

View File

@@ -0,0 +1,25 @@
@{
Layout = "_UserLayout";
}
<div id="app">
<h3>上传使用协议</h3>
<form action="upload.php" method="post" enctype="multipart/form-data">
<input type="file" name="file">
<input type="submit" value="上传">
</form>
</div>
<script>
var vm = new Vue({
el:'#app',
data:{
},
created:function(){
},
methods:{
}
});
</script>