Explorar o código

隐私条款更新
筛选

liuyao hai 1 ano
pai
achega
ed4e38d5b4

+ 84 - 0
package-basic-data/pages/register/company-register/company-register.js

@@ -1,7 +1,9 @@
 const mixins = require('@/mixins/index.js')
 const util = require('@/utils/util.js')
 const Constants = require('@/utils/Constants.js');
+
 const api = require('@/utils/api.js');
+const config = require('@/config/config.js');
 
 const app = getApp()
 
@@ -333,6 +335,88 @@ Page({
     return true
   },
   /**
+  * @desc : 用户协议
+  * @date : 2024/7/12 13:48
+  * @author : 刘尧
+  */
+  openUserAgreement() {
+    let url = config.image_url + '/agreement/userAgreement.pdf'
+    let toUrl = null;
+    if (url) {
+      // 看下是否包括http,http就跳转到product页面
+      if (url.indexOf('http') >= 0) {
+        // toUrl = '/pages/product/product'
+        wx.downloadFile({
+          url: url,
+          success(e) {
+            wx.openDocument({
+              filePath: e.tempFilePath,
+              showMenu: true,
+              fileType: 'pdf',
+              success(e) {
+                console.log('success', e);
+              },
+              fail(e) {
+                console.log('fail', e);
+              }
+            })
+          }
+        })
+      } else {
+        // 说明是跳本产品
+        toUrl = url;
+        wx.navigateTo({
+          url: toUrl,
+          success: function (res) {
+            res.eventChannel.emit('url', url);
+          }
+        })
+      }
+    }
+  },
+
+  /**
+  * @desc : 隐私协议
+  * @date : 2024/7/11 13:49
+  * @author : 周兴
+  */
+  openPrivacyAgreement() {
+    let url = config.image_url + '/agreement/privacyAgreement.pdf'
+
+    let toUrl = null;
+    if (url) {
+      // 看下是否包括http,http就跳转到product页面
+      if (url.indexOf('http') >= 0) {
+        // toUrl = '/pages/product/product'
+        wx.downloadFile({
+          url: url,
+          success(e) {
+            wx.openDocument({
+              filePath: e.tempFilePath,
+              showMenu: true,
+              fileType: 'pdf',
+              success(e) {
+                console.success('openFile', e);
+              },
+              fail(e) {
+                console.fail('openFile', e);
+              }
+            })
+          }
+        })
+      } else {
+        // 说明是跳本产品
+        toUrl = url;
+        wx.navigateTo({
+          url: toUrl,
+          success: function (res) {
+            res.eventChannel.emit('url', url);
+          }
+        })
+      }
+    }
+  },
+  /**
   * @desc : 初始化加载
   * @date : 2024/5/30 15:49
   * @author : 周兴

+ 2 - 2
package-basic-data/pages/register/company-register/company-register.wxml

@@ -82,8 +82,8 @@
 	<view class="notice-item-class">{{noticeInfo.cpSize}}</view>
 	<view class="notice-item-class" style="display: flex;padding-top: 20rpx;">
 		<van-checkbox shape="square" value="{{flgPrimary}}" label-class="checkbox-class" bind:change="handleChangeCheckbox">我已阅读并同意</van-checkbox>
-		<view style="color: #CE9965;">《注册须知》</view>
-		<view style="color: #CE9965;">《免责条款》</view>
+		<view bind:tap="openUserAgreement" style="color: #CE9965;text-decoration: underline;">《用户协议》</view>和
+		<view bind:tap="openPrivacyAgreement" style="color: #CE9965;text-decoration: underline;">《隐私条款》</view>
 	</view>
 </view>
 <view style="height: 200rpx;"></view>

+ 1 - 1
package-inventory/pages/ivt-sum-report/ivt-sum-report.js

@@ -27,7 +27,7 @@ Page({
       { code: 'warehouse', title: mixins.$t('reservoirArea'), dropType: 'warehouse' },
       {
         code: 'choose',
-        title: mixins.$t("choose"),
+        title: '过滤',
         searchType: Constants.searchType.pick
       }
     ],