|
@@ -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) {
|
|
|
-
|
|
|
- }
|
|
|
});
|
|
|
}
|
|
|
|