user
This commit is contained in:
@@ -609,7 +609,7 @@ namespace Home.Controllers
|
||||
{
|
||||
var notifyOrder = data.FromJsonTo<TaoBaoNotifyModel>();
|
||||
LogHelper.Info("TaoBao process");
|
||||
if(notifyOrder.Payment == "10.00" && (notifyOrder.SellerNick == "聚ip商城动态ip代理" || notifyOrder.SellerNick == "老鹰动态pptp")||notifyOrder.SellerNick == "老鹰动态pptp"){
|
||||
if(notifyOrder.Payment == "10.00" && (notifyOrder.SellerNick == "聚ip商城动态ip代理" || notifyOrder.SellerNick == "老鹰动态pptp")||notifyOrder.SellerNick == "强子pptp动态"){
|
||||
return "您好,"+notifyOrder.Payment+"元已充值到充值到您的会员中";
|
||||
}
|
||||
if (notifyOrder == null || notifyOrder.Tid.NotHas())
|
||||
|
||||
@@ -174,6 +174,14 @@
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row" v-if="@userEntity.is_agent == 1">
|
||||
<div class="col-sm-5 col-xs-5">
|
||||
代理下会员号:
|
||||
</div>
|
||||
<div class="col-sm-7 col-xs-7 shuru">
|
||||
<input type="text" v-model="OneBuyModel.phone"/>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-sm-5 col-xs-5">
|
||||
余额:
|
||||
@@ -311,6 +319,14 @@
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row" v-if="@userEntity.is_agent == 1">
|
||||
<div class="col-sm-5 col-xs-5">
|
||||
代理下会员号:
|
||||
</div>
|
||||
<div class="col-sm-7 col-xs-7 shuru">
|
||||
<input type="text" v-model="MoreBuyModel.phone"/>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
|
||||
<div class="col-sm-5 col-xs-5">
|
||||
@@ -426,6 +442,7 @@
|
||||
UseAccountAmount: 0,
|
||||
OPayType: 100,
|
||||
PayChannel:40,
|
||||
phone:''
|
||||
},
|
||||
MoreBuyModel: {
|
||||
Price:@(Model.Package.Price),
|
||||
@@ -441,6 +458,7 @@
|
||||
MinPostfix: 1,
|
||||
MaxPostfix: 1,
|
||||
PayChannel:40,
|
||||
phone:''
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
|
||||
@@ -376,7 +376,7 @@
|
||||
<div class="productItem" id="@("p"+item.Product.Id)" a-pid="@item.Product.Id">@item.Product.Name<span style="color: #f64e3d;font-weight:bold;float:right;padding-right: 5px;">9折</span></div>
|
||||
}
|
||||
else if(item.Product.Id == 23) {
|
||||
<div class="productItem" id="@("p"+item.Product.Id)" a-pid="@item.Product.Id">@item.Product.Name<span style="color: #f64e3d;font-weight:bold;float:right;padding-right: 5px;">9折</span></div>
|
||||
<div class="productItem" id="@("p"+item.Product.Id)" a-pid="@item.Product.Id"><span style="color: #f64e3d;font-weight:bold;padding-right: 5px;">新</span>@item.Product.Name<span style="color: #f64e3d;font-weight:bold;float:right;padding-right: 5px;">9折</span></div>
|
||||
}
|
||||
else if(item.Product.Id == 14) {
|
||||
<div class="dropdown">
|
||||
|
||||
@@ -208,6 +208,18 @@
|
||||
<span class="grayText">淘宝每次下单获得优惠券</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row" v-if="@userEntity.is_agent == 1">
|
||||
<div class="col-lg-4 text-right">
|
||||
代理下会员号:
|
||||
</div>
|
||||
<div class="col-lg-4 regDan">
|
||||
<input type="text" name="phone" v-model="OneBuyModel.phone" v-on:input="checkverify()"/>
|
||||
</div>
|
||||
<div class="col-lg-4 text-left">
|
||||
<span class="grayText verify_text" style="color:red;">您下边的会员号</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-lg-4 text-right">
|
||||
余额:
|
||||
@@ -360,6 +372,18 @@
|
||||
<span class="grayText">淘宝每次下单获得优惠券</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row" v-if="@userEntity.is_agent == 1">
|
||||
<div class="col-lg-4 text-right">
|
||||
代理下会员号:
|
||||
</div>
|
||||
<div class="col-lg-4 regDan">
|
||||
<input type="text" name="phone" v-model="MoreBuyModel.phone" v-on:input="checkverify()"/>
|
||||
</div>
|
||||
<div class="col-lg-4 text-left">
|
||||
<span class="grayText verify_text" style="color:red;">您下边的会员号</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-lg-4 text-right">
|
||||
余额:
|
||||
@@ -487,7 +511,8 @@
|
||||
CouponId: 0,
|
||||
UseAccountAmount: 0,
|
||||
OPayType: 100,
|
||||
PayChannel: 50
|
||||
PayChannel: 50,
|
||||
phone:''
|
||||
},
|
||||
MoreBuyModel: {
|
||||
Price:@(Model.Package.Price),
|
||||
@@ -502,7 +527,8 @@
|
||||
OPayType: 100,
|
||||
MinPostfix: 1,
|
||||
MaxPostfix: 1,
|
||||
PayChannel: 50
|
||||
PayChannel: 50,
|
||||
phone:''
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
@@ -643,6 +669,31 @@
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
checkverify() {
|
||||
let phone = '';
|
||||
if (this.OneBuyModel.phone != '') {
|
||||
phone=this.OneBuyModel.phone;
|
||||
} else {
|
||||
phone=this.MoreBuyModel.phone;
|
||||
}
|
||||
$.ajax({
|
||||
type: 'GET',
|
||||
async:false,
|
||||
url: 'http://php-api.juip.com/agent/index/isverify?phone='+phone,
|
||||
dataType: "json",
|
||||
contentType: "application/json",
|
||||
crossDomain: true,
|
||||
success: function (res) {
|
||||
if (res.is_verify == '1') {
|
||||
$('.verify_text').html('该账号已经实名,可以开号' )
|
||||
} else {
|
||||
$('.verify_text').html('该账号未实名' )
|
||||
}
|
||||
|
||||
console.log(this.verify_text)
|
||||
}
|
||||
});
|
||||
},
|
||||
// true:数值型的,false:非数值型
|
||||
isNum(value) {
|
||||
return typeof value === 'number' && !isNaN(value);
|
||||
|
||||
@@ -438,11 +438,16 @@
|
||||
<div class="accout_tit"><span class="lineBar"></span>账户信息</div>
|
||||
<div class="row">
|
||||
<div class="col-lg-6 accoutLeft">
|
||||
<p>
|
||||
@if(Model.UserModel.is_verify == 0){
|
||||
<p><a onclick="$('.real-name').show()" style="color:blue;font-size:20px;float:right;cursor: pointer;">实名认证</a></p>
|
||||
<a onclick="$('.real-name').show()" style="color:blue;font-size:20px;float:right;cursor: pointer;">实名认证</a>
|
||||
} else {
|
||||
<p><span style="color:#339933;font-size:20px;float:right;">已认证<span class="glyphicon glyphicon-ok"></span></span></p>
|
||||
<span style="color:#339933;font-size:20px;float:right;">已认证<span class="glyphicon glyphicon-ok"></span></span>
|
||||
}
|
||||
@if(Model.UserModel.is_agent == 1){
|
||||
<span style="color:#339933;font-size:20px;float:left;">经销商</span>
|
||||
}
|
||||
</p>
|
||||
<div class="row">
|
||||
<div class="col-lg-4 text-center" style="padding-top: 20px;">
|
||||
<img src="~/img/bandPhone.png">
|
||||
|
||||
@@ -82,5 +82,7 @@ namespace Hncore.Pass.BaseInfo.Models
|
||||
public string ManagerName { get; set; }
|
||||
public string id_code { get; set; }
|
||||
public int is_verify { get; set; }
|
||||
public int is_agent { get; set; }
|
||||
public int parent_id { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -35,5 +35,6 @@ namespace Hncore.Pass.Vpn.Request.Product
|
||||
|
||||
public string Channel { get; set; }
|
||||
public string Remark { get; set; }
|
||||
public string phone { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
@@ -338,7 +338,8 @@ FROM product_order where {where} GROUP BY Channel,ProductName order by Channel,
|
||||
PayChannel = request.PayChannel,
|
||||
Channel = request.Channel,
|
||||
IsAutoRefund = productEntity.AutoRefund,
|
||||
agent_id = userEntity.agent_id
|
||||
agent_id = userEntity.agent_id,
|
||||
Remark = request.phone
|
||||
};
|
||||
if (request.OrderType == OrderType.New || request.OrderType == OrderType.AgainBuy)
|
||||
{
|
||||
@@ -640,7 +641,8 @@ FROM product_order where {where} GROUP BY Channel,ProductName order by Channel,
|
||||
ChargeStatus = AccountChargeStatus.Normal,
|
||||
UserId = order.UserId,
|
||||
UserCode = order.UserName,
|
||||
agent_id = order.agent_id
|
||||
agent_id = order.agent_id,
|
||||
UserPhone = order.Remark
|
||||
};
|
||||
accountEntitys.Add(accountEntity);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user