瀏覽代碼

Merge branch 'test' of git.echepei.com:sailun/sailun-tbr-web into test

caojunjie 4 年之前
父節點
當前提交
f856d5d633
共有 3 個文件被更改,包括 3 次插入9 次删除
  1. 3 9
      pages/login/register_3.vue
  2. 二進制
      static/pdf/xy.pdf
  3. 二進制
      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) {
-							
-						}
 					});
 				}
 				

二進制
static/pdf/xy.pdf


二進制
static/pdf/zc.pdf