Commit 44f92a07 by zhangxw

个人中心 修改

1 parent 5d38142b
{ {
"pages": ["login/loading/loading", "pages/tab/index/index", "pages/tab/output/output", "pages/tab/mine/mine", "pages/webView/webView", "login/index/index", "login/accountItems/accountItems", "pages/viewVideo/index", "pages/viewProd/index", "pages/viewProdBanner/index", "pages/measure/measure/measure", "pages/measure/measureResult/measureResult", "packagesList/activityDetail/activityDetail"], "pages": [
"requiredPrivateInfos": ["getLocation"], "login/loading/loading",
"pages/tab/index/index",
"pages/tab/output/output",
"pages/tab/mine/mine",
"pages/webView/webView",
"login/index/index",
"login/accountItems/accountItems",
"pages/viewVideo/index",
"pages/viewProd/index",
"pages/viewProdBanner/index",
"pages/measure/measure/measure",
"pages/measure/measureResult/measureResult",
"packagesList/activityDetail/activityDetail"
],
"requiredPrivateInfos": [
"getLocation"
],
"lazyCodeLoading": "requiredComponents", "lazyCodeLoading": "requiredComponents",
"window": { "window": {
"backgroundTextStyle": "light", "backgroundTextStyle": "light",
...@@ -37,37 +53,59 @@ ...@@ -37,37 +53,59 @@
{ {
"root": "packagesList/pages", "root": "packagesList/pages",
"name": "packagesList", "name": "packagesList",
"pages": ["videoDetal/videoDetal", "productDetail/productDetail", "scenarioDetail/scenarioDetail"] "pages": [
"videoDetal/videoDetal",
"productDetail/productDetail",
"scenarioDetail/scenarioDetail"
]
}, },
{ {
"root": "packagesList/packageOutput", "root": "packagesList/packageOutput",
"name": "packageOutput", "name": "packageOutput",
"pages": ["pages/openBusiness", "pages/summary"] "pages": [
"pages/openBusiness",
"pages/summary"
]
}, },
{ {
"root": "packagesList/mineDetail", "root": "packagesList/mineDetail",
"name": "mineDetail", "name": "mineDetail",
"pages": ["pages/messageBox", "pages/customerManagement", "pages/clue"] "pages": [
"pages/messageBox",
"pages/customerManagement",
"pages/clue",
"pages/staffManage/staffList/staffList",
"pages/serviceManage/serviceList/serviceList"
]
}, },
{ {
"root": "packagesList/apply", "root": "packagesList/apply",
"name": "apply", "name": "apply",
"pages": ["pages/apply"] "pages": [
"pages/apply"
]
}, },
{ {
"root": "packagesList/applyProd", "root": "packagesList/applyProd",
"name": "applyProd", "name": "applyProd",
"pages": ["pages/apply"] "pages": [
"pages/apply"
]
} }
], ],
"preloadRule": { "preloadRule": {
"pages/tab/mine/mine": { "pages/tab/mine/mine": {
"network": "all", "network": "all",
"packages": ["mineDetail"] "packages": [
"mineDetail"
]
}, },
"pages/tab/index/index": { "pages/tab/index/index": {
"network": "all", "network": "all",
"packages": ["apply", "packageOutput"] "packages": [
"apply",
"packageOutput"
]
} }
}, },
"usingComponents": { "usingComponents": {
......
...@@ -5,7 +5,11 @@ Component({ ...@@ -5,7 +5,11 @@ Component({
*/ */
properties: { properties: {
tips: String, tips: String,
bg: String bg: String,
bgColor: {
type: String,
value: '#fff'
}
}, },
/** /**
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
.nothingCon { .nothingCon {
width: 100vw; width: 100vw;
height: 100vh; height: 100vh;
background-color: #fff; // background-color: #fff;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
align-items: center; align-items: center;
......
<!-- components/Nothing-tips/nothingTips.wxml --> <!-- components/Nothing-tips/nothingTips.wxml -->
<view class="nothingCon"> <view class="nothingCon" style="background-color: {{}};">
<image <image
wx:if="{{bg}}" wx:if="{{bg}}"
class="bg" class="bg"
......
// packagesList/mineDetail/pages/serviceManage/serviceList/serviceList.js
Page({
/**
* 页面的初始数据
*/
data: {
},
/**
* 生命周期函数--监听页面加载
*/
onLoad(options) {
},
/**
* 生命周期函数--监听页面初次渲染完成
*/
onReady() {
},
/**
* 生命周期函数--监听页面显示
*/
onShow() {
},
/**
* 生命周期函数--监听页面隐藏
*/
onHide() {
},
/**
* 生命周期函数--监听页面卸载
*/
onUnload() {
},
/**
* 页面相关事件处理函数--监听用户下拉动作
*/
onPullDownRefresh() {
},
/**
* 页面上拉触底事件的处理函数
*/
onReachBottom() {
},
/**
* 用户点击右上角分享
*/
onShareAppMessage() {
}
})
\ No newline at end of file \ No newline at end of file
{
"usingComponents": {}
}
\ No newline at end of file \ No newline at end of file
/* packagesList/mineDetail/pages/serviceManage/serviceList/serviceList.wxss */
\ No newline at end of file \ No newline at end of file
<!--packagesList/mineDetail/pages/serviceManage/serviceList/serviceList.wxml-->
<text>packagesList/mineDetail/pages/serviceManage/serviceList/serviceList.wxml</text>
// packagesList/mineDetail/pages/staffManage/staffManage.js
import { IMG_URL } from '~/utils/constantData'
Page({
/**
* 页面的初始数据
*/
data: {
bgUrl: `${IMG_URL}/personal/empty_tran.png`,
staffList: []
},
/**
* 生命周期函数--监听页面加载
*/
onLoad(options) {
},
/**
* 生命周期函数--监听页面初次渲染完成
*/
onReady() {
},
/**
* 生命周期函数--监听页面显示
*/
onShow() {
},
/**
* 生命周期函数--监听页面隐藏
*/
onHide() {
},
/**
* 生命周期函数--监听页面卸载
*/
onUnload() {
},
/**
* 页面相关事件处理函数--监听用户下拉动作
*/
onPullDownRefresh() {
},
/**
* 页面上拉触底事件的处理函数
*/
onReachBottom() {
},
/**
* 用户点击右上角分享
*/
onShareAppMessage() {
}
})
\ No newline at end of file \ No newline at end of file
{
"navigationBarTitleText": "员工管理",
"usingComponents": {}
}
\ No newline at end of file \ No newline at end of file
/* packagesList/mineDetail/pages/staffManage/staffManage.wxss */
\ No newline at end of file \ No newline at end of file
<!--packagesList/mineDetail/pages/staffManage/staffManage.wxml-->
<view class="staff-list-page">
<view class="btn_box">
</view>
<view class="content-box" wx:if="{{staffList.length}}"></view>
<view wx:else>
<nothing-tips tips="暂无员工~" bgColor="{{'#F2F3F7'}}" bg="{{bgUrl}}" />
</view>
</view>
...@@ -3,9 +3,11 @@ ...@@ -3,9 +3,11 @@
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({
icon0: `/personal/icon1.png`, icon0: `personal/icon1.png`,
icon1: `/personal/icon2.png`, icon1: `personal/icon2.png`,
icon2: `/personal/icon3.png`, icon2: `personal/icon3.png`,
icon3: `personal/icon4.png`,
icon4: `personal/icon5.png`,
userAvatarUrl: `/personal/userAvatarUrl.png` userAvatarUrl: `/personal/userAvatarUrl.png`
}) })
import { unreadApi, readApi } from '~/api/index.js' import { unreadApi, readApi } from '~/api/index.js'
...@@ -20,9 +22,6 @@ Page({ ...@@ -20,9 +22,6 @@ Page({
// isRead: false, // isRead: false,
test: `/personal/icon2.png`, test: `/personal/icon2.png`,
boxItemList: [{ boxItemList: [{
name: '客户管理',
path: 'packagesList.customerManagement'
}, {
name: '消息盒子', name: '消息盒子',
path: 'packagesList.messageBox', path: 'packagesList.messageBox',
hasRedPot: true, hasRedPot: true,
...@@ -32,6 +31,19 @@ Page({ ...@@ -32,6 +31,19 @@ Page({
path: 'packagesList.clue', path: 'packagesList.clue',
hasRedPot: true, hasRedPot: true,
isRead: false isRead: false
}, {
name: '服务中心管理',
path: 'packagesList.serviceList',
hasRedPot: true,
isRead: false
}, {
name: '员工管理',
path: 'packagesList.staffList',
hasRedPot: true,
isRead: false
}, {
name: '客户管理',
path: 'packagesList.customerManagement'
}], }],
isShowService: false, isShowService: false,
}, },
......
...@@ -97,13 +97,17 @@ page { ...@@ -97,13 +97,17 @@ page {
.boxItemCon { .boxItemCon {
display: flex; display: flex;
padding: 0 10rpx; flex-wrap: wrap;
// padding: 0 10rpx;
.item { .item {
margin-left: 66rpx;
margin-top: 32rpx; // margin-left: 66rpx;
// margin-top: 32rpx;
// height: 96rpx; // height: 96rpx;
// width: 96rpx; // width: 96rpx;
width: 25%;
margin-top: 32rpx;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
align-items: center; align-items: center;
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!