Commit 2ba0a833 by 张立顺

解决冲突

1 parent d242bd32
// 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
})
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!