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 @@
"pages/tab/index/index",
"pages/tab/output/output",
"pages/tab/mine/mine",
"pages/webView/webView",
"pages/apply/apply",
"login/index/index",
"login/accountItems/accountItems",
"pages/checkProduct/checkProduct",
"packageOutput/pages/summary/summary",
"packageOutput/pages/openBusiness/openBusiness",
"pages/mineDetail/customerManagement/customerManagement",
"pages/mineDetail/messageBox/messageBox"
"pages/checkProduct/checkProduct"
],
"requiredPrivateInfos": ["getLocation"],
"lazyCodeLoading": "requiredComponents",
......@@ -26,8 +20,7 @@
"selectedColor": "#3666FE",
"backgroundColor": "#FFFFFF",
"borderStyle": "white",
"list": [
{
"list": [{
"pagePath": "pages/tab/index/index",
"text": "拓客户",
"iconPath": "images/home.png",
......@@ -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": {
"tab": "/components/Tab/Tab",
"navigation-bar": "/components/NavigationBar/NavigationBar",
"popup": "/components/Popup/Popup",
"nothing-tips": "/components/Nothing-tips/nothingTips",
"crowdfund-poster": "/components/CrowdfundPoster/CrowdfundPoster"
"crowdfund-poster": "/components/CrowdfundPoster/CrowdfundPoster",
"glsx-image": "/components/image/index"
},
"style": "v2",
"resolveAlias": {
......@@ -65,4 +100,4 @@
"desc": "你的位置信息将用于小程序位置接口的效果展示"
}
}
}
}
\ 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
/* components/image/index.wxss */
\ 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
/* pages/mineDetail/messageBox/components/messageBox.wxss */
.msgBox {
display: flex;
flex-direction: column;
box-sizing: border-box;
background-color: #fff;
// width: 100%;
border-radius: 8rpx;
padding: 20rpx;
margin-bottom: 20rpx;
// height: 200rpx;
.title {
// display: flex;
// flex-wrap: wrap;
color: rgba(50, 52, 54, 1);
font-size: 28rpx;
margin-bottom: 8rpx;
view {
// word-break: break-all;
display: inline-block;
white-space: pre-wrap
}
.name {
color: rgba(50, 52, 54, 1);
font-size: 28rpx;
// font-face: PingFangSC;
font-weight: 600;
}
}
.time {
font-size: 24rpx;
color: #8A8C90;
text-align: right;
}
/* pages/mineDetail/messageBox/components/messageBox.wxss */
.msgBox {
display: flex;
flex-direction: column;
box-sizing: border-box;
background-color: #fff;
// width: 100%;
border-radius: 8rpx;
padding: 20rpx;
margin-bottom: 20rpx;
// height: 200rpx;
.title {
// display: flex;
// flex-wrap: wrap;
color: rgba(50, 52, 54, 1);
font-size: 28rpx;
margin-bottom: 8rpx;
view {
// word-break: break-all;
display: inline-block;
white-space: pre-wrap
}
.name {
color: rgba(50, 52, 54, 1);
font-size: 28rpx;
// font-face: PingFangSC;
font-weight: 600;
}
}
.time {
font-size: 24rpx;
color: #8A8C90;
text-align: right;
}
}
\ No newline at end of file
/* pages/mineDetail/customerManagement/customerManagement.wxss */
page {
background-color: #F2F3F7;
}
.customerManagementCon {
width: 100%;
height: 100%;
// width: 100vw;
// height: 100vh;
}
.input {
text-align: left;
font-size: 28rpx;
caret-color: #3666FE;
width: 430rpx;
}
.customerBox {
box-sizing: border-box;
margin: 20rpx 20rpx 0;
padding: 32rpx;
background: #FFFFFF;
border-radius: 8rpx;
.titleCon {
display: flex;
justify-content: space-between;
align-items: center;
border-bottom: 2rpx dashed #CCCED1;
padding-bottom: 20rpx;
.name {
font-size: 28rpx;
color: #323436;
max-width: 90%;
}
.statusBtn {
font-size: 24rpx;
color: #3666FE;
}
}
}
.list {
overflow: scroll;
}
.cellSty {
display: block;
height: 80rpx;
line-height: 80rpx;
}
.placeholder-class {
color: #C3C3C3;
// font-size: 20rpx;
/* pages/mineDetail/customerManagement/customerManagement.wxss */
page {
background-color: #F2F3F7;
}
.customerManagementCon {
width: 100%;
height: 100%;
// width: 100vw;
// height: 100vh;
}
.input {
text-align: left;
font-size: 28rpx;
caret-color: #3666FE;
width: 430rpx;
}
.customerBox {
box-sizing: border-box;
margin: 20rpx 20rpx 0;
padding: 32rpx;
background: #FFFFFF;
border-radius: 8rpx;
.titleCon {
display: flex;
justify-content: space-between;
align-items: center;
border-bottom: 2rpx dashed #CCCED1;
padding-bottom: 20rpx;
.name {
font-size: 28rpx;
color: #323436;
max-width: 90%;
}
.statusBtn {
font-size: 24rpx;
color: #3666FE;
}
}
}
.list {
overflow: scroll;
}
.cellSty {
display: block;
height: 80rpx;
line-height: 80rpx;
}
.placeholder-class {
color: #C3C3C3;
// font-size: 20rpx;
}
\ No newline at end of file
{
"component": true,
"usingComponents": {
"msg-box": "./components/msgBox/msgBox",
"tab": "./components/Tab/Tab"
"msg-box": "../components/msgBox/msgBox",
"tab": "../components/Tab/Tab"
},
"navigationStyle": "custom"
}
{
"component": true,
"usingComponents": {}
}
\ No newline at end of file
{
"usingComponents": {
"scene-box": "../../../components/SceneBox/SceneBox",
"output-transform": "./components/outputTransform/outputTransform",
"output-crowdfund": "./components/outputCrowdfund/outputCrowdfund"
"output-transform": "../components//outputTransform/outputTransform",
"output-crowdfund": "../components/outputCrowdfund/outputCrowdfund"
}
}
\ No newline at end of file
/* packagesList/webView/pages/webView.wxss */
\ No newline at end of file
......@@ -18,6 +18,7 @@ Page({
},
navGO(e) {
let { path } = e.currentTarget.dataset
console.log(path)
wx.$router.go(path)
},
logout() {
......
......@@ -32,13 +32,13 @@
</view>
<view class="utilBoxTitle">常用工具</view>
<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">
<image class="img" src="{{IMAGES.icon0}}" />
</view>
<view class="name">客户管理</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="redPot" hidden="{{!isRead}}" />
<image class="img" src="{{IMAGES.icon1}}" />
......
......@@ -14,6 +14,8 @@ class Router {
wx.onAppRoute &&
wx.onAppRoute(e => {
let thisPage = this.getPageInstance()
console.log(e)
console.log(thisPage)
if (thisPage) {
thisPage.setData({ IMG_URL, img_version: IMG_VERSION() })
if (Object.keys(this[_query]).length) thisPage.options = {
......@@ -76,7 +78,9 @@ class Router {
/**只传页面名 默认跳转当前包下的页面,相同名称默认第一个 */
if (!_name && !last_name) name = _parent
const routerMapItem = this[_routerList].find(item => {
if (route.includes('/')) return item.url === route
if (route.includes('/')) {
return item.url === route
}
else {
if (last_name) {
return item.parent === parent && item.name === last_name && item.subPages === name
......@@ -113,6 +117,7 @@ class Router {
*/
go (route, events) {
let { routerMapItem, query } = this.checkRouter(route, events)
console.log(routerMapItem)
if (routerMapItem.isTab) {
wx.switchTab({
url: routerMapItem.url
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!