Commit 8f95fb57 by 前端

隐私协议

1 parent c10a814e
...@@ -84,6 +84,7 @@ App({ ...@@ -84,6 +84,7 @@ App({
versionData: null versionData: null
}, },
onShow(options) { onShow(options) {
console.log(1111)
getUpdateManager() getUpdateManager()
}, },
// 获取公共数据 // 获取公共数据
......
<view class="funnel-box">
<view class="funnel-bg">
<glsx-image webp src="store-assistant/activity_funnel.webp"></glsx-image>
</view>
<view class="funnel-content">
<view class="left">
<view wx:for="{{data.numList}}" wx:key="index">{{item.title}}<text>{{item.num}}</text></view>
</view>
<view class="right">
<view class="sort-box" wx:for="{{data.sortList}}" wx:key="index">
<view>{{item.title}}</view>
<view class="sort">{{item.sort}}%</view>
</view>
</view>
</view>
</view>
...@@ -36,7 +36,7 @@ ...@@ -36,7 +36,7 @@
</veiw> </veiw>
</view> </view>
<view class="item otherItem"> <view class="item otherItem">
<view class="label">总产值(员)</view> <view class="label">总产值(元)</view>
<veiw class="number"> <veiw class="number">
<text class="unit">¥</text>{{fn.accMul(outputData['totalOutputValue'], 1)||0}} <text class="unit">¥</text>{{fn.accMul(outputData['totalOutputValue'], 1)||0}}
</veiw> </veiw>
......
...@@ -9,7 +9,7 @@ import USERAPI from '~/api/usersApi/index' ...@@ -9,7 +9,7 @@ import USERAPI from '~/api/usersApi/index'
import util from '~/utils/util' import util from '~/utils/util'
import { import {
wyMerchantId wyMerchantId
} from '~/utils/request/environment' } from '~/utils/request/environment'
Page({ Page({
/** /**
* 页面的初始数据 * 页面的初始数据
...@@ -23,6 +23,16 @@ Page({ ...@@ -23,6 +23,16 @@ Page({
url: '/pages/tab/logout/logout', url: '/pages/tab/logout/logout',
}) })
}, },
jump(e) {
console.log(e)
let { url } = e.currentTarget.dataset
const baseUrl = 'https://img01.glsx.com.cn/weapp/resource/saas/scrm/html/'
const path = `${baseUrl}${url}.html`
// private user
wx.navigateTo({
url: `/pages/webView/webView?url=${encodeURIComponent(path)}`
})
},
logout() { logout() {
let _this = this let _this = this
wx.showModal({ wx.showModal({
...@@ -70,7 +80,7 @@ Page({ ...@@ -70,7 +80,7 @@ Page({
*/ */
onLoad: async function (options) { onLoad: async function (options) {
let { userInfo } = wx.$storage.get() let { userInfo } = wx.$storage.get()
if(userInfo.subLoginUser&&userInfo.subLoginUser.phone) if (userInfo.subLoginUser && userInfo.subLoginUser.phone)
userInfo.subLoginUser.phone = userInfo.subLoginUser.phone.replace(/\B(?=(\d{4})+(?!\d))/g, ' '); userInfo.subLoginUser.phone = userInfo.subLoginUser.phone.replace(/\B(?=(\d{4})+(?!\d))/g, ' ');
this.setData({ this.setData({
userInfo: userInfo.subLoginUser userInfo: userInfo.subLoginUser
...@@ -84,8 +94,8 @@ Page({ ...@@ -84,8 +94,8 @@ Page({
/** /**
* 生命周期函数--监听页面显示 * 生命周期函数--监听页面显示
*/ */
onShow: function (){ onShow: function () {
if (typeof this.getTabBar === 'function' ) { if (typeof this.getTabBar === 'function') {
this.getTabBar((tabBar) => { this.getTabBar((tabBar) => {
const list = util.deepClone(tabBar.data.initList) const list = util.deepClone(tabBar.data.initList)
......
...@@ -12,7 +12,15 @@ ...@@ -12,7 +12,15 @@
page { page {
background-color: #fff; background-color: #fff;
} }
.tips {
position: fixed;
bottom: 200rpx;
left: 50%;
transform: translateX(-50%);
text {
color: #4466F0;
}
}
.testfont { .testfont {
font-weight: bold; font-weight: bold;
font-size: 30rpx; font-size: 30rpx;
...@@ -146,7 +154,7 @@ page { ...@@ -146,7 +154,7 @@ page {
.logoutBtn { .logoutBtn {
position: fixed; position: fixed;
bottom: 246rpx; bottom: 286rpx;
left: 50%; left: 50%;
transform: translateX(-50%); transform: translateX(-50%);
font-size: 32rpx !important; font-size: 32rpx !important;
......
...@@ -14,6 +14,10 @@ ...@@ -14,6 +14,10 @@
<button class="logoutBtn" size="default" type="default" isabled="{{false}}" loading="{{false}}" bindtap="logout" hover-class="button-hover"> <button class="logoutBtn" size="default" type="default" isabled="{{false}}" loading="{{false}}" bindtap="logout" hover-class="button-hover">
退出登录 退出登录
</button> </button>
<view class="tips">
<text catchtap="jump" data-url="privacy">《隐私协议》</text>
<text catchtap="jump" data-url="agreement">《用户协议》</text>
</view>
<!-- <view class="logot"> <!-- <view class="logot">
<glsx-image class="logot" webp src="store-assistant-assemble/login/arrow-left.png"></glsx-image> <glsx-image class="logot" webp src="store-assistant-assemble/login/arrow-left.png"></glsx-image>
</view> --> </view> -->
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!