소스 검색

no message

USER-20230908AJ\Administrator 1 년 전
부모
커밋
dea04b0582
1개의 변경된 파일11개의 추가작업 그리고 5개의 파일을 삭제
  1. 11 5
      pages/login/model/agreement.vue

+ 11 - 5
pages/login/model/agreement.vue

@@ -4,7 +4,8 @@
       <image class="agreement-agree" v-if="isConsent" src="https://wealfavor-1257406827.cos.ap-beijing.myqcloud.com/new-xcx/login/Checked1@3x.png" mode="aspectFill"></image>
       <image class="agreement-agree" v-else src="https://wealfavor-1257406827.cos.ap-beijing.myqcloud.com/new-xcx/login/Checked2@3x.png" mode="aspectFill"></image>
       <view class="agreement-text text-color-666 sys-size-24">已阅读并同意</view>
-      <view class="agreement-text text-color-dominant sys-size-24" @click.stop="showContent">《隐私政策》</view>
+      <view class="agreement-text text-color-dominant sys-size-24" @click.stop="showContent(1)">《隐私政策》</view>
+      <view class="agreement-text text-color-dominant sys-size-24" @click.stop="showContent(2)">《使用说明》</view>
     </view>
     <view >
       <uni-popup ref="consentObj">
@@ -12,10 +13,11 @@
           <image class="data-title" src="https://wealfavor-1257406827.cos.ap-beijing.myqcloud.com/new-xcx/login/consent_bg.png" mode="widthFix"></image>
           <view class="data-content">
             <scroll-view class="content-box" scroll-y="true"  scroll-left="120">
-              <rich-text :nodes="content"></rich-text>
+              <rich-text :nodes="content" v-if="type===1"></rich-text>
+              <rich-text :nodes="contentLogin" v-else></rich-text>
             </scroll-view>
           </view>
-          <view class="data-but text-color-fff sys-background-dominant sys-size-30 sys-weight-500 sys-radius-100" @click.stop="setConsent()">同意</view>
+          <view class="data-but text-color-fff sys-background-dominant sys-size-30 sys-weight-500 sys-radius-100" @click.stop="setConsent()">{{type===1?'同意':'确认'}}</view>
         </view>
 
       </uni-popup>
@@ -35,7 +37,9 @@ export default {
     return {
       isConsent:false,
       consentShake:false,
-      content:''
+      content:'',
+      contentLogin:'<div>1、当前小程序为大连中山万汇小额贷款有限公司(一下均使用本公司)项目管理应用</div><div>2、此应用为本公司提供项目流程进度管理及流程监管</div><div>3、使用用户为授权的本公司员工,外部人员均无访问权限</div>',
+      type:1
     };
   },
   mounted() {
@@ -55,7 +59,9 @@ export default {
         this.content = tools.imgDeal(res.data)
       }
     },
-    showContent(){
+
+    showContent(type){
+      this.type=type
       this.$refs.consentObj.open('bottom')
     },
     moveHandle() {