Commit f24fc85f by 李伟康

增加线索

1 parent e102b3d5
...@@ -101,7 +101,9 @@ ...@@ -101,7 +101,9 @@
"pages/carEquity/carSeries/carSeries", "pages/carEquity/carSeries/carSeries",
"pages/TabBar/equityPage", "pages/TabBar/equityPage",
"pages/carEquity/previewContract/previewContract", "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 \ No newline at end of file
{
"usingComponents": {}
}
\ No newline at end of file \ No newline at end of file
/* packageEquity/pages/clueDetail/clueDetail.wxss */
\ No newline at end of file \ No newline at end of file
<!--packageEquity/pages/clueDetail/clueDetail.wxml-->
<text>packageEquity/pages/clueDetail/clueDetail.wxml</text>
\ No newline at end of file \ 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 \ No newline at end of file
{
"usingComponents": {}
}
\ No newline at end of file \ No newline at end of file
/* packageEquity/pages/clueList/clueList.wxss */
\ No newline at end of file \ No newline at end of file
<!--packageEquity/pages/clueList/clueList.wxml-->
<text>packageEquity/pages/clueList/clueList.wxml</text>
\ No newline at end of file \ No newline at end of file
/* packageEquity/pages/collegeScene/collegeScene.wxss */
\ No newline at end of file \ No newline at end of file
...@@ -2,7 +2,9 @@ ...@@ -2,7 +2,9 @@
const IMG_URL = 'https://img02.glsx.com.cn/weapp/resource/dj-car-boutique-work-wechat/' const IMG_URL = 'https://img02.glsx.com.cn/weapp/resource/dj-car-boutique-work-wechat/'
// import api from '~/packageCrowdFunding/api' // import api from '~/packageCrowdFunding/api'
import NP from 'number-precision' import NP from 'number-precision'
import { getBusinessSchoolScene } from '~/store/index' import {
getBusinessSchoolScene
} from '~/store/index'
import { import {
getQuotationStatistics, getQuotationStatistics,
outputValueStatistics, outputValueStatistics,
...@@ -80,6 +82,10 @@ Component({ ...@@ -80,6 +82,10 @@ Component({
menuText: '新建工单', menuText: '新建工单',
icon: 'create_order', icon: 'create_order',
path: '' path: ''
}, {
menuText: '客户线索',
icon: 'create_order',
path: 'packageEquity.clueList'
}], }],
loginRoleLabel: { loginRoleLabel: {
1: '超管', 1: '超管',
...@@ -112,18 +118,18 @@ Component({ ...@@ -112,18 +118,18 @@ Component({
userInfo userInfo
}) })
// let issta // let issta
let { menuList } = this.data let {
menuList
} = this.data
getBusinessSchoolScene({}) getBusinessSchoolScene({})
.then(res => { .then(res => {
console.log(res, 'res') console.log(res, 'res')
if ((res || userInfo?.isSuper) && menuList.every(item => item.menuText != '商学院')) { if ((res || userInfo?.isSuper) && menuList.every(item => item.menuText != '商学院')) {
menuList.unshift( menuList.unshift({
{ menuText: '商学院',
menuText: '商学院', icon: 'businessschoo',
icon: 'businessschoo', path: ''
path: '' })
}
)
this.setData({ this.setData({
menuList menuList
}) })
...@@ -240,13 +246,22 @@ Component({ ...@@ -240,13 +246,22 @@ Component({
let { let {
mode, mode,
} = this.data } = this.data
let { item } = e.currentTarget.dataset let {
// 商学院特殊处理 item
if (item.menuText == '商学院') { } = e.currentTarget.dataset
return wx.$router.go('packageEquity.collegeScene', { reLaunchPath: 'packageEquity.equityPage', tabIndex: 0 }) 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) // console.log(e)
// const thisPage = wx.$router.getPageInstance() // const thisPage = wx.$router.getPageInstance()
// let {item} = e.currentTarget.dataset // let {item} = e.currentTarget.dataset
......
...@@ -54,12 +54,12 @@ ...@@ -54,12 +54,12 @@
<view class="title">展业工具</view> <view class="title">展业工具</view>
<view class="menu_box"> <view class="menu_box">
<view class="menu_item" wx:for="{{menuList}}" wx:key="index" bindtap="navGo" data-item="{{item}}"> <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"> <view class="icon">
<image src="{{IMG_URL}}crowdFunding/{{item.icon}}.png" mode="widthFix" /> <image src="{{IMG_URL}}crowdFunding/{{item.icon}}.png" mode="widthFix" />
</view> </view>
<view class="text">{{item.menuText}}</view> <view class="text">{{item.menuText}}</view>
</block> <!-- </block> -->
<block wx:if="{{item.menuText == '商学院'}}"> <block wx:if="{{item.menuText == '商学院'}}">
<view class="icon"> <view class="icon">
<image src="{{IMG_URL}}crowdFunding/{{item.icon}}.png" mode="widthFix" /> <image src="{{IMG_URL}}crowdFunding/{{item.icon}}.png" mode="widthFix" />
......
...@@ -93,7 +93,7 @@ page ::-webkit-scrollbar { ...@@ -93,7 +93,7 @@ page ::-webkit-scrollbar {
} }
.mtTips { .mtTips {
margin-bottom: 74rpx; padding-bottom: 74rpx;
} }
.conTitle { .conTitle {
......
/* tabIndex/pages/index/index.wxss */
\ No newline at end of file \ No newline at end of file
...@@ -67,6 +67,12 @@ export default { ...@@ -67,6 +67,12 @@ export default {
type:"mini", type:"mini",
recordId: 12, recordId: 12,
icon: 'boutique-syzs' icon: 'boutique-syzs'
},
{
name: '客户线索',
url: 'packageEquity.clueList',
recordId: 11,
icon: 'business_data'
} }
], ],
totalTableSum: [ totalTableSum: [
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!