| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181 | 
							- <script>
 
- 	export default {
 
- 		data() {
 
- 			return {
 
- 				
 
- 			}
 
- 		},
 
- 		onLaunch: function() {
 
- 			
 
- 		},
 
- 		onShow: function() {
 
- 			this.autoUpdate();
 
- 		},
 
- 		onHide: function() {
 
- 			
 
- 		},
 
- 		methods: {
 
- 			autoUpdate() {
 
- 				if (wx.canIUse('getUpdateManager')) {
 
- 					const updateManager = wx.getUpdateManager();
 
- 					updateManager.onCheckForUpdate(res => {
 
- 						if (res.hasUpdate) {
 
- 							updateManager.onUpdateReady(() => {
 
- 								wx.showModal({
 
- 									title: '更新提示',
 
- 									content: '发现新版本,是否更新?',
 
- 									success: function(res) {
 
- 										if (res.confirm) {
 
- 											updateManager.applyUpdate();
 
- 										}
 
- 									}
 
- 								})
 
- 							});
 
- 							updateManager.onUpdateFailed(function() {
 
- 								wx.showModal({
 
- 									title: '最新版提示',
 
- 									content: '新版本已上线,请您删除当前小程序,重新搜索打开',
 
- 									showCancel: false
 
- 								})
 
- 							});
 
- 						}
 
- 					})
 
- 				} else {
 
- 					wx.showModal({
 
- 						title: '提示',
 
- 						content: '当前微信版本过低,无法使用该功能,请升级到最新微信版本后重试。',
 
- 						showCancel: false
 
- 					})
 
- 				}
 
- 			}
 
- 		}
 
- 	}
 
- </script>
 
- <style lang="scss">
 
- 	/*每个页面公共css */
 
- 	@import "@/uni_modules/uview-ui/index.scss";
 
- 	* {
 
- 		box-sizing: border-box;
 
- 	}
 
- 	uni-page-body,
 
- 	html,
 
- 	body {
 
- 		height: 100%;
 
- 		width: 750rpx;
 
- 		background: #F6F6F6;
 
- 	}
 
- 	.u-button--primary {
 
- 		background-color: #5776E6;
 
- 	}
 
- 	.uni-input-placeholder {
 
- 		text-align: right;
 
- 	}
 
- 	.ml5 {
 
- 		margin-left: 10rpx;
 
- 	}
 
- 	.contain {
 
- 		height: 100%;
 
- 		padding-bottom: 120rpx;
 
- 		padding-top: 24rpx;
 
- 		overflow-y: auto;
 
- 		.main {
 
- 			padding: 0 32rpx;
 
- 			background-color: #fff;
 
- 		}
 
- 		.tijiao {
 
- 			position: fixed;
 
- 			width: 100%;
 
- 			bottom: 0;
 
- 			left: 0;
 
- 			background-color: #fff;
 
- 			padding: 16rpx 32rpx;
 
- 			box-sizing: border-box;
 
- 			box-shadow: 0 -6px 12px 0 rgba(153, 153, 153, 0.10);
 
- 		}
 
- 		.u-cell__value {
 
- 			color: #333 !important;
 
- 		}
 
- 	}
 
- 	
 
- 	.tabPage{
 
- 		background: #F7F7F7;
 
- 		padding: 0 24rpx 194rpx;
 
- 		box-sizing: border-box;
 
- 	}
 
- 	
 
- 	.adf{
 
- 	  display: flex;
 
- 	}
 
- 	.adfac{
 
- 	  display: flex;
 
- 	  align-items: center;
 
- 	}
 
- 	.adffc{
 
- 	  display: flex;
 
- 	  flex-direction: column;
 
- 	}
 
- 	.adfacjc{
 
- 	  display: flex;
 
- 	  align-items: center;
 
- 	  justify-content: center;
 
- 	}
 
- 	.adfacjb{
 
- 	  display: flex;
 
- 	  align-items: center;
 
- 	  justify-content: space-between;
 
- 	}
 
- 	.adffcac{
 
- 	  display: flex;
 
- 	  flex-direction: column;
 
- 	  align-items: center;
 
- 	}
 
- 	.adffcacjc{
 
- 	  display: flex;
 
- 	  flex-direction: column;
 
- 	  align-items: center;
 
- 	  justify-content: center;
 
- 	}
 
- 	.adffcacjb{
 
- 	  display: flex;
 
- 	  flex-direction: column;
 
- 	  align-items: center;
 
- 	  justify-content: space-between;
 
- 	}
 
- 	.zt_btn{
 
- 		width: 100%;
 
- 		height: 88rpx;
 
- 		background: #904A87;
 
- 		border-radius: 44rpx;
 
- 		font-family: PingFangSC, PingFang SC;
 
- 		font-weight: bold;
 
- 		font-size: 32rpx;
 
- 		color: #FFFFFF;
 
- 		line-height: 88rpx;
 
- 		text-align: center;
 
- 		letter-spacing: 2rpx;
 
- 	}
 
- 	.qx_btn{
 
- 		width: 100%;
 
- 		height: 88rpx;
 
- 		border-radius: 44rpx;
 
- 		border: 1rpx solid #E0E4E7;
 
- 		font-family: PingFang-SC, PingFang-SC;
 
- 		font-weight: bold;
 
- 		font-size: 32rpx;
 
- 		color: #002846;
 
- 		line-height: 88rpx;
 
- 		text-align: center;
 
- 		letter-spacing: 2rpx;
 
- 	}
 
- </style>
 
 
  |