Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
纵之格
shopxo-uniapp
提交
c92f45bf
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 搜索 >>
提交
c92f45bf
编写于
4月 03, 2024
作者:
G
gongfuxiang
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
细节优化
上级
52d2388a
变更
7
隐藏空白更改
内联
并排
Showing
7 changed file
with
219 addition
and
183 deletion
+219
-183
pages/goods-detail/goods-detail.vue
pages/goods-detail/goods-detail.vue
+1
-1
pages/plugins/ask/form/form.vue
pages/plugins/ask/form/form.vue
+7
-1
pages/plugins/coin/cash/cash.vue
pages/plugins/coin/cash/cash.vue
+84
-72
pages/plugins/coin/convert/convert.vue
pages/plugins/coin/convert/convert.vue
+26
-29
pages/plugins/coin/recharge-list/recharge-list.vue
pages/plugins/coin/recharge-list/recharge-list.vue
+1
-1
pages/plugins/coin/recharge/recharge.vue
pages/plugins/coin/recharge/recharge.vue
+96
-79
pages/plugins/coin/user/user.vue
pages/plugins/coin/user/user.vue
+4
-0
未找到文件。
pages/goods-detail/goods-detail.vue
浏览文件 @
c92f45bf
...
...
@@ -329,7 +329,7 @@
</view>
<view
class=
"border-radius-main padding-main bg-white"
>
<component-ask-comments-goods
:propData=
"plugins_ask_data.ask_data"
></component-ask-comments-goods>
<view
data-value=
"/pages/plugins/ask/form/form
"
@
tap=
"url_event"
class=
"cp"
>
<view
:data-value=
"'/pages/plugins/ask/form/form?goods_id='+goods.id
"
@
tap=
"url_event"
class=
"cp"
>
<view
class=
"br-t-e padding-top-main cr-base flex-row jc-c align-c"
>
{{
$t
(
'
goods-detail.goods-detail.7ulh8b
'
)
}}
<iconfont
name=
"icon-arrow-right"
color=
"#666"
propClass=
"pr top-sm margin-left-sm"
></iconfont>
</view>
</view>
...
...
pages/plugins/ask/form/form.vue
浏览文件 @
c92f45bf
...
...
@@ -42,11 +42,12 @@
theme_color
:
theme_color
,
data_list_loding_status
:
1
,
data_list_loding_msg
:
this
.
$t
(
'
form.form.bniyyt
'
),
params
:
{},
form_submit_loading
:
false
,
text_num
:
0
,
image_list
:
[],
is_anonymous
:
'
0
'
,
editor_path_type
:
'
'
,
// ----------目前缺少此子段
editor_path_type
:
'
plugins_ask
'
,
};
},
...
...
@@ -59,6 +60,10 @@
onLoad
(
params
)
{
// 调用公共事件方法
app
.
globalData
.
page_event_onload_handle
(
params
);
// 参数记录
this
.
setData
({
params
:
params
||
{}
});
},
onShow
()
{
...
...
@@ -106,6 +111,7 @@
form_submit_loading
:
true
,
});
var
newData
=
{
goods_id
:
this
.
params
.
goods_id
||
0
,
image_list
:
this
.
image_list
,
is_anonymous
:
this
.
is_anonymous
,
...
e
.
detail
.
value
,
...
...
pages/plugins/coin/cash/cash.vue
浏览文件 @
c92f45bf
<
template
>
<view
:class=
"theme_view"
>
<component-nav-back></component-nav-back>
<view
class=
"cash"
>
<scroll-view
:scroll-y=
"true"
class=
"scroll-box"
lower-threshold=
"60"
@
scroll=
"scroll_event"
>
<view
class=
"title flex-col padding-lg"
>
<view
class=
"margin-bottom-xxxl flex-row jc-sb margin-top-xl"
>
<view
v-if=
"accounts_list.length > 0"
class=
"cr-white"
>
<view
class=
"flex-row align-e margin-bottom-main"
>
<view
class=
"flex-row align-c pr coin-dropdown"
@
tap=
"popup_coin_status_open_event"
>
<image
v-if=
"accounts_list[accounts_list_index]['platform_icon']"
:src=
"accounts_list[accounts_list_index]['platform_icon']"
mode=
"widthFix"
class=
"coin-content-list-img round"
/>
<text
class=
"margin-left-xs"
>
{{
accounts_list
[
accounts_list_index
][
'
platform_name
'
]
}}
</text>
<view
class=
"coin-dropdown-icon pa padding-left-xxl"
>
<iconfont
name=
"icon-arrow-bottom"
size=
"24rpx"
color=
"#fff"
></iconfont>
<block
v-if=
"accounts_list.length > 0"
>
<view
class=
"cash"
>
<scroll-view
:scroll-y=
"true"
class=
"scroll-box"
lower-threshold=
"60"
@
scroll=
"scroll_event"
>
<view
class=
"title flex-col padding-lg"
>
<view
class=
"margin-bottom-xxxl flex-row jc-sb margin-top-xl"
>
<view
v-if=
"accounts_list.length > 0"
class=
"cr-white"
>
<view
class=
"flex-row align-e margin-bottom-main"
>
<view
class=
"flex-row align-c pr coin-dropdown"
@
tap=
"popup_coin_status_open_event"
>
<image
v-if=
"accounts_list[accounts_list_index]['platform_icon']"
:src=
"accounts_list[accounts_list_index]['platform_icon']"
mode=
"widthFix"
class=
"coin-content-list-img round"
/>
<text
class=
"margin-left-xs"
>
{{
accounts_list
[
accounts_list_index
][
'
platform_name
'
]
}}
</text>
<view
class=
"coin-dropdown-icon pa padding-left-xxl"
>
<iconfont
name=
"icon-arrow-bottom"
size=
"24rpx"
color=
"#fff"
></iconfont>
</view>
</view>
<view
class=
"text-size-xs fw-b padding-left-main text"
>
可提现币
</view>
</view>
<view
class=
"flex-row align-e"
>
<view
class=
"text-size-40 fw-b"
>
{{
accounts_list
[
accounts_list_index
][
'
normal_coin
'
]
}}
</view>
<view
class=
"padding-left-sm margin-bottom-main cr-grey-d"
>
{{
accounts_list
[
accounts_list_index
][
'
default_symbol
'
]
}}{{
accounts_list
[
accounts_list_index
][
'
default_coin
'
]
}}
</view>
</view>
<view
class=
"text-size-xs fw-b padding-left-main text"
>
可提现币
</view>
</view>
<view
class=
"flex-row align-e"
>
<view
class=
"text-size-40 fw-b"
>
{{
accounts_list
[
accounts_list_index
][
'
normal_coin
'
]
}}
</view>
<view
class=
"padding-left-sm margin-bottom-main cr-grey-d"
>
{{
accounts_list
[
accounts_list_index
][
'
default_symbol
'
]
}}{{
accounts_list
[
accounts_list_index
][
'
default_coin
'
]
}}
</view>
</view>
<view
class=
"detail pa right-0 fw-b cr-white"
data-value=
"/pages/plugins/coin/cash-list/cash-list"
@
tap=
"url_event"
>
提现明细
</view>
</view>
<view
class=
"detail pa right-0 fw-b cr-white"
data-value=
"/pages/plugins/coin/cash-list/cash-list"
@
tap=
"url_event"
>
提现明细
</view>
</view>
</view
>
<view
class=
"content padding
-main"
>
<view
class=
"padding-xxxl bg-white radius-md margin-bottom-main
"
>
<view
class=
"margin-bottom-xxxl"
>
<view
class=
"margin-bottom-main fw-b"
>
提现数量
</view
>
<view
class=
"padding-vertical-main br-b-e flex-row align-c"
>
<input
type=
"digit"
:value=
"coin_num"
class=
"flex-1 flex-width"
placeholder-class=
"text-size-md cr-grey-9"
placeholder=
"请输入"
@
input=
"coin_num_change"
/
>
<
view
@
tap.stop=
"all_cash_event"
>
全部提现
<
/view>
<view
class=
"content padding-main"
>
<view
class=
"padding-xxxl bg-white radius-md margin-bottom
-main"
>
<view
class=
"margin-bottom-xxxl
"
>
<view
class=
"margin-bottom-main fw-b"
>
提现数量
</view
>
<view
class=
"padding-vertical-main br-b-e flex-row align-c"
>
<input
type=
"digit"
:value=
"coin_num"
class=
"flex-1 flex-width"
placeholder-class=
"text-size-md cr-grey-9"
placeholder=
"请输入"
@
input=
"coin_num_change"
/
>
<view
@
tap.stop=
"all_cash_event"
>
全部提现
</view
>
</view>
</view>
</view
>
<view
class=
"margin-bottom-xxxl"
>
<view
class=
"margin-bottom-main"
>
提币地址
</view
>
<view
class=
"recharge-content-input-bg padding-main border-radius-sm flex-row align-c"
>
<
input
type=
"text"
name=
"coin_address"
class=
"padding-right-sm flex-1 flex-width"
:value=
"coin_address"
placeholder-class=
"text-size-md cr-grey-9"
placeholder=
"请输入提币地址"
@
input=
"coin_address_change"
/
>
<view
class=
"margin-bottom-xxxl"
>
<view
class=
"margin-bottom-main"
>
提币地址
</view
>
<view
class=
"recharge-content-input-bg padding-main border-radius-sm flex-row align-c"
>
<input
type=
"text"
name=
"coin_address"
class=
"padding-right-sm flex-1 flex-width"
:value=
"coin_address"
placeholder-class=
"text-size-md cr-grey-9"
placeholder=
"请输入提币地址"
@
input=
"coin_address_change"
/
>
<
/view
>
</view>
</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>
<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>
<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>
</picker>
<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>
</view>
</view
>
<!--
<view
class=
"padding-main bg-white radius-md
"
>
<view
class=
"padding-vertical-sm border-radius-sm flex-row align-c"
>
<text
class=
"text-size fw-b"
>
支付密码
</text
>
<view
class=
"padding-left-lg"
>
<
input
type=
"digit"
name=
"coin"
:value=
"pay_pwd"
placeholder-class=
"text-size-md cr-grey-9"
placeholder=
"请输入支付密码"
/
>
<!--
<view
class=
"padding-main bg-white radius-md"
>
<view
class=
"padding-vertical-sm border-radius-sm flex-row align-c
"
>
<text
class=
"text-size fw-b"
>
支付密码
</text
>
<view
class=
"padding-left-lg"
>
<input
type=
"digit"
name=
"coin"
:value=
"pay_pwd"
placeholder-class=
"text-size-md cr-grey-9"
placeholder=
"请输入支付密码"
/
>
<
/view
>
</view>
</view>
-->
<view
class=
"padding-xxxl"
>
<button
type=
"default"
class=
"cash-btn cr-white round"
@
tap=
"apply_for_cash_event"
>
申请提现
</button>
</view>
</view>
-->
<view
class=
"padding-xxxl"
>
<button
type=
"default"
class=
"cash-btn cr-white round"
@
tap=
"apply_for_cash_event"
>
申请提现
</button>
</view>
</view>
</scroll-view
>
<!-- 虚拟币下拉框 --
>
<component-popup
:propShow=
"popup_coin_status"
propPosition=
"bottom"
@
onclose=
"popup_coin_status_close_event
"
>
<view
class=
"padding-horizontal-main padding-top-main bg-white
"
>
<view
class=
"oh
"
>
<view
class=
"fr"
@
tap.stop=
"popup_coin_status_close_event"
>
<
iconfont
name=
"icon-close-o"
size=
"28rpx"
color=
"#999"
></iconfont
>
</
scroll-
view>
<!-- 虚拟币下拉框 --
>
<component-popup
:propShow=
"popup_coin_status"
propPosition=
"bottom"
@
onclose=
"popup_coin_status_close_event"
>
<view
class=
"padding-horizontal-main padding-top-main bg-white
"
>
<view
class=
"oh
"
>
<view
class=
"fr"
@
tap.stop=
"popup_coin_status_close_event
"
>
<iconfont
name=
"icon-close-o"
size=
"28rpx"
color=
"#999"
></iconfont
>
<
/view
>
</view>
</view
>
<view
class=
"popup_coin_status_container padding-vertical-main flex-col text-size
"
>
<view
class=
"scroll-y
"
>
<view
v-for=
"(item, index) in accounts_list"
:key=
"index"
class=
"flex-row jc-sb align-c padding-vertical-main"
:class=
"accounts_list.length == index + 1 ? '' : 'br-b-f9'"
:data-value=
"item.id"
:data-index=
"index"
@
tap=
"coin_checked_event
"
>
<view
class=
"flex-row align-c"
>
<image
v-if=
"platform_icon"
:src=
"item.platform_icon"
mode=
"widthFix"
class=
"coin-list-img round"
/
>
<
view
class=
"margin-left-sm text-size-md single-text"
>
{{
item
.
platform_name
}}
<
/view>
</
view>
<view
>
<
iconfont
:name=
"accounts_list_index === index ? 'icon-zhifu-yixuan cr-red' : 'icon-zhifu-weixuan'"
size=
"36rpx"
></iconfont
>
<view
class=
"popup_coin_status_container padding-vertical-main flex-col text-size"
>
<view
class=
"scroll-y
"
>
<view
v-for=
"(item, index) in accounts_list"
:key=
"index"
class=
"flex-row jc-sb align-c padding-vertical-main"
:class=
"accounts_list.length == index + 1 ? '' : 'br-b-f9'"
:data-value=
"item.id"
:data-index=
"index"
@
tap=
"coin_checked_event
"
>
<view
class=
"flex-row align-c
"
>
<image
v-if=
"platform_icon"
:src=
"item.platform_icon"
mode=
"widthFix"
class=
"coin-list-img round"
/
>
<view
class=
"margin-left-sm text-size-md single-text"
>
{{
item
.
platform_name
}}
</view
>
</view>
<
view>
<iconfont
:name=
"accounts_list_index === index ? 'icon-zhifu-yixuan cr-red' : 'icon-zhifu-weixuan'"
size=
"36rpx"
></iconfont
>
<
/view
>
</view>
</view>
</view>
</view>
</view>
</component-popup>
</view>
</component-popup>
</view>
</block>
<block
v-else
>
<!-- 提示信息 -->
<component-no-data
:propStatus=
"data_list_loding_status"
:propMsg=
"data_list_loding_msg"
></component-no-data>
</block>
</view>
</
template
>
<
script
>
...
...
@@ -107,6 +113,8 @@
theme_view
:
app
.
globalData
.
get_theme_value_view
(),
wallet_static_url
:
wallet_static_url
,
status_bar_height
:
bar_height
,
data_list_loding_status
:
1
,
data_list_loding_msg
:
''
,
// 虚拟币
coin_num
:
''
,
...
...
@@ -177,11 +185,15 @@
this
.
setData
({
accounts_list
:
data
.
accounts_list
||
[],
network_list
:
data
.
network_list
||
[],
data_list_loding_msg
:
''
,
data_list_loding_status
:
0
,
});
}
else
{
if
(
app
.
globalData
.
is_login_check
(
res
.
data
,
this
,
'
get_data
'
))
{
app
.
globalData
.
showToast
(
res
.
data
.
msg
);
}
this
.
setData
({
data_list_loding_status
:
0
,
data_list_loding_msg
:
res
.
data
.
msg
,
});
app
.
globalData
.
is_login_check
(
res
.
data
,
this
,
'
get_data
'
);
}
},
fail
:
()
=>
{
...
...
pages/plugins/coin/convert/convert.vue
浏览文件 @
c92f45bf
<
template
>
<view
:class=
"theme_view"
>
<view
v-if=
"
coin
_list.length > 0"
>
<view
v-if=
"
accounts
_list.length > 0"
>
<scroll-view
:scroll-y=
"true"
class=
"scroll-box"
lower-threshold=
"60"
@
scroll=
"scroll_event"
>
<view
class=
"padding-main pr"
>
<view
class=
"padding-lg bg-white radius-md margin-bottom-main"
>
<view
class=
"br-f5 margin-bottom-main radius-md padding-lg flex-row jc-sb"
>
<view>
<view
class=
"flex-row align-c pr coin-dropdown"
@
tap=
"popup_coin_status_event(1)"
>
<image
v-if=
"
coin_list[send_accounts_id_index]['platform_icon']"
:src=
"coin
_list[send_accounts_id_index]['platform_icon']"
mode=
"widthFix"
class=
"coin-content-list-img round"
/>
<text
class=
"margin-left-sm fw-b single-text"
>
{{
coin
_list
[
send_accounts_id_index
][
'
platform_name
'
]
}}
</text>
<image
v-if=
"
accounts_list[send_accounts_id_index]['platform_icon']"
:src=
"accounts
_list[send_accounts_id_index]['platform_icon']"
mode=
"widthFix"
class=
"coin-content-list-img round"
/>
<text
class=
"margin-left-sm fw-b single-text"
>
{{
accounts
_list
[
send_accounts_id_index
][
'
platform_name
'
]
}}
</text>
<view
class=
"coin-dropdown-icon pa padding-left-xxl"
>
<iconfont
name=
"icon-arrow-bottom"
size=
"24rpx"
color=
"#666"
></iconfont>
</view>
</view>
<view
class=
"margin-top-main text-size-xs flex-row align-c"
>
<text
class=
"margin-right-sm"
>
余额:
</text><text
class=
"cr-blue"
>
{{
coin_list
[
send_accounts_id_index
][
'
platform_symbol
'
]
}}{{
coin
_list
[
send_accounts_id_index
][
'
normal_coin
'
]
}}
</text>
<text
class=
"margin-right-sm"
>
余额:
</text><text
class=
"cr-blue"
>
{{
accounts_list
[
send_accounts_id_index
][
'
platform_symbol
'
]
}}{{
accounts
_list
[
send_accounts_id_index
][
'
normal_coin
'
]
}}
</text>
</view>
</view>
<view
class=
"coin-num pr flex-col"
>
<input
type=
"digit"
name=
"coin"
:value=
"default_value"
class=
"num input-br text-size"
placeholder-class=
"text-size-sm cr-grey-9"
placeholder=
"请输入"
@
input=
"default_value_change"
/>
<view
class=
"margin-top-main tr text-size-xs"
>
{{
coin_list
[
send_accounts_id_index
][
'
platform_symbol
'
]
}}{{
coin
_list
[
send_accounts_id_index
][
'
default_coin
'
]
}}
</view>
<view
class=
"margin-top-main tr text-size-xs"
>
{{
accounts_list
[
send_accounts_id_index
][
'
platform_symbol
'
]
}}{{
accounts
_list
[
send_accounts_id_index
][
'
default_coin
'
]
}}
</view>
</view>
</view>
<view
class=
"coin-center-convert pa flex-row jc-c align-c"
@
tap=
"coin_center_convert_event(2)"
>
...
...
@@ -28,24 +28,24 @@
<view
class=
"br-f5 margin-bottom-main radius-md padding-lg flex-row jc-sb"
>
<view>
<view
class=
"flex-row align-c pr coin-dropdown"
@
tap=
"popup_coin_status_event"
>
<image
v-if=
"
coin_list[receive_accounts_id_index]['platform_icon']"
:src=
"coin
_list[receive_accounts_id_index]['platform_icon']"
mode=
"widthFix"
class=
"coin-content-list-img round"
/>
<text
class=
"margin-left-sm fw-b single-text"
>
{{
coin
_list
[
receive_accounts_id_index
][
'
platform_name
'
]
}}
</text>
<image
v-if=
"
accounts_list[receive_accounts_id_index]['platform_icon']"
:src=
"accounts
_list[receive_accounts_id_index]['platform_icon']"
mode=
"widthFix"
class=
"coin-content-list-img round"
/>
<text
class=
"margin-left-sm fw-b single-text"
>
{{
accounts
_list
[
receive_accounts_id_index
][
'
platform_name
'
]
}}
</text>
<view
class=
"coin-dropdown-icon pa padding-left-xxl"
>
<iconfont
name=
"icon-arrow-bottom"
size=
"24rpx"
color=
"#666"
></iconfont>
</view>
</view>
<view
class=
"margin-top-main text-size-xs flex-row align-c"
>
<text
class=
"margin-right-sm"
>
余额:
</text><text
class=
"cr-blue"
>
{{
coin_list
[
receive_accounts_id_index
][
'
platform_symbol
'
]
}}{{
coin
_list
[
receive_accounts_id_index
][
'
normal_coin
'
]
}}
</text>
<text
class=
"margin-right-sm"
>
余额:
</text><text
class=
"cr-blue"
>
{{
accounts_list
[
receive_accounts_id_index
][
'
platform_symbol
'
]
}}{{
accounts
_list
[
receive_accounts_id_index
][
'
normal_coin
'
]
}}
</text>
</view>
</view>
<view
class=
"coin-num pr flex-col"
>
<input
type=
"digit"
:value=
"convert_value"
class=
"num text-size"
placeholder-class=
"text-size-sm cr-grey-9"
disabled
/>
<view
class=
"margin-top-main tr text-size-xs"
>
{{
coin_list
[
receive_accounts_id_index
][
'
platform_symbol
'
]
}}{{
coin
_list
[
receive_accounts_id_index
][
'
default_coin
'
]
}}
</view>
<view
class=
"margin-top-main tr text-size-xs"
>
{{
accounts_list
[
receive_accounts_id_index
][
'
platform_symbol
'
]
}}{{
accounts
_list
[
receive_accounts_id_index
][
'
default_coin
'
]
}}
</view>
</view>
</view>
<view
class=
"flex-row align-c"
>
<iconfont
name=
"icon-recharge"
color=
"#333"
size=
"32rpx"
></iconfont>
<view
class=
"margin-left-sm"
>
{{
default_value
||
0
}}
*
{{
coin_list
[
send_accounts_id_index
][
'
platform_rate
'
]
}}
=
{{
Math
.
round
(
default_value
*
coin
_list
[
receive_accounts_id_index
][
'
platform_rate
'
]
*
100
)
/
100
}}
</view>
<view
class=
"margin-left-sm"
>
{{
default_value
||
0
}}
*
{{
accounts_list
[
send_accounts_id_index
][
'
platform_rate
'
]
}}
=
{{
Math
.
round
(
default_value
*
accounts
_list
[
receive_accounts_id_index
][
'
platform_rate
'
]
*
100
)
/
100
}}
</view>
</view>
</view>
<!--
<view
class=
"padding-main bg-white radius-md margin-bottom-xxxxl flex-row align-c"
>
...
...
@@ -67,7 +67,7 @@
</view>
<view
class=
"popup_coin_status_container padding-vertical-main flex-col text-size"
>
<view
class=
"scroll-y"
>
<view
v-for=
"(item, index) in
coin_list"
:key=
"index"
class=
"flex-row jc-sb align-c padding-vertical-main"
:class=
"coin
_list.length == index + 1 ? '' : 'br-b-f9'"
:data-value=
"item.id"
:data-index=
"index"
@
tap=
"coin_checked_event"
>
<view
v-for=
"(item, index) in
accounts_list"
:key=
"index"
class=
"flex-row jc-sb align-c padding-vertical-main"
:class=
"accounts
_list.length == index + 1 ? '' : 'br-b-f9'"
:data-value=
"item.id"
:data-index=
"index"
@
tap=
"coin_checked_event"
>
<view
class=
"flex-row align-c"
>
<image
v-if=
"item.platform_icon"
:src=
"item.platform_icon"
mode=
"widthFix"
class=
"coin-list-img round"
/>
<view
class=
"margin-left-sm text-size-md single-text"
>
{{
item
.
platform_name
}}
</view>
...
...
@@ -81,6 +81,10 @@
</view>
</component-popup>
</view>
<view
v-else
>
<!-- 提示信息 -->
<component-no-data
:propStatus=
"data_list_loding_status"
:propMsg=
"data_list_loding_msg"
></component-no-data>
</view>
</view>
</
template
>
<
script
>
...
...
@@ -98,6 +102,8 @@
return
{
theme_view
:
app
.
globalData
.
get_theme_value_view
(),
wallet_static_url
:
wallet_static_url
,
data_list_loding_status
:
1
,
data_list_loding_msg
:
''
,
// 虚拟币状态
coin_type
:
1
,
...
...
@@ -109,16 +115,7 @@
send_accounts_id
:
0
,
receive_accounts_id
:
0
,
popup_coin_status
:
false
,
coin_list
:
[
// {
// name: 'BTC',
// img: wallet_static_url + 'user-head-bg.png',
// },
// {
// name: 'USDT-polygon',
// img: wallet_static_url + 'user-head-bg.png',
// },
],
accounts_list
:
[],
// 是否转换
convert_bool
:
false
,
// 输入默认币
...
...
@@ -173,12 +170,14 @@
uni
.
stopPullDownRefresh
();
if
(
res
.
data
.
code
==
0
)
{
var
data
=
res
.
data
.
data
;
var
send_accounts
=
data
.
send_accounts
||
null
;
var
receive_accounts
=
data
.
receive_accounts
||
null
;
this
.
setData
({
data_base
:
data
.
base
||
null
,
coin
_list
:
data
.
accounts_list
||
[],
accounts
_list
:
data
.
accounts_list
||
[],
convert_value
:
data
.
convert_value
||
'
0
'
,
send_accounts_id
:
data
.
send_accounts
.
id
,
receive_accounts_id
:
data
.
receive_accounts
.
id
,
send_accounts_id
:
(
send_accounts
==
null
)
?
0
:
send_accounts
.
id
,
receive_accounts_id
:
(
receive_accounts
==
null
)
?
0
:
receive_accounts
.
id
,
data_list_loding_msg
:
''
,
data_list_loding_status
:
0
,
});
...
...
@@ -190,12 +189,10 @@
}
}
else
{
this
.
setData
({
data_list_loding_status
:
2
,
data_list_loding_status
:
0
,
data_list_loding_msg
:
res
.
data
.
msg
,
});
if
(
app
.
globalData
.
is_login_check
(
res
.
data
,
this
,
'
get_data
'
))
{
app
.
globalData
.
showToast
(
res
.
data
.
msg
);
}
app
.
globalData
.
is_login_check
(
res
.
data
,
this
,
'
get_data
'
);
}
},
fail
:
()
=>
{
...
...
@@ -257,7 +254,7 @@
default_value_change
(
e
)
{
this
.
setData
({
default_value
:
e
.
detail
.
value
,
convert_value
:
Math
.
round
(
e
.
detail
.
value
*
this
.
coin
_list
[
this
.
receive_accounts_id_index
][
'
platform_rate
'
]
*
100
)
/
100
,
convert_value
:
Math
.
round
(
e
.
detail
.
value
*
this
.
accounts
_list
[
this
.
receive_accounts_id_index
][
'
platform_rate
'
]
*
100
)
/
100
,
});
},
...
...
pages/plugins/coin/recharge-list/recharge-list.vue
浏览文件 @
c92f45bf
...
...
@@ -243,7 +243,7 @@
});
}
}
else
{
if
(
app
.
globalData
.
is_login_check
(
res
.
data
,
this
,
'
get_data
_list
'
))
{
if
(
app
.
globalData
.
is_login_check
(
res
.
data
,
this
,
'
get_data
'
))
{
app
.
globalData
.
showToast
(
res
.
data
.
msg
);
}
}
...
...
pages/plugins/coin/recharge/recharge.vue
浏览文件 @
c92f45bf
<
template
>
<view
:class=
"theme_view"
>
<component-nav-back></component-nav-back>
<scroll-view
:scroll-y=
"true"
class=
"scroll-box"
lower-threshold=
"60"
@
scroll=
"scroll_event"
>
<view
class=
"recharge-title flex-col padding-lg"
>
<view
v-if=
"accounts_list.length > 0"
class=
"margin-bottom-xxxl flex-row jc-sb margin-top-xl"
>
<view
class=
"cr-white flex-1 flex-width"
>
<view
class=
"coin-dropdown margin-bottom-main"
>
<view
class=
"flex-row align-c pr"
@
tap=
"popup_coin_status_open_event"
>
<image
v-if=
"accounts_list[accounts_list_index]['platform_icon']"
:src=
"accounts_list[accounts_list_index]['platform_icon']"
mode=
"widthFix"
class=
"coin-content-list-img round"
/>
<text
class=
"margin-left-xs"
>
{{
accounts_list
[
accounts_list_index
][
'
platform_name
'
]
}}
</text>
<view
class=
"coin-dropdown-icon pa padding-left-xxl"
>
<iconfont
name=
"icon-arrow-bottom"
size=
"24rpx"
color=
"#fff"
></iconfont>
<block
v-if=
"accounts_list.length > 0"
>
<scroll-view
:scroll-y=
"true"
class=
"scroll-box"
lower-threshold=
"60"
@
scroll=
"scroll_event"
>
<view
class=
"recharge-title flex-col padding-lg"
>
<view
v-if=
"accounts_list.length > 0"
class=
"margin-bottom-xxxl flex-row jc-sb margin-top-xl"
>
<view
class=
"cr-white flex-1 flex-width"
>
<view
class=
"coin-dropdown margin-bottom-main"
>
<view
class=
"flex-row align-c pr"
@
tap=
"popup_coin_status_open_event"
>
<image
v-if=
"accounts_list[accounts_list_index]['platform_icon']"
:src=
"accounts_list[accounts_list_index]['platform_icon']"
mode=
"widthFix"
class=
"coin-content-list-img round"
/>
<text
class=
"margin-left-xs"
>
{{
accounts_list
[
accounts_list_index
][
'
platform_name
'
]
}}
</text>
<view
class=
"coin-dropdown-icon pa padding-left-xxl"
>
<iconfont
name=
"icon-arrow-bottom"
size=
"24rpx"
color=
"#fff"
></iconfont>
</view>
</view>
</view>
<view
class=
"text-size-xl fw-b single-text"
>
{{
accounts_list
[
accounts_list_index
][
'
normal_coin
'
]
}}
</view>
</view>
<view
class=
"recharge-qrcode"
>
<block
v-if=
"recharge_qrcode"
>
<image
:src=
"recharge_qrcode"
mode=
"widthFix"
class=
"img margin-right-xs circle"
:data-value=
"recharge_qrcode"
@
tap=
"recharge_qrcode_event"
/>
</block>
<block
v-else
>
<iconfont
name=
"icon-qrcode"
size=
"160rpx"
color=
"#f6f6f6"
></iconfont>
</block>
</view>
<view
class=
"text-size-xl fw-b single-text"
>
{{
accounts_list
[
accounts_list_index
][
'
normal_coin
'
]
}}
</view>
</view>
<view
class=
"recharge-qrcode"
>
<block
v-if=
"recharge_qrcode"
>
<image
:src=
"recharge_qrcode"
mode=
"widthFix"
class=
"img margin-right-xs circle"
:data-value=
"recharge_qrcode"
@
tap=
"recharge_qrcode_event"
/>
</block>
<block
v-else
>
<iconfont
name=
"icon-qrcode"
size=
"160rpx"
color=
"#f6f6f6"
></iconfont>
</block>
</view>
</view>
</view
>
<view
class=
"recharge-content padding-xxl bg-white
"
>
<view
class=
"margin-bottom-xxxl"
>
<view
class=
"margin-bottom-main"
>
充币地址
</view
>
<view
class=
"recharge-content-input-bg padding-main border-radius-sm flex-row align-c"
>
<view
class=
"single-text padding-right-sm flex-1 flex-width"
>
{{
recharge_address
}}
</view
>
<view
@
tap.stop=
"text_copy_event"
:data-value=
"recharge_address"
>
<
iconfont
name=
"icon-copy"
size=
"24rpx"
color=
"#999"
></iconfont
>
<view
class=
"recharge-content padding-xxl bg-white"
>
<view
class=
"margin-bottom-xxxl
"
>
<view
class=
"margin-bottom-main"
>
充币地址
</view
>
<view
class=
"recharge-content-input-bg padding-main border-radius-sm flex-row align-c"
>
<view
class=
"single-text padding-right-sm flex-1 flex-width"
>
{{
recharge_address
}}
</view
>
<view
@
tap.stop=
"text_copy_event"
:data-value=
"recharge_address"
>
<iconfont
name=
"icon-copy"
size=
"24rpx"
color=
"#999"
></iconfont
>
<
/view
>
</view>
</view>
</view>
<view
v-if=
"network_list.length > 0"
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
v-if=
"network_list.length > 0"
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>
</view>
<view
class=
"margin-bottom-xxxl"
>
<view
class=
"margin-bottom-xs"
>
选择充值币
</view>
<view
class=
"flex-row flex-warp recharge-price-item margin-bottom-xs"
>
<view
v-for=
"(item, index) in preset_data"
:key=
"index"
class=
"recharge-price-list flex-col align-c jc-c pr"
:class=
"preset_data_index === index ? 'active' : ''"
:data-index=
"index"
:data-value=
"item.value"
@
tap=
"preset_data_change"
>
<view
class=
"flex-row align-c jc-c"
>
<image
:src=
"wallet_static_url + 'recharge-price.png'"
mode=
"widthFix"
class=
"recharge-price-img round"
/>
<view
class=
"margin-left-xs recharge-price-name"
>
{{
item
.
value
}}
</view>
</view>
<view
class=
"margin-top-sm cr-grey-9 text-size-xs"
>
10000
</view>
<view
v-if=
"item.tips"
class=
"recharge-price-badge text-size-xss cr-white single-text"
>
{{
item
.
tips
}}
</view>
</view>
</view>
</picker>
</view>
<view
class=
"margin-bottom-xxxl"
>
<view
class=
"margin-bottom-xs"
>
选择充值币
</view>
<view
class=
"flex-row flex-warp recharge-price-item margin-bottom-xs"
>
<view
v-for=
"(item, index) in preset_data"
:key=
"index"
class=
"recharge-price-list flex-col align-c jc-c pr"
:class=
"preset_data_index === index ? 'active' : ''"
:data-index=
"index"
:data-value=
"item.value"
@
tap=
"preset_data_change"
>
<view
class=
"flex-row align-c jc-c"
>
<image
:src=
"wallet_static_url + 'recharge-price.png'"
mode=
"widthFix"
class=
"recharge-price-img round"
/>
<view
class=
"margin-left-xs recharge-price-name"
>
{{
item
.
value
}}
</view>
<view
class=
"recharge-content-input-bg padding-main border-radius-sm flex-row align-c margin-bottom-xxl"
>
<text>
其他数量
</text>
<view
class=
"padding-left-lg"
>
<input
type=
"digit"
name=
"coin"
:value=
"recharge_num"
placeholder-class=
"text-size-md cr-grey-9"
placeholder=
"请输入充值数量"
@
input=
"recharge_num_change"
/>
</view>
<view
class=
"margin-top-sm cr-grey-9 text-size-xs"
>
10000
</view>
<view
v-if=
"item.tips"
class=
"recharge-price-badge text-size-xss cr-white single-text"
>
{{
item
.
tips
}}
</view>
</view>
<button
type=
"default"
class=
"recharge-btn cr-white round"
@
tap=
"recharge_submit"
>
立即充值
</button>
</view>
<view
class=
"recharge-content-input-bg padding-main border-radius-sm flex-row align-c margin-bottom-
xxl"
>
<
text>
其他数量
</text
>
<view
class=
"
padding-left-lg
"
>
<
input
type=
"digit"
name=
"coin"
:value=
"recharge_num"
placeholder-class=
"text-size-md cr-grey-9"
placeholder=
"请输入充值数量"
@
input=
"recharge_num_change"
/
>
<view
v-if=
"recharge_desc.length > 0"
class=
"margin-bottom-x
xxl"
>
<
view
class=
"margin-bottom-main"
>
充值说明:
</view
>
<view
class=
"
recharge-content-tips
"
>
<
view
v-for=
"(item, index) in recharge_desc"
:key=
"index"
class=
"item pr padding-left-xl margin-bottom-sm cr-grey-9 text-size-xs"
>
{{
item
}}
</view
>
</view>
</view>
<button
type=
"default"
class=
"recharge-btn cr-white round"
@
tap=
"recharge_submit"
>
立即充值
</button>
</view>
<view
v-if=
"recharge_desc.length > 0"
class=
"margin-bottom-xxxl"
>
<view
class=
"margin-bottom-main"
>
充值说明:
</view>
<view
class=
"recharge-content-tips"
>
<view
v-for=
"(item, index) in recharge_desc"
:key=
"index"
class=
"item pr padding-left-xl margin-bottom-sm cr-grey-9 text-size-xs"
>
{{
item
}}
</view>
</view>
</view>
</view>
</scroll-view>
<!-- 虚拟币下拉框 -->
<component-popup
:propShow=
"popup_coin_status"
propPosition=
"bottom"
@
onclose=
"popup_coin_status_close_event"
>
<view
class=
"padding-horizontal-main padding-top-main bg-white"
>
<view
class=
"oh"
>
<view
class=
"fr"
@
tap.stop=
"popup_coin_status_close_event"
>
<iconfont
name=
"icon-close-o"
size=
"28rpx"
color=
"#999"
></iconfont>
</scroll-view>
<!-- 虚拟币下拉框 -->
<component-popup
:propShow=
"popup_coin_status"
propPosition=
"bottom"
@
onclose=
"popup_coin_status_close_event"
>
<view
class=
"padding-horizontal-main padding-top-main bg-white"
>
<view
class=
"oh"
>
<view
class=
"fr"
@
tap.stop=
"popup_coin_status_close_event"
>
<iconfont
name=
"icon-close-o"
size=
"28rpx"
color=
"#999"
></iconfont>
</view>
</view>
</view
>
<view
class=
"popup_coin_status_container padding-vertical-main flex-col text-size
"
>
<view
class=
"scroll-y
"
>
<view
v-for=
"(item, index) in accounts_list"
:key=
"index"
class=
"flex-row jc-sb align-c padding-vertical-main"
:class=
"accounts_list.length == index + 1 ? '' : 'br-b-f9'"
:data-value=
"item"
:data-index=
"index"
@
tap=
"coin_checked_event
"
>
<view
class=
"flex-row align-c"
>
<image
v-if=
"item.platform_icon"
:src=
"item.platform_icon"
mode=
"widthFix"
class=
"coin-list-img round"
/
>
<
view
class=
"margin-left-sm text-size-md single-text"
>
{{
item
.
platform_name
}}
<
/view>
</
view>
<view
>
<
iconfont
:name=
"accounts_list_index === index ? 'icon-zhifu-yixuan cr-red' : 'icon-zhifu-weixuan'"
size=
"36rpx"
></iconfont
>
<view
class=
"popup_coin_status_container padding-vertical-main flex-col text-size"
>
<view
class=
"scroll-y
"
>
<view
v-for=
"(item, index) in accounts_list"
:key=
"index"
class=
"flex-row jc-sb align-c padding-vertical-main"
:class=
"accounts_list.length == index + 1 ? '' : 'br-b-f9'"
:data-value=
"item"
:data-index=
"index"
@
tap=
"coin_checked_event
"
>
<view
class=
"flex-row align-c
"
>
<image
v-if=
"item.platform_icon"
:src=
"item.platform_icon"
mode=
"widthFix"
class=
"coin-list-img round"
/
>
<view
class=
"margin-left-sm text-size-md single-text"
>
{{
item
.
platform_name
}}
</view
>
</view>
<
view>
<iconfont
:name=
"accounts_list_index === index ? 'icon-zhifu-yixuan cr-red' : 'icon-zhifu-weixuan'"
size=
"36rpx"
></iconfont
>
<
/view
>
</view>
</view>
</view>
</view>
</view>
</component-popup>
</component-popup>
</block>
<block
v-else
>
<!-- 提示信息 -->
<component-no-data
:propStatus=
"data_list_loding_status"
:propMsg=
"data_list_loding_msg"
></component-no-data>
</block>
</view>
</
template
>
<
script
>
const
app
=
getApp
();
import
componentNavBack
from
'
@/components/nav-back/nav-back
'
;
import
componentNoData
from
'
@/components/no-data/no-data
'
;
import
componentPopup
from
'
@/components/popup/popup
'
;
var
wallet_static_url
=
app
.
globalData
.
get_static_url
(
'
coin
'
,
true
)
+
'
app/
'
;
// 状态栏高度
...
...
@@ -113,6 +120,8 @@
theme_view
:
app
.
globalData
.
get_theme_value_view
(),
wallet_static_url
:
wallet_static_url
,
status_bar_height
:
bar_height
,
data_list_loding_status
:
1
,
data_list_loding_msg
:
''
,
// 付款码
recharge_qrcode
:
''
,
...
...
@@ -140,6 +149,7 @@
components
:
{
componentNavBack
,
componentNoData
,
componentPopup
,
},
props
:
{},
...
...
@@ -180,7 +190,6 @@
dataType
:
'
json
'
,
success
:
(
res
)
=>
{
uni
.
stopPullDownRefresh
();
console
.
log
(
res
.
data
.
data
);
if
(
res
.
data
.
code
==
0
)
{
var
data
=
res
.
data
.
data
;
this
.
setData
({
...
...
@@ -190,15 +199,23 @@
recharge_address
:
data
.
recharge_address
||
''
,
recharge_desc
:
data
.
recharge_desc
||
[],
preset_data
:
data
.
preset_data
||
[],
data_list_loding_msg
:
''
,
data_list_loding_status
:
0
,
});
}
else
{
if
(
app
.
globalData
.
is_login_check
(
res
.
data
,
this
,
'
get_data
'
))
{
app
.
globalData
.
showToast
(
res
.
data
.
msg
);
}
this
.
setData
({
data_list_loding_status
:
0
,
data_list_loding_msg
:
res
.
data
.
msg
,
});
app
.
globalData
.
is_login_check
(
res
.
data
,
this
,
'
get_data
'
);
}
},
fail
:
()
=>
{
uni
.
stopPullDownRefresh
();
this
.
setData
({
data_list_loding_status
:
2
,
data_list_loding_msg
:
this
.
$t
(
'
common.internet_error_tips
'
),
});
app
.
globalData
.
showToast
(
this
.
$t
(
'
common.internet_error_tips
'
));
},
});
...
...
pages/plugins/coin/user/user.vue
浏览文件 @
c92f45bf
...
...
@@ -58,6 +58,10 @@
</view>
</view>
</view>
<view
v-else
>
<!-- 提示信息 -->
<component-no-data
propStatus=
"0"
></component-no-data>
</view>
</scroll-view>
<!-- 明细 -->
<component-popup
:propShow=
"popup_user_detail_status"
propPosition=
"bottom"
@
onclose=
"popup_user_detail_close_event"
>
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录