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="layer">
<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>
<!-- 关闭按钮 -->
<view class="close" @click="close('close')" v-if="showClose != false">
<image class="close-item" :src="closeImage"></image>
@ -21,11 +24,13 @@
<script>
import Popup from '@/components/popup/popup'
import privacy from '@/pages/help/private'
import protocol from '@/pages/help/prototal'
export default {
components: {
"popup":Popup,
privacy
privacy,
protocol
},
props: {
@ -38,6 +43,11 @@
Type:String,
default:""
},
//
mkey:{
Type:String,
default: ""
},
//
showClose: {
Type: Boolean,

12
pages/reg/reg.vue

@ -52,7 +52,7 @@
<!-- 弹框 -->
<!-- <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>
</template>
@ -224,13 +224,15 @@
},
//
viewdoc(e){
const query = this.$route
console.log(query)
// const query = this.$route
// console.log(query)
//
let xurl="pages/help/"+e
this.murl= xurl;
// let xurl="pages/help/"+e
// this.murl= xurl;
// this.$toast(e)
console.log(e)
this.murl = e
this.showPopup = ! this.showPopup
},
//

Loading…
Cancel
Save