Commit 0cee31a0 by 张立顺

Merge branch 'zhangjie_v3.1' into dev_v3.1

2 parents 40a2bf80 68d0eedd
Showing 49 changed files with 217 additions and 120 deletions
...@@ -4,15 +4,9 @@ ...@@ -4,15 +4,9 @@
"pages/tab/index/index", "pages/tab/index/index",
"pages/tab/output/output", "pages/tab/output/output",
"pages/tab/mine/mine", "pages/tab/mine/mine",
"pages/webView/webView",
"pages/apply/apply",
"login/index/index", "login/index/index",
"login/accountItems/accountItems", "login/accountItems/accountItems",
"pages/checkProduct/checkProduct", "pages/checkProduct/checkProduct"
"packageOutput/pages/summary/summary",
"packageOutput/pages/openBusiness/openBusiness",
"pages/mineDetail/customerManagement/customerManagement",
"pages/mineDetail/messageBox/messageBox"
], ],
"requiredPrivateInfos": ["getLocation"], "requiredPrivateInfos": ["getLocation"],
"lazyCodeLoading": "requiredComponents", "lazyCodeLoading": "requiredComponents",
...@@ -26,8 +20,7 @@ ...@@ -26,8 +20,7 @@
"selectedColor": "#3666FE", "selectedColor": "#3666FE",
"backgroundColor": "#FFFFFF", "backgroundColor": "#FFFFFF",
"borderStyle": "white", "borderStyle": "white",
"list": [ "list": [{
{
"pagePath": "pages/tab/index/index", "pagePath": "pages/tab/index/index",
"text": "拓客户", "text": "拓客户",
"iconPath": "images/home.png", "iconPath": "images/home.png",
...@@ -47,13 +40,55 @@ ...@@ -47,13 +40,55 @@
} }
] ]
}, },
"subpackages": [], "subpackages": [{
"root": "packagesList/packageOutput",
"name": "packageOutput",
"pages": [
"pages/openBusiness",
"pages/summary"
]
}, {
"root": "packagesList/mineDetail",
"name": "mineDetail",
"pages": [
"pages/messageBox",
"pages/customerManagement"
]
}, {
"root": "packagesList/webView",
"name": "webView",
"pages": [
"pages/webView"
]
}, {
"root": "packagesList/apply",
"name": "apply",
"pages": [
"pages/apply"
]
}],
"preloadRule": {
"pages/tab/mine/mine": {
"network": "all",
"packages": [
"mineDetail"
]
},
"pages/tab/index/index": {
"network": "all",
"packages": [
"apply",
"packageOutput"
]
}
},
"usingComponents": { "usingComponents": {
"tab": "/components/Tab/Tab", "tab": "/components/Tab/Tab",
"navigation-bar": "/components/NavigationBar/NavigationBar", "navigation-bar": "/components/NavigationBar/NavigationBar",
"popup": "/components/Popup/Popup", "popup": "/components/Popup/Popup",
"nothing-tips": "/components/Nothing-tips/nothingTips", "nothing-tips": "/components/Nothing-tips/nothingTips",
"crowdfund-poster": "/components/CrowdfundPoster/CrowdfundPoster" "crowdfund-poster": "/components/CrowdfundPoster/CrowdfundPoster",
"glsx-image": "/components/image/index"
}, },
"style": "v2", "style": "v2",
"resolveAlias": { "resolveAlias": {
...@@ -65,4 +100,4 @@ ...@@ -65,4 +100,4 @@
"desc": "你的位置信息将用于小程序位置接口的效果展示" "desc": "你的位置信息将用于小程序位置接口的效果展示"
} }
} }
} }
\ No newline at end of file \ No newline at end of file
// components/image/index.js
import {IMG_URL,IMG_VERSION} from '~/utils/constantData'
Component({
externalClasses: ['custom-class','class'],
/**
* 组件的属性列表
*/
properties: {
src: {
type: String,
value: ''
},
mode: {
type: String,
value: 'scaleToFill'
}
},
/**
* 组件的初始数据
*/
data: {
imagePath: ''
},
// 组件生命周期
lifetimes: {
// 在组件实例进入页面节点树时执行
attached: function () {
let src = this.data.src
let prefix = IMG_URL
this.setData({
imagePath: `${prefix}${src}` + IMG_VERSION()
})
},
// 在组件实例被从页面节点树移除时执行
detached: function () {
}
},
/**
* 组件的方法列表
*/
methods: {
}
})
\ No newline at end of file \ No newline at end of file
{ {
"component": true, "component": true,
"usingComponents": {} "usingComponents": {}
} }
\ No newline at end of file \ No newline at end of file
/* components/image/index.wxss */
\ No newline at end of file \ No newline at end of file
<!--components/image/index.wxml-->
<image src="{{imagePath}}" mode="{{mode}}" lazy-load class="custom-class class"></image>
\ No newline at end of file \ No newline at end of file
/* pages/mineDetail/messageBox/components/messageBox.wxss */ /* pages/mineDetail/messageBox/components/messageBox.wxss */
.msgBox { .msgBox {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
box-sizing: border-box; box-sizing: border-box;
background-color: #fff; background-color: #fff;
// width: 100%; // width: 100%;
border-radius: 8rpx; border-radius: 8rpx;
padding: 20rpx; padding: 20rpx;
margin-bottom: 20rpx; margin-bottom: 20rpx;
// height: 200rpx; // height: 200rpx;
.title { .title {
// display: flex; // display: flex;
// flex-wrap: wrap; // flex-wrap: wrap;
color: rgba(50, 52, 54, 1); color: rgba(50, 52, 54, 1);
font-size: 28rpx; font-size: 28rpx;
margin-bottom: 8rpx; margin-bottom: 8rpx;
view { view {
// word-break: break-all; // word-break: break-all;
display: inline-block; display: inline-block;
white-space: pre-wrap white-space: pre-wrap
} }
.name { .name {
color: rgba(50, 52, 54, 1); color: rgba(50, 52, 54, 1);
font-size: 28rpx; font-size: 28rpx;
// font-face: PingFangSC; // font-face: PingFangSC;
font-weight: 600; font-weight: 600;
} }
} }
.time { .time {
font-size: 24rpx; font-size: 24rpx;
color: #8A8C90; color: #8A8C90;
text-align: right; text-align: right;
} }
} }
\ No newline at end of file \ No newline at end of file
/* pages/mineDetail/customerManagement/customerManagement.wxss */ /* pages/mineDetail/customerManagement/customerManagement.wxss */
page { page {
background-color: #F2F3F7; background-color: #F2F3F7;
} }
.customerManagementCon { .customerManagementCon {
width: 100%; width: 100%;
height: 100%; height: 100%;
// width: 100vw; // width: 100vw;
// height: 100vh; // height: 100vh;
} }
.input { .input {
text-align: left; text-align: left;
font-size: 28rpx; font-size: 28rpx;
caret-color: #3666FE; caret-color: #3666FE;
width: 430rpx; width: 430rpx;
} }
.customerBox { .customerBox {
box-sizing: border-box; box-sizing: border-box;
margin: 20rpx 20rpx 0; margin: 20rpx 20rpx 0;
padding: 32rpx; padding: 32rpx;
background: #FFFFFF; background: #FFFFFF;
border-radius: 8rpx; border-radius: 8rpx;
.titleCon { .titleCon {
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
align-items: center; align-items: center;
border-bottom: 2rpx dashed #CCCED1; border-bottom: 2rpx dashed #CCCED1;
padding-bottom: 20rpx; padding-bottom: 20rpx;
.name { .name {
font-size: 28rpx; font-size: 28rpx;
color: #323436; color: #323436;
max-width: 90%; max-width: 90%;
} }
.statusBtn { .statusBtn {
font-size: 24rpx; font-size: 24rpx;
color: #3666FE; color: #3666FE;
} }
} }
} }
.list { .list {
overflow: scroll; overflow: scroll;
} }
.cellSty { .cellSty {
display: block; display: block;
height: 80rpx; height: 80rpx;
line-height: 80rpx; line-height: 80rpx;
} }
.placeholder-class { .placeholder-class {
color: #C3C3C3; color: #C3C3C3;
// font-size: 20rpx; // font-size: 20rpx;
} }
\ No newline at end of file \ No newline at end of file
{ {
"component": true, "component": true,
"usingComponents": { "usingComponents": {
"msg-box": "./components/msgBox/msgBox", "msg-box": "../components/msgBox/msgBox",
"tab": "./components/Tab/Tab" "tab": "../components/Tab/Tab"
}, },
"navigationStyle": "custom" "navigationStyle": "custom"
} }
{ {
"component": true, "component": true,
"usingComponents": {} "usingComponents": {}
}
\ No newline at end of file \ No newline at end of file
}
{
"component": true,
"usingComponents": {}
}
\ No newline at end of file \ No newline at end of file
{ {
"usingComponents": { "usingComponents": {
"scene-box": "../../../components/SceneBox/SceneBox", "scene-box": "../../../components/SceneBox/SceneBox",
"output-transform": "./components/outputTransform/outputTransform", "output-transform": "../components//outputTransform/outputTransform",
"output-crowdfund": "./components/outputCrowdfund/outputCrowdfund" "output-crowdfund": "../components/outputCrowdfund/outputCrowdfund"
} }
} }
\ No newline at end of file \ No newline at end of file
/* packagesList/webView/pages/webView.wxss */
\ No newline at end of file \ No newline at end of file
...@@ -18,6 +18,7 @@ Page({ ...@@ -18,6 +18,7 @@ Page({
}, },
navGO(e) { navGO(e) {
let { path } = e.currentTarget.dataset let { path } = e.currentTarget.dataset
console.log(path)
wx.$router.go(path) wx.$router.go(path)
}, },
logout() { logout() {
......
...@@ -32,13 +32,13 @@ ...@@ -32,13 +32,13 @@
</view> </view>
<view class="utilBoxTitle">常用工具</view> <view class="utilBoxTitle">常用工具</view>
<view class="boxItemCon"> <view class="boxItemCon">
<view class="item" data-path="pages.customerManagement" bind:tap="navGO"> <view class="item" data-path="/packagesList/mineDetail/pages/customerManagement" bind:tap="navGO">
<view class="imgcon"> <view class="imgcon">
<image class="img" src="{{IMAGES.icon0}}" /> <image class="img" src="{{IMAGES.icon0}}" />
</view> </view>
<view class="name">客户管理</view> <view class="name">客户管理</view>
</view> </view>
<view class="item" data-path="pages.messageBox" bind:tap="navGO"> <view class="item" data-path="/packagesList/mineDetail/pages/messageBox" bind:tap="navGO">
<view class="imgcon"> <view class="imgcon">
<view class="redPot" hidden="{{!isRead}}" /> <view class="redPot" hidden="{{!isRead}}" />
<image class="img" src="{{IMAGES.icon1}}" /> <image class="img" src="{{IMAGES.icon1}}" />
......
...@@ -14,6 +14,8 @@ class Router { ...@@ -14,6 +14,8 @@ class Router {
wx.onAppRoute && wx.onAppRoute &&
wx.onAppRoute(e => { wx.onAppRoute(e => {
let thisPage = this.getPageInstance() let thisPage = this.getPageInstance()
console.log(e)
console.log(thisPage)
if (thisPage) { if (thisPage) {
thisPage.setData({ IMG_URL, img_version: IMG_VERSION() }) thisPage.setData({ IMG_URL, img_version: IMG_VERSION() })
if (Object.keys(this[_query]).length) thisPage.options = { if (Object.keys(this[_query]).length) thisPage.options = {
...@@ -76,7 +78,9 @@ class Router { ...@@ -76,7 +78,9 @@ class Router {
/**只传页面名 默认跳转当前包下的页面,相同名称默认第一个 */ /**只传页面名 默认跳转当前包下的页面,相同名称默认第一个 */
if (!_name && !last_name) name = _parent if (!_name && !last_name) name = _parent
const routerMapItem = this[_routerList].find(item => { const routerMapItem = this[_routerList].find(item => {
if (route.includes('/')) return item.url === route if (route.includes('/')) {
return item.url === route
}
else { else {
if (last_name) { if (last_name) {
return item.parent === parent && item.name === last_name && item.subPages === name return item.parent === parent && item.name === last_name && item.subPages === name
...@@ -113,6 +117,7 @@ class Router { ...@@ -113,6 +117,7 @@ class Router {
*/ */
go (route, events) { go (route, events) {
let { routerMapItem, query } = this.checkRouter(route, events) let { routerMapItem, query } = this.checkRouter(route, events)
console.log(routerMapItem)
if (routerMapItem.isTab) { if (routerMapItem.isTab) {
wx.switchTab({ wx.switchTab({
url: routerMapItem.url url: routerMapItem.url
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!