Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas_plus
/
dj-car-boutique-work-wechat
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
1
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 6a3d8a28
authored
Nov 20, 2023
by
张立顺
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
权限控制
1 parent
0616ee55
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
226 additions
and
197 deletions
components/TabMine/TabMine.wxml
config.js
packageEquity/pages/index/index.js
tabMine/pages/collectCoupons/collectCoupons.js
tabMine/pages/completeBuild/completeBuild.js
tabMine/pages/completeBuild/completeBuild.sass
tabMine/pages/completeBuild/completeBuild.wxml
tabMine/pages/technicianSetup/technicianSetup.js
tabMine/pages/technicianSetup/technicianSetup.sass
tabMine/pages/technicianSetup/technicianSetup.wxml
components/TabMine/TabMine.wxml
View file @
6a3d8a2
<!--components/tabMine/TabMine.wxml-->
<!--components/tabMine/TabMine.wxml-->
<!-- src引入filter.wxs, module给模块起名 -->
<!-- src引入filter.wxs, module给模块起名 -->
<!-- <wxs src="./index.wxs" module="filter" /> -->
<!-- <wxs src="./index.wxs" module="filter" /> -->
<view>2222</view>
<view class="bg"></view>
<view class="bg"></view>
<block>
<block>
<view class="main" style="margin-top:104rpx">
<view class="main" style="margin-top:104rpx">
<view class="user-box">
<view class="user-box">
<view class="user-avatar">
<view class="user-avatar">
<block wx:if="{{userInfo.userAvatarUrl}}">
<block wx:if="{{userInfo.userAvatarUrl}}">
<image src="{{userInfo.userAvatarUrl}}" bindtap="getAvatar" />
<image src="{{userInfo.userAvatarUrl}}" bindtap="getAvatar" />
</block>
</block>
<block wx:else>
<block wx:else>
<open-data type="userAvatarUrl" />
<open-data type="userAvatarUrl" />
</block>
</block>
</view>
</view>
<view class="name_box">
<view class="name_box">
<view class="item name text-hide">{{userInfo.name}}</view>
<view class="item name text-hide">{{userInfo.name}}</view>
<view class="change_btn" bindtap="changeAccount">切换账号</view>
<view class="change_btn" bindtap="changeAccount">切换账号</view>
</view>
<view class="user-info">
<view class="user-text">
<view class="item">
所属园区:{{userInfo.merchantName}}{{userInfo.isSuper==true?'(超管)':loginRoleLabel[userInfo.loginRole]}}
</view>
<view class="item">创建时间:{{userInfo.createdTime}}</view>
</view>
</view>
<view class="user-info">
</view>
<view class="user-text">
</view>
<view class="item">
<block>
所属园区:{{userInfo.merchantName}}{{userInfo.isSuper==true?'(超管)':loginRoleLabel[userInfo.loginRole]}}
<!-- <view class="scene_box">
</view>
<view class="item">创建时间:{{userInfo.createdTime}}</view>
</view>
</view>
</view>
<block >
<!-- <view class="scene_box">
<view class="title">场景</view>
<view class="title">场景</view>
<view class="select_item">
<view class="select_item">
<view class="scene_message">
<view class="scene_message">
...
@@ -47,8 +46,8 @@
...
@@ -47,8 +46,8 @@
<view class="change_btn" bindtap="changeScene">切换场景</view>
<view class="change_btn" bindtap="changeScene">切换场景</view>
</view>
</view>
</view> -->
</view> -->
<view class="set_box">
<view class="set_box">
<!-- <view class="set_item item_1" bindtap="showWork">
<!-- <view class="set_item item_1" bindtap="showWork">
<view class="title">工位设置<image class="arrow_icon" src="/tabMine/images/arrow_icon.png" mode=""/></view>
<view class="title">工位设置<image class="arrow_icon" src="/tabMine/images/arrow_icon.png" mode=""/></view>
<view class="set_tips" wx:if="{{workCount>0}}"><text style="font-size: 32rpx;color: #333333; font-weight: 500;">{{workCount}}</text>个</view>
<view class="set_tips" wx:if="{{workCount>0}}"><text style="font-size: 32rpx;color: #333333; font-weight: 500;">{{workCount}}</text>个</view>
<view class="set_tips" wx:else>根据门店设置工位数</view>
<view class="set_tips" wx:else>根据门店设置工位数</view>
...
@@ -57,24 +56,22 @@
...
@@ -57,24 +56,22 @@
<view class="title">录单设置<image class="arrow_icon" src="/tabMine/images/arrow_icon.png" mode=""/></view>
<view class="title">录单设置<image class="arrow_icon" src="/tabMine/images/arrow_icon.png" mode=""/></view>
<view class="set_tips">设置录单必填项</view>
<view class="set_tips">设置录单必填项</view>
</view> -->
</view> -->
<view class="set_item item_3" bindtap="changeScene">
<view class="set_item item_3" bindtap="changeScene">
<view class="title">场景切换<image class="arrow_icon" src="/pages/tabMine/images/arrow_icon.png" mode=""/></view>
<view class="title">场景切换
<view class="set_tips">{{selectedSceneName}}</view>
<image class="arrow_icon" src="/pages/tabMine/images/arrow_icon.png" mode="" />
<image class="icon_image" src="{{IMG_URL}}mine_icon_3.png" mode=""/>
</view>
</view>
<view class="set_item item_4" bindtap="goVersionPage">
<view class="set_tips">{{selectedSceneName}}</view>
<view class="title">更新日志<image class="arrow_icon" src="/pages/tabMine/images/arrow_icon.png" mode=""/></view>
<image class="icon_image" src="{{IMG_URL}}mine_icon_3.png" mode="" />
<view class="set_tips">最新{{versionData.version}}版</view>
</view>
<image class="icon_image" src="{{IMG_URL}}mine_icon_1.png" mode=""/>
<view class="set_item item_4" bindtap="goVersionPage">
<view class="title">更新日志
<image class="arrow_icon" src="/pages/tabMine/images/arrow_icon.png" mode="" />
</view>
</view>
<view class="set_tips">最新{{versionData.version}}版</view>
<image class="icon_image" src="{{IMG_URL}}mine_icon_1.png" mode="" />
</view>
</view>
</block>
</view>
<view class="logout text-center" bindtap="logout">退出账号</view>
</block>
</view>
<view class="logout text-center" bindtap="logout">退出账号</view>
</block>
</view>
</block>
\ No newline at end of file
\ No newline at end of file
config.js
View file @
6a3d8a2
...
@@ -18,7 +18,7 @@ export const appId = 'wx570d9331f9ace0bd'
...
@@ -18,7 +18,7 @@ export const appId = 'wx570d9331f9ace0bd'
* 4预发布
* 4预发布
* 5cdptest
* 5cdptest
*/
*/
let
index
=
1
let
index
=
2
const
accountInfo
=
wx
.
getAccountInfoSync
()
const
accountInfo
=
wx
.
getAccountInfoSync
()
const
systemInfo
=
wx
.
getSystemInfoSync
()
const
systemInfo
=
wx
.
getSystemInfoSync
()
...
@@ -66,4 +66,4 @@ export const quotedImgUrl = createQuotedUrl[target[envIndex]]
...
@@ -66,4 +66,4 @@ export const quotedImgUrl = createQuotedUrl[target[envIndex]]
export
const
dsnUrl
=
'https://ddaadc52bf8d4ecc92eca632683d456a@sentry.glsx.com.cn/23'
export
const
dsnUrl
=
'https://ddaadc52bf8d4ecc92eca632683d456a@sentry.glsx.com.cn/23'
// 图片基地址
// 图片基地址
export
const
ImgUrl
=
'https://img02.glsx.com.cn/weapp/resource/dj-car-boutique-work-wechat'
export
const
ImgUrl
=
'https://img02.glsx.com.cn/weapp/resource/dj-car-boutique-work-wechat'
\ No newline at end of file
\ No newline at end of file
packageEquity/pages/index/index.js
View file @
6a3d8a2
...
@@ -65,13 +65,20 @@ Component({
...
@@ -65,13 +65,20 @@ Component({
value
:
'avgQuotationPrice'
,
value
:
'avgQuotationPrice'
,
icon
:
'icon_11'
,
icon
:
'icon_11'
,
unit
:
true
unit
:
true
},
{
label
:
'报价单量'
,
value
:
'totalOrderCount'
,
icon
:
'icon_4'
},
{
label
:
'成交单量'
,
value
:
'totalSuccessOrderCount'
,
icon
:
'icon_7'
}],
}],
menuList
:
[{
menuList
:
[{
menuText
:
'新建工单'
,
menuText
:
'新建工单'
,
icon
:
'create_order'
,
icon
:
'create_order'
,
path
:
''
path
:
''
}
}],
],
loginRoleLabel
:
{
loginRoleLabel
:
{
1
:
'超管'
,
1
:
'超管'
,
2
:
'商户管理员'
,
2
:
'商户管理员'
,
...
@@ -85,7 +92,7 @@ Component({
...
@@ -85,7 +92,7 @@ Component({
lifetimes
:
{
lifetimes
:
{
attached
()
{
attached
()
{
this
.
onLoad
()
this
.
onLoad
()
}
}
...
@@ -95,7 +102,7 @@ Component({
...
@@ -95,7 +102,7 @@ Component({
* 组件的方法列表
* 组件的方法列表
*/
*/
methods
:
{
methods
:
{
onLoad
()
{
onLoad
()
{
this
.
setData
({
this
.
setData
({
storeInfo
:
wx
.
$util
.
getUserInfo
()?.
default4SStoreInfo
||
{},
storeInfo
:
wx
.
$util
.
getUserInfo
()?.
default4SStoreInfo
||
{},
userInfo
:
wx
.
$util
.
getUserInfo
()
||
{}
userInfo
:
wx
.
$util
.
getUserInfo
()
||
{}
...
@@ -115,19 +122,17 @@ Component({
...
@@ -115,19 +122,17 @@ Component({
code
,
code
,
message
message
}
=
res
}
=
res
let
data
=
res
.
data
?
let
data
=
res
.
data
?
{
{
...
res
.
data
,
...
res
.
data
,
todayTurnover
:
res
.
data
.
todayTurnover
?
((
res
.
data
.
todayTurnover
/
100
).
toFixed
(
2
)
+
''
).
split
(
'.'
)[
0
]
:
'0'
,
todayTurnover
:
res
.
data
.
todayTurnover
?
((
res
.
data
.
todayTurnover
/
100
).
toFixed
(
2
)
+
''
).
split
(
'.'
)[
0
]
:
'0'
,
todayTurDecimal
:
res
.
data
.
todayTurnover
?
((
res
.
data
.
todayTurnover
/
100
).
toFixed
(
2
)
+
''
).
split
(
'.'
)[
1
]
:
'00'
,
todayTurDecimal
:
res
.
data
.
todayTurnover
?
((
res
.
data
.
todayTurnover
/
100
).
toFixed
(
2
)
+
''
).
split
(
'.'
)[
1
]
:
'00'
,
// totalTurnover: res.data.totalTurnover ? (Math.round()(res.data.totalTurnover / 100).toFixed(2) + '').split('.')[0] : '0',
// totalTurnover: res.data.totalTurnover ? (Math.round()(res.data.totalTurnover / 100).toFixed(2) + '').split('.')[0] : '0',
totalTurnover
:
res
.
data
.
totalTurnover
?
Math
.
round
(
res
.
data
.
totalTurnover
/
100
)
:
'0'
,
totalTurnover
:
res
.
data
.
totalTurnover
?
Math
.
round
(
res
.
data
.
totalTurnover
/
100
):
'0'
,
totalTurDecimal
:
res
.
data
.
totalTurnover
?
((
res
.
data
.
totalTurnover
/
100
).
toFixed
(
2
)
+
''
).
split
(
'.'
)[
1
]
:
'00'
,
totalTurDecimal
:
res
.
data
.
totalTurnover
?
((
res
.
data
.
totalTurnover
/
100
).
toFixed
(
2
)
+
''
).
split
(
'.'
)[
1
]
:
'00'
,
monthTurnover
:
res
.
data
.
monthTurnover
?
((
res
.
data
.
monthTurnover
/
100
).
toFixed
(
2
)
+
''
).
split
(
'.'
)[
0
]
:
'0'
,
monthTurnover
:
res
.
data
.
monthTurnover
?
((
res
.
data
.
monthTurnover
/
100
).
toFixed
(
2
)
+
''
).
split
(
'.'
)[
0
]
:
'0'
,
// monthTurnover: 12233,
// monthTurnover: 12233,
// monthTurDecimal: res.data.monthTurnover ? ((res.data.monthTurnover / 100).toFixed(2) + '').split('.')[1] : '00'
// monthTurDecimal: res.data.monthTurnover ? ((res.data.monthTurnover / 100).toFixed(2) + '').split('.')[1] : '00'
}
:
{}
}
:
{}
if
(
code
==
'0'
)
{
if
(
code
==
'0'
)
{
this
.
setData
({
this
.
setData
({
statisticsObj
:
data
statisticsObj
:
data
...
@@ -141,32 +146,39 @@ Component({
...
@@ -141,32 +146,39 @@ Component({
getData
()
{
getData
()
{
// const userInfo = wx.$util.getUserInfo()
// const userInfo = wx.$util.getUserInfo()
const
{
dataActive
,
merchantId
}
=
this
.
data
const
{
dataActive
,
merchantId
}
=
this
.
data
let
today
=
new
Date
()
let
today
=
new
Date
()
let
thisMonth
=
new
Date
(
new
Date
().
setDate
(
1
)).
format
(
'yyyy-MM-dd'
)
let
thisMonth
=
new
Date
(
new
Date
().
setDate
(
1
)).
format
(
'yyyy-MM-dd'
)
const
dataobj
=
{
const
dataobj
=
{
today
:{
today
:
{
startTime
:
today
.
format
(
'yyyy-MM-dd'
)
+
' 00:00:00'
,
startTime
:
today
.
format
(
'yyyy-MM-dd'
)
+
' 00:00:00'
,
endTime
:
today
.
format
(
'yyyy-MM-dd'
)
+
' 23:59:59'
,
endTime
:
today
.
format
(
'yyyy-MM-dd'
)
+
' 23:59:59'
,
},
},
month
:{
month
:
{
startTime
:
thisMonth
+
' 00:00:00'
,
startTime
:
thisMonth
+
' 00:00:00'
,
endTime
:
today
.
format
(
'yyyy-MM-dd'
)
+
' 23:59:59'
,
endTime
:
today
.
format
(
'yyyy-MM-dd'
)
+
' 23:59:59'
,
},
},
total
:{
total
:
{
startTime
:
''
,
startTime
:
''
,
endTime
:
''
,
endTime
:
''
,
}
}
}
}
outputValueStatistics
({
outputValueStatistics
({
...
dataobj
[
dataActive
],
...
dataobj
[
dataActive
],
}).
then
(
res
=>
{
}).
then
(
res
=>
{
let
{
code
,
data
,
message
}
=
res
let
{
code
,
data
,
message
}
=
res
if
(
code
==
0
)
{
if
(
code
==
0
)
{
data
.
conversionRate
=
NP
.
times
(
data
.
conversionRate
,
100
)
data
.
conversionRate
=
NP
.
times
(
data
.
conversionRate
,
100
)
data
.
avgPrice
=
NP
.
divide
(
data
.
avgPrice
,
100
)
data
.
avgPrice
=
NP
.
divide
(
data
.
avgPrice
,
100
)
data
.
avgPrice
=
NP
.
round
(
data
.
avgPrice
,
0
)
data
.
avgPrice
=
NP
.
round
(
data
.
avgPrice
,
0
)
data
.
totalOutputValue
=
NP
.
round
(
data
.
totalOutputValue
,
0
)
data
.
totalOutputValue
=
NP
.
round
(
data
.
totalOutputValue
,
0
)
this
.
setData
({
this
.
setData
({
staticData
:
data
||
{}
staticData
:
data
||
{}
})
})
...
@@ -175,8 +187,10 @@ Component({
...
@@ -175,8 +187,10 @@ Component({
}
}
})
})
},
},
changeDataSelect
(
e
)
{
changeDataSelect
(
e
)
{
let
{
name
}
=
e
.
currentTarget
.
dataset
let
{
name
}
=
e
.
currentTarget
.
dataset
this
.
setData
({
this
.
setData
({
dataActive
:
name
dataActive
:
name
})
})
...
@@ -200,7 +214,9 @@ Component({
...
@@ -200,7 +214,9 @@ Component({
// }
// }
// },
// },
navGo
()
{
navGo
()
{
let
{
mode
}
=
this
.
data
let
{
mode
}
=
this
.
data
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()
...
@@ -209,4 +225,4 @@ Component({
...
@@ -209,4 +225,4 @@ Component({
// if (!item.path) wx.$util.showToast('模块暂未开通\r\n敬请期待')
// if (!item.path) wx.$util.showToast('模块暂未开通\r\n敬请期待')
},
},
}
}
})
})
\ No newline at end of file
\ No newline at end of file
tabMine/pages/collectCoupons/collectCoupons.js
View file @
6a3d8a2
This diff is collapsed.
Click to expand it.
tabMine/pages/completeBuild/completeBuild.js
View file @
6a3d8a2
// tabMine/pages/completeBuild/completeBuild.js
// tabMine/pages/completeBuild/completeBuild.js
import
api
from
'../../api.js'
import
api
from
'../../api.js'
import
{
import
{
ImgUrl
ImgUrl
}
from
'~/config'
;
}
from
'~/config'
;
Page
({
Page
({
/**
/**
* 页面的初始数据
* 页面的初始数据
*/
*/
data
:
{
data
:
{
IMG_URL
:
ImgUrl
,
IMG_URL
:
ImgUrl
,
isYqdSuper
:
''
,
isYqdSuper
:
''
,
tipsProps
:
{
tipsProps
:
{
tipsText
:
'小程序下单后,驻店员工需让客户在订单中签名确认订单,才可完结为最终施工单'
,
tipsText
:
'小程序下单后,驻店员工需让客户在订单中签名确认订单,才可完结为最终施工单'
,
showTips
:
true
,
showTips
:
true
,
type
:
1
type
:
1
},
},
},
},
/**
/**
* 生命周期函数--监听页面加载
* 生命周期函数--监听页面加载
*/
*/
onLoad
(
options
)
{
onLoad
(
options
)
{
this
.
getMerchantConfiguration
()
this
.
getMerchantConfiguration
()
},
},
/**
/**
* 生命周期函数--监听页面初次渲染完成
* 生命周期函数--监听页面初次渲染完成
*/
*/
onReady
()
{},
onReady
()
{},
/**
/**
* 生命周期函数--监听页面显示
* 生命周期函数--监听页面显示
*/
*/
onShow
()
{},
onShow
()
{},
/**
/**
* 生命周期函数--监听页面隐藏
* 生命周期函数--监听页面隐藏
*/
*/
onHide
()
{},
onHide
()
{},
/**
/**
* 生命周期函数--监听页面卸载
* 生命周期函数--监听页面卸载
*/
*/
onUnload
()
{},
onUnload
()
{},
/**
/**
* 页面相关事件处理函数--监听用户下拉动作
* 页面相关事件处理函数--监听用户下拉动作
*/
*/
onPullDownRefresh
()
{},
onPullDownRefresh
()
{},
/**
/**
* 页面上拉触底事件的处理函数
* 页面上拉触底事件的处理函数
*/
*/
onReachBottom
()
{},
onReachBottom
()
{},
/**
/**
* 用户点击右上角分享
* 用户点击右上角分享
*/
*/
onShareAppMessage
()
{},
onShareAppMessage
()
{},
// 获取商户配置
// 获取商户配置
getMerchantConfiguration
()
{
getMerchantConfiguration
()
{
let
{
let
{
saturdayFlag
saturdayFlag
}
=
this
.
data
}
=
this
.
data
let
{
let
{
merchantId
merchantId
}
=
wx
.
$util
.
getUserInfo
()
}
=
wx
.
$util
.
getUserInfo
()
api
.
getMerchantConfiguration
({
api
.
getMerchantConfiguration
({
merchantId
,
merchantId
,
sceneType
:
'1'
sceneType
:
'1'
}).
then
(
res
=>
{
}).
then
(
res
=>
{
let
{
let
{
code
,
code
,
data
data
}
=
res
}
=
res
if
(
code
==
'0'
)
{
if
(
code
==
'0'
)
{
if
(
data
)
{
if
(
data
)
{
saturdayFlag
=
data
.
signatureSwitch
?
true
:
false
saturdayFlag
=
data
.
signatureSwitch
?
true
:
false
}
}
}
else
{
}
else
{
this
.
showToast
(
message
)
this
.
showToast
(
message
)
}
}
this
.
setData
({
this
.
setData
({
saturdayFlag
saturdayFlag
})
})
})
})
},
},
//是否开启电子签名
//是否开启电子签名
changeSwitch
(
e
)
{
changeSwitch
(
e
)
{
console
.
log
(
'e'
,
e
);
let
{
let
{
userInfo
value
}
=
this
.
data
}
=
e
.
detail
if
(
userInfo
.
userType
==
2
)
return
let
{
console
.
log
(
'e'
,
e
);
target
let
{
}
=
e
.
currentTarget
.
dataset
value
this
.
setData
({
}
=
e
.
detail
[
target
]:
value
let
{
})
target
this
.
updateSignatureConfiguration
()
}
=
e
.
currentTarget
.
dataset
},
this
.
setData
({
[
target
]:
value
})
this
.
updateSignatureConfiguration
()
},
// 修改配置
// 修改配置
updateSignatureConfiguration
()
{
updateSignatureConfiguration
()
{
let
{
let
{
saturdayFlag
saturdayFlag
}
=
this
.
data
}
=
this
.
data
let
{
let
{
merchantId
merchantId
}
=
wx
.
$util
.
getUserInfo
()
}
=
wx
.
$util
.
getUserInfo
()
let
signatureSwitch
=
saturdayFlag
?
1
:
0
let
signatureSwitch
=
saturdayFlag
?
1
:
0
api
.
updateSignatureConfiguration
({
api
.
updateSignatureConfiguration
({
merchantId
,
merchantId
,
sceneType
:
'1'
,
sceneType
:
'1'
,
signatureSwitch
signatureSwitch
}).
then
(
res
=>
{
}).
then
(
res
=>
{
let
{
let
{
code
,
code
,
data
data
}
=
res
}
=
res
if
(
code
==
'0'
)
{
if
(
code
==
'0'
)
{
console
.
log
(
'data'
,
data
);
console
.
log
(
'data'
,
data
);
}
else
{
}
else
{
this
.
showToast
(
message
)
this
.
showToast
(
message
)
}
}
})
})
},
},
})
})
\ No newline at end of file
\ No newline at end of file
tabMine/pages/completeBuild/completeBuild.sass
View file @
6a3d8a2
...
@@ -131,3 +131,6 @@ page {
...
@@ -131,3 +131,6 @@ page {
justify-content
:
space-between
;
justify-content
:
space-between
;
}
}
.disabled
{
opacity
:
.5
;
}
\ No newline at end of file
\ No newline at end of file
tabMine/pages/completeBuild/completeBuild.wxml
View file @
6a3d8a2
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
<view class="main {{isFullSucreen?'isFullSucreen':'' }} {{showTips?'fullSucreen-tips':'' }}" style="height:calc(100vh - {{isFullSucreen?(34+71.5) : 71.5}}px);">
<view class="main {{isFullSucreen?'isFullSucreen':'' }} {{showTips?'fullSucreen-tips':'' }}" style="height:calc(100vh - {{isFullSucreen?(34+71.5) : 71.5}}px);">
<view class="createData">
<view class="createData">
<view class="label">是否开启客户电子签名及评分选项</view>
<view class="label">是否开启客户电子签名及评分选项</view>
<switch color="#347BFF" isYqdSuper="{{isYqdSuper}}" checked="{{saturdayFlag}}" bindchange="changeSwitch" data-target="saturdayFlag" />
<switch c
lass=" {{userInfo.userType == 2 ?'disabled':''}}" c
olor="#347BFF" isYqdSuper="{{isYqdSuper}}" checked="{{saturdayFlag}}" bindchange="changeSwitch" data-target="saturdayFlag" />
</view>
</view>
<view class="box">
<view class="box">
<view class="box-label">客户电子签名及施工页面:</view>
<view class="box-label">客户电子签名及施工页面:</view>
...
...
tabMine/pages/technicianSetup/technicianSetup.js
View file @
6a3d8a2
...
@@ -32,6 +32,7 @@ Page({
...
@@ -32,6 +32,7 @@ Page({
technicianList
,
technicianList
,
userInfo
userInfo
}
=
this
.
data
}
=
this
.
data
if
(
userInfo
.
userType
==
2
)
return
technicianList
.
unshift
({
technicianList
.
unshift
({
staffName
:
''
,
staffName
:
''
,
staffPhone
:
''
,
staffPhone
:
''
,
...
@@ -45,6 +46,10 @@ Page({
...
@@ -45,6 +46,10 @@ Page({
},
},
editTechicianInfo
(
e
)
{
editTechicianInfo
(
e
)
{
let
{
let
{
userInfo
}
=
this
.
data
if
(
userInfo
.
userType
==
2
)
return
let
{
index
index
}
=
e
.
currentTarget
.
dataset
}
=
e
.
currentTarget
.
dataset
this
.
setData
({
this
.
setData
({
...
...
tabMine/pages/technicianSetup/technicianSetup.sass
View file @
6a3d8a2
...
@@ -145,4 +145,8 @@ page {
...
@@ -145,4 +145,8 @@ page {
.placeholder-class
{
.placeholder-class
{
color
:
#BEC1C7
;
color
:
#BEC1C7
;
}
.disabled
{
opacity
:
.5
;
}
}
\ No newline at end of file
\ No newline at end of file
tabMine/pages/technicianSetup/technicianSetup.wxml
View file @
6a3d8a2
...
@@ -4,7 +4,7 @@
...
@@ -4,7 +4,7 @@
<view class="scrollCon">
<view class="scrollCon">
<view class="merchantNameCon">
<view class="merchantNameCon">
<view class="name">{{userInfo.merchantName}}</view>
<view class="name">{{userInfo.merchantName}}</view>
<view class="addIcon" bind:tap="addTechnicalItem">
<view class="addIcon
{{userInfo.userType == 2 ?'disabled':''}}
" bind:tap="addTechnicalItem">
<image class="icon-plus" src="{{IMG_URL}}/miniProgram/icon-plus.png" />
<image class="icon-plus" src="{{IMG_URL}}/miniProgram/icon-plus.png" />
技师
技师
</view>
</view>
...
@@ -24,7 +24,7 @@
...
@@ -24,7 +24,7 @@
</view>
</view>
<view class="phone">手机号 {{item.staffPhone}}</view>
<view class="phone">手机号 {{item.staffPhone}}</view>
</view>
</view>
<image class="icon-edit" bind:tap="editTechicianInfo" data-index="{{index}}" src="{{IMG_URL}}/miniProgram/grayEditIcon.png" />
<image class="icon-edit
{{userInfo.userType == 2 ?'disabled':''}}
" bind:tap="editTechicianInfo" data-index="{{index}}" src="{{IMG_URL}}/miniProgram/grayEditIcon.png" />
</view>
</view>
<!-- <view class="top">
<!-- <view class="top">
<view class="message">
<view class="message">
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment