1.转账
parent
8bc1558637
commit
3c41e12b72
|
|
@ -0,0 +1,217 @@
|
|||
<!-- 转账 -->
|
||||
<template>
|
||||
<view>
|
||||
<!-- 列表 -->
|
||||
<view v-if="data_list.length > 0" class="data-list">
|
||||
<view v-for="(item, index) in data_list" :key="index" class="item padding-main border-radius-main oh bg-white spacing-mb">
|
||||
<view class="base oh br-b-dashed padding-bottom-main flex-row jc-sb align-c">
|
||||
<text>转账时间</text>
|
||||
<text class="cr-grey-9">{{ item.add_time }}</text>
|
||||
</view>
|
||||
<view class="content margin-top">
|
||||
<navigator :url="'/pages/plugins/wallet/user-cash-detail/user-cash-detail?id=' + item.id" hover-class="none">
|
||||
<block v-for="(fv, fi) in content_list" :key="fi">
|
||||
<view class="single-text margin-top-sm transfer-item">
|
||||
<text class="name cr-grey-9 margin-right-main dis-inline-block">{{ fv.name }}:</text>
|
||||
<text class="fw-b">{{ item[fv.field] }}</text>
|
||||
<text v-if="(fv.unit || null) != null" class="fw-b">{{ fv.unit }}</text>
|
||||
</view>
|
||||
</block>
|
||||
</navigator>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view v-else>
|
||||
<!-- 提示信息 -->
|
||||
<component-no-data :propStatus="data_list_loding_status"></component-no-data>
|
||||
</view>
|
||||
|
||||
<!-- 结尾 -->
|
||||
<component-bottom-line :propStatus="data_bottom_line_status"></component-bottom-line>
|
||||
</view>
|
||||
</template>
|
||||
<script>
|
||||
const app = getApp();
|
||||
import componentNoData from '@/components/no-data/no-data';
|
||||
import componentBottomLine from '@/components/bottom-line/bottom-line';
|
||||
|
||||
export default {
|
||||
props: {
|
||||
propPullDownRefresh: {
|
||||
type: Boolean,
|
||||
default: false,
|
||||
},
|
||||
propScrollLower: {
|
||||
type: Boolean,
|
||||
default: false,
|
||||
},
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
data_list: [],
|
||||
data_total: 0,
|
||||
data_page_total: 0,
|
||||
data_page: 1,
|
||||
data_list_loding_status: 1,
|
||||
data_bottom_line_status: false,
|
||||
data_is_loading: 0,
|
||||
params: null,
|
||||
content_list: [
|
||||
{ name: '收款人', field: 'transfer_no' },
|
||||
{ name: '转账金额', field: 'money', unit: '元' },
|
||||
{ name: '转账备注', field: 'note' },
|
||||
],
|
||||
};
|
||||
},
|
||||
|
||||
components: {
|
||||
componentNoData,
|
||||
componentBottomLine,
|
||||
},
|
||||
created() {
|
||||
this.init();
|
||||
},
|
||||
mounted() {
|
||||
// 分享菜单处理
|
||||
app.globalData.page_share_handle();
|
||||
},
|
||||
watch: {
|
||||
propPullDownRefresh(newVal, oldVal) {
|
||||
if (newVal !== oldVal) {
|
||||
this.setData({
|
||||
data_page: 1,
|
||||
});
|
||||
this.get_data_list(1);
|
||||
}
|
||||
},
|
||||
propScrollLower(newVal, oldVal) {
|
||||
if (newVal !== oldVal) {
|
||||
this.get_data_list();
|
||||
}
|
||||
},
|
||||
},
|
||||
|
||||
methods: {
|
||||
init() {
|
||||
var user = app.globalData.get_user_info(this, 'init');
|
||||
if (user != false) {
|
||||
// 用户未绑定用户则转到登录页面
|
||||
if (app.globalData.user_is_need_login(user)) {
|
||||
uni.redirectTo({
|
||||
url: '/pages/login/login?event_callback=init',
|
||||
});
|
||||
return false;
|
||||
} else {
|
||||
// 获取数据
|
||||
this.get_data_list();
|
||||
}
|
||||
} else {
|
||||
this.setData({
|
||||
data_list_loding_status: 0,
|
||||
data_bottom_line_status: false,
|
||||
});
|
||||
}
|
||||
},
|
||||
|
||||
// 获取数据
|
||||
get_data_list(is_mandatory) {
|
||||
// 分页是否还有数据
|
||||
if ((is_mandatory || 0) == 0) {
|
||||
if (this.data_bottom_line_status == true) {
|
||||
uni.stopPullDownRefresh();
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
// 是否加载中
|
||||
if (this.data_is_loading == 1) {
|
||||
return false;
|
||||
}
|
||||
this.setData({
|
||||
data_is_loading: 1,
|
||||
data_list_loding_status: 1,
|
||||
});
|
||||
|
||||
// 加载loding
|
||||
uni.showLoading({
|
||||
title: '加载中...',
|
||||
});
|
||||
|
||||
// 获取数据
|
||||
uni.request({
|
||||
url: app.globalData.get_request_url('index', 'transfer', 'wallet'),
|
||||
method: 'POST',
|
||||
data: {
|
||||
page: this.data_page,
|
||||
},
|
||||
dataType: 'json',
|
||||
success: (res) => {
|
||||
uni.hideLoading();
|
||||
uni.stopPullDownRefresh();
|
||||
if (res.data.code == 0) {
|
||||
if (res.data.data.data.length > 0) {
|
||||
if (this.data_page <= 1) {
|
||||
var temp_data_list = res.data.data.data;
|
||||
} else {
|
||||
var temp_data_list = this.data_list || [];
|
||||
var temp_data = res.data.data.data;
|
||||
for (var i in temp_data) {
|
||||
temp_data_list.push(temp_data[i]);
|
||||
}
|
||||
}
|
||||
this.setData({
|
||||
data_list: temp_data_list,
|
||||
data_total: res.data.data.total,
|
||||
data_page_total: res.data.data.page_total,
|
||||
data_list_loding_status: 3,
|
||||
data_page: this.data_page + 1,
|
||||
data_is_loading: 0,
|
||||
});
|
||||
|
||||
// 是否还有数据
|
||||
this.setData({
|
||||
data_bottom_line_status: this.data_page > 1 && this.data_page > this.data_page_total,
|
||||
});
|
||||
} else {
|
||||
this.setData({
|
||||
data_list_loding_status: 0,
|
||||
data_list: [],
|
||||
data_bottom_line_status: false,
|
||||
data_is_loading: 0,
|
||||
});
|
||||
}
|
||||
} else {
|
||||
this.setData({
|
||||
data_list_loding_status: 0,
|
||||
data_is_loading: 0,
|
||||
});
|
||||
if (app.globalData.is_login_check(res.data, this, 'get_data_list')) {
|
||||
app.globalData.showToast(res.data.msg);
|
||||
}
|
||||
}
|
||||
},
|
||||
fail: () => {
|
||||
uni.hideLoading();
|
||||
uni.stopPullDownRefresh();
|
||||
this.setData({
|
||||
data_list_loding_status: 2,
|
||||
data_is_loading: 0,
|
||||
});
|
||||
app.globalData.showToast('服务器请求出错');
|
||||
},
|
||||
});
|
||||
},
|
||||
},
|
||||
};
|
||||
</script>
|
||||
<style scoped>
|
||||
.nav-child .item {
|
||||
height: 60rpx;
|
||||
line-height: 60rpx;
|
||||
padding: 0 30rpx;
|
||||
min-width: 84rpx;
|
||||
}
|
||||
.transfer-item .name {
|
||||
min-width: 112rpx;
|
||||
}
|
||||
</style>
|
||||
|
|
@ -17,8 +17,8 @@
|
|||
<view class="content margin-top">
|
||||
<navigator :url="'/pages/plugins/wallet/user-cash-detail/user-cash-detail?id=' + item.id" hover-class="none">
|
||||
<block v-for="(fv, fi) in content_list" :key="fi">
|
||||
<view class="single-text margin-top-sm">
|
||||
<text class="cr-grey-9 margin-right-main">{{ fv.name }}</text>
|
||||
<view class="single-text margin-top-sm cash">
|
||||
<text class="name cr-grey-9 margin-right-main">{{ fv.name }}:</text>
|
||||
<text class="fw-b">{{ item[fv.field] }}</text>
|
||||
<text v-if="(fv.unit || null) != null" class="fw-b">{{ fv.unit }}</text>
|
||||
</view>
|
||||
|
|
@ -237,4 +237,7 @@
|
|||
padding: 0 30rpx;
|
||||
min-width: 84rpx;
|
||||
}
|
||||
.cash-item .name {
|
||||
min-width: 112rpx;
|
||||
}
|
||||
</style>
|
||||
|
|
|
|||
|
|
@ -17,8 +17,8 @@
|
|||
<view class="content margin-top">
|
||||
<navigator :url="'/pages/plugins/wallet/user-recharge-detail/user-recharge-detail?id=' + item.id" hover-class="none">
|
||||
<block v-for="(fv, fi) in content_list" :key="fi">
|
||||
<view class="single-text margin-top-sm">
|
||||
<text class="cr-grey-9 margin-right-main">{{ fv.name }}</text>
|
||||
<view class="single-text margin-top-sm recharge-item">
|
||||
<text class="name cr-grey-9 margin-right-main">{{ fv.name }}:</text>
|
||||
<text class="fw-b">{{ item[fv.field] }}</text>
|
||||
<text v-if="(fv.unit || null) != null" class="fw-b">{{ fv.unit }}</text>
|
||||
</view>
|
||||
|
|
@ -390,4 +390,7 @@
|
|||
width: 50rpx;
|
||||
height: 50rpx !important;
|
||||
}
|
||||
.recharge-item .name {
|
||||
min-width: 112rpx;
|
||||
}
|
||||
</style>
|
||||
|
|
|
|||
|
|
@ -17,8 +17,8 @@
|
|||
<view class="content margin-top-main">
|
||||
<navigator :url="'/pages/plugins/wallet/wallet-log-detail/wallet-log-detail?id=' + item.id" hover-class="none">
|
||||
<block v-for="(fv, fi) in content_list" :key="fi">
|
||||
<view class="single-text margin-top-sm">
|
||||
<text class="cr-grey-9 margin-right-main">{{ fv.name }}:</text>
|
||||
<view class="single-text margin-top-sm log-item">
|
||||
<text class="name cr-grey-9 margin-right-main">{{ fv.name }}:</text>
|
||||
<text class="fw-b">{{ item[fv.field] }}</text>
|
||||
<text v-if="(fv.unit || null) != null" class="fw-b">{{ fv.unit }}</text>
|
||||
</view>
|
||||
|
|
@ -239,4 +239,7 @@
|
|||
padding: 0 30rpx;
|
||||
min-width: 84rpx;
|
||||
}
|
||||
.log-item .name {
|
||||
min-width: 112rpx;
|
||||
}
|
||||
</style>
|
||||
|
|
|
|||
|
|
@ -574,6 +574,13 @@
|
|||
"enablePullDownRefresh": false,
|
||||
"navigationBarTitleText": "钱包付款码"
|
||||
}
|
||||
},
|
||||
{
|
||||
"path": "transfer/transfer",
|
||||
"style": {
|
||||
"enablePullDownRefresh": false,
|
||||
"navigationBarTitleText": "转账"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
|
|
|
|||
|
|
@ -0,0 +1,15 @@
|
|||
.img {
|
||||
width: 60rpx;
|
||||
height: 60rpx;
|
||||
}
|
||||
|
||||
.buy-submit {
|
||||
height: 88rpx;
|
||||
line-height: 88rpx;
|
||||
}
|
||||
|
||||
.error-msg {
|
||||
color: #FF6C6C;
|
||||
height: 34rpx;
|
||||
line-height: 34rpx;
|
||||
}
|
||||
|
|
@ -0,0 +1,201 @@
|
|||
<!-- 转账支付页 -->
|
||||
<template>
|
||||
<view class="padding-main">
|
||||
<block v-if="(data || null) != null">
|
||||
<form @submit="form_submit" class="form-container">
|
||||
<view class="border-radius-main bg-white padding-vertical-main padding-left-main flex-row" :class="is_error_msg ? '' : 'spacing-mb'">
|
||||
<view class="title fw-b text-size margin-right-main">收款账号</view>
|
||||
<view class="flex-1 flex-width padding-right-main">
|
||||
<view class="flex-row jc-sb align-c">
|
||||
<input name="keywords" :value="inputClearValue" class="text-size-md pr top-sm flex-1 flex-width" placeholder="请输入用户ID/会员码/用户名/手机/邮箱" placeholder-class="cr-grey-c" @input="input_account_event" />
|
||||
<text class="cr-main pr top-xs margin-left-sm" @tap="search_account_event">确认</text>
|
||||
</view>
|
||||
<view v-if="(receive_user || null) != null && inputClearValue" class="br-t-e padding-top-main margin-top-main flex-row align-c">
|
||||
<image :src="receive_user.avatar" mode="widthFix" class="img margin-right-xs circle" />
|
||||
<text class="text-size-xs">{{ receive_user.username }}</text>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view v-if="is_error_msg" class="error-msg text-size-xs padding-vertical-xs">{{ error_msg }}</view>
|
||||
<view class="border-radius-main bg-white padding-main spacing-mb">
|
||||
<view class="title fw-b text-size margin-bottom-xxxl padding-bottom-xl">转账金额</view>
|
||||
<input name="money" type="number" class="text-size-xl tc cr-red" placeholder="请输入转账金额" placeholder-class="cr-grey-c" />
|
||||
<view class="tc spacing-mt-10 margin-bottom-xxxl padding-bottom-main">
|
||||
<text class="cr-grey-9">我的余额:</text>
|
||||
<text class="fw-b">{{ data.normal_money }}元</text>
|
||||
</view>
|
||||
<input name="note" class="text-size-md bg-grey-f9 padding-main border-radius-sm" placeholder="请输入转账备注信息" placeholder-class="cr-grey-c" />
|
||||
</view>
|
||||
<view class="padding-main">
|
||||
<button type="default" form-type="submit" hover-class="none" size="mini" class="br-main bg-main cr-white round buy-submit text-size dis-block">确认</button>
|
||||
</view>
|
||||
</form>
|
||||
</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 componentNoData from '@/components/no-data/no-data';
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
data: null,
|
||||
receive_user: null,
|
||||
is_error_msg: false,
|
||||
error_msg: '',
|
||||
data_list_loding_status: 1,
|
||||
data_list_loding_msg: '',
|
||||
inputClearValue: '',
|
||||
};
|
||||
},
|
||||
components: {
|
||||
componentNoData,
|
||||
},
|
||||
onLoad(params) {
|
||||
this.init();
|
||||
},
|
||||
methods: {
|
||||
init() {
|
||||
var user = app.globalData.get_user_info(this, 'init');
|
||||
if (user != false) {
|
||||
// 用户未绑定用户则转到登录页面
|
||||
if (app.globalData.user_is_need_login(user)) {
|
||||
uni.redirectTo({
|
||||
url: '/pages/login/login?event_callback=init',
|
||||
});
|
||||
return false;
|
||||
} else {
|
||||
this.setData({
|
||||
is_user_login: true,
|
||||
});
|
||||
this.get_data();
|
||||
}
|
||||
}
|
||||
},
|
||||
// 获取数据
|
||||
get_data() {
|
||||
uni.request({
|
||||
url: app.globalData.get_request_url('index', 'user', 'wallet'),
|
||||
method: 'POST',
|
||||
data: {},
|
||||
dataType: 'json',
|
||||
success: (res) => {
|
||||
if (res.data.code == 0) {
|
||||
var data = res.data.data;
|
||||
this.setData({
|
||||
data: data.user_wallet || null,
|
||||
data_list_loding_msg: '',
|
||||
data_list_loding_status: 0,
|
||||
});
|
||||
} else {
|
||||
this.setData({
|
||||
data_list_loding_status: 2,
|
||||
data_list_loding_msg: res.data.msg,
|
||||
});
|
||||
if (app.globalData.is_login_check(res.data, this, 'get_data')) {
|
||||
app.globalData.showToast(res.data.msg);
|
||||
}
|
||||
}
|
||||
},
|
||||
fail: () => {
|
||||
this.setData({
|
||||
data_list_loding_status: 2,
|
||||
data_list_loding_msg: '服务器请求出错',
|
||||
});
|
||||
app.globalData.showToast('服务器请求出错');
|
||||
},
|
||||
});
|
||||
},
|
||||
input_account_event(e) {
|
||||
console.log(e);
|
||||
this.setData({
|
||||
inputClearValue: e.detail.value,
|
||||
});
|
||||
},
|
||||
search_account_event() {
|
||||
console.log(this.inputClearValue);
|
||||
if (this.is_user_login) {
|
||||
uni.request({
|
||||
url: app.globalData.get_request_url('userquery', 'transfer', 'wallet'),
|
||||
method: 'POST',
|
||||
data: {
|
||||
keywords: this.inputClearValue,
|
||||
},
|
||||
dataType: 'json',
|
||||
success: (res) => {
|
||||
console.log(res.data.data);
|
||||
if (res.data.code == 0) {
|
||||
this.setData({
|
||||
receive_user: res.data.data || null,
|
||||
is_error_msg: false,
|
||||
});
|
||||
} else {
|
||||
this.setData({
|
||||
receive_user: null,
|
||||
is_error_msg: true,
|
||||
error_msg: res.data.msg,
|
||||
});
|
||||
}
|
||||
},
|
||||
fail: () => {
|
||||
this.setData({
|
||||
receive_user: null,
|
||||
is_error_msg: true,
|
||||
error_msg: '服务器请求出错',
|
||||
});
|
||||
app.globalData.showToast('服务器请求出错');
|
||||
},
|
||||
});
|
||||
}
|
||||
},
|
||||
form_submit(e) {
|
||||
if (this.is_user_login) {
|
||||
var new_data = {
|
||||
...e.detail.value,
|
||||
receive_user_id: (this.receive_user || null) === null ? '' : this.receive_user.id,
|
||||
};
|
||||
var validation = [
|
||||
{ fields: 'keywords', msg: '请输入收款账号' },
|
||||
{ fields: 'receive_user_id', msg: '请输入正确的收款账号' },
|
||||
{ fields: 'money', msg: '请输入转账金额' },
|
||||
];
|
||||
if (app.globalData.fields_check(new_data, validation)) {
|
||||
uni.showLoading({
|
||||
title: '处理中...',
|
||||
});
|
||||
uni.request({
|
||||
url: app.globalData.get_request_url('save', 'transfer', 'wallet'),
|
||||
method: 'POST',
|
||||
data: new_data,
|
||||
dataType: 'json',
|
||||
success: (res) => {
|
||||
uni.hideLoading();
|
||||
if (res.data.code == 0) {
|
||||
console.log(res.data.data);
|
||||
uni.redirectTo({
|
||||
url: '/pages/plugins/wallet/user/user?type=3',
|
||||
});
|
||||
} else {
|
||||
if (app.globalData.is_login_check(res.data, this, 'form_submit')) {
|
||||
app.globalData.showToast(res.data.msg);
|
||||
}
|
||||
}
|
||||
},
|
||||
fail: () => {
|
||||
uni.hideLoading();
|
||||
app.globalData.showToast('服务器请求出错');
|
||||
},
|
||||
});
|
||||
}
|
||||
}
|
||||
},
|
||||
},
|
||||
};
|
||||
</script>
|
||||
<style scoped>
|
||||
@import './transfer.css';
|
||||
</style>
|
||||
|
|
@ -12,6 +12,13 @@
|
|||
padding: 24rpx;
|
||||
}
|
||||
|
||||
.transfer-accounts {
|
||||
border: 2rpx solid #fff;
|
||||
height: 48rpx;
|
||||
line-height: 48rpx;
|
||||
padding: 0 28rpx;
|
||||
}
|
||||
|
||||
.content-padding-1 {
|
||||
padding: 2rpx;
|
||||
left: -4rpx;
|
||||
|
|
|
|||
|
|
@ -24,21 +24,28 @@
|
|||
<view class="flex-1 flex-width">
|
||||
<view>有效(元)</view>
|
||||
<text class="fw-b effective">{{ is_price_show ? user_wallet.normal_money || '0.00' : '***' }}</text>
|
||||
<view class="flex-row jc-sb align-c margin-top-main">
|
||||
<view class="flex-1">
|
||||
<view class="tetx-size-xs">冻结(元)</view>
|
||||
<text class="freeze">{{ is_price_show ? user_wallet.frozen_money || '0.00' : '***' }}</text>
|
||||
</view>
|
||||
<view class="flex-1">
|
||||
<view class="tetx-size-xs">赠送(元)</view>
|
||||
<text class="give">{{ is_price_show ? user_wallet.give_money || '0.00' : '***' }}</text>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="is-price-show">
|
||||
<iconfont name="icon-wdhy-erweima" size="44rpx" class="margin-right-xxxl" :data-value="payment_page_url" @tap="url_event"></iconfont>
|
||||
<iconfont :name="is_price_show ? 'icon-wodeqianbao-eye' : 'icon-wodeqianbao-eyeclo2'" size="44rpx" @tap="price_change"></iconfont>
|
||||
</view>
|
||||
</view>
|
||||
<view class="pr z-i flex-row jc-c align-c">
|
||||
<view class="flex-1 flex-width flex-row jc-sb align-c margin-top-main">
|
||||
<view class="flex-1">
|
||||
<view class="tetx-size-xs">冻结(元)</view>
|
||||
<text class="freeze">{{ is_price_show ? user_wallet.frozen_money || '0.00' : '***' }}</text>
|
||||
</view>
|
||||
<view class="flex-1">
|
||||
<view class="tetx-size-xs">赠送(元)</view>
|
||||
<text class="give">{{ is_price_show ? user_wallet.give_money || '0.00' : '***' }}</text>
|
||||
</view>
|
||||
</view>
|
||||
<view class="transfer-accounts cr-white va-m round flex-row align-c" data-value="/pages/plugins/wallet/transfer/transfer" @tap="url_event">
|
||||
<iconfont name="icon-transfer" size="28rpx"></iconfont>
|
||||
<text class="margin-left-xs">转账</text>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
|
|
@ -67,6 +74,9 @@
|
|||
<view v-if="current === 2">
|
||||
<component-user-cash :prop-pull-down-refresh="propPullDownRefresh" :prop-scroll-lower="scroll_lower_bool"></component-user-cash>
|
||||
</view>
|
||||
<view v-if="current === 3">
|
||||
<component-transfer :prop-pull-down-refresh="propPullDownRefresh" :prop-scroll-lower="scroll_lower_bool"></component-transfer>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
|
|
@ -99,6 +109,7 @@
|
|||
import componentWalletLog from '@/components/wallet/wallet-log/wallet-log';
|
||||
import componentUserRecharge from '@/components/wallet/user-recharge/user-recharge';
|
||||
import componentUserCash from '@/components/wallet/user-cash/user-cash';
|
||||
import componentTransfer from '@/components/wallet/transfer/transfer';
|
||||
var wallet_static_url = app.globalData.get_static_url('wallet', true) + 'app/';
|
||||
|
||||
export default {
|
||||
|
|
@ -119,6 +130,7 @@
|
|||
current: 0,
|
||||
propPullDownRefresh: false,
|
||||
scroll_lower_bool: false,
|
||||
payment_page_url: null,
|
||||
};
|
||||
},
|
||||
|
||||
|
|
@ -129,6 +141,7 @@
|
|||
componentWalletLog,
|
||||
componentUserRecharge,
|
||||
componentUserCash,
|
||||
componentTransfer,
|
||||
},
|
||||
props: {},
|
||||
|
||||
|
|
@ -158,6 +171,9 @@
|
|||
onShow() {
|
||||
// 分享菜单处理
|
||||
app.globalData.page_share_handle();
|
||||
|
||||
// 初始化配置
|
||||
this.init_config();
|
||||
},
|
||||
|
||||
// 下拉刷新
|
||||
|
|
@ -168,6 +184,21 @@
|
|||
});
|
||||
},
|
||||
methods: {
|
||||
// 初始化配置
|
||||
init_config(status) {
|
||||
if ((status || false) == true) {
|
||||
// 付款码入口
|
||||
var payment_page_url = null;
|
||||
if (app.globalData.get_config('plugins_base.wallet', null) != null) {
|
||||
payment_page_url = '/pages/plugins/wallet/payment-code/payment-code';
|
||||
}
|
||||
this.setData({
|
||||
payment_page_url: payment_page_url,
|
||||
});
|
||||
} else {
|
||||
app.globalData.is_config(this, 'init_config');
|
||||
}
|
||||
},
|
||||
init(e) {
|
||||
var user = app.globalData.get_user_info(this, 'init');
|
||||
if (user != false) {
|
||||
|
|
@ -263,6 +294,11 @@
|
|||
scroll_event(e) {
|
||||
uni.$emit('onPageScroll', e.detail);
|
||||
},
|
||||
|
||||
// url事件
|
||||
url_event(e) {
|
||||
app.globalData.url_event(e);
|
||||
},
|
||||
},
|
||||
};
|
||||
</script>
|
||||
|
|
|
|||
|
|
@ -7,11 +7,31 @@
|
|||
}
|
||||
|
||||
.iconfont {
|
||||
font-family: "iconfont" !important;
|
||||
font-size: 16px;
|
||||
font-style: normal;
|
||||
-webkit-font-smoothing: antialiased;
|
||||
-moz-osx-font-smoothing: grayscale;
|
||||
font-family: "iconfont" !important;
|
||||
font-size: 16px;
|
||||
font-style: normal;
|
||||
-webkit-font-smoothing: antialiased;
|
||||
-moz-osx-font-smoothing: grayscale;
|
||||
}
|
||||
|
||||
.icon-transfer:before {
|
||||
content: "\e6e4";
|
||||
}
|
||||
|
||||
.icon-wytw-sctp:before {
|
||||
content: "\e6e3";
|
||||
}
|
||||
|
||||
.icon-xzzx-shij:before {
|
||||
content: "\e6e2";
|
||||
}
|
||||
|
||||
.icon-xzzx-rhaz:before {
|
||||
content: "\e6e0";
|
||||
}
|
||||
|
||||
.icon-xzzx-kfwd:before {
|
||||
content: "\e6e1";
|
||||
}
|
||||
|
||||
.icon-wenda-wytw:before {
|
||||
|
|
|
|||
Binary file not shown.
Loading…
Reference in New Issue