Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
纵之格
shopxo-uniapp
提交
52992deb
S
shopxo-uniapp
项目概览
纵之格
/
shopxo-uniapp
通知
102
Star
3
Fork
4
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
S
shopxo-uniapp
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
52992deb
编写于
4月 14, 2024
作者:
G
gongfuxiang
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
虚拟币优化
上级
cb7facf7
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
34 addition
and
15 deletion
+34
-15
pages/plugins/coin/cash/cash.vue
pages/plugins/coin/cash/cash.vue
+16
-7
pages/plugins/coin/recharge/recharge.vue
pages/plugins/coin/recharge/recharge.vue
+18
-8
未找到文件。
pages/plugins/coin/cash/cash.vue
浏览文件 @
52992deb
...
...
@@ -42,11 +42,14 @@
</view>
<view>
<view
class=
"margin-bottom-main"
>
提币网络
</view>
<picker
v-if=
"network_list.length > 0"
class=
"content-input-bg padding-main margin-bottom-main border-radius-sm"
@
change=
"cash_event"
:value=
"network_list_index"
:range=
"network_list"
range-key=
"name"
>
<view
class=
"picker arrow-bottom"
>
{{
network_list
[
network_list_index
][
'
name
'
]
}}
</view>
</picker>
<block
v-if=
"network_list.length > 0"
>
<picker
class=
"content-input-bg padding-main margin-bottom-main border-radius-sm"
@
change=
"cash_event"
:value=
"network_list_index"
:range=
"network_list"
range-key=
"name"
>
<view
class=
"picker arrow-bottom"
>
{{
network_list
[
network_list_index
][
'
name
'
]
}}
</view>
</picker>
</block>
<view
v-else
class=
"cr-grey margin-bottom"
>
无网络数据
</view>
<view
class=
"content-input-bg padding-main border-radius-sm"
>
<input
type=
"text"
name=
"user_note"
:value=
"user_note"
placeholder-class=
"text-size-md cr-grey-9"
placeholder=
"请输入提现备注信息"
@
input=
"user_note_change"
/>
</view>
...
...
@@ -183,7 +186,7 @@
uni
.
request
({
url
:
app
.
globalData
.
get_request_url
(
'
createinfo
'
,
'
cash
'
,
'
coin
'
),
method
:
'
POST
'
,
data
:
{
accounts_id
:
this
.
accounts
.
id
||
this
.
params
.
id
},
data
:
{
accounts_id
:
this
.
accounts
.
id
||
this
.
params
.
id
||
null
},
dataType
:
'
json
'
,
success
:
(
res
)
=>
{
uni
.
stopPullDownRefresh
();
...
...
@@ -224,6 +227,7 @@
coin_num
:
''
,
popup_coin_status
:
false
,
});
this
.
get_data
();
},
popup_coin_status_open_event
()
{
this
.
setData
({
...
...
@@ -241,7 +245,6 @@
this
.
setData
({
network_list_index
:
parseInt
(
e
.
detail
.
value
||
0
),
});
console
.
log
(
1
);
},
// 全部提现
...
...
@@ -274,6 +277,12 @@
// 申请提现
apply_for_cash_event
()
{
if
(
this
.
network_list
.
length
==
0
)
{
app
.
globalData
.
showToast
(
'
网络数据为空、请联系客服!
'
);
return
false
;
}
// 表单数据
var
new_data
=
{
accounts_id
:
this
.
accounts
.
id
,
network_id
:
this
.
network_list
[
this
.
network_list_index
].
id
,
...
...
pages/plugins/coin/recharge/recharge.vue
浏览文件 @
52992deb
...
...
@@ -37,13 +37,16 @@
</view>
</view>
</view>
<view
v-if=
"network_list.length > 0"
class=
"margin-bottom-xxxl"
>
<view
class=
"margin-bottom-xxxl"
>
<view
class=
"margin-bottom-main"
>
充币网络
</view>
<picker
class=
"recharge-content-input-bg padding-main border-radius-sm"
@
change=
"recharge_event"
:value=
"network_list_index"
:range=
"network_list"
range-key=
"name"
>
<view
class=
"picker arrow-bottom"
>
{{
network_list
[
network_list_index
][
'
name
'
]
}}
</view>
</picker>
<block
v-if=
"network_list.length > 0"
>
<picker
class=
"recharge-content-input-bg padding-main border-radius-sm"
@
change=
"recharge_event"
:value=
"network_list_index"
:range=
"network_list"
range-key=
"name"
>
<view
class=
"picker arrow-bottom"
>
{{
network_list
[
network_list_index
][
'
name
'
]
}}
</view>
</picker>
</block>
<view
v-else
class=
"cr-grey"
>
无网络数据
</view>
</view>
<view
class=
"margin-bottom-xxxl"
>
<view
v-if=
"accounts.platform_data.preset_data.length > 0"
>
...
...
@@ -186,14 +189,14 @@
uni
.
request
({
url
:
app
.
globalData
.
get_request_url
(
'
createinfo
'
,
'
recharge
'
,
'
coin
'
),
method
:
'
POST
'
,
data
:
{},
data
:
{
accounts_id
:
this
.
accounts
.
id
||
this
.
params
.
id
||
null
},
dataType
:
'
json
'
,
success
:
(
res
)
=>
{
uni
.
stopPullDownRefresh
();
if
(
res
.
data
.
code
==
0
)
{
var
data
=
res
.
data
.
data
;
this
.
setData
({
accounts
:
data
.
accounts
,
accounts
:
data
.
accounts
||
{}
,
accounts_list
:
data
.
accounts_list
||
[],
network_list
:
data
.
network_list
||
[],
data_list_loding_msg
:
''
,
...
...
@@ -224,6 +227,7 @@
accounts
:
this
.
accounts_list
[
e
.
currentTarget
.
dataset
.
index
],
popup_coin_status
:
false
,
});
this
.
get_data
();
},
popup_coin_status_open_event
()
{
this
.
setData
({
...
...
@@ -256,6 +260,12 @@
},
// 立即充值
recharge_submit
()
{
if
(
this
.
network_list
.
length
==
0
)
{
app
.
globalData
.
showToast
(
'
网络数据为空、请联系客服!
'
);
return
false
;
}
// 表单数据
var
new_data
=
{
accounts_id
:
this
.
accounts
.
id
,
network_id
:
this
.
network_list
[
this
.
network_list_index
].
id
,
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录