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({
...
@@ -84,6 +84,7 @@ App({
versionData
:
null
versionData
:
null
},
},
onShow
(
options
)
{
onShow
(
options
)
{
console
.
log
(
1111
)
getUpdateManager
()
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 @@
...
@@ -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>
...
...
pages/tab/mine/mine.js
View file @
8f95fb5
const
IMAGES
=
Object
.
freeze
({
const
IMAGES
=
Object
.
freeze
({
icon0
:
`/personal/icon1.png`
,
icon0
:
`/personal/icon1.png`
,
icon1
:
`/personal/icon2.png`
,
icon1
:
`/personal/icon2.png`
,
icon2
:
`/personal/icon3.png`
,
icon2
:
`/personal/icon3.png`
,
userAvatarUrl
:
`/personal/userAvatarUrl.png`
userAvatarUrl
:
`/personal/userAvatarUrl.png`
})
})
// import { getMockData } from '~/api/api'
// import { getMockData } from '~/api/api'
import
USERAPI
from
'~/api/usersApi/index'
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
({
/**
/**
* 页面的初始数据
* 页面的初始数据
*/
*/
data
:
{
data
:
{
navStyle
:
'background-color: rgba(0,0,0,0);'
,
navStyle
:
'background-color: rgba(0,0,0,0);'
,
IMAGES
,
IMAGES
,
},
},
jumpLogout
()
{
jumpLogout
()
{
wx
.
navigateTo
({
wx
.
navigateTo
({
url
:
'/pages/tab/logout/logout'
,
url
:
'/pages/tab/logout/logout'
,
})
})
},
},
logout
()
{
jump
(
e
)
{
let
_this
=
this
console
.
log
(
e
)
wx
.
showModal
({
let
{
url
}
=
e
.
currentTarget
.
dataset
title
:
'温馨提示'
,
const
baseUrl
=
'https://img01.glsx.com.cn/weapp/resource/saas/scrm/html/'
content
:
'是否退出当前账号?'
,
const
path
=
`
${
baseUrl
}${
url
}
.html`
confirmColor
:
'#3666FE'
,
// private user
success
(
res
)
{
wx
.
navigateTo
({
if
(
res
.
confirm
)
{
url
:
`/pages/webView/webView?url=
${
encodeURIComponent
(
path
)}
`
// _this.showLoading()
})
wx
.
$api
.
showLoading
()
},
USERAPI
.
logout
().
then
(
_res_
=>
{
logout
()
{
const
fn
=
wx
.
getFileSystemManager
()
let
_this
=
this
fn
.
readdir
({
wx
.
showModal
({
dirPath
:
wx
.
env
.
USER_DATA_PATH
,
title
:
'温馨提示'
,
success
({
files
})
{
content
:
'是否退出当前账号?'
,
files
.
length
&&
confirmColor
:
'#3666FE'
,
files
.
map
(
e
=>
{
success
(
res
)
{
fn
.
unlink
({
if
(
res
.
confirm
)
{
filePath
:
`
${
wx
.
env
.
USER_DATA_PATH
}
/
${
e
}
`
// _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'
)
navbarReady
(
e
)
{
wx
.
$storage
.
rm
(
'userInfo'
)
let
{
height
,
statusBarHeight
}
=
e
.
detail
wx
.
$storage
.
rm
(
'subMerchant'
)
this
.
setData
({
wx
.
$storage
.
rm
(
'auto_login_object'
)
tabBarStyle
:
height
/
2
+
statusBarHeight
wx
.
$storage
.
rm
(
'posterId'
)
})
wx
.
$storage
.
rm
(
"mock_data"
)
},
wx
.
$router
.
reLaunch
(
'login.index'
)
/**
})
* 生命周期函数--监听页面加载
}
*/
}
onLoad
:
async
function
(
options
)
{
})
let
{
userInfo
}
=
wx
.
$storage
.
get
()
},
if
(
userInfo
.
subLoginUser
&&
userInfo
.
subLoginUser
.
phone
)
navbarReady
(
e
)
{
userInfo
.
subLoginUser
.
phone
=
userInfo
.
subLoginUser
.
phone
.
replace
(
/
\B(?=(\d{4})
+
(?!\d))
/g
,
' '
);
let
{
height
,
statusBarHeight
}
=
e
.
detail
this
.
setData
({
this
.
setData
({
userInfo
:
userInfo
.
subLoginUser
tabBarStyle
:
height
/
2
+
statusBarHeight
})
})
},
},
/**
/**
* 生命周期函数--监听页面初次渲染完成
* 生命周期函数--监听页面加载
*/
*/
onReady
:
function
()
{
},
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
()
{
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
)
if
(
wyMerchantId
.
includes
(
+
wx
.
$storage
.
get
().
userInfo
.
merchantId
))
{
if
(
wyMerchantId
.
includes
(
+
wx
.
$storage
.
get
().
userInfo
.
merchantId
))
{
list
.
splice
(
1
,
1
);
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 @@
...
@@ -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
:
2
4
6rpx
;
bottom
:
2
8
6rpx
;
left
:
50%
;
left
:
50%
;
transform
:
translateX
(
-50%
);
transform
:
translateX
(
-50%
);
font-size
:
32rpx
!
important
;
font-size
:
32rpx
!
important
;
...
...
pages/tab/mine/mine.wxml
View file @
8f95fb5
...
@@ -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> -->
...
...
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