no message
This commit is contained in:
@@ -1,5 +1,6 @@
|
|||||||
//取手机设置
|
//取手机设置
|
||||||
const systemInfo = uni.getSystemInfoSync();
|
const systemInfo = uni.getSystemInfoSync();
|
||||||
|
export const uniPlatform = systemInfo.uniPlatform;
|
||||||
|
|
||||||
//屏幕长高 顶部 底部安全区 型号 是否为ios 以ios11模拟器开发暂取5个 安卓和其它ios机型有需要以后在说
|
//屏幕长高 顶部 底部安全区 型号 是否为ios 以ios11模拟器开发暂取5个 安卓和其它ios机型有需要以后在说
|
||||||
export const screen = {
|
export const screen = {
|
||||||
|
|||||||
@@ -6,7 +6,7 @@
|
|||||||
<text class="text-28 text-fu1">选择{{type == 0 ? '微信' : '支付宝'}}账户</text>
|
<text class="text-28 text-fu1">选择{{type == 0 ? '微信' : '支付宝'}}账户</text>
|
||||||
<u-icon name="close" color="#333" size="16" @click="onClose"></u-icon>
|
<u-icon name="close" color="#333" size="16" @click="onClose"></u-icon>
|
||||||
</view>
|
</view>
|
||||||
<view class="item-mid-view">
|
<view class="item-mid-view" v-if="data.length">
|
||||||
<view class="item-mid-list" v-for="(item,index) in data" :key="item.id">
|
<view class="item-mid-list" v-for="(item,index) in data" :key="item.id">
|
||||||
<image :src="type == 1 ? '../../../static/new/zfb.png' : '../../../static/new/wx.png'" ></image>
|
<image :src="type == 1 ? '../../../static/new/zfb.png' : '../../../static/new/wx.png'" ></image>
|
||||||
<view class="show-item-left">
|
<view class="show-item-left">
|
||||||
@@ -16,14 +16,17 @@
|
|||||||
<u-radio-group v-model="itemSelect" style="position: absolute;right:28rpx">
|
<u-radio-group v-model="itemSelect" style="position: absolute;right:28rpx">
|
||||||
<u-radio :name="item.id" activeColor="#7934F6"></u-radio>
|
<u-radio :name="item.id" activeColor="#7934F6"></u-radio>
|
||||||
</u-radio-group>
|
</u-radio-group>
|
||||||
<!-- <view class="item-right-btn">
|
|
||||||
<u-radio-group v-model="itemSelect">
|
|
||||||
<u-radio :name="item.id" activeColor="#7934F6"></u-radio>
|
|
||||||
</u-radio-group>
|
|
||||||
</view> -->
|
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="item-bottom-btn">
|
<view class="item-mid-view-two" @click="onAdd" v-if="!data.length">
|
||||||
|
<image src="/static/new/no_black_data.png" class="no-data-black"></image>
|
||||||
|
<text class="text-28 text-fu mt-48">{{`请先绑定一个${type == 0 ? '微信' : '支付宝'}账户,用于收款`}}</text>
|
||||||
|
<view class="add-btn mt-48">
|
||||||
|
<image src="/static/new/add.png" style="margin-right:5rpx;"></image>
|
||||||
|
<text class="text-32 text-zi text-bold" style="margin-left:5rpx;">添加</text>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
<view class="item-bottom-btn" v-if="data.length">
|
||||||
<MyBtn @ok="onOk" text="确定"></MyBtn>
|
<MyBtn @ok="onOk" text="确定"></MyBtn>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
@@ -72,6 +75,9 @@
|
|||||||
console.log('this',this.itemSelect);
|
console.log('this',this.itemSelect);
|
||||||
this.$emit('ok',this.itemSelect);
|
this.$emit('ok',this.itemSelect);
|
||||||
},
|
},
|
||||||
|
onAdd(){
|
||||||
|
this.$emit('add');
|
||||||
|
},
|
||||||
onClose(){
|
onClose(){
|
||||||
this.$emit('close');
|
this.$emit('close');
|
||||||
}
|
}
|
||||||
@@ -96,6 +102,34 @@
|
|||||||
min-height:88rpx;
|
min-height:88rpx;
|
||||||
display: flex;
|
display: flex;
|
||||||
}
|
}
|
||||||
|
.item-mid-view-two{
|
||||||
|
width:100%;
|
||||||
|
height:742rpx;
|
||||||
|
min-height:742rpx;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
align-items: center;
|
||||||
|
.no-data-black{
|
||||||
|
width:120rpx;
|
||||||
|
height:120rpx;
|
||||||
|
margin-top:120rpx;
|
||||||
|
}
|
||||||
|
.add-btn{
|
||||||
|
width:248rpx;
|
||||||
|
height:72rpx;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: row;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
border:2rpx solid #7934f6;
|
||||||
|
border-radius: 12rpx;
|
||||||
|
image{
|
||||||
|
width:32rpx;
|
||||||
|
height:32rpx;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
.item-mid-view{
|
.item-mid-view{
|
||||||
width:100%;
|
width:100%;
|
||||||
height:742rpx;
|
height:742rpx;
|
||||||
|
|||||||
@@ -38,6 +38,11 @@ export default {
|
|||||||
dataList:[]
|
dataList:[]
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
|
onLoad(option){
|
||||||
|
if(option.id){
|
||||||
|
this.type = option.id == '1' ? 0 : 1;
|
||||||
|
}
|
||||||
|
},
|
||||||
onShow() {
|
onShow() {
|
||||||
this.init();
|
this.init();
|
||||||
// this.userinfo();
|
// this.userinfo();
|
||||||
|
|||||||
@@ -12,14 +12,15 @@
|
|||||||
</view>
|
</view>
|
||||||
<view class="top-right">
|
<view class="top-right">
|
||||||
<text class="text-bold text-36 text-white">
|
<text class="text-bold text-36 text-white">
|
||||||
0
|
{{noAmount}}
|
||||||
</text>
|
</text>
|
||||||
<text class="text-20 text-white" style="font-weight: 100;">不可用余额</text>
|
<text class="text-20 text-white" style="font-weight: 100;">不可用余额</text>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="mid-view">
|
<view class="mid-view">
|
||||||
<text class="text-zu1 text-32">{{type == 0 ? '提现' : '充值'}}方式</text>
|
<text class="text-zu1 text-32">{{type == 0 ? '提现' : '充值'}}方式</text>
|
||||||
<view class="item-view" @click="onSelect('0')">
|
|
||||||
|
<view class="item-view" @click="onSelect('0')" v-if="!isWeb || type != 0">
|
||||||
<image src="../../../static/new/wx.png"></image>
|
<image src="../../../static/new/wx.png"></image>
|
||||||
<text class="text-zu1 text-32 " style="margin-left:20rpx;">微信</text>
|
<text class="text-zu1 text-32 " style="margin-left:20rpx;">微信</text>
|
||||||
<view class="right-icon-view" v-if="type == 1">
|
<view class="right-icon-view" v-if="type == 1">
|
||||||
@@ -71,7 +72,7 @@
|
|||||||
<view class="bottom-btn">
|
<view class="bottom-btn">
|
||||||
<MyBtn :text="bottomText" @ok="onAdd"></MyBtn>
|
<MyBtn :text="bottomText" @ok="onAdd"></MyBtn>
|
||||||
</view>
|
</view>
|
||||||
<SelectItem :itemData="dataList" @close="onClose" @ok="onOk"
|
<SelectItem :itemData="dataList" @close="onClose" @ok="onOk" @add="onAddBack"
|
||||||
:type="curSelect" :itemShow="selectShow"></SelectItem>
|
:type="curSelect" :itemShow="selectShow"></SelectItem>
|
||||||
<CodeItem @ti="onTi" @close="onClose" :codeShow="codeShow" :phone="userInfo ? userInfo.mobile :''"></CodeItem>
|
<CodeItem @ti="onTi" @close="onClose" :codeShow="codeShow" :phone="userInfo ? userInfo.mobile :''"></CodeItem>
|
||||||
<up-toast ref="uToastRef"></up-toast>
|
<up-toast ref="uToastRef"></up-toast>
|
||||||
@@ -88,7 +89,7 @@ import MyBtn from '@/components/common/my-btn.vue'
|
|||||||
import func from '@/utils/func.js';
|
import func from '@/utils/func.js';
|
||||||
import SelectItem from './components/select-item.vue'
|
import SelectItem from './components/select-item.vue'
|
||||||
import CodeItem from './components/code-item.vue'
|
import CodeItem from './components/code-item.vue'
|
||||||
|
import {uniPlatform} from '@/components/common/global.js'
|
||||||
import { getRechargeSupportPay, recharge,getAcctBalance } from '@/api/finance.js';
|
import { getRechargeSupportPay, recharge,getAcctBalance } from '@/api/finance.js';
|
||||||
import { feedback } from '@/api/payment.js';
|
import { feedback } from '@/api/payment.js';
|
||||||
import { appWxpayFun, zfbPayFun } from '@/utils/payUtils.js'
|
import { appWxpayFun, zfbPayFun } from '@/utils/payUtils.js'
|
||||||
@@ -97,6 +98,7 @@ export default {
|
|||||||
components: { Header, TopSafe,MyBtn,SelectItem,CodeItem },
|
components: { Header, TopSafe,MyBtn,SelectItem,CodeItem },
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
isWeb:false,
|
||||||
topText:'',
|
topText:'',
|
||||||
type:0,
|
type:0,
|
||||||
amount:'',
|
amount:'',
|
||||||
@@ -122,7 +124,13 @@ export default {
|
|||||||
userInfo:null,
|
userInfo:null,
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
|
onShow(){
|
||||||
|
if(uniPlatform == 'web'){
|
||||||
|
this.isWeb = true;
|
||||||
|
}else{
|
||||||
|
this.isWeb = false;
|
||||||
|
}
|
||||||
|
},
|
||||||
onLoad(option) {
|
onLoad(option) {
|
||||||
if(option && option.type){
|
if(option && option.type){
|
||||||
this.type = Number(option.type);
|
this.type = Number(option.type);
|
||||||
@@ -146,6 +154,12 @@ export default {
|
|||||||
this.selectVal = this.dataList.filter(i=>i.id == val)[0];
|
this.selectVal = this.dataList.filter(i=>i.id == val)[0];
|
||||||
this.onClose();
|
this.onClose();
|
||||||
},
|
},
|
||||||
|
onAddBack(){
|
||||||
|
this.onClose();
|
||||||
|
uni.navigateTo({
|
||||||
|
url:'/pages/rwa_package/account/index?id=' + this.curSelect
|
||||||
|
})
|
||||||
|
},
|
||||||
onClose(){
|
onClose(){
|
||||||
this.selectShow = false;
|
this.selectShow = false;
|
||||||
this.codeShow = false;
|
this.codeShow = false;
|
||||||
|
|||||||
Binary file not shown.
|
After Width: | Height: | Size: 237 B |
Binary file not shown.
|
After Width: | Height: | Size: 8.8 KiB |
Reference in New Issue
Block a user