Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas_plus
/
store-assistant-assemble
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 8f95fb57
authored
Feb 28, 2024
by
前端
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
隐私协议
1 parent
c10a814e
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
135 additions
and
128 deletions
app.js
packageOutput/components/invertAnalyse/invertAnalyse.wxml
packagesList/outDetail/components/OutputWork/index.wxml
pages/tab/mine/mine.js
pages/tab/mine/mine.scss
pages/tab/mine/mine.wxml
app.js
View file @
8f95fb5
...
...
@@ -84,6 +84,7 @@ App({
versionData
:
null
},
onShow
(
options
)
{
console
.
log
(
1111
)
getUpdateManager
()
},
// 获取公共数据
...
...
packageOutput/components/invertAnalyse/invertAnalyse.wxml
View file @
8f95fb5
<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>
packagesList/outDetail/components/OutputWork/index.wxml
View file @
8f95fb5
...
...
@@ -36,7 +36,7 @@
</veiw>
</view>
<view class="item otherItem">
<view class="label">总产值(
员
)</view>
<view class="label">总产值(
元
)</view>
<veiw class="number">
<text class="unit">¥</text>{{fn.accMul(outputData['totalOutputValue'], 1)||0}}
</veiw>
...
...
pages/tab/mine/mine.js
View file @
8f95fb5
const
IMAGES
=
Object
.
freeze
({
icon0
:
`/personal/icon1.png`
,
icon1
:
`/personal/icon2.png`
,
icon2
:
`/personal/icon3.png`
,
userAvatarUrl
:
`/personal/userAvatarUrl.png`
icon0
:
`/personal/icon1.png`
,
icon1
:
`/personal/icon2.png`
,
icon2
:
`/personal/icon3.png`
,
userAvatarUrl
:
`/personal/userAvatarUrl.png`
})
// import { getMockData } from '~/api/api'
import
USERAPI
from
'~/api/usersApi/index'
import
util
from
'~/utils/util'
import
{
wyMerchantId
}
from
'~/utils/request/environment'
}
from
'~/utils/request/environment'
Page
({
/**
* 页面的初始数据
*/
data
:
{
navStyle
:
'background-color: rgba(0,0,0,0);'
,
IMAGES
,
},
jumpLogout
()
{
wx
.
navigateTo
({
url
:
'/pages/tab/logout/logout'
,
})
},
logout
()
{
let
_this
=
this
wx
.
showModal
({
title
:
'温馨提示'
,
content
:
'是否退出当前账号?'
,
confirmColor
:
'#3666FE'
,
success
(
res
)
{
if
(
res
.
confirm
)
{
// _this.showLoading()
wx
.
$api
.
showLoading
()
USERAPI
.
logout
().
then
(
_res_
=>
{
const
fn
=
wx
.
getFileSystemManager
()
fn
.
readdir
({
dirPath
:
wx
.
env
.
USER_DATA_PATH
,
success
({
files
})
{
files
.
length
&&
files
.
map
(
e
=>
{
fn
.
unlink
({
filePath
:
`
${
wx
.
env
.
USER_DATA_PATH
}
/
${
e
}
`
/**
* 页面的初始数据
*/
data
:
{
navStyle
:
'background-color: rgba(0,0,0,0);'
,
IMAGES
,
},
jumpLogout
()
{
wx
.
navigateTo
({
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
()
{
let
_this
=
this
wx
.
showModal
({
title
:
'温馨提示'
,
content
:
'是否退出当前账号?'
,
confirmColor
:
'#3666FE'
,
success
(
res
)
{
if
(
res
.
confirm
)
{
// _this.showLoading()
wx
.
$api
.
showLoading
()
USERAPI
.
logout
().
then
(
_res_
=>
{
const
fn
=
wx
.
getFileSystemManager
()
fn
.
readdir
({
dirPath
:
wx
.
env
.
USER_DATA_PATH
,
success
({
files
})
{
files
.
length
&&
files
.
map
(
e
=>
{
fn
.
unlink
({
filePath
:
`
${
wx
.
env
.
USER_DATA_PATH
}
/
${
e
}
`
})
})
}
})
// wx.$storage.rm('fileList')
wx
.
$storage
.
rm
(
'sessionId'
)
wx
.
$storage
.
rm
(
'userInfo'
)
wx
.
$storage
.
rm
(
'subMerchant'
)
wx
.
$storage
.
rm
(
'auto_login_object'
)
wx
.
$storage
.
rm
(
'posterId'
)
wx
.
$storage
.
rm
(
"mock_data"
)
wx
.
$router
.
reLaunch
(
'login.index'
)
})
})
}
})
// wx.$storage.rm('fileList')
wx
.
$storage
.
rm
(
'sessionId'
)
wx
.
$storage
.
rm
(
'userInfo'
)
wx
.
$storage
.
rm
(
'subMerchant'
)
wx
.
$storage
.
rm
(
'auto_login_object'
)
wx
.
$storage
.
rm
(
'posterId'
)
wx
.
$storage
.
rm
(
"mock_data"
)
wx
.
$router
.
reLaunch
(
'login.index'
)
})
}
}
})
},
navbarReady
(
e
)
{
let
{
height
,
statusBarHeight
}
=
e
.
detail
this
.
setData
({
tabBarStyle
:
height
/
2
+
statusBarHeight
})
},
/**
* 生命周期函数--监听页面加载
*/
onLoad
:
async
function
(
options
)
{
let
{
userInfo
}
=
wx
.
$storage
.
get
()
if
(
userInfo
.
subLoginUser
&&
userInfo
.
subLoginUser
.
phone
)
userInfo
.
subLoginUser
.
phone
=
userInfo
.
subLoginUser
.
phone
.
replace
(
/
\B(?=(\d{4})
+
(?!\d))
/g
,
' '
);
this
.
setData
({
userInfo
:
userInfo
.
subLoginUser
})
},
/**
* 生命周期函数--监听页面初次渲染完成
*/
onReady
:
function
()
{
},
}
}
})
},
navbarReady
(
e
)
{
let
{
height
,
statusBarHeight
}
=
e
.
detail
this
.
setData
({
tabBarStyle
:
height
/
2
+
statusBarHeight
})
},
/**
* 生命周期函数--监听页面加载
*/
onLoad
:
async
function
(
options
)
{
let
{
userInfo
}
=
wx
.
$storage
.
get
()
if
(
userInfo
.
subLoginUser
&&
userInfo
.
subLoginUser
.
phone
)
userInfo
.
subLoginUser
.
phone
=
userInfo
.
subLoginUser
.
phone
.
replace
(
/
\B(?=(\d{4})
+
(?!\d))
/g
,
' '
);
this
.
setData
({
userInfo
:
userInfo
.
subLoginUser
})
},
/**
* 生命周期函数--监听页面初次渲染完成
*/
onReady
:
function
()
{
},
/**
* 生命周期函数--监听页面显示
*/
onShow
:
function
()
{
if
(
typeof
this
.
getTabBar
===
'function'
)
{
this
.
getTabBar
((
tabBar
)
=>
{
const
list
=
util
.
deepClone
(
tabBar
.
data
.
initList
)
/**
* 生命周期函数--监听页面显示
*/
onShow
:
function
()
{
if
(
typeof
this
.
getTabBar
===
'function'
)
{
this
.
getTabBar
((
tabBar
)
=>
{
const
list
=
util
.
deepClone
(
tabBar
.
data
.
initList
)
if
(
wyMerchantId
.
includes
(
+
wx
.
$storage
.
get
().
userInfo
.
merchantId
))
{
list
.
splice
(
1
,
1
);
if
(
wyMerchantId
.
includes
(
+
wx
.
$storage
.
get
().
userInfo
.
merchantId
))
{
list
.
splice
(
1
,
1
);
}
tabBar
.
setData
({
active
:
list
.
length
-
1
,
list
})
})
}
tabBar
.
setData
({
active
:
list
.
length
-
1
,
list
})
})
}
},
},
/**
* 生命周期函数--监听页面隐藏
*/
onHide
:
function
()
{
},
/**
* 生命周期函数--监听页面隐藏
*/
onHide
:
function
()
{
},
/**
* 生命周期函数--监听页面卸载
*/
onUnload
:
function
()
{
},
/**
* 生命周期函数--监听页面卸载
*/
onUnload
:
function
()
{
},
/**
* 页面相关事件处理函数--监听用户下拉动作
*/
onPullDownRefresh
:
function
()
{
},
/**
* 页面相关事件处理函数--监听用户下拉动作
*/
onPullDownRefresh
:
function
()
{
},
/**
* 页面上拉触底事件的处理函数
*/
onReachBottom
:
function
()
{
},
/**
* 页面上拉触底事件的处理函数
*/
onReachBottom
:
function
()
{
},
/**
* 用户点击右上角分享
*/
onShareAppMessage
:
function
()
{
}
/**
* 用户点击右上角分享
*/
onShareAppMessage
:
function
()
{
}
})
pages/tab/mine/mine.scss
View file @
8f95fb5
...
...
@@ -12,7 +12,15 @@
page
{
background-color
:
#fff
;
}
.tips
{
position
:
fixed
;
bottom
:
200rpx
;
left
:
50%
;
transform
:
translateX
(
-50%
);
text
{
color
:
#4466F0
;
}
}
.testfont
{
font-weight
:
bold
;
font-size
:
30rpx
;
...
...
@@ -146,7 +154,7 @@ page {
.logoutBtn
{
position
:
fixed
;
bottom
:
2
4
6rpx
;
bottom
:
2
8
6rpx
;
left
:
50%
;
transform
:
translateX
(
-50%
);
font-size
:
32rpx
!
important
;
...
...
pages/tab/mine/mine.wxml
View file @
8f95fb5
...
...
@@ -14,6 +14,10 @@
<button class="logoutBtn" size="default" type="default" isabled="{{false}}" loading="{{false}}" bindtap="logout" hover-class="button-hover">
退出登录
</button>
<view class="tips">
<text catchtap="jump" data-url="privacy">《隐私协议》</text>
<text catchtap="jump" data-url="agreement">《用户协议》</text>
</view>
<!-- <view class="logot">
<glsx-image class="logot" webp src="store-assistant-assemble/login/arrow-left.png"></glsx-image>
</view> -->
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment