Commit 0f48add7 by 张立顺

功能开发完成

1 parent fd8e0d32
...@@ -21,6 +21,7 @@ import { promisifyAll } from './utils/lib/wx-promise-pro' ...@@ -21,6 +21,7 @@ import { promisifyAll } from './utils/lib/wx-promise-pro'
promisifyAll() promisifyAll()
// promisify(wx.getSystemInfo)().then(console.log) // promisify(wx.getSystemInfo)().then(console.log)
// 实例化对象存储 // 实例化对象存储
import { Storage } from './utils/cache/storage' import { Storage } from './utils/cache/storage'
const $Storage = new Storage() const $Storage = new Storage()
......
{ {
"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": ["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/mineDetail/customerManagement/customerManagement", "pages/mineDetail/messageBox/messageBox"],
"requiredPrivateInfos": ["getLocation"], "requiredPrivateInfos": ["getLocation"],
"lazyCodeLoading": "requiredComponents", "lazyCodeLoading": "requiredComponents",
"window": { "window": {
...@@ -36,7 +36,7 @@ ...@@ -36,7 +36,7 @@
"subpackages": [], "subpackages": [],
"usingComponents": { "usingComponents": {
"tab": "/components/Tab/Tab", "tab": "/components/Tab/Tab",
"navigation-bar":"/components/NavigationBar/NavigationBar" "navigation-bar": "/components/NavigationBar/NavigationBar"
}, },
"style": "v2", "style": "v2",
"resolveAlias": { "resolveAlias": {
......
// components/GlCell/GlCell.js
Component({
/**
* 组件的属性列表
*/
properties: {
label: String,
labelWidth: String,
border: Boolean,
haveArrow: Boolean,
value: String,
valueAlign: String,
required: Boolean,
placeholder: String,
iconSrc: String,
labelStyle: String,
cellHeight: {
type: Boolean,
value: true
},
requiredBefore: {
type: Boolean,
value: true
},
requiredAfter: {
type: Boolean,
value: false,
observer: function (n, o) {
if (n) {
this.setData({
requiredBefore: false
})
}
}
},
disabled: Boolean
},
/**
* 组件的初始数据
*/
data: {},
/**
* 组件的方法列表
*/
methods: {
click(e) {
if (this.data.disabled) return
this.triggerEvent('click')
},
titleClick() {
this.triggerEvent('titleClick')
}
}
})
{
"component": true,
"usingComponents": {}
}
\ No newline at end of file \ No newline at end of file
<view class='cell-box'>
<view class="cell {{cellHeight?'cellHeight': ''}} {{border?'border':''}}" bindtap="click">
<view class='cell-label' style="width:{{labelWidth}};{{labelStyle}}" bindtap="titleClick">
<text wx:if='{{required&&requiredBefore}}' class='required'>*</text>
{{label||'标题'}}
<image class="titleIcon" wx:if="{{iconSrc}}" src="{{iconSrc}}" />
<text wx:if='{{required&&requiredAfter}}' class='required'>*</text>
</view>
<view class='cell-value ' style="width:calc(100% - {{labelWidth}});">
<view class='value {{valueAlign}} {{haveArrow}}'>
<view class='slot'>
<slot/>
</view>
<block wx:if="{{value}}">
<view class='details'>{{value}}</view>
</block>
<block wx:if="{{placeholder}}">
<view class='placeholder'>{{placeholder}}</view>
</block>
</view>
<image wx:if='{{haveArrow}}' class='arrow' src="../images/arrow-x.png" />
</view>
</view>
</view>
/* components/GlCell/GlCell.wxss */
.cell-box {
background: #fff;
font-size: 28rpx;
color: #333333;
box-sizing: border-box;
}
.cell {
width: 100%;
box-sizing: border-box;
display: flex;
/* padding-left: 40rpx; */
align-items: center;
}
.cellHeight {
height: 120rpx;
}
.cell.border {
border-bottom: 2rpx solid rgba(195, 195, 195, .3);
}
.cell-label {
width: 25%;
}
.titleIcon {
width: 34rpx;
height: 34rpx;
}
.cell-value {
width: 75%;
position: relative;
height: 100%;
}
.cell-value .false {
padding-right: 40rpx !important;
}
.value {
width: 100%;
height: 100%;
display: flex;
align-items: center;
padding-right: 70rpx;
box-sizing: border-box;
}
.required {
color: #f00;
}
.details,
.placeholder {
display: none;
}
.slot:empty+.details,
.slot:empty+.placeholder {
display: block;
width: 100%;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.placeholder {
color: #C3C3C3;
}
.cell-value .right {
justify-content: flex-end;
height: 100%;
box-sizing: border-box;
}
.cell-value .right .details,
.cell-value .right .placeholder {
text-align: right;
}
.slot {
width: 100%;
}
.slot:empty {
display: none;
}
.arrow {
position: absolute;
right: 40rpx;
top: 50%;
transform: translateY(-50%);
width: 28rpx;
height: 26rpx;
}
\ No newline at end of file \ No newline at end of file
...@@ -42,7 +42,9 @@ Component({ ...@@ -42,7 +42,9 @@ Component({
/** /**
* 组件的初始数据 * 组件的初始数据
*/ */
data: {}, data: {
// hideTab: false
},
/** /**
* 组件的方法列表 * 组件的方法列表
......
...@@ -45,7 +45,7 @@ ...@@ -45,7 +45,7 @@
} }
.popup-slot { .popup-slot {
height: calc(100% - 200rpx); height: calc(100% - 100rpx);
} }
.popup-slot.isFullSucreen { .popup-slot.isFullSucreen {
......
// pages/login/index/index.js // pages/login/index/index.js
import WxValidate from '~/utils/WxValidate' // import WxValidate from '~/utils/WxValidate'
import WxValidate from '~/utils/wxValidate'
// console.log(WxValidate);
Page({ Page({
/** /**
* 页面的初始数据 * 页面的初始数据
......
// pages/mineDetail/customerManagement/customerManagement.js
const listObj = Object.freeze([
{
key: 'merchantId',
label: '商户号:',
editLabel: '商户号'
},
{
key: 'merchantName',
label: '门店名称:',
placeholder: '请输入您的客户门店简称,不超过20个字符',
editLabel: '门店名称',
maxLength: 20
},
{
key: 'phone',
label: '联系人:',
placeholder: '请输入客户门店联系人',
editLabel: '联系人',
maxLength: 10
},
{
key: 'contactName',
label: '手机号:',
placeholder: '请输入客户门店联系人手机号',
editLabel: '手机号',
maxLength: 11
},
{
key: 'mainBrand',
label: '主营品牌:',
placeholder: '请输入客户门店主营品牌,多个品牌以分号区隔',
editLabel: '主营品牌',
maxLength: 20
},
{
key: 'newCarSales',
label: '新车销量:',
placeholder: '请输入客户门店新车月平均销售数',
editLabel: '新车销量',
maxLength: 5
},
{
key: 'existUserNumber',
label: '存量用户数:',
placeholder: '请输入客户门店存量用户数',
editLabel: '存量用户数',
maxLength: 8
}
])
Component({
/**
* 组件的属性列表
*/
properties: {},
/**
* 组件的初始数据
*/
data: {
customerList: [
{
id: 0,
merchantId: 0,
merchantName: 'string',
loginAccountUuid: 'string',
contactName: 'string',
phone: 'string',
mainBrand: 'string',
newCarSales: 0,
existUserNumber: 0,
createdBy: 'string',
createdDate: '2022-10-14T07:33:40.778Z',
updatedBy: 'string',
updatedDate: '2022-10-14T07:33:40.778Z',
deletedFlag: 'string',
partnerMerchantId: 0,
actualMerchantName: 'string',
isEdit: false
},
{
id: 0,
merchantId: 0,
merchantName: 'string',
loginAccountUuid: 'string',
contactName: 'string',
phone: 'string',
mainBrand: 'string',
newCarSales: 0,
existUserNumber: 0,
createdBy: 'string',
createdDate: '2022-10-14T07:33:40.778Z',
updatedBy: 'string',
updatedDate: '2022-10-14T07:33:40.778Z',
deletedFlag: 'string',
partnerMerchantId: 0,
actualMerchantName: 'string',
isEdit: true
}
],
listObj
},
/**
* 组件的方法列表
*/
methods: {
refreshList() {
// this.getUserDayReport()
},
changeStatus(e) {
console.log(e)
},
input(e) {
let { orderObj, userInfo, goodsList } = this.data
let { value } = e.detail
let { name } = e.currentTarget.dataset
this.setData({
[`orderObj.${name}`]: value
})
}
}
})
{
"navigationBarTitleText": "订单补录",
"component": true,
"usingComponents": {
"gl-cell": "../../../components/GlCell/GlCell"
}
}
/* pages/mineDetail/customerManagement/customerManagement.wxss */
page {
background-color: #F2F3F7;
}
.input {
text-align: left;
font-size: 28rpx;
}
.placeholder-class {
color: #C3C3C3;
}
.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;
}
.statusBtn {
font-size: 24rpx;
color: #3666FE;
}
}
}
.cellSty {
display: block;
height: 80rpx;
line-height: 80rpx;
}
\ No newline at end of file \ No newline at end of file
<!-- pages/mineDetail/customerManagement/customerManagement.wxml -->
<view class="customerManagementCon">
<!-- required hidden="{{hidden}}" -->
<scroll-view
scroll-y
enable-back-to-top
refresher-enabled="{{true}}"
bindrefresherrefresh="refreshList"
refresher-threshold="104"
style="height:100%;"
scroll-top="{{scrollTop}}"
class="businessPage list"
refresher-triggered="{{triggered}}">
<view class="customerBox" wx:for="{{customerList}}" wx:key="index">
<view class="titleCon">
<view class="name">嘀加鹏辉奥迪4S店</view>
<view class="statusBtn" data-index="{{index}}" bind:tap="changeStatus">
{{item.isEdit?'完成':'编辑'}}
</view>
</view>
<view/>
<gl-cell
wx:for="{{listObj}}"
wx:key="{{ind}}"
wx:for-index="ind"
wx:for-item="childItem"
valueAlign="right"
class="cellSty"
label="{{item.isEdit?childItem.editLabel :childItem.label }}"
requiredAfter
cellHeight="{{false}}"
labelWidth="140rpx">
<input
placeholder="点击输入"
class="input"
placeholder-class="placeholder-class"
maxlength="{{childItem.maxLength}}"
value="{{item[childItem[key]] }}"
bindinput="input"
data-name="{{childItem[key]}}"
disabled="{{!item.isEdit}}"
always-embed></input>
</gl-cell>
<!-- <gl-cell
valueAlign="right"
label="车主姓名"
requiredAfter
class="cellSty"
cellHeight="{{false}}"
labelWidth="140rpx">
<input
placeholder="点击输入"
class="input"
placeholder-class="placeholder-class"
maxlength="16"
value="{{orderObj.customer.customerName}}"
bindinput="input"
data-name="customer.customerName"
disabled="{{orderObj.orderSource == 5}}"
always-embed></input>
</gl-cell> -->
</view>
</scroll-view>
</view>
// components/Tab/Tab.js
// behaviors: [LocationBehavior],
import { imgUrlMixin } from '~/mixins/index'
Component({
behaviors: [imgUrlMixin],
options: {
addGlobalClass: true
},
/**
* 组件的属性列表
*/
properties: {
outClassName:String,
tab: Array,
openScroll: Boolean,
index: {
type: Number,
observer: function (n) {
this.setData({
count: n,
to: `to-${n}`
})
}
},
itemWidth: String,
align: {
type: String,
default: ''
}
},
/**
* 组件的初始数据
*/
data: {
count: 0,
to: ''
},
/**
* 组件的方法列表
*/
methods: {
click(e) {
let { count } = e.currentTarget.dataset
this.setData({
count,
to: `to-${count}`
})
this.triggerEvent('click', count)
}
}
})
{
"component": true,
"usingComponents": {}
}
\ No newline at end of file \ No newline at end of file
<block wx:if="{{openScroll}}">
<scroll-view
class="tab-box {{align}} {{outClassName}}"
scroll-x
enable-flex
scroll-with-animation
scroll-into-view="{{to}}">
<block wx:for="{{tab}}" wx:key="index">
<view
class="tab {{index==count?'active':''}}"
bindtap="click"
data-count="{{index}}"
id="to-{{index}}">
<view class="text">{{item}}</view>
<!-- <view class="text" style="width:{{38 * item.length + 20}}rpx;">{{item}}</view> -->
<view class="line" />
</view>
</block>
</scroll-view>
</block>
<block wx:else>
<view class="tab-box flex">
<block wx:for="{{tab}}" wx:key="index">
<view
class="tab {{index==count?'active':''}}"
style="width:{{itemWidth}}"
bindtap="click"
data-count="{{index}}">
<view class="text text-center">{{item}}</view>
<view class="line" style="lineStyle" />
</view>
</block>
</view>
</block>
/* components/Tab/Tab.wxss */
.tab-box {
display: flex;
/* display: grid; */
width: 100%;
height: 92rpx;
box-sizing: border-box;
}
.tab-box.left {
padding-left: 32rpx;
}
.left .tab {
padding-right: 40rpx;
}
/* .flex .tab {
flex: 1;
} */
.tab {
position: relative;
flex-shrink: 0;
}
.tab .text {
height: 84rpx;
display: flex;
align-items: center;
box-sizing: border-box;
/* color: #A9A9A9; */
font-size: 32rpx;
color: #8A8C90;
justify-content: center;
}
.left .text {
justify-content: flex-start;
}
.flex .tab .text {
padding: 0;
}
.tab.active .text {
/* font-weight: 500; */
/* font-weight: 600; */
font-size: 44rpx;
transition: all .25s;
font-weight: 500;
font-size: 32rpx;
color: #3666FE;
font-family: PingFangSC-S0pxibold;
}
.tab .line {
width: 120rpx;
height: var(--borderRadius);
background: var(--btnColor);
border-radius: 2rpx;
margin: 0 auto;
transform: scale(0);
transition: all .25s;
}
.tab.active .line {
transform: scale(1);
}
.tab-box::-webkit-scrollbar {
display: none;
width: 0;
height: 0;
color: transparent;
}
/* 外部出进来的自定义样式 */
.project-tab {
padding-left: 20px;
padding-right: 20px;
}
.project-tab .tab {
margin-right: 28px;
}
.project-tab .tab.active .text {
font-size: 28rpx;
color: var(--btnColor);
}
.project-tab .tab .line {
width: auto;
}
\ No newline at end of file \ No newline at end of file
// pages/mineDetail/messageBox/components/messageBox.js
Component({
/**
* 组件的属性列表
*/
properties: {
},
/**
* 组件的初始数据
*/
data: {
},
/**
* 组件的方法列表
*/
methods: {
}
})
{
"component": true,
"usingComponents": {}
}
\ No newline at end of file \ No newline at end of file
/* pages/mineDetail/messageBox/components/messageBox.wxss */
\ No newline at end of file \ No newline at end of file
<!-- pages/mineDetail/messageBox/components/messageBox.wxml -->
<!-- <text>pages/mineDetail/messageBox/components/messageBox.wxml</text> -->
<view class="msgBox">
<view class="title">您的客户XXXX汽车服务有限公司门店活动正在进行中</view>
<slot/>
<view class="time">10-03 09:26:26</view>
</view>
// pages/mineDetail/messageBox/messageBox.js
Component({
/**
* 组件的属性列表
*/
properties: {},
/**
* 组件的初始数据
*/
data: {
navStyle: 'background-color: rgba(0,0,0,0);',
loginType: 0,
agree: true,
tabIndx: 0,
tabList: ['战报', '通知']
},
/**
* 组件的方法列表
*/
methods: {
navbarReady(e) {
let { height, statusBarHeight } = e.detail
console.log(e)
this.setData({
tabBarStyle: height / 2 + statusBarHeight
})
},
changeTabIndx(e) {
// console.log(e)
// let { tabIndx } = this.data
let { detail } = e
// console.log(detail)
this.setData({
tabIndx: detail
})
}
}
})
{
"component": true,
"usingComponents": {
"msg-box": "./components/msgBox/msgBox",
"tab": "./components/Tab/Tab"
},
"navigationStyle": "custom"
}
/* pages/mineDetail/messageBox/messageBox.wxss */
.layout {
position: relative;
// padding: 400rpx 16rpx 0;
padding-top: 400rpx;
font-size: 24rpx;
color: #8A8C90;
&::after {
content: '';
width: 100%;
height: 486rpx;
background: url('https://img02.glsx.com.cn/weapp/resource/saas/business-assistant/login/bg.png') no-repeat;
background-size: 100% 486rpx;
position: absolute;
left: 0;
top: 0;
z-index: -1;
}
.tabContainer {
height: 100rpx;
}
}
\ No newline at end of file \ No newline at end of file
<!-- pages/mineDetail/messageBox/messageBox.wxml -->
<!-- pages/tab/output/output.wxml -->
<!-- <navigation-bar navStyle="{{navStyle}}">服务商账号名称</navigation-bar>
<view class="layout">
</view> -->
<navigation-bar navStyle="{{navStyle}}" bindnavbarReady="navbarReady">
<view>消息盒子</view>
</navigation-bar>
<view class="layout test" style="padding-top:{{tabBarStyle}}px;">
<tab
tab="{{tabList}}"
itemWidth="{{'50%'}}"
index="{{tabIndx}}"
bindclick="changeTabIndx"
class="tabContainer" />
<view hidden="{{tabIndx==0}}">
<scroll-view
scroll-y
enable-back-to-top
refresher-enabled="{{true}}"
bindrefresherrefresh="refreshList"
refresher-threshold="104"
style="height:100%;"
scroll-top="{{scrollTop}}"
class=" list"
data-type="warReport"
refresher-triggered="{{triggered}}">
<msg-box>
<view class="warReportBox">
<view class="item">
<view class="label">当前产值</view>
<view class="num">225000</view>
</view>
<view class="item">
<view class="label">当前产值</view>
<view class="num">225000</view>
</view>
</view>
<view class="link">
点击了解详情:
<view>战报详情</view>
</view>
</msg-box>
</scroll-view>
</view>
<view hidden="{{tabIndx==1}}">
<scroll-view
scroll-y
enable-back-to-top
refresher-enabled="{{true}}"
bindrefresherrefresh="refreshList"
refresher-threshold="104"
style="height:100%;"
scroll-top="{{scrollTop}}"
class=" list"
data-type="message"
refresher-triggered="{{triggered}}">
<msg-box wx:for="messageList">
<view class="cell">
<view class="label">活动名称:</view>
<view class="">xxxx</view>
</view>
</msg-box>
</scroll-view>
</view>
</view>
// pages/tab/mine/mine.js // pages/tab/mine/mine.js
import { IMG_URL } from '~/utils/constantData'
const IMAGES = Object.freeze({
icon0: `${IMG_URL}/personal/icon1.png`,
icon1: `${IMG_URL}/personal/icon2.png`
})
Page({ Page({
/** /**
* 页面的初始数据 * 页面的初始数据
*/ */
data: { data: {
navStyle: 'background-color: rgba(0,0,0,0);',
IMAGES
},
navbarReady(e) {
let { height, statusBarHeight } = e.detail
this.setData({
tabBarStyle: height / 2 + statusBarHeight
})
console.log(e)
}, },
/** /**
* 生命周期函数--监听页面加载 * 生命周期函数--监听页面加载
...@@ -17,8 +32,7 @@ Page({ ...@@ -17,8 +32,7 @@ Page({
/** /**
* 生命周期函数--监听页面显示 * 生命周期函数--监听页面显示
*/ */
onShow: function () { onShow: function () {},
},
/** /**
* 生命周期函数--监听页面隐藏 * 生命周期函数--监听页面隐藏
...@@ -33,8 +47,7 @@ Page({ ...@@ -33,8 +47,7 @@ Page({
/** /**
* 页面相关事件处理函数--监听用户下拉动作 * 页面相关事件处理函数--监听用户下拉动作
*/ */
onPullDownRefresh: function () { onPullDownRefresh: function () {},
},
/** /**
* 页面上拉触底事件的处理函数 * 页面上拉触底事件的处理函数
...@@ -44,6 +57,5 @@ Page({ ...@@ -44,6 +57,5 @@ Page({
/** /**
* 用户点击右上角分享 * 用户点击右上角分享
*/ */
onShareAppMessage: function () { onShareAppMessage: function () {}
},
}) })
{ {
"navigationStyle": "custom", "navigationStyle": "custom"
"enablePullDownRefresh": true
} }
/* pages/tab/output/output.wxss */
@keyframes opacity-view {
0% {
opacity: 0;
}
100% {
opacity: 1;
}
}
page {
background-color: #fff;
}
.layout {
box-sizing: border-box;
position: relative;
// padding: 400rpx 16rpx 0;
padding-top: 400rpx;
font-size: 24rpx;
color: #8A8C90;
&::after {
content: '';
width: 100%;
height: 486rpx;
background: url('https://img02.glsx.com.cn/weapp/resource/saas/business-assistant/login/bg.png') no-repeat;
background-size: 100% 486rpx;
position: absolute;
left: 0;
top: 0;
z-index: -1;
}
.tabContainer {
height: 100rpx;
}
}
.userInfoCon {
height: 360rpx;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
.headPortrait {
width: 128rpx;
height: 128rpx;
border-radius: 64rpx;
border: 2rpx solid #fff;
}
.name {
font-weight: 600;
font-size: 32rpx;
color: #323436;
margin: 16rpx 0;
}
.id {
font-size: 28rpx;
color: #323436;
}
.createTime {
font-family: PingFangSC-Regular;
font-size: 24rpx;
color: #8A8C90;
margin-top: 16rpx;
}
}
.utilBoxTitle {
font-size: 28rpx;
color: #8A8C90;
text-align-last: left;
margin-left: 34rpx;
}
.boxItemCon {
display: flex;
padding: 0 10rpx;
.item {
margin-left: 66rpx;
margin-top: 32rpx;
// height: 96rpx;
// width: 96rpx;
display: flex;
flex-direction: column;
align-items: center;
.imgcon {
position: relative;
.img {
width: 96rpx;
height: 96rpx;
}
.redPot {
width: 12rpx;
height: 12rpx;
background: #F35251;
border-radius: 6rpx;
position: absolute;
top: 24rpx;
right: 20rpx;
z-index: 1;
}
}
.name {
font-size: 24rpx;
color: #323436;
margin-top: 8rpx;
}
}
}
.logoutBtn {
position: fixed;
bottom: 106rpx;
left: 50%;
transform: translateX(-50%);
font-size: 28rpx !important;
color: #8A8C90 !important;
font-weight: 400 !important;
border: 2rpx dashed #EEEEEE !important;
background-color: #fff !important;
}
\ No newline at end of file \ No newline at end of file
<view class="navigation-bar"> <!-- pages/tab/output/output.wxml -->
<navigation-bar navStyle="{{navStyle}}" bindnavbarReady="navbarReady" page-title="个人中心">个人中心</navigation-bar> <!-- <navigation-bar navStyle="{{navStyle}}">服务商账号名称</navigation-bar>
<view class="layout">
</view> -->
<navigation-bar navStyle="{{navStyle}}" bindnavbarReady="navbarReady">
我的账号
<!-- <picker
range="{{merchantRange}}"
value="{{subIndex}}"
range-key="merchantName"
bindchange="changePicker"
bindtap="tapPicker"
bindcancel="tapPicker"
disabled="{{merchantRange.length < 2}}">
<view class="navigation-title">
<view class="navigation-title-text text-hide">{{merchantRange[subIndex].merchantName}}</view>
<view class="arrow {{moveArrow?'move':''}}" wx:if="{{merchantRange.length > 1}}">
<image src="{{${IMG_URL}/output/arrow.png}}" />
</view>
</view>
</picker> -->
</navigation-bar>
<view class="layout" style="padding-top:{{tabBarStyle}}px;">
<view class="userInfoCon">
<image class="headPortrait" src="" webp>头像</image>
<view class="name">代理商账号名</view>
<view class="id">账号:商户ID</view>
<view class="createTime">创建时间:2022-10-03</view>
</view>
<view class="utilBoxTitle">常用工具</view>
<view class="boxItemCon">
<view class="item">
<view class="imgcon">
<image class="img" src="{{IMAGES.icon0}}" />
</view>
<view class="name">客户管理</view>
</view>
<view class="item">
<view class="imgcon">
<view class="redPot" />
<image class="img" src="{{IMAGES.icon1}}" />
</view>
<view class="name">客户管理</view>
</view>
</view>
<button
class="logoutBtn"
size="default"
type="default"
isabled="{{false}}"
loading="{{false}}"
hover-class="button-hover">
退出登录
</button>
</view> </view>
<view class="layout" wx:if="{{user_box_style}}">
<view class="user-box" style="{{user_box_style}}">
<view class="user-info">
<view class="avatar">
<block wx:if="{{userInfo && userInfo.headImgUrl}}">
<image webp src="{{userInfo.headImgUrl}}"></image>
</block>
<block wx:else>
<image webp src="{{IMGURL}}mine/default-avatar.jpg?v={{img_version}}"></image>
</block>
</view>
<view class="info {{userInfo?'':'auth'}}">
<block wx:if="{{userInfo}}">
<view class="nickName">
{{userInfo.nickName || '微信用户'}}
<view class="vip text-center">已认证</view>
</view>
<view class="phone">{{userInfo.phone}}</view>
</block>
<block wx:else>点击登录</block>
</view>
<block wx:if="{{!userInfo}}">
<view class="auth-button" bindtap="login"></view>
<!-- <button open-type="getPhoneNumber" bindtap="login" bindgetphonenumber="getPhoneNumber" class="auth-button"></button> -->
</block>
<block wx:if="{{userInfo && !userInfo.nickName}}">
<view class="auth-button" bindtap="showAuthModal"></view>
</block>
</view>
<view class="coupon-info flex">
<view class="item flex" bindtap="goto" data-url="coupon">
{{total || '0'}}
<view>我的优惠券/张</view>
</view>
<view class="item flex" bindtap="goto" data-url="boutique">
{{gitTotal || '0'}}
<view>精品礼券/张</view>
</view>
</view>
</view>
<!-- 广汇车辆 -->
<block wx:if="{{carFlag}}">
<view class="car-box box GH">
<block wx:if="{{!carList.length}}">
<view class="add-car text-center">
添加爱车专属优惠
<view class="btn flex" bindtap="goto" data-url="GHVehicleInfo">
<view class="sprite-icon icon-mine-add"></view>
添加
</view>
</view>
</block>
<block wx:else>
<view class="car-info">
<view class="title">
我的爱车
<view class="edit" bindtap="goto" data-url="GHVehicleInfo" data-name="list">
管理
<view class="sprite-icon icon-mine-arrow"></view>
</view>
</view>
<view class="my-car">
<gh-car-card item="{{carList[0]}}" selectedCar="null"></gh-car-card>
</view>
</view>
</block>
</view>
</block>
<block wx:if="{{merchantDetail}}">
<view class="merchant-box box">
<view class="title">
<view class="name text-hide">{{merchantDetail.storeName}}</view>
</view>
<view class="address">{{merchantDetail.address}}</view>
<view class="serve-item">
<block wx:if="{{merchantDetail.appointmentPhone}}">
<view class="item flex" bindtap="phoneCall" data-phone="{{merchantDetail.appointmentPhone}}">
<view class="sprite-icon icon-mine-gh-phone"></view>
通话
</view>
</block>
<block wx:if="{{merchantDetail.merchantAddress}}">
<view class="item flex" bindtap="openLocation" data-item="{{merchantDetail}}">
<view class="sprite-icon icon-mine-gh-gps"></view>
导航
</view>
</block>
<block wx:if="{{consultant == null}}">
<view class="item-counselor flex" bindtap="openConsultant" data-item="{{merchantDetail}}">
<view class="icon">
<image webp src="{{IMGURL}}mine/serve.png?v={{img_version}}"></image>
</view>
选择服务顾问
</view>
</block>
</view>
<block wx:if="{{consultant != null}}">
<view class="counselor">
<view class="userInfo">
<view class="counselor-avatar">
<block wx:if="{{consultant.avatar}}">
<image webp src="{{consultant.avatar}}"></image>
</block>
<block wx:else>
<image webp src="{{IMGURL}}mine/default-avatar.png?v={{img_version}}"></image>
</block>
</view>
<view>{{consultant.consultantName}}</view>
</view>
<view class="userInfo">
<view class="user-phone" bindtap="phoneCall" data-phone="{{consultant.phone}}">
<view class="sprite-icon icon-mine-gh-phone"></view>
通话
</view>
<view class="more" bindtap="goCounselor">更多</view>
</view>
</view>
</block>
</view>
</block>
<view class="user-items box">
<block wx:for="{{utilList}}" wx:key="index">
<view class="item" bindtap="jump" data-item="{{item}}">
<view class="label">
<view class="sprite-icon icon-mine-{{item.icon || item.url}} icon"></view>
{{item.text}}
</view>
<view class="sprite-icon icon-mine-arrow"></view>
</view>
</block>
</view>
</view>
<login show="{{showLogin}}"></login>
<authorize scopeType="userInfo" title="是否授权用户昵称&头像" confirmText="授权" cancelText="拒绝" show="{{showAuth}}" bindsuccess="authSuccess"></authorize>
\ No newline at end of file \ No newline at end of file
...@@ -27,6 +27,34 @@ ...@@ -27,6 +27,34 @@
"query": "", "query": "",
"launchMode": "default", "launchMode": "default",
"scene": null "scene": null
},
{
"name": "个人中心",
"pathName": "pages/tab/mine/mine",
"query": "",
"launchMode": "default",
"scene": null
},
{
"name": "",
"pathName": "login/index/index",
"query": "",
"launchMode": "default",
"scene": null
},
{
"name": "客户管理",
"pathName": "pages/mineDetail/customerManagement/customerManagement",
"query": "",
"launchMode": "default",
"scene": null
},
{
"name": "消息盒子",
"pathName": "pages/mineDetail/messageBox/messageBox",
"query": "",
"launchMode": "default",
"scene": null
} }
] ]
} }
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!