Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas_plus
/
business-assistant
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 2ba0a833
authored
Dec 01, 2022
by
张立顺
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
解决冲突
1 parent
d242bd32
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
38 deletions
pages/tab/mine/mine.js
pages/tab/mine/mine.js
View file @
2ba0a83
// pages/tab/mine/mine.js
// pages/tab/mine/mine.js
<<<<<<<
HEAD
import
{
IMG_URL
}
from
'~/utils/constantData'
=======
// import { IMG_URL } from '~/utils/constantData'
// import { IMG_URL } from '~/utils/constantData'
>>>>>>>
dev_v3
.
1
import
USERAPI
from
'~/api/usersApi/index'
import
USERAPI
from
'~/api/usersApi/index'
import
mineApi
from
'~/api/mineApi/index'
import
mineApi
from
'~/api/mineApi/index'
const
IMAGES
=
Object
.
freeze
({
const
IMAGES
=
Object
.
freeze
({
...
@@ -24,14 +18,8 @@ Page({
...
@@ -24,14 +18,8 @@ Page({
test
:
`/personal/icon2.png`
test
:
`/personal/icon2.png`
},
},
navGO
(
e
)
{
navGO
(
e
)
{
<<<<<<<
HEAD
let
{
path
}
=
e
.
currentTarget
.
dataset
=======
let
{
path
}
=
e
.
currentTarget
.
dataset
let
{
path
}
=
e
.
currentTarget
.
dataset
// console.log(path)
// console.log(path)
>>>>>>>
dev_v3
.
1
wx
.
$router
.
go
(
path
)
wx
.
$router
.
go
(
path
)
},
},
logout
()
{
logout
()
{
...
@@ -48,21 +36,16 @@ Page({
...
@@ -48,21 +36,16 @@ Page({
const
fn
=
wx
.
getFileSystemManager
()
const
fn
=
wx
.
getFileSystemManager
()
fn
.
readdir
({
fn
.
readdir
({
dirPath
:
wx
.
env
.
USER_DATA_PATH
,
dirPath
:
wx
.
env
.
USER_DATA_PATH
,
success
({
success
({
files
})
{
files
files
.
length
&&
})
{
files
.
map
(
e
=>
{
files
.
length
&&
files
.
map
(
e
=>
{
fn
.
unlink
(
{
fn
.
unlink
({
filePath
:
`
${
wx
.
env
.
USER_DATA_PATH
}
/
${
e
}
`
filePath
:
`
${
wx
.
env
.
USER_DATA_PATH
}
/
${
e
}
`
})
})
})
})
}
}
})
})
<<<<<<<
HEAD
wx
.
$storage
.
rm
(
'fileList'
)
=======
// wx.$storage.rm('fileList')
// wx.$storage.rm('fileList')
>>>>>>>
dev_v3
.
1
wx
.
$storage
.
rm
(
'sessionId'
)
wx
.
$storage
.
rm
(
'sessionId'
)
wx
.
$storage
.
rm
(
'userInfo'
)
wx
.
$storage
.
rm
(
'userInfo'
)
wx
.
$storage
.
rm
(
'auto_login_object'
)
wx
.
$storage
.
rm
(
'auto_login_object'
)
...
@@ -74,24 +57,14 @@ Page({
...
@@ -74,24 +57,14 @@ Page({
})
})
},
},
navbarReady
(
e
)
{
navbarReady
(
e
)
{
let
{
let
{
height
,
statusBarHeight
}
=
e
.
detail
height
,
statusBarHeight
}
=
e
.
detail
this
.
setData
({
this
.
setData
({
tabBarStyle
:
height
/
2
+
statusBarHeight
tabBarStyle
:
height
/
2
+
statusBarHeight
})
})
console
.
log
(
e
)
console
.
log
(
e
)
},
},
messageBoxPageIsRead
()
{
messageBoxPageIsRead
()
{
<<<<<<<
HEAD
console
.
log
(
111
)
let
{
serviceMerchantId
}
=
this
.
data
=======
let
{
serviceMerchantId
}
=
this
.
data
let
{
serviceMerchantId
}
=
this
.
data
>>>>>>>
dev_v3
.
1
mineApi
mineApi
.
messageBoxPageIsRead
({
.
messageBoxPageIsRead
({
serviceMerchantId
serviceMerchantId
...
@@ -111,9 +84,7 @@ Page({
...
@@ -111,9 +84,7 @@ Page({
* 生命周期函数--监听页面加载
* 生命周期函数--监听页面加载
*/
*/
onLoad
:
function
(
options
)
{
onLoad
:
function
(
options
)
{
let
{
let
{
userInfo
}
=
wx
.
$storage
.
get
()
userInfo
}
=
wx
.
$storage
.
get
()
let
serviceMerchantId
=
userInfo
.
subLoginUser
.
merchantId
let
serviceMerchantId
=
userInfo
.
subLoginUser
.
merchantId
this
.
setData
({
this
.
setData
({
serviceMerchantId
,
serviceMerchantId
,
...
@@ -157,4 +128,4 @@ Page({
...
@@ -157,4 +128,4 @@ Page({
* 用户点击右上角分享
* 用户点击右上角分享
*/
*/
onShareAppMessage
:
function
()
{}
onShareAppMessage
:
function
()
{}
})
\ No newline at end of file
\ No newline at end of file
})
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