Browse Source

根据选择展示

master
453530270@qq.com 2 years ago
parent
commit
da9fd6855e
  1. 16
      pages/reg/components/WhPopup.vue
  2. 12
      pages/reg/reg.vue

16
pages/reg/components/WhPopup.vue

@ -5,10 +5,13 @@
<view class="mask"></view> <view class="mask"></view>
<view class="layer"> <view class="layer">
<view class="specification-wrapper"> <view class="specification-wrapper">
<scroll-view class="specification-wrapper-content" scroll-y="true"> <scroll-view class="specification-wrapper-content" scroll-y="true" >
<!-- 隐私政策 --> <!-- 隐私政策 -->
<privacy></privacy> <privacy v-if="mkey=='private'"></privacy>
<!-- 协议 -->
<protocol v-else></protocol>
</scroll-view> </scroll-view>
<!-- 关闭按钮 --> <!-- 关闭按钮 -->
<view class="close" @click="close('close')" v-if="showClose != false"> <view class="close" @click="close('close')" v-if="showClose != false">
<image class="close-item" :src="closeImage"></image> <image class="close-item" :src="closeImage"></image>
@ -21,11 +24,13 @@
<script> <script>
import Popup from '@/components/popup/popup' import Popup from '@/components/popup/popup'
import privacy from '@/pages/help/private' import privacy from '@/pages/help/private'
import protocol from '@/pages/help/prototal'
export default { export default {
components: { components: {
"popup":Popup, "popup":Popup,
privacy privacy,
protocol
}, },
props: { props: {
@ -38,6 +43,11 @@
Type:String, Type:String,
default:"" default:""
}, },
//
mkey:{
Type:String,
default: ""
},
// //
showClose: { showClose: {
Type: Boolean, Type: Boolean,

12
pages/reg/reg.vue

@ -52,7 +52,7 @@
<!-- 弹框 --> <!-- 弹框 -->
<!-- <popup v-model="showPopup" :maskCloseAble="true" :popurl="murl"></popup> --> <!-- <popup v-model="showPopup" :maskCloseAble="true" :popurl="murl"></popup> -->
<whpop v-model="showPopup" :maskCloseAble="true" :popurl="murl"></whpop> <whpop v-model="showPopup" :maskCloseAble="true" :mkey="murl"></whpop>
</view> </view>
</template> </template>
@ -224,13 +224,15 @@
}, },
// //
viewdoc(e){ viewdoc(e){
const query = this.$route // const query = this.$route
console.log(query) // console.log(query)
// //
let xurl="pages/help/"+e // let xurl="pages/help/"+e
this.murl= xurl; // this.murl= xurl;
// this.$toast(e) // this.$toast(e)
console.log(e)
this.murl = e
this.showPopup = ! this.showPopup this.showPopup = ! this.showPopup
}, },
// //

Loading…
Cancel
Save