Commit 2ba0a833 by 张立顺

解决冲突

1 parent d242bd32
// pages/tab/mine/mine.js
<<<<<<< HEAD
import {
IMG_URL
} from '~/utils/constantData'
=======
// import { IMG_URL } from '~/utils/constantData'
>>>>>>> dev_v3.1
import USERAPI from '~/api/usersApi/index'
import mineApi from '~/api/mineApi/index'
const IMAGES = Object.freeze({
......@@ -24,14 +18,8 @@ Page({
test: `/personal/icon2.png`
},
navGO(e) {
<<<<<<< HEAD
let {
path
} = e.currentTarget.dataset
=======
let { path } = e.currentTarget.dataset
// console.log(path)
>>>>>>> dev_v3.1
wx.$router.go(path)
},
logout() {
......@@ -48,21 +36,16 @@ Page({
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}`
success({ files }) {
files.length &&
files.map(e => {
fn.unlink({
filePath: `${wx.env.USER_DATA_PATH}/${e}`
})
})
})
}
})
<<<<<<< HEAD
wx.$storage.rm('fileList')
=======
// wx.$storage.rm('fileList')
>>>>>>> dev_v3.1
wx.$storage.rm('sessionId')
wx.$storage.rm('userInfo')
wx.$storage.rm('auto_login_object')
......@@ -74,24 +57,14 @@ Page({
})
},
navbarReady(e) {
let {
height,
statusBarHeight
} = e.detail
let { height, statusBarHeight } = e.detail
this.setData({
tabBarStyle: height / 2 + statusBarHeight
})
console.log(e)
},
messageBoxPageIsRead() {
<<<<<<< HEAD
console.log(111)
let {
serviceMerchantId
} = this.data
=======
let { serviceMerchantId } = this.data
>>>>>>> dev_v3.1
mineApi
.messageBoxPageIsRead({
serviceMerchantId
......@@ -111,9 +84,7 @@ Page({
* 生命周期函数--监听页面加载
*/
onLoad: function (options) {
let {
userInfo
} = wx.$storage.get()
let { userInfo } = wx.$storage.get()
let serviceMerchantId = userInfo.subLoginUser.merchantId
this.setData({
serviceMerchantId,
......@@ -157,4 +128,4 @@ Page({
* 用户点击右上角分享
*/
onShareAppMessage: function () {}
})
\ 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!