no message

This commit is contained in:
2025-10-18 15:46:32 +08:00
parent b3a7e560b8
commit b8006c8498
6 changed files with 67 additions and 13 deletions
+1
View File
@@ -1,5 +1,6 @@
//取手机设置
const systemInfo = uni.getSystemInfoSync();
export const uniPlatform = systemInfo.uniPlatform;
//屏幕长高 顶部 底部安全区 型号 是否为ios 以ios11模拟器开发暂取5个 安卓和其它ios机型有需要以后在说
export const screen = {
@@ -6,7 +6,7 @@
<text class="text-28 text-fu1">选择{{type == 0 ? '微信' : '支付宝'}}账户</text>
<u-icon name="close" color="#333" size="16" @click="onClose"></u-icon>
</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">
<image :src="type == 1 ? '../../../static/new/zfb.png' : '../../../static/new/wx.png'" ></image>
<view class="show-item-left">
@@ -16,14 +16,17 @@
<u-radio-group v-model="itemSelect" style="position: absolute;right:28rpx">
<u-radio :name="item.id" activeColor="#7934F6"></u-radio>
</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 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>
</view>
</view>
@@ -72,6 +75,9 @@
console.log('this',this.itemSelect);
this.$emit('ok',this.itemSelect);
},
onAdd(){
this.$emit('add');
},
onClose(){
this.$emit('close');
}
@@ -96,6 +102,34 @@
min-height:88rpx;
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{
width:100%;
height:742rpx;
+5
View File
@@ -38,6 +38,11 @@ export default {
dataList:[]
};
},
onLoad(option){
if(option.id){
this.type = option.id == '1' ? 0 : 1;
}
},
onShow() {
this.init();
// this.userinfo();
+19 -5
View File
@@ -12,14 +12,15 @@
</view>
<view class="top-right">
<text class="text-bold text-36 text-white">
0
{{noAmount}}
</text>
<text class="text-20 text-white" style="font-weight: 100;">不可用余额</text>
</view>
</view>
<view class="mid-view">
<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>
<text class="text-zu1 text-32 " style="margin-left:20rpx;">微信</text>
<view class="right-icon-view" v-if="type == 1">
@@ -71,7 +72,7 @@
<view class="bottom-btn">
<MyBtn :text="bottomText" @ok="onAdd"></MyBtn>
</view>
<SelectItem :itemData="dataList" @close="onClose" @ok="onOk"
<SelectItem :itemData="dataList" @close="onClose" @ok="onOk" @add="onAddBack"
:type="curSelect" :itemShow="selectShow"></SelectItem>
<CodeItem @ti="onTi" @close="onClose" :codeShow="codeShow" :phone="userInfo ? userInfo.mobile :''"></CodeItem>
<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 SelectItem from './components/select-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 { feedback } from '@/api/payment.js';
import { appWxpayFun, zfbPayFun } from '@/utils/payUtils.js'
@@ -97,6 +98,7 @@ export default {
components: { Header, TopSafe,MyBtn,SelectItem,CodeItem },
data() {
return {
isWeb:false,
topText:'',
type:0,
amount:'',
@@ -122,7 +124,13 @@ export default {
userInfo:null,
};
},
onShow(){
if(uniPlatform == 'web'){
this.isWeb = true;
}else{
this.isWeb = false;
}
},
onLoad(option) {
if(option && option.type){
this.type = Number(option.type);
@@ -146,6 +154,12 @@ export default {
this.selectVal = this.dataList.filter(i=>i.id == val)[0];
this.onClose();
},
onAddBack(){
this.onClose();
uni.navigateTo({
url:'/pages/rwa_package/account/index?id=' + this.curSelect
})
},
onClose(){
this.selectShow = 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