• 前端uniapp请求真是案例(带源码)


    案例一

    <template>
    	<view class="box">
    		
    		
    
    		<view class="currentLimit">
    			
    			<view class="currentLimit-half" v-if="itemIndex === 1">
    				当前可申请贷款额度<text>{{money2}}text>view>
    			
    			<view class="currentLimit-half" v-if="itemIndex === 2">
    				当前可申请贷款额度<text>{{money2}}text>view>
    			
    
    			<view class="currentLimit-half" v-if="itemIndex === 3">
    				当前可申请贷款额度<text>{{money2}}text>view>
    
    			
    			<view class="currentLimit-txt">
    				<view class="currentLimit-txt-btm">
    					我要提额
    				view>
    				<view class="currentLimit-txt-lft">
    					想要更高贷款额度,试试提额吧!
    				view>
    			view>
    
    			<view class="currentLimit-ipt">
    				<text>text> <input v-model="money" class="unir" type="number"
    					placeholder-class="currentLimit-ipt-placeholder" placeholder="" />
    				<image src="../../static/delete.png" mode="aspectFill" @click="getClear">image>
    			view>
    
    			<view class="currentLimit-tab">
    				<view class="currentLimit-tab1" :class="{active:itemIndex == 1}" @click="get1(1)">
    					全额申请
    				view>
    				<view class="currentLimit-tab1 currentLimit-tab2" :class="{active:itemIndex == 2}" @click="get1(2)">
    					1/2
    				view>
    				<view class="currentLimit-tab1 currentLimit-tab2" :class="{active:itemIndex == 3}" @click="get1(3)">
    					1/4
    				view>
    			view>
    		view>
    		
    		<view class="annualcargo">
    			<view class="annualcargo-list">
    				<view class="annualcargo-list-lft">
    					贷款期限
    				view>
    				<view class="annualcargo-list-rgt">
    					
    					<uni-data-select v-model="value1" :localdata="term_listArray" @change="change">
    					uni-data-select>
    					<image src="/static/right.png" mode="aspectFill">image>
    				view>
    			view>
    			<view class="annualcargo-list">
    				<view class="annualcargo-list-lft">
    					年化利率<image src="../../static/access.png" mode="aspectFill">image>
    				view>
    				<view class="annualcargo-list-rgt2">
    					{{interest_rate}}%
    				view>
    			view>
    			<view class="annualcargo-list">
    				<view class="annualcargo-list-lft">
    					贷款签约账号
    				view>
    				<view class="annualcargo-list-rgt">
    					
    					
    					<uni-data-select v-model="value2" :localdata="account_listArray" @change="change">
    					uni-data-select>
    					
    					<image src="/static/right.png" mode="aspectFill">image>
    				view>
    			view>
    			<view class="annualcargo-list">
    				<view class="annualcargo-list-lft">
    					借款用途
    				view>
    				<view class="annualcargo-list-rgt3">
    					生产经营
    				view>
    			view>
    		view>
    
    		
    		<view class="statement">
    			<view class="statement-txt">
    				用途承诺声明:本企业承诺借款仅用于日常生产经营周转。
    				不用于 股市和证券投资、金融衍生产品、股本权益性投资固定资产投资
    				或国家有关法律、法规和规章禁止的生产、经营领域和其他消费 投资行为。
    				<text>复制粘贴text>
    			view>
    			<view class="statement-textarea">
    				请复制上段话到此文本框中再进行下一步操作
    			view>
    		view>
    
    		<view class="statementTey">
    			下一步
    		view>
    		<view class="statementTeyTop">
    
    		view>
    	view>
    	view>
    template>
    
    <script>
    	export default {
    		data() {
    			return {
    				money: '',
    				money2: '',
    				itemIndex: 1,
    				money: '',
    				bank_open: '',
    				interest_rate: '',
    				value1: '',
    				value2: '',
    				range: [{
    						value: 0,
    						text: "美元($)"
    					},
    					{
    						value: 1,
    						text: "人民币(CNY)"
    					},
    
    				],
    				term_listArray: [],
    				account_listArray: []
    			}
    		},
    		onLoad() {
    			this.getCurrentMoney()
    		},
    		methods: {
    			change(e) {
    				console.log("e:", e);
    				this.money_type = e;
    			},
    			backPrivious() {
    				uni.navigateBack({
    					delta: 1
    				});
    			},
    			get1(index) {
    				this.itemIndex = index;
    				
    				if(index == 1){
    					this.money = this.money2
    				}else if(index == 2){
    					this.money = this.money/2
    				}else if(index == 3){
    					this.money = this.money/2
    				}
    			},
    			getCurrentMoney() {
    				let self = this;
    				uni.request({
    					url: 'http://dkmoni.yunjingwl.com/index.php/api/index/getGeti',
    					method: 'POST',
    					data: {},
    					success: (res) => {
    						console.log(res.data.data.val, 'ressssssssss');
    						self.money = res.data.data.val.money;
    						self.money2 = res.data.data.val.money;
    						
    						
    						self.bank_open = res.data.data.val.bank_open;
    						self.interest_rate = res.data.data.val.interest_rate;
    
    						// self.term_list = res.data.data.val.term_list;
    
    						// console.log(res.data.data.val.term_list, 'res.data.data.val.term_lis');
    						let term_listArray = [];
    						res.data.data.val.term_list.forEach((item, index) => {
    							term_listArray.push({
    								value: index,
    								text: item
    							})
    							// console.log(item,'itemmm');
    							// console.log(term_listArray, 'term_listArray');
    						})
    						self.term_listArray = term_listArray;
    						// console.log(term_listArray,'term_listArray');
    
    
    
    
    						// self.account_list = res.data.data.val.account_list;
    						let account_listArray = [];
    						res.data.data.val.account_list.forEach((item, index) => {
    							account_listArray.push({
    								value: index,
    								text: item
    							})
    							// console.log(item,'itemmm');
    							// console.log(term_listArray, 'term_listArray');
    						})
    						self.account_listArray = account_listArray;
    
    
    
    
    						// if (res.data && res.statusCode === 200) {
    						// // 请求成功处理
    						// } else {
    						// 	// 请求失败处理
    						// 	console.error('请求失败', res);
    						// }
    					},
    				});
    			},
    			getClear(){
    				this.money = ''
    			}
    		}
    	}
    script>
    
    <style scoped>
    	page {
    		background-color: #F8F9FA;
    	}
    
    	.box {}
    
    	.currentLimit {
    		width: 100vw !important;
    		background-color: #FFF;
    	}
    
    	.currentLimit-half {
    		padding: 20rpx 30rpx 10rpx 30rpx;
    		box-sizing: border-box;
    		font-size: 28rpx;
    		font-family: Source Han Sans CN-Regular, Source Han Sans CN;
    		font-weight: 400;
    		color: #666666;
    		line-height: 50rpx;
    	}
    
    	.currentLimit-half text {
    		font-size: 28rpx;
    		font-family: ;
    		/* font-family: Source Han Sans CN-Regular, Source Han Sans CN; */
    		font-weight: 400;
    		color: #4E73D4;
    		line-height: 50rpx;
    	}
    
    	.currentLimitImg {
    		width: 182rpx;
    		height: 40rpx;
    		margin-left: 30rpx;
    	}
    
    	.currentLimitImg image {
    		width: 182rpx;
    		height: 40rpx;
    	}
    
    	.currentLimit-txt {
    		/* float: right; */
    		display: flex;
    		align-items: center;
    		padding-right: 20rpx;
    		flex-direction: row-reverse;
    	}
    
    	.currentLimit-txt-lft {
    		font-size: 26rpx;
    		font-family: Source Han Sans CN-Regular, Source Han Sans CN;
    		font-weight: 400;
    		color: #9B9B9B;
    		line-height: 32rpx;
    	}
    
    	.currentLimit-txt-btm {
    		width: 160rpx;
    		height: 60rpx;
    		background: #4A7AE0;
    		border-radius: 232rpx 232rpx 232rpx 232rpx;
    		opacity: 1;
    		font-size: 28rpx;
    		font-family: SourceHanSansCN-Medium-, SourceHanSansCN-Medium;
    		font-weight: normal;
    		color: #FFFFFF;
    		line-height: 40rpx;
    		display: flex;
    		justify-content: center;
    		align-items: center;
    		margin-left: 10rpx;
    	}
    
    	.currentLimit-ipt {
    		/* height: 150rpx; */
    		height: 120rpx;
    		opacity: 1;
    		display: flex;
    		align-items: center;
    		padding-left: 20rpx;
    		border-bottom: 2rpx solid #F4F4F4;
    	}
    
    	.currentLimit-ipt text {
    		font-size: 56rpx;
    		font-family: MicrosoftYaHei-, MicrosoftYaHei;
    		font-weight: normal;
    		color: #000000;
    		line-height: 32rpx;
    	}
    
    	.currentLimit-ipt input {
    		font-size: 90rpx;
    		font-family: HarmonyOS Naskh Arabic UI-Regular, HarmonyOS Naskh Arabic UI;
    		font-weight: 400;
    		color: #000000;
    		line-height: 0rpx;
    	}
    
    	.currentLimit-tab {
    		padding: 24rpx;
    		box-sizing: border-box;
    		display: flex;
    		flex-direction: row;
    		margin-left: 16rpx;
    	}
    
    	.currentLimit-tab1 {
    		width: 144rpx;
    		height: 44rpx;
    		background: #F8F9FA;
    		border-radius: 74rpx 74rpx 74rpx 74rpx;
    		opacity: 1;
    		font-size: 24rpx;
    		font-family: MicrosoftYaHei-, MicrosoftYaHei;
    		font-weight: normal;
    		color: #999999;
    		line-height: 32rpx;
    		display: flex;
    		justify-content: center;
    		align-items: center;
    		border: 2rpx solid #F8F9FA;
    	}
    
    	.active {
    		width: 144rpx;
    		height: 44rpx;
    		background: #EEF2FE;
    		border-radius: 74rpx 74rpx 74rpx 74rpx;
    		opacity: 0.5;
    		border: 2rpx solid #4A7AE0;
    		font-size: 24rpx;
    		font-family: MicrosoftYaHei-, MicrosoftYaHei;
    		font-weight: normal;
    		color: #5D77BA;
    		display: flex;
    		justify-content: center;
    		align-items: center;
    	}
    
    
    
    	.currentLimit-tab2 {
    		margin-left: 32rpx;
    	}
    
    	.annualcargo {
    		margin-top: 24rpx;
    		background-color: #FFF;
    	}
    
    	.annualcargo-list {
    		/* padding: 34rpx 32rpx 32rpx 30rpx; */
    		padding: 34rpx 22rpx 32rpx 30rpx;
    		display: flex;
    		justify-content: space-between;
    		border-bottom: 2rpx solid #F4F4F4;
    	}
    
    	.statement {
    		margin-top: 24rpx;
    		background-color: #FFF;
    		padding-bottom: 12rpx;
    	}
    
    	.statement-txt {
    		padding: 30rpx 38rpx 32rpx 30rpx;
    		box-sizing: border-box;
    		font-size: 24rpx;
    		font-family: Source Han Sans CN-Regular, Source Han Sans CN;
    		font-weight: 400;
    		color: #666666;
    		line-height: 36rpx;
    	}
    
    	.statement-txt text {
    		font-size: 24rpx;
    		font-family: Source Han Sans CN-Regular, Source Han Sans CN;
    		font-weight: 400;
    		color: #408ACB;
    		line-height: 44rpx;
    		border-bottom: 1rpx solid #408ACB;
    		float: right;
    	}
    
    	.statement-textarea {
    		margin: 5rpx 32rpx 32rpx 32rpx;
    		padding-bottom: 32rpx;
    
    		width: 686rpx;
    		height: 336rpx;
    		border-radius: 16rpx 16rpx 16rpx 16rpx;
    		opacity: 1;
    		border: 2rpx solid #999999;
    	}
    
    	.statementTey {
    		width: 714rpx;
    		height: 84rpx;
    		background: #4A7AE0;
    		border-radius: 137rpx 137rpx 137rpx 137rpx;
    		opacity: 1;
    		font-size: 32rpx;
    		font-family: MicrosoftYaHei-, MicrosoftYaHei;
    		font-weight: normal;
    		color: #FFFFFF;
    		line-height: 36rpx;
    		display: flex;
    		justify-content: center;
    		align-items: center;
    		margin: 32rpx auto;
    	}
    
    	.statementTeyTop {
    		height: 44rpx;
    	}
    
    	.annualcargo-list-lft {
    		display: flex;
    		align-items: center;
    		font-size: 32rpx;
    		font-family: SourceHanSansCN-Regular-, SourceHanSansCN-Regular;
    		font-weight: normal;
    		color: #3D3D3D;
    		line-height: 50rpx;
    	}
    
    	.annualcargo-list-lft image {
    		width: 24rpx;
    		height: 24rpx;
    		margin-left: 10rpx;
    	}
    
    	.statement-textarea {
    		font-size: 28rpx;
    		font-family: Source Han Sans CN-Regular, Source Han Sans CN;
    		font-weight: 400;
    		color: #666666;
    		/* line-height: 44rpx; */
    		padding-top: 28rpx;
    		padding-left: 22rpx;
    		box-sizing: border-box;
    	}
    
    	.annualcargo-list-rgt {
    		font-size: 28rpx;
    		font-family: SourceHanSansCN-Regular-, SourceHanSansCN-Regular;
    		font-weight: normal;
    		color: #999999;
    		line-height: 50rpx;
    		display: flex;
    		align-items: center;
    	}
    
    	/deep/.annualcargo-list-rgt .uni-select {
    		border: none;
    		/* width: 130rpx; */
    		position: relative;
    		left: 10rpx;
    
    
    	}
    
    	/deep/ .annualcargo-list-rgt .uni-select__input-placeholder {
    		font-size: 28rpx !important;
    		font-family: SourceHanSansCN-Regular-, SourceHanSansCN-Regular !important;
    		font-weight: normal !important;
    		color: #999999 !important;
    		line-height: 50rpx !important;
    	}
    	
    	/deep/ .annualcargo-list-rgt .uni-select__input-text{
    		font-size: 28rpx;
    		font-family: SourceHanSansCN-Regular-, SourceHanSansCN-Regular;
    		font-weight: normal;
    		color: #3D3D3D;
    		line-height: 50rpx;
    	}
    
    	.annualcargo-list-rgt image {
    		/* border: 1rpx solid red; */
    		width: 40rpx;
    		height: 40rpx;
    		position: relative;
    		/* left: 3rpx; */
    	}
    
    	.annualcargo-list-rgt2 {
    		font-size: 28rpx;
    		font-family: SourceHanSansCN-Regular-, SourceHanSansCN-Regular;
    		font-weight: normal;
    		color: #3D3D3D;
    		line-height: 50rpx;
    		margin-right: 10rpx;
    	}
    
    	.annualcargo-list-rgt3 {
    		font-size: 28rpx;
    		font-family: SourceHanSansCN-Regular-, SourceHanSansCN-Regular;
    		font-weight: normal;
    		color: #3D3D3D;
    		line-height: 50rpx;
    		margin-right: 10rpx;
    	}
    
    	.currentLimit-ipt input {
    		width: 620rpx;
    	}
    
    	.currentLimit-ipt image {
    		width: 40rpx;
    		height: 40rpx;
    	}
    style>
    
    • 1
    • 2
    • 3
    • 4
    • 5
    • 6
    • 7
    • 8
    • 9
    • 10
    • 11
    • 12
    • 13
    • 14
    • 15
    • 16
    • 17
    • 18
    • 19
    • 20
    • 21
    • 22
    • 23
    • 24
    • 25
    • 26
    • 27
    • 28
    • 29
    • 30
    • 31
    • 32
    • 33
    • 34
    • 35
    • 36
    • 37
    • 38
    • 39
    • 40
    • 41
    • 42
    • 43
    • 44
    • 45
    • 46
    • 47
    • 48
    • 49
    • 50
    • 51
    • 52
    • 53
    • 54
    • 55
    • 56
    • 57
    • 58
    • 59
    • 60
    • 61
    • 62
    • 63
    • 64
    • 65
    • 66
    • 67
    • 68
    • 69
    • 70
    • 71
    • 72
    • 73
    • 74
    • 75
    • 76
    • 77
    • 78
    • 79
    • 80
    • 81
    • 82
    • 83
    • 84
    • 85
    • 86
    • 87
    • 88
    • 89
    • 90
    • 91
    • 92
    • 93
    • 94
    • 95
    • 96
    • 97
    • 98
    • 99
    • 100
    • 101
    • 102
    • 103
    • 104
    • 105
    • 106
    • 107
    • 108
    • 109
    • 110
    • 111
    • 112
    • 113
    • 114
    • 115
    • 116
    • 117
    • 118
    • 119
    • 120
    • 121
    • 122
    • 123
    • 124
    • 125
    • 126
    • 127
    • 128
    • 129
    • 130
    • 131
    • 132
    • 133
    • 134
    • 135
    • 136
    • 137
    • 138
    • 139
    • 140
    • 141
    • 142
    • 143
    • 144
    • 145
    • 146
    • 147
    • 148
    • 149
    • 150
    • 151
    • 152
    • 153
    • 154
    • 155
    • 156
    • 157
    • 158
    • 159
    • 160
    • 161
    • 162
    • 163
    • 164
    • 165
    • 166
    • 167
    • 168
    • 169
    • 170
    • 171
    • 172
    • 173
    • 174
    • 175
    • 176
    • 177
    • 178
    • 179
    • 180
    • 181
    • 182
    • 183
    • 184
    • 185
    • 186
    • 187
    • 188
    • 189
    • 190
    • 191
    • 192
    • 193
    • 194
    • 195
    • 196
    • 197
    • 198
    • 199
    • 200
    • 201
    • 202
    • 203
    • 204
    • 205
    • 206
    • 207
    • 208
    • 209
    • 210
    • 211
    • 212
    • 213
    • 214
    • 215
    • 216
    • 217
    • 218
    • 219
    • 220
    • 221
    • 222
    • 223
    • 224
    • 225
    • 226
    • 227
    • 228
    • 229
    • 230
    • 231
    • 232
    • 233
    • 234
    • 235
    • 236
    • 237
    • 238
    • 239
    • 240
    • 241
    • 242
    • 243
    • 244
    • 245
    • 246
    • 247
    • 248
    • 249
    • 250
    • 251
    • 252
    • 253
    • 254
    • 255
    • 256
    • 257
    • 258
    • 259
    • 260
    • 261
    • 262
    • 263
    • 264
    • 265
    • 266
    • 267
    • 268
    • 269
    • 270
    • 271
    • 272
    • 273
    • 274
    • 275
    • 276
    • 277
    • 278
    • 279
    • 280
    • 281
    • 282
    • 283
    • 284
    • 285
    • 286
    • 287
    • 288
    • 289
    • 290
    • 291
    • 292
    • 293
    • 294
    • 295
    • 296
    • 297
    • 298
    • 299
    • 300
    • 301
    • 302
    • 303
    • 304
    • 305
    • 306
    • 307
    • 308
    • 309
    • 310
    • 311
    • 312
    • 313
    • 314
    • 315
    • 316
    • 317
    • 318
    • 319
    • 320
    • 321
    • 322
    • 323
    • 324
    • 325
    • 326
    • 327
    • 328
    • 329
    • 330
    • 331
    • 332
    • 333
    • 334
    • 335
    • 336
    • 337
    • 338
    • 339
    • 340
    • 341
    • 342
    • 343
    • 344
    • 345
    • 346
    • 347
    • 348
    • 349
    • 350
    • 351
    • 352
    • 353
    • 354
    • 355
    • 356
    • 357
    • 358
    • 359
    • 360
    • 361
    • 362
    • 363
    • 364
    • 365
    • 366
    • 367
    • 368
    • 369
    • 370
    • 371
    • 372
    • 373
    • 374
    • 375
    • 376
    • 377
    • 378
    • 379
    • 380
    • 381
    • 382
    • 383
    • 384
    • 385
    • 386
    • 387
    • 388
    • 389
    • 390
    • 391
    • 392
    • 393
    • 394
    • 395
    • 396
    • 397
    • 398
    • 399
    • 400
    • 401
    • 402
    • 403
    • 404
    • 405
    • 406
    • 407
    • 408
    • 409
    • 410
    • 411
    • 412
    • 413
    • 414
    • 415
    • 416
    • 417
    • 418
    • 419
    • 420
    • 421
    • 422
    • 423
    • 424
    • 425
    • 426
    • 427
    • 428
    • 429
    • 430
    • 431
    • 432
    • 433
    • 434
    • 435
    • 436
    • 437
    • 438
    • 439
    • 440
    • 441
    • 442
    • 443
    • 444
    • 445
    • 446
    • 447
    • 448
    • 449
    • 450
    • 451
    • 452
    • 453
    • 454
    • 455
    • 456
    • 457
    • 458
    • 459
    • 460
    • 461
    • 462
    • 463
    • 464
    • 465
    • 466
    • 467
    • 468
    • 469
    • 470
    • 471
    • 472
    • 473
    • 474
    • 475
    • 476
    • 477
    • 478
    • 479
    • 480
    • 481
    • 482
    • 483
    • 484
    • 485
    • 486
    • 487
    • 488
    • 489
    • 490
    • 491
    • 492
    • 493
    • 494
    • 495
    • 496
    • 497
    • 498
    • 499
    • 500
    • 501
    • 502
    • 503
    • 504
    • 505
    • 506
    • 507
    • 508
    • 509
    • 510
    • 511
    • 512
    • 513
    • 514
    • 515
    • 516
    • 517
    • 518
    • 519
    • 520
    • 521
    • 522
    • 523
    • 524
    • 525
    • 526
    • 527
    • 528
    • 529
    • 530
    • 531
    • 532
    • 533
    • 534
    • 535
    • 536
    • 537
    • 538
    • 539
    • 540
    • 541
    • 542
    • 543
    • 544
    • 545
    • 546
    • 547
    • 548
    • 549

    案例二

    <template>
    	<view class="box">
    		
    		
    
    		<view class="currentLimit">
    			
    			<view class="currentLimit-half" v-if="itemIndex === 1">
    				当前可申请贷款额度<text>{{money2}}text>view>
    			
    			<view class="currentLimit-half" v-if="itemIndex === 2">
    				当前可申请贷款额度<text>{{money2}}text>view>
    			
    
    			<view class="currentLimit-half" v-if="itemIndex === 3">
    				当前可申请贷款额度<text>{{money2}}text>view>
    
    			<view class="currentLimitImg" v-if="bank_open">
    				<image src="../../static/withdrawalimg.png" mode="aspectFill">image>
    			view>
    			<view class="currentLimit-txt">
    				<view class="currentLimit-txt-btm">
    					我要提额
    				view>
    				<view class="currentLimit-txt-lft">
    					想要更高贷款额度,试试提额吧!
    				view>
    			view>
    
    			<view class="currentLimit-ipt">
    				<text>text> <input v-model="money" class="unir" type="number"
    					placeholder-class="currentLimit-ipt-placeholder" placeholder="" />
    				<image src="../../static/delete.png" mode="aspectFill" @click="getClear">image>
    			view>
    
    			<view class="currentLimit-tab">
    				<view class="currentLimit-tab1" :class="{active:itemIndex == 1}" @click="get1(1)">
    					全额申请
    				view>
    				<view class="currentLimit-tab1 currentLimit-tab2" :class="{active:itemIndex == 2}" @click="get1(2)">
    					1/2
    				view>
    				<view class="currentLimit-tab1 currentLimit-tab2" :class="{active:itemIndex == 3}" @click="get1(3)">
    					1/4
    				view>
    			view>
    		view>
    		
    		<view class="annualcargo">
    			<view class="annualcargo-list">
    				<view class="annualcargo-list-lft">
    					还款方式
    				view>
    				<view class="annualcargo-list-rgt">
    					
    					<uni-data-select v-model="value2" :localdata="give_account_listArray" @change="change">
    					uni-data-select>
    					<image src="/static/right.png" mode="aspectFill">image>
    				view>
    			view>
    			<view class="annualcargo-list">
    				<view class="annualcargo-list-lft">
    					贷款期限
    				view>
    				<view class="annualcargo-list-rgt">
    					
    					<uni-data-select v-model="value1" :localdata="term_listArray" @change="change">
    					uni-data-select>
    					<image src="/static/right.png" mode="aspectFill">image>
    				view>
    			view>
    			<view class="annualcargo-list">
    				<view class="annualcargo-list-lft">
    					年化利率<image src="../../static/access.png" mode="aspectFill">image>
    				view>
    				<view class="annualcargo-list-rgt2">
    					{{interest_rate}}%
    				view>
    			view>
    			
    			<view class="annualcargo-list">
    				<view class="annualcargo-list-lft">
    					贷款发放账户
    				view>
    				<view class="annualcargo-list-rgt3">
    					{{give_account}}
    				view>
    			view>
    			<view class="annualcargo-list">
    				<view class="annualcargo-list-lft">
    					借款用途
    				view>
    				<view class="annualcargo-list-rgt3">
    					生产经营
    				view>
    			view>
    		view>
    
    		
    		<view class="statement">
    			<view class="statement-txt">
    				用途承诺声明: 本企业承诺借款仅用于日常生产经营周转不用于股 市和证券投资、金融衍生产品、股本权益性投资固定资产投资或 国家有关法律、法规和规章禁止的生产、经营领域和其他消费投 资行为。若资金用途不符合上述要求贵行有权收回贷款,压降授 信额度,并追究相应法律责任。
    				<text>复制粘贴text>
    			view>
    			<view class="statement-textarea">
    				请复制上段话到此文本框中再进行下一步操作
    			view>
    		view>
    
    		<view class="statementTey">
    			下一步
    		view>
    		<view class="statementTeyTop">
    
    		view>
    	view>
    	view>
    template>
    
    <script>
    	export default {
    		data() {
    			return {
    				money: '',
    				itemIndex: 1,
    				money: '',
    				money2: '',
    				bank_open: '',
    				interest_rate: '',
    				value1: '',
    				value2: '',
    				range: [{
    						value: 0,
    						text: "美元($)"
    					},
    					{
    						value: 1,
    						text: "人民币(CNY)"
    					},
    
    				],
    				term_listArray: [],
    				give_account_listArray: [],
    				give_account: ''
    			}
    		},
    		onLoad() {
    			this.getCurrentMoney()
    		},
    		methods: {
    			change(e) {
    				console.log("e:", e);
    				this.money_type = e;
    			},
    			backPrivious() {
    				uni.navigateBack({
    					delta: 1
    				});
    			},
    			get1(index) {
    				this.itemIndex = index
    
    				if (index == 1) {
    					this.money = this.money2
    				} else if (index == 2) {
    					this.money = this.money / 2
    				} else if (index == 3) {
    					this.money = this.money / 2
    				}
    
    			},
    			getCurrentMoney() {
    				let self = this;
    				uni.request({
    					url: 'http://dkmoni.yunjingwl.com/index.php/api/index/getCredit',
    					method: 'POST',
    					data: {},
    					success: (res) => {
    						self.money = res.data.data.val.money;
    						self.money2 = res.data.data.val.money;
    
    
    						self.bank_open = res.data.data.val.bank_open;
    						self.interest_rate = res.data.data.val.interest_rate;
    
    
    						// console.log(res.data.data.val, 'ressssssssss');
    						self.give_account = res.data.data.val.give_account.slice(0, 3) + '*'.repeat(3) + res.data.data.val.give_account.slice(6);
    
    
    
    						// self.term_list = res.data.data.val.term_list;
    
    						// console.log(res.data.data.val.term_list, 'res.data.data.val.term_lis');
    						let term_listArray = [];
    						res.data.data.val.term_list.forEach((item, index) => {
    							term_listArray.push({
    								value: index,
    								text: item
    							})
    							// console.log(item,'itemmm');
    							// console.log(term_listArray, 'term_listArray');
    						})
    						self.term_listArray = term_listArray;
    						// console.log(term_listArray,'term_listArray');
    
    
    
    
    						// self.account_list = res.data.data.val.account_list;
    						
    						let account_listArray = [];
    						res.data.data.val.term_list.forEach((item, index) => {
    							account_listArray.push({
    								value: index,
    								text: item
    							})
    						})
    						self.account_listArray = account_listArray;
    
    
    				
    						console.log(res.data.data.val.repayment_list, 'ressssssssss');
    						let give_account_listArray = [];
    						res.data.data.val.repayment_list.forEach((item, index) => {
    							give_account_listArray.push({
    								value: index,
    								text: item
    							})
    						})
    						self.give_account_listArray = give_account_listArray;
    
    
    
    						// if (res.data && res.statusCode === 200) {
    						// // 请求成功处理
    						// } else {
    						// 	// 请求失败处理
    						// 	console.error('请求失败', res);
    						// }
    					},
    				});
    			},
    			getClear() {
    				this.money = ''
    			}
    		}
    	}
    script>
    
    <style scoped>
    	page {
    		background-color: #F8F9FA;
    	}
    
    	.box {}
    
    	.currentLimit {
    		width: 100vw !important;
    		background-color: #FFF;
    	}
    
    	.currentLimit-half {
    		padding: 20rpx 30rpx 10rpx 30rpx;
    		box-sizing: border-box;
    		font-size: 28rpx;
    		font-family: Source Han Sans CN-Regular, Source Han Sans CN;
    		font-weight: 400;
    		color: #666666;
    		line-height: 50rpx;
    	}
    
    	.currentLimit-half text {
    		font-size: 28rpx;
    		font-family: ;
    		/* font-family: Source Han Sans CN-Regular, Source Han Sans CN; */
    		font-weight: 400;
    		color: #4E73D4;
    		line-height: 50rpx;
    	}
    
    	.currentLimitImg {
    		width: 182rpx;
    		height: 40rpx;
    		margin-left: 30rpx;
    	}
    
    	.currentLimitImg image {
    		width: 182rpx;
    		height: 40rpx;
    	}
    
    	.currentLimit-txt {
    		/* float: right; */
    		display: flex;
    		align-items: center;
    		padding-right: 20rpx;
    		flex-direction: row-reverse;
    	}
    
    	.currentLimit-txt-lft {
    		font-size: 26rpx;
    		font-family: Source Han Sans CN-Regular, Source Han Sans CN;
    		font-weight: 400;
    		color: #9B9B9B;
    		line-height: 32rpx;
    	}
    
    	.currentLimit-txt-btm {
    		width: 160rpx;
    		height: 60rpx;
    		background: #4A7AE0;
    		border-radius: 232rpx 232rpx 232rpx 232rpx;
    		opacity: 1;
    		font-size: 28rpx;
    		font-family: SourceHanSansCN-Medium-, SourceHanSansCN-Medium;
    		font-weight: normal;
    		color: #FFFFFF;
    		line-height: 40rpx;
    		display: flex;
    		justify-content: center;
    		align-items: center;
    		margin-left: 10rpx;
    	}
    
    	.currentLimit-ipt {
    		/* height: 150rpx; */
    		height: 120rpx;
    		opacity: 1;
    		display: flex;
    		align-items: center;
    		padding-left: 20rpx;
    		border-bottom: 2rpx solid #F4F4F4;
    	}
    
    	.currentLimit-ipt text {
    		font-size: 56rpx;
    		font-family: MicrosoftYaHei-, MicrosoftYaHei;
    		font-weight: normal;
    		color: #000000;
    		line-height: 32rpx;
    	}
    
    	.currentLimit-ipt input {
    		font-size: 90rpx;
    		font-family: HarmonyOS Naskh Arabic UI-Regular, HarmonyOS Naskh Arabic UI;
    		font-weight: 400;
    		color: #000000;
    		line-height: 0rpx;
    	}
    
    	.currentLimit-tab {
    		padding: 24rpx;
    		box-sizing: border-box;
    		display: flex;
    		flex-direction: row;
    		margin-left: 16rpx;
    	}
    
    	.currentLimit-tab1 {
    		width: 144rpx;
    		height: 44rpx;
    		background: #F8F9FA;
    		border-radius: 74rpx 74rpx 74rpx 74rpx;
    		opacity: 1;
    		font-size: 24rpx;
    		font-family: MicrosoftYaHei-, MicrosoftYaHei;
    		font-weight: normal;
    		color: #999999;
    		line-height: 32rpx;
    		display: flex;
    		justify-content: center;
    		align-items: center;
    		border: 2rpx solid #F8F9FA;
    	}
    
    	.active {
    		width: 144rpx;
    		height: 44rpx;
    		background: #EEF2FE;
    		border-radius: 74rpx 74rpx 74rpx 74rpx;
    		opacity: 0.5;
    		border: 2rpx solid #4A7AE0;
    		font-size: 24rpx;
    		font-family: MicrosoftYaHei-, MicrosoftYaHei;
    		font-weight: normal;
    		color: #5D77BA;
    		display: flex;
    		justify-content: center;
    		align-items: center;
    	}
    
    
    
    	.currentLimit-tab2 {
    		margin-left: 32rpx;
    	}
    
    	.annualcargo {
    		margin-top: 24rpx;
    		background-color: #FFF;
    	}
    
    	.annualcargo-list {
    		/* padding: 34rpx 32rpx 32rpx 30rpx; */
    		padding: 34rpx 22rpx 32rpx 30rpx;
    		display: flex;
    		justify-content: space-between;
    		border-bottom: 2rpx solid #F4F4F4;
    	}
    
    	.statement {
    		margin-top: 24rpx;
    		background-color: #FFF;
    		padding-bottom: 12rpx;
    	}
    
    	.statement-txt {
    		padding: 30rpx 38rpx 32rpx 30rpx;
    		box-sizing: border-box;
    		font-size: 24rpx;
    		font-family: Source Han Sans CN-Regular, Source Han Sans CN;
    		font-weight: 400;
    		color: #666666;
    		line-height: 36rpx;
    	}
    
    	.statement-txt text {
    		font-size: 24rpx;
    		font-family: Source Han Sans CN-Regular, Source Han Sans CN;
    		font-weight: 400;
    		color: #408ACB;
    		line-height: 44rpx;
    		border-bottom: 1rpx solid #408ACB;
    		float: right;
    	}
    
    	.statement-textarea {
    		margin: 5rpx 32rpx 32rpx 32rpx;
    		padding-bottom: 32rpx;
    
    		width: 686rpx;
    		height: 336rpx;
    		border-radius: 16rpx 16rpx 16rpx 16rpx;
    		opacity: 1;
    		border: 2rpx solid #999999;
    	}
    
    	.statementTey {
    		width: 714rpx;
    		height: 84rpx;
    		background: #4A7AE0;
    		border-radius: 137rpx 137rpx 137rpx 137rpx;
    		opacity: 1;
    		font-size: 32rpx;
    		font-family: MicrosoftYaHei-, MicrosoftYaHei;
    		font-weight: normal;
    		color: #FFFFFF;
    		line-height: 36rpx;
    		display: flex;
    		justify-content: center;
    		align-items: center;
    		margin: 32rpx auto;
    	}
    
    	.statementTeyTop {
    		height: 44rpx;
    	}
    
    	.annualcargo-list-lft {
    		display: flex;
    		align-items: center;
    		font-size: 32rpx;
    		font-family: SourceHanSansCN-Regular-, SourceHanSansCN-Regular;
    		font-weight: normal;
    		color: #3D3D3D;
    		line-height: 50rpx;
    	}
    
    	.annualcargo-list-lft image {
    		width: 24rpx;
    		height: 24rpx;
    		margin-left: 10rpx;
    	}
    
    	.statement-textarea {
    		font-size: 28rpx;
    		font-family: Source Han Sans CN-Regular, Source Han Sans CN;
    		font-weight: 400;
    		color: #666666;
    		/* line-height: 44rpx; */
    		padding-top: 28rpx;
    		padding-left: 22rpx;
    		box-sizing: border-box;
    	}
    
    	.annualcargo-list-rgt {
    		font-size: 28rpx;
    		font-family: SourceHanSansCN-Regular-, SourceHanSansCN-Regular;
    		font-weight: normal;
    		color: #999999;
    		line-height: 50rpx;
    		display: flex;
    		align-items: center;
    	}
    
    	/deep/.annualcargo-list-rgt .uni-select {
    		border: none;
    		/* width: 130rpx; */
    		position: relative;
    		left: 10rpx;
    
    
    	}
    
    	/deep/ .annualcargo-list-rgt .uni-select__input-placeholder {
    		font-size: 28rpx !important;
    		font-family: SourceHanSansCN-Regular-, SourceHanSansCN-Regular !important;
    		font-weight: normal !important;
    		color: #999999 !important;
    		line-height: 50rpx !important;
    	}
    
    	/deep/ .annualcargo-list-rgt .uni-select__input-text {
    		font-size: 28rpx;
    		font-family: SourceHanSansCN-Regular-, SourceHanSansCN-Regular;
    		font-weight: normal;
    		color: #3D3D3D;
    		line-height: 50rpx;
    	}
    
    	.annualcargo-list-rgt image {
    		/* border: 1rpx solid red; */
    		width: 40rpx;
    		height: 40rpx;
    		position: relative;
    		/* left: 3rpx; */
    	}
    
    	.annualcargo-list-rgt2 {
    		font-size: 28rpx;
    		font-family: SourceHanSansCN-Regular-, SourceHanSansCN-Regular;
    		font-weight: normal;
    		color: #3D3D3D;
    		line-height: 50rpx;
    		margin-right: 10rpx;
    	}
    
    	.annualcargo-list-rgt3 {
    		font-size: 28rpx;
    		font-family: SourceHanSansCN-Regular-, SourceHanSansCN-Regular;
    		font-weight: normal;
    		color: #3D3D3D;
    		line-height: 50rpx;
    		margin-right: 10rpx;
    	}
    
    	.currentLimit-ipt input {
    		width: 620rpx;
    	}
    
    	.currentLimit-ipt image {
    		width: 40rpx;
    		height: 40rpx;
    	}
    style>
    
    • 1
    • 2
    • 3
    • 4
    • 5
    • 6
    • 7
    • 8
    • 9
    • 10
    • 11
    • 12
    • 13
    • 14
    • 15
    • 16
    • 17
    • 18
    • 19
    • 20
    • 21
    • 22
    • 23
    • 24
    • 25
    • 26
    • 27
    • 28
    • 29
    • 30
    • 31
    • 32
    • 33
    • 34
    • 35
    • 36
    • 37
    • 38
    • 39
    • 40
    • 41
    • 42
    • 43
    • 44
    • 45
    • 46
    • 47
    • 48
    • 49
    • 50
    • 51
    • 52
    • 53
    • 54
    • 55
    • 56
    • 57
    • 58
    • 59
    • 60
    • 61
    • 62
    • 63
    • 64
    • 65
    • 66
    • 67
    • 68
    • 69
    • 70
    • 71
    • 72
    • 73
    • 74
    • 75
    • 76
    • 77
    • 78
    • 79
    • 80
    • 81
    • 82
    • 83
    • 84
    • 85
    • 86
    • 87
    • 88
    • 89
    • 90
    • 91
    • 92
    • 93
    • 94
    • 95
    • 96
    • 97
    • 98
    • 99
    • 100
    • 101
    • 102
    • 103
    • 104
    • 105
    • 106
    • 107
    • 108
    • 109
    • 110
    • 111
    • 112
    • 113
    • 114
    • 115
    • 116
    • 117
    • 118
    • 119
    • 120
    • 121
    • 122
    • 123
    • 124
    • 125
    • 126
    • 127
    • 128
    • 129
    • 130
    • 131
    • 132
    • 133
    • 134
    • 135
    • 136
    • 137
    • 138
    • 139
    • 140
    • 141
    • 142
    • 143
    • 144
    • 145
    • 146
    • 147
    • 148
    • 149
    • 150
    • 151
    • 152
    • 153
    • 154
    • 155
    • 156
    • 157
    • 158
    • 159
    • 160
    • 161
    • 162
    • 163
    • 164
    • 165
    • 166
    • 167
    • 168
    • 169
    • 170
    • 171
    • 172
    • 173
    • 174
    • 175
    • 176
    • 177
    • 178
    • 179
    • 180
    • 181
    • 182
    • 183
    • 184
    • 185
    • 186
    • 187
    • 188
    • 189
    • 190
    • 191
    • 192
    • 193
    • 194
    • 195
    • 196
    • 197
    • 198
    • 199
    • 200
    • 201
    • 202
    • 203
    • 204
    • 205
    • 206
    • 207
    • 208
    • 209
    • 210
    • 211
    • 212
    • 213
    • 214
    • 215
    • 216
    • 217
    • 218
    • 219
    • 220
    • 221
    • 222
    • 223
    • 224
    • 225
    • 226
    • 227
    • 228
    • 229
    • 230
    • 231
    • 232
    • 233
    • 234
    • 235
    • 236
    • 237
    • 238
    • 239
    • 240
    • 241
    • 242
    • 243
    • 244
    • 245
    • 246
    • 247
    • 248
    • 249
    • 250
    • 251
    • 252
    • 253
    • 254
    • 255
    • 256
    • 257
    • 258
    • 259
    • 260
    • 261
    • 262
    • 263
    • 264
    • 265
    • 266
    • 267
    • 268
    • 269
    • 270
    • 271
    • 272
    • 273
    • 274
    • 275
    • 276
    • 277
    • 278
    • 279
    • 280
    • 281
    • 282
    • 283
    • 284
    • 285
    • 286
    • 287
    • 288
    • 289
    • 290
    • 291
    • 292
    • 293
    • 294
    • 295
    • 296
    • 297
    • 298
    • 299
    • 300
    • 301
    • 302
    • 303
    • 304
    • 305
    • 306
    • 307
    • 308
    • 309
    • 310
    • 311
    • 312
    • 313
    • 314
    • 315
    • 316
    • 317
    • 318
    • 319
    • 320
    • 321
    • 322
    • 323
    • 324
    • 325
    • 326
    • 327
    • 328
    • 329
    • 330
    • 331
    • 332
    • 333
    • 334
    • 335
    • 336
    • 337
    • 338
    • 339
    • 340
    • 341
    • 342
    • 343
    • 344
    • 345
    • 346
    • 347
    • 348
    • 349
    • 350
    • 351
    • 352
    • 353
    • 354
    • 355
    • 356
    • 357
    • 358
    • 359
    • 360
    • 361
    • 362
    • 363
    • 364
    • 365
    • 366
    • 367
    • 368
    • 369
    • 370
    • 371
    • 372
    • 373
    • 374
    • 375
    • 376
    • 377
    • 378
    • 379
    • 380
    • 381
    • 382
    • 383
    • 384
    • 385
    • 386
    • 387
    • 388
    • 389
    • 390
    • 391
    • 392
    • 393
    • 394
    • 395
    • 396
    • 397
    • 398
    • 399
    • 400
    • 401
    • 402
    • 403
    • 404
    • 405
    • 406
    • 407
    • 408
    • 409
    • 410
    • 411
    • 412
    • 413
    • 414
    • 415
    • 416
    • 417
    • 418
    • 419
    • 420
    • 421
    • 422
    • 423
    • 424
    • 425
    • 426
    • 427
    • 428
    • 429
    • 430
    • 431
    • 432
    • 433
    • 434
    • 435
    • 436
    • 437
    • 438
    • 439
    • 440
    • 441
    • 442
    • 443
    • 444
    • 445
    • 446
    • 447
    • 448
    • 449
    • 450
    • 451
    • 452
    • 453
    • 454
    • 455
    • 456
    • 457
    • 458
    • 459
    • 460
    • 461
    • 462
    • 463
    • 464
    • 465
    • 466
    • 467
    • 468
    • 469
    • 470
    • 471
    • 472
    • 473
    • 474
    • 475
    • 476
    • 477
    • 478
    • 479
    • 480
    • 481
    • 482
    • 483
    • 484
    • 485
    • 486
    • 487
    • 488
    • 489
    • 490
    • 491
    • 492
    • 493
    • 494
    • 495
    • 496
    • 497
    • 498
    • 499
    • 500
    • 501
    • 502
    • 503
    • 504
    • 505
    • 506
    • 507
    • 508
    • 509
    • 510
    • 511
    • 512
    • 513
    • 514
    • 515
    • 516
    • 517
    • 518
    • 519
    • 520
    • 521
    • 522
    • 523
    • 524
    • 525
    • 526
    • 527
    • 528
    • 529
    • 530
    • 531
    • 532
    • 533
    • 534
    • 535
    • 536
    • 537
    • 538
    • 539
    • 540
    • 541
    • 542
    • 543
    • 544
    • 545
    • 546
    • 547
    • 548
    • 549
    • 550
    • 551
    • 552
    • 553
    • 554
    • 555
    • 556
    • 557
    • 558
    • 559
    • 560
    • 561
    • 562
    • 563
    • 564
    • 565
    • 566
    • 567
    • 568
    • 569
    • 570
    • 571
    • 572
    • 573
    • 574
    • 575
    • 576
    • 577
    • 578
    • 579
    • 580

    最后

    感觉文章好的话记得点个心心和关注和收藏,有错的地方麻烦指正一下,如果需要转载,请标明出处,多谢!!!

  • 相关阅读:
    分类算法-逻辑回归与二分类
    创建python虚拟环境
    近5年133个java面试题
    Day49——盒子类型,浮动属性,定位属性,JavaScript基础语法
    js实现放大镜(详细注释)
    动态sql和分页
    CrossOver2023Win电脑软件操作在Mac、Linux系统运行教程
    adb 连接无线手机安装 apk
    聊聊云原生数据平台
    MySQL 相关英文单词
  • 原文地址:https://blog.csdn.net/m0_49714202/article/details/134259818