qukaidi 4 سال پیش
والد
کامیت
adfa12ef43
3فایلهای تغییر یافته به همراه3 افزوده شده و 9 حذف شده
  1. 3 9
      pages/login/register_3.vue
  2. BIN
      static/pdf/xy.pdf
  3. BIN
      static/pdf/zc.pdf

+ 3 - 9
pages/login/register_3.vue

@@ -111,11 +111,11 @@
 					</u-checkbox-group>
 					<view class="u-flex">
 						同意
-						<view class="" @click="openPdf(xy)">
+						<view class="" @click="openPdf(1)">
 							《用户协议》
 						</view>
-						<view class="" @click="openPdf(zc)">
+						<view class="" @click="openPdf(2)">
 							《隐私政策》
 						</view>
 					</view>
@@ -176,19 +176,13 @@
 		},
 		methods: {
 			openPdf(x) {
-				if(x=='xy'){
+				if(x==1){
 					uni.openDocument({
 						filePath: '../../static/pdf/xy.pdf',
-						success: function(res) {
-							
-						}
 					});
 				}else{
 					uni.openDocument({
 						filePath: '../../static/pdf/zc.pdf',
-						success: function(res) {
-							
-						}
 					});
 				}
 				

BIN
static/pdf/xy.pdf


BIN
static/pdf/zc.pdf