Commit f24fc85f by 李伟康

增加线索

1 parent e102b3d5
......@@ -101,7 +101,9 @@
"pages/carEquity/carSeries/carSeries",
"pages/TabBar/equityPage",
"pages/carEquity/previewContract/previewContract",
"pages/collegeScene/collegeScene"
"pages/collegeScene/collegeScene",
"pages/clueList/clueList",
"pages/clueDetail/clueDetail"
]
},
{
......
// packageEquity/pages/clueDetail/clueDetail.js
Page({
/**
* 页面的初始数据
*/
data: {
},
/**
* 生命周期函数--监听页面加载
*/
onLoad(options) {
},
/**
* 生命周期函数--监听页面初次渲染完成
*/
onReady() {
},
/**
* 生命周期函数--监听页面显示
*/
onShow() {
},
/**
* 生命周期函数--监听页面隐藏
*/
onHide() {
},
/**
* 生命周期函数--监听页面卸载
*/
onUnload() {
},
/**
* 页面相关事件处理函数--监听用户下拉动作
*/
onPullDownRefresh() {
},
/**
* 页面上拉触底事件的处理函数
*/
onReachBottom() {
},
/**
* 用户点击右上角分享
*/
onShareAppMessage() {
}
})
\ No newline at end of file
{
"usingComponents": {}
}
\ No newline at end of file
/* packageEquity/pages/clueDetail/clueDetail.wxss */
\ No newline at end of file
<!--packageEquity/pages/clueDetail/clueDetail.wxml-->
<text>packageEquity/pages/clueDetail/clueDetail.wxml</text>
\ No newline at end of file
// packageEquity/pages/clueList/clueList.js
Page({
/**
* 页面的初始数据
*/
data: {
},
/**
* 生命周期函数--监听页面加载
*/
onLoad(options) {
},
/**
* 生命周期函数--监听页面初次渲染完成
*/
onReady() {
},
/**
* 生命周期函数--监听页面显示
*/
onShow() {
},
/**
* 生命周期函数--监听页面隐藏
*/
onHide() {
},
/**
* 生命周期函数--监听页面卸载
*/
onUnload() {
},
/**
* 页面相关事件处理函数--监听用户下拉动作
*/
onPullDownRefresh() {
},
/**
* 页面上拉触底事件的处理函数
*/
onReachBottom() {
},
/**
* 用户点击右上角分享
*/
onShareAppMessage() {
}
})
\ No newline at end of file
{
"usingComponents": {}
}
\ No newline at end of file
/* packageEquity/pages/clueList/clueList.wxss */
\ No newline at end of file
<!--packageEquity/pages/clueList/clueList.wxml-->
<text>packageEquity/pages/clueList/clueList.wxml</text>
\ No newline at end of file
/* packageEquity/pages/collegeScene/collegeScene.wxss */
\ No newline at end of file
......@@ -2,7 +2,9 @@
const IMG_URL = 'https://img02.glsx.com.cn/weapp/resource/dj-car-boutique-work-wechat/'
// import api from '~/packageCrowdFunding/api'
import NP from 'number-precision'
import { getBusinessSchoolScene } from '~/store/index'
import {
getBusinessSchoolScene
} from '~/store/index'
import {
getQuotationStatistics,
outputValueStatistics,
......@@ -80,6 +82,10 @@ Component({
menuText: '新建工单',
icon: 'create_order',
path: ''
}, {
menuText: '客户线索',
icon: 'create_order',
path: 'packageEquity.clueList'
}],
loginRoleLabel: {
1: '超管',
......@@ -112,18 +118,18 @@ Component({
userInfo
})
// let issta
let { menuList } = this.data
let {
menuList
} = this.data
getBusinessSchoolScene({})
.then(res => {
console.log(res, 'res')
if ((res || userInfo?.isSuper) && menuList.every(item => item.menuText != '商学院')) {
menuList.unshift(
{
menuText: '商学院',
icon: 'businessschoo',
path: ''
}
)
menuList.unshift({
menuText: '商学院',
icon: 'businessschoo',
path: ''
})
this.setData({
menuList
})
......@@ -240,13 +246,22 @@ Component({
let {
mode,
} = this.data
let { item } = e.currentTarget.dataset
// 商学院特殊处理
if (item.menuText == '商学院') {
return wx.$router.go('packageEquity.collegeScene', { reLaunchPath: 'packageEquity.equityPage', tabIndex: 0 })
let {
item
} = e.currentTarget.dataset
if (item.path) wx.$router.go(item.path)
else {
// 商学院特殊处理
if (item.menuText == '商学院') {
return wx.$router.go('packageEquity.collegeScene', {
reLaunchPath: 'packageEquity.equityPage',
tabIndex: 0
})
}
wx.$router.go(mode ? 'createOrderCarQuotationSimple' : 'createOrderCarQuotation')
}
wx.$router.go(mode ? 'createOrderCarQuotationSimple' : 'createOrderCarQuotation')
// console.log(e)
// const thisPage = wx.$router.getPageInstance()
// let {item} = e.currentTarget.dataset
......
......@@ -54,12 +54,12 @@
<view class="title">展业工具</view>
<view class="menu_box">
<view class="menu_item" wx:for="{{menuList}}" wx:key="index" bindtap="navGo" data-item="{{item}}">
<block wx:if="{{!userInfo.isSuper && userInfo.userType == 2 && mode!=-1 && item.menuText != '商学院'}}">
<!-- <block wx:if="{{!userInfo.isSuper && userInfo.userType == 2 && mode!=-1 && item.menuText != '商学院'}}"> -->
<view class="icon">
<image src="{{IMG_URL}}crowdFunding/{{item.icon}}.png" mode="widthFix" />
</view>
<view class="text">{{item.menuText}}</view>
</block>
<!-- </block> -->
<block wx:if="{{item.menuText == '商学院'}}">
<view class="icon">
<image src="{{IMG_URL}}crowdFunding/{{item.icon}}.png" mode="widthFix" />
......
......@@ -93,7 +93,7 @@ page ::-webkit-scrollbar {
}
.mtTips {
margin-bottom: 74rpx;
padding-bottom: 74rpx;
}
.conTitle {
......
/* tabIndex/pages/index/index.wxss */
\ No newline at end of file
......@@ -67,6 +67,12 @@ export default {
type:"mini",
recordId: 12,
icon: 'boutique-syzs'
},
{
name: '客户线索',
url: 'packageEquity.clueList',
recordId: 11,
icon: 'business_data'
}
],
totalTableSum: [
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!