172 lines
		
	
	
		
			3.1 KiB
		
	
	
	
		
			Vue
		
	
	
	
	
	
			
		
		
	
	
			172 lines
		
	
	
		
			3.1 KiB
		
	
	
	
		
			Vue
		
	
	
	
	
	
| <template>
 | |
| 	<view class="content">
 | |
| 		<view class="container">
 | |
| 			<view class="box-hang">
 | |
| 				<view class="">副卡额度</view>
 | |
| 				<view class="dis">
 | |
| 					<input v-model="value" style="text-align: right;"></input>
 | |
| 				</view>
 | |
| 			</view>
 | |
| 			<view class="box-hang">
 | |
| 				<view class="">已用额度</view>
 | |
| 				<view class="dis">
 | |
| 					<input v-model="value" style="text-align: right;"></input>
 | |
| 				</view>
 | |
| 			</view>
 | |
| 			<view class="box-hang">
 | |
| 				<view class="">剩余额度</view>
 | |
| 				<view class="dis">
 | |
| 					<input v-model="value" style="text-align: right;"></input>
 | |
| 				</view>
 | |
| 			</view>
 | |
| 			<view class="box-hang">
 | |
| 				<view class=""><span style="color: red;">*</span>调整类型</view>
 | |
| 				<view class="dis" @click="show = !show">
 | |
| 					<text>增加/扣除</text>
 | |
| 					<uni-icons type="right" size="16"></uni-icons>
 | |
| 				</view>
 | |
| 			</view>
 | |
| 			<view class="box-hang">
 | |
| 				<view class=""><span style="color: red;">*</span>调整额度</view>
 | |
| 				<view class="dis">
 | |
| 					<input v-model="value" style="text-align: right;" placeholder="请输入"></input>
 | |
| 				</view>
 | |
| 			</view>
 | |
| 			<view class="box-hang">
 | |
| 				<view class="">备注</view>
 | |
| 				<view class="dis">
 | |
| 					<input v-model="value" style="text-align: right;" placeholder="请输入"></input>
 | |
| 				</view>
 | |
| 			</view>
 | |
| 
 | |
| 			<view class="but-sub">确认</view>
 | |
| 
 | |
| 			<u-picker :show="show" :columns="columns" @cancel="cancel" @confirm="confirm"></u-picker>
 | |
| 		</view>
 | |
| 
 | |
| 	</view>
 | |
| </template>
 | |
| 
 | |
| <script>
 | |
| 	import request from '../../utils/request';
 | |
| 	export default {
 | |
| 		data() {
 | |
| 			return {
 | |
| 				title: '',
 | |
| 				List: [],
 | |
| 				pageNo: 1,
 | |
| 				pageSize: 10,
 | |
| 				totalPage: '',
 | |
| 				value: 0.00,
 | |
| 				value1: true,
 | |
| 				show: false,
 | |
| 				columns: [
 | |
| 					['增加', '扣除']
 | |
| 				],
 | |
| 			}
 | |
| 		},
 | |
| 		onLoad() {
 | |
| 
 | |
| 		},
 | |
| 		onPullDownRefresh() {
 | |
| 			//下拉刷新
 | |
| 
 | |
| 		},
 | |
| 		onReachBottom() {
 | |
| 			// 触底加载
 | |
| 			if (this.pageNo >= this.totalPage) {
 | |
| 				uni.showToast({
 | |
| 					title: '没有下一页数据',
 | |
| 					icon: 'none'
 | |
| 				})
 | |
| 			} else {
 | |
| 				this.pageNo++
 | |
| 
 | |
| 			}
 | |
| 		},
 | |
| 
 | |
| 		components: {
 | |
| 
 | |
| 		},
 | |
| 		methods: {
 | |
| 			cancel() {
 | |
| 				this.show = false
 | |
| 			},
 | |
| 			confirm() {
 | |
| 				this.show = false
 | |
| 			},
 | |
| 			goback() {
 | |
| 				uni.navigateBack()
 | |
| 			}
 | |
| 		}
 | |
| 	}
 | |
| </script>
 | |
| 
 | |
| <style scoped lang="scss">
 | |
| 	.content {
 | |
| 		background: #f4f5f6;
 | |
| 	}
 | |
| 
 | |
| 	.container {
 | |
| 		width: 100%;
 | |
| 		height: 100vh;
 | |
| 		box-sizing: border-box;
 | |
| 		padding-top: 10px;
 | |
| 	}
 | |
| 
 | |
| 	.my-header {
 | |
| 		width: 100%;
 | |
| 		height: 88px;
 | |
| 		background: #ffffff;
 | |
| 		display: flex;
 | |
| 		align-items: center;
 | |
| 		justify-content: space-between;
 | |
| 		color: #000;
 | |
| 		box-sizing: border-box;
 | |
| 		padding: 0px 15px;
 | |
| 		padding-top: 40px;
 | |
| 		z-index: 99999;
 | |
| 
 | |
| 		.my-icons {
 | |
| 			width: 20px;
 | |
| 
 | |
| 		}
 | |
| 
 | |
| 		position: fixed;
 | |
| 		top: 0px;
 | |
| 	}
 | |
| 
 | |
| 	.box-hang {
 | |
| 		background-color: white;
 | |
| 		width: 100%;
 | |
| 		display: flex;
 | |
| 		align-items: center;
 | |
| 		justify-content: space-between;
 | |
| 		box-sizing: border-box;
 | |
| 		padding: 15px 15px;
 | |
| 		border-bottom: 1px solid #f4f5f6;
 | |
| 	}
 | |
| 
 | |
| 	.dis {
 | |
| 		color: #a69999;
 | |
| 	}
 | |
| 
 | |
| 	.box-end {
 | |
| 		text-align: center;
 | |
| 		margin-top: 10px;
 | |
| 	}
 | |
| 
 | |
| 	.but-sub {
 | |
| 		width: 305px;
 | |
| 		height: 40px;
 | |
| 		line-height: 40px;
 | |
| 		margin: 0 auto;
 | |
| 		background-color: #FF9655;
 | |
| 		color: white;
 | |
| 		border-radius: 50px;
 | |
| 		text-align: center;
 | |
| 		position: absolute;
 | |
| 		bottom: 60px;
 | |
| 		left: 10%;
 | |
| 	}
 | |
| </style> |