Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
杨树贤
/
ic_welfare
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
e2a5e3a1
authored
Aug 21, 2019
by
杨树贤
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
å
®
修改红包配置项,金额固定选择数额,新增配置项之后不能修改
parent
49b6a28c
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
39 additions
and
39 deletions
app/Http/Controllers/ExchangeSettingsController.php
config/website.php
resources/views/web/createExchangeSetting.blade.php
resources/views/web/exchangeSettingList.blade.php
app/Http/Controllers/ExchangeSettingsController.php
View file @
e2a5e3a1
...
...
@@ -61,12 +61,4 @@ class ExchangeSettingsController extends Controller
return
$this
->
view
();
}
public
function
storeExchangeSetting
(
Request
$request
)
{
// $result = $this->service->storeExchangeSetting('/integrals', $request->all());
// if ($result['errno'] === 0) {
// return redirect('/integrals/integralList');
// }
}
}
config/website.php
View file @
e2a5e3a1
<?php
return
[
'admin'
=>
[
'ymx@ichunt.com'
],
'webTitle'
=>
'IC助手后台'
,
'domain'
=>
env
(
'domain'
),
'admin'
=>
[
'ymx@ichunt.com'
],
'webTitle'
=>
'IC助手后台'
,
'domain'
=>
env
(
'domain'
),
'login'
=>
[
'login'
=>
'http://'
.
env
(
'LOGIN_DOMAIN'
,
''
)
.
'/login'
,
'logout'
=>
'http://'
.
env
(
'LOGIN_DOMAIN'
,
''
)
.
'/logout'
,
'check'
=>
'http://'
.
env
(
'LOGIN_DOMAIN'
,
''
)
.
'/api/checklogin'
,
'search'
=>
'http://'
.
env
(
'LOGIN_DOMAIN'
,
''
)
.
'/api/search'
,
'dashboard'
=>
'http://'
.
env
(
'LOGIN_DOMAIN'
,
''
)
.
'/dashboard'
,
'login'
=>
'http://'
.
env
(
'LOGIN_DOMAIN'
,
''
)
.
'/login'
,
'logout'
=>
'http://'
.
env
(
'LOGIN_DOMAIN'
,
''
)
.
'/logout'
,
'check'
=>
'http://'
.
env
(
'LOGIN_DOMAIN'
,
''
)
.
'/api/checklogin'
,
'search'
=>
'http://'
.
env
(
'LOGIN_DOMAIN'
,
''
)
.
'/api/search'
,
'dashboard'
=>
'http://'
.
env
(
'LOGIN_DOMAIN'
,
''
)
.
'/dashboard'
,
],
'perm'
=>
[
'id'
=>
env
(
'PERM_ID'
),
'url'
=>
env
(
'PERM_URL'
),
'goUrl'
=>
env
(
'PERM_GOURL'
),
'adminGroup'
=>
explode
(
','
,
env
(
'ADMIN_GROUP'
)),
//管理员权限组,有所有权限
'menuId'
=>
env
(
'MENU_ID'
),
'menuUrl'
=>
env
(
'MENU_URL'
),
'menuSign'
=>
env
(
'MENU_SIGN'
),
'notAuth'
=>
explode
(
','
,
env
(
'NOT_AUTH'
))
//不用验证权限的方法
'perm'
=>
[
'id'
=>
env
(
'PERM_ID'
),
'url'
=>
env
(
'PERM_URL'
),
'goUrl'
=>
env
(
'PERM_GOURL'
),
'adminGroup'
=>
explode
(
','
,
env
(
'ADMIN_GROUP'
)),
//管理员权限组,有所有权限
'menuId'
=>
env
(
'MENU_ID'
),
'menuUrl'
=>
env
(
'MENU_URL'
),
'menuSign'
=>
env
(
'MENU_SIGN'
),
'notAuth'
=>
explode
(
','
,
env
(
'NOT_AUTH'
))
//不用验证权限的方法
],
'data'
=>
env
(
'DATA_DOMAIN'
,
'news.liexin.com'
),
'upload'
=>
[
'url'
=>
'http://api.ichunt.com/oss/upload'
,
'key'
=>
'fh6y5t4rr351d2c3bryi'
'upload'
=>
[
'url'
=>
'http://api.ichunt.com/oss/upload'
,
'key'
=>
'fh6y5t4rr351d2c3bryi'
,
],
'ES_URL'
=>
env
(
'ES_URL'
,
''
),
'ES_URL'
=>
env
(
'ES_URL'
,
''
),
'GoodsInfoServer'
=>
'http://192.168.2.232:61002'
,
'OfferServer'
=>
'http://192.168.2.232:61004'
'OfferServer'
=>
'http://192.168.2.232:61004'
,
'cost_item'
=>
[
1
=>
'1元'
,
2
=>
'2元'
,
5
=>
'5元'
,
10
=>
'10元'
,
20
=>
'20元'
,
30
=>
'30元'
,
50
=>
'50元'
,
100
=>
'100元'
,
200
=>
'200元'
,
300
=>
'300元'
,
500
=>
'500元'
,
],
];
resources/views/web/createExchangeSetting.blade.php
View file @
e2a5e3a1
...
...
@@ -15,14 +15,8 @@
{!! $statusPresenter->render('type','商品类型',0,[0=>'无',1=>'话费充值',2=>'微信提现']) !!}
</div>
<div
class=
"layui-form-item"
>
<div
class=
"layui-inline"
>
<label
class=
"layui-form-label"
>
兑换所需金额
</label>
<div
class=
"layui-input-inline"
>
<input
type=
"text"
name=
"amount"
lay-verify=
"required|number"
autocomplete=
"off"
class=
"layui-input"
>
</div>
</div>
@inject('statusPresenter','App\Presenters\StatusPresenter')
{!! $statusPresenter->render('amount','兑换所需金额',0,config('website.cost_item')) !!}
</div>
<div
class=
"layui-form-item"
>
<div
class=
"layui-inline"
>
...
...
resources/views/web/exchangeSettingList.blade.php
View file @
e2a5e3a1
...
...
@@ -42,7 +42,7 @@
</div>
<script
type=
"text/html"
id=
"operate"
>
<
a
class
=
"layui-btn layui-btn-normal layui-btn-xs"
lay
-
event
=
"edit"
>
编辑
<
/a
>
{{
--
<
a
class
=
"layui-btn layui-btn-normal layui-btn-xs"
lay
-
event
=
"edit"
>
编辑
<
/a>--}
}
@{{
#
if
(
d
.
status
==
'使用中'
){
}}
<
a
class
=
"layui-btn layui-btn-danger layui-btn-xs"
lay
-
event
=
"disable"
>
禁用
<
/a
>
@{{
#
}
else
{
}}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment