Browse Source

退款账户管理

master
ZLW-PC\Administrator 7 years ago
parent
commit
83cddfc913
  1. 2
      app/Http/Controllers/Api/UserController.php
  2. 5
      composer.json
  3. 53
      composer.lock
  4. 1
      config/database.php
  5. 890
      lqycms.sql
  6. 65
      resources/views/weixin/user/userinfo.blade.php

2
app/Http/Controllers/Api/UserController.php

@ -56,6 +56,8 @@ class UserController extends CommonController
if($request->input('group_id', null)!==null){$data['group_id'] = $request->input('group_id');}
if($request->input('password', null)!==null){$data['password'] = $request->input('password');}
if($request->input('head_img', null)!==null){$data['head_img'] = $request->input('head_img');}
if($request->input('refund_account', null)!==null){$data['refund_account'] = $request->input('refund_account');}
if($request->input('refund_name', null)!==null){$data['refund_name'] = $request->input('refund_name');}
if (isset($data))
{

5
composer.json

@ -7,12 +7,13 @@
"require": {
"php": ">=5.6.4",
"intervention/image": "^2.3",
"jpush/jpush": "v3.5.*",
"laravel/framework": "5.4.*",
"laravel/tinker": "~1.0",
"maatwebsite/excel": "~2.1.0",
"overtrue/laravel-wechat": "~3.1",
"simplesoftwareio/simple-qrcode": "~1",
"jpush/jpush": "v3.5.*"
"predis/predis": "^1.1",
"simplesoftwareio/simple-qrcode": "~1"
},
"require-dev": {
"fzaninotto/faker": "~1.4",

53
composer.lock

@ -4,7 +4,7 @@
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file",
"This file is @generated automatically"
],
"content-hash": "e7606121c9508220e3848d04772f6938",
"content-hash": "97c59668860ec127b80901fdc58f9562",
"packages": [
{
"name": "bacon/bacon-qr-code",
@ -1541,6 +1541,7 @@
"xls",
"xlsx"
],
"abandoned": "phpoffice/phpspreadsheet",
"time": "2015-05-01T07:00:55+00:00"
},
{
@ -1593,6 +1594,56 @@
],
"time": "2017-07-23T07:32:15+00:00"
},
{
"name": "predis/predis",
"version": "v1.1.1",
"source": {
"type": "git",
"url": "https://github.com/nrk/predis.git",
"reference": "f0210e38881631afeafb56ab43405a92cafd9fd1"
},
"dist": {
"type": "zip",
"url": "https://files.phpcomposer.com/files/nrk/predis/f0210e38881631afeafb56ab43405a92cafd9fd1.zip",
"reference": "f0210e38881631afeafb56ab43405a92cafd9fd1",
"shasum": ""
},
"require": {
"php": ">=5.3.9"
},
"require-dev": {
"phpunit/phpunit": "~4.8"
},
"suggest": {
"ext-curl": "Allows access to Webdis when paired with phpiredis",
"ext-phpiredis": "Allows faster serialization and deserialization of the Redis protocol"
},
"type": "library",
"autoload": {
"psr-4": {
"Predis\\": "src/"
}
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"MIT"
],
"authors": [
{
"name": "Daniele Alessandri",
"email": "suppakilla@gmail.com",
"homepage": "http://clorophilla.net"
}
],
"description": "Flexible and feature-complete Redis client for PHP and HHVM",
"homepage": "http://github.com/nrk/predis",
"keywords": [
"nosql",
"predis",
"redis"
],
"time": "2016-06-16T16:22:20+00:00"
},
{
"name": "psr/container",
"version": "1.0.0",

1
config/database.php

@ -113,6 +113,7 @@ return [
'password' => env('REDIS_PASSWORD', null),
'port' => env('REDIS_PORT', 6379),
'database' => 0,
'read_write_timeout' => 60,
],
],

890
lqycms.sql
File diff suppressed because it is too large
View File

65
resources/views/weixin/user/userinfo.blade.php

@ -251,6 +251,71 @@ function qrcode_layer()
content: '<div><div><img style="width:100%;" class="imgzsy" src="<?php echo get_erweima(route('weixin',array('invite_code'=>$_SESSION['weixin_user_info']['mobile'])),240); ?>"></div><p style="color:#999;">扫一扫,你懂得</p></div>'
});
}
</script>
<a href="javascript:update_refund_account();"><li>
<div class="ui-list-info">
<h4 class="ui-nowrap">退款账户</h4>
<div class="ui-txt-info"> &nbsp;</div>
</div>
<i class="fa fa-angle-right" aria-hidden="true"></i>
</li></a>
<script>
function update_refund_account()
{
//询问框
layer.open({
title: [
'退款账户管理',
'background-color: #FF4351; color:#fff;'
]
,content: '<div class="adr-form-group"><input style="margin-bottom:5px;" type="text" name="refund_account" class="" id="refund_account" placeholder="支付宝账号" value="<?php if($user_info['refund_account']){echo $user_info['refund_account'];} ?>"><input type="text" name="refund_name" class="" id="refund_name" placeholder="姓名" value="<?php if($user_info['refund_name']){echo $user_info['refund_name'];} ?>"></div>'
,btn: ['确定', '取消']
,yes: function(index){
var refund_account = $("#refund_account").val();
var refund_name = $("#refund_name").val();
if(refund_account == '' || refund_name == '')
{
/* layer.open({
content: '账户/姓名不能为空'
,skin: 'msg'
,time: 2 //2秒后自动关闭
}); */
alert('账户/姓名不能为空');
return false;
}
else
{
$.post('<?php echo env('APP_API_URL').'/user_info_update'; ?>',{refund_account:refund_account,refund_name:refund_name,access_token:'<?php echo $_SESSION['weixin_user_info']['access_token']; ?>'},function(res)
{
if(res.code==0)
{
//提示
layer.open({
content: '操作成功'
,skin: 'msg'
,time: 2 //2秒后自动关闭
});
}
else
{
layer.open({
content: res.msg
,skin: 'msg'
,time: 2 //2秒后自动关闭
});
}
},'json');
window.location.reload();
}
layer.close(index);
}
});
}
</script>
</ul>

Loading…
Cancel
Save