tanxue 5 mesi fa
parent
commit
a0b81d62a5
3 ha cambiato i file con 17 aggiunte e 23 eliminazioni
  1. 7 2
      common/styles/global/pages.scss
  2. 2 3
      pages/login/login.vue
  3. 8 18
      pages/login/sliderDialog.vue

+ 7 - 2
common/styles/global/pages.scss

@@ -115,8 +115,13 @@
 
 // 滑块校验弹窗
 .slider-check-dialog{
-	width: 600rpx;height: 300rpx;background-color: #fff;border-radius: 8px;
-	padding: 20rpx;box-sizing: border-box;text-align: center;font-size: 30rpx;
+	background-color: rgba(255, 255, 255, 0.6);
+	position: fixed;display: flex;flex-direction: column;top: 0;left: 0;bottom:0;right: 0;
+	justify-content: center;align-items: center;
+	.slider-check-content{
+		width: 635rpx;height: 702rpx;padding: 360rpx 36rpx 42rpx;box-sizing: border-box;text-align: center;
+		background-image: url("@/static/images/login/agree-dialog-bj.png");@include ezy-no-repeat-cover;
+	}
 	#yzm-slider{
 		margin: 32rpx 0 46rpx;position: unset;
 		// #nc_1_wrapper{width: 100%;}

+ 2 - 3
pages/login/login.vue

@@ -60,12 +60,11 @@
 		},
 		onReady() {
 			// console.log(sliderDialogRef.value,'sliderDialogRef.value');
-		//	this.$refs.sliderDialogRef.sliderShow();
+			// this.$refs.sliderDialogRef.sliderShow();
 		},
 		methods: {
 			emitFun(data){
-				console.log(111111)
-				console.log(data)
+				console.log(data,'滑块成功')
 			},
 			// receiveRenderData(data) {
 			// 	console.log("获得接受")

+ 8 - 18
pages/login/sliderDialog.vue

@@ -1,19 +1,10 @@
 <template>
-	<view class="">
-	
-		<!-- <uni-popup ref="sliderPopup" :animation="false" :is-mask-click="false"
-		  mask-background-color="rgba(255, 255, 255, 0.6);">
-		  <view class="slider-check-dialog">
-			  <view class="slider-check-content">
-				<text>请通过滑块验证</text>
-				<view id="yzm-slider"></view>
-				<view @click="sliderClose">关闭</view>
-			  </view>
-		  </view>
-		</uni-popup> -->
-	
-			<view style="margin-top: 200px;" id="yzm-slider"></view>
-			<view style="margin-top: 100px;" @click="AWSC.emitData">关闭1111</view>
+	<view class="slider-check-dialog">
+		<view class="slider-check-content">
+			<view>请通过滑块验证</view>
+			<view id="yzm-slider"></view>
+			<view @click="AWSC.emitData">关闭1111</view>
+		</view>
 	</view>
 </template>
 <script>
@@ -102,14 +93,13 @@
 					console.log(data)
 					this.sessionId  =data.sessionId
 					this.sig  =data.sig
-					this.token  =data.token
+					this.token  =data.token
+					AWSC.emitData;
 			},
 			emitData(e, ownerInstance) {
 				console.log(ownerInstance)
 				console.log(this.sessionId)
 				console.log(this)
-				
-				
 				
 				ownerInstance.callMethod('receiveRenderData', {
 					sessionId: this.sessionId,