mirror of
http://git.coreshop.cn/jianweie/coreshoppro.git
synced 2025-12-06 17:23:26 +08:00
新增【后台】微信支付商家转账增加场景选择。
This commit is contained in:
@@ -294,12 +294,14 @@ namespace CoreCms.Net.Web.Admin.Controllers
|
||||
|
||||
var userTocashStatus = EnumHelper.EnumToList<GlobalEnumVars.UserTocashStatus>();
|
||||
var userTocashType = EnumHelper.EnumToList<GlobalEnumVars.UserTocashType>();
|
||||
var weChatPayTransferSceneId = EnumHelper.EnumToList<GlobalEnumVars.WeChatPayTransferSceneId>();
|
||||
|
||||
jm.data = new
|
||||
{
|
||||
model,
|
||||
userTocashStatus,
|
||||
userTocashType
|
||||
userTocashType,
|
||||
weChatPayTransferSceneId
|
||||
};
|
||||
|
||||
return jm;
|
||||
@@ -327,7 +329,7 @@ namespace CoreCms.Net.Web.Admin.Controllers
|
||||
return jm;
|
||||
}
|
||||
|
||||
var res = await _coreCmsUserTocashServices.Examine(entity.id, entity.status, entity.type);
|
||||
var res = await _coreCmsUserTocashServices.Examine(entity.id, entity.status, entity.type, entity.sceneId);
|
||||
jm.code = res.status ? 0 : 1;
|
||||
jm.data = res.data;
|
||||
jm.msg = res.msg;
|
||||
@@ -360,12 +362,14 @@ namespace CoreCms.Net.Web.Admin.Controllers
|
||||
|
||||
var userTocashStatus = EnumHelper.EnumToList<GlobalEnumVars.UserTocashStatus>();
|
||||
var userTocashType = EnumHelper.EnumToList<GlobalEnumVars.UserTocashType>();
|
||||
var weChatPayTransferSceneId = EnumHelper.EnumToList<GlobalEnumVars.WeChatPayTransferSceneId>();
|
||||
|
||||
jm.data = new
|
||||
{
|
||||
model,
|
||||
userTocashStatus,
|
||||
userTocashType
|
||||
userTocashType,
|
||||
weChatPayTransferSceneId
|
||||
};
|
||||
|
||||
return jm;
|
||||
|
||||
@@ -23,13 +23,24 @@
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="layui-form-item" id="selectSceneBox">
|
||||
<label for="sceneId" class="layui-form-label layui-form-required">转账场景</label>
|
||||
<div class="layui-input-block">
|
||||
<select name="sceneId" lay-verify="required|number" lay-reqText="请选择审核状态">
|
||||
{{# layui.each(d.params.data.weChatPayTransferSceneId, function(index, item){ }}
|
||||
<option value="{{ item.value }}">{{ item.title }}</option>
|
||||
{{# }); }}
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="layui-form-item">
|
||||
<blockquote class="layui-elem-quote">
|
||||
1、微信提现需微信支付商户开通了企业付款到零钱功能。<br />
|
||||
2、只有【提现方式】为【银行卡】,才可主动设置成功失败。<br />
|
||||
3、微信提现方式下,将依据请求微信api接口返回信息,进行状态处理。<br />
|
||||
4、【微信提现付款到零钱】【微信提现付款到银行卡】再有异常的情况下,都可继续进行新的处理,可能会存在网络,微信支付商户余额,用户填写的银行卡信息错误等。<br />
|
||||
5、【微信提现付款到银行卡】需要配置【RsaPublicKey】,请自行添加,不然会报异常。
|
||||
5、【微信提现付款到银行卡】需要配置【RsaPublicKey】,请自行添加,不然会报异常。<br />
|
||||
6、【商家转账】请完善微信支付配置里面的相关【平台证书】或者【微信支付公钥】,请自行添加,不然会报异常,另外选择【商家转账】时,根据自己申请的【转账场景】选择上面【转账场景】的下拉数据,错误的转账场景也将导致转账失败。
|
||||
</blockquote>
|
||||
</div>
|
||||
|
||||
@@ -43,6 +54,7 @@
|
||||
layui.data.sendParams = function (d) {
|
||||
//开启调试情况下获取接口赋值数据
|
||||
if (debug) { console.log(d.params.data); }
|
||||
|
||||
layui.use(['admin', 'form', 'laydate', 'upload', 'coreHelper', 'cropperImg'],
|
||||
function () {
|
||||
var $ = layui.$
|
||||
@@ -54,6 +66,7 @@
|
||||
, coreHelper = layui.coreHelper;
|
||||
|
||||
$('#selectStatusBox').hide();
|
||||
$('#selectSceneBox').hide();
|
||||
|
||||
form.on('select(selectType)', function (data) {
|
||||
console.log(data.value); //复选框value值,也可以通过data.elem.value得到
|
||||
@@ -62,6 +75,13 @@
|
||||
} else {
|
||||
$('#selectStatusBox').hide();
|
||||
}
|
||||
|
||||
if (data.value === '4') {
|
||||
$('#selectSceneBox').show();
|
||||
} else {
|
||||
$('#selectSceneBox').hide();
|
||||
}
|
||||
|
||||
});
|
||||
|
||||
|
||||
|
||||
@@ -239,7 +239,7 @@
|
||||
admin.popup({
|
||||
shadeClose: false,
|
||||
title: '提现操作',
|
||||
area: ['500px', '400px'],
|
||||
area: ['500px', '500px'],
|
||||
id: 'LAY-popup-CoreCmsUserTocash-edit',
|
||||
success: function (layero, index) {
|
||||
view(this.id).render('financial/usertocash/edit', { data: e.data }).done(function () {
|
||||
@@ -248,8 +248,6 @@
|
||||
function (data) {
|
||||
var field = data.field; //获取提交的字段
|
||||
|
||||
|
||||
|
||||
if (debug) { console.log(field); } //开启调试返回数据
|
||||
//提交 Ajax 成功后,关闭当前弹层并重载表格
|
||||
coreHelper.Post("Api/CoreCmsUserTocash/SetStatus", field, function (e) {
|
||||
|
||||
Reference in New Issue
Block a user