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 b966e4a9
authored
Dec 05, 2023
by
杨明
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
轮胎
1 parent
fb6c6d02
Show whitespace changes
Inline
Side-by-side
Showing
13 changed files
with
257 additions
and
86 deletions
packageEquity/components/GLForm/GLForm.wxml
packageEquity/pages/carEquity/components/SecondStep/SecondStep.js
packageEquity/pages/carEquity/components/SecondStep/SecondStep.json
packageEquity/pages/carEquity/components/SecondStep/SecondStep.wxml
packageEquity/pages/carEquity/components/SecondStep/SecondStep.wxss
packageEquity/pages/carEquity/components/SecondStep/find.wxs
packageEquity/pages/carEquity/components/constant/secondStepData.js
pages/tabMine/api.js
pages/tabMine/pages/index/index.js
pages/tabMine/pages/index/index.wxml
pages/tabMine/pages/index/index.wxss
tabIndex/pages/index/index.js
tabIndex/pages/index/index_mixins.js
packageEquity/components/GLForm/GLForm.wxml
View file @
b966e4a
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
<wxs src="./GLForm.wxs" module="filterUtils" />
<wxs src="./GLForm.wxs" module="filterUtils" />
<view wx:for="{{formDataList}}" wx:key="index" class="custom-class gl-form">
<view wx:for="{{formDataList}}" wx:key="index" class="custom-class gl-form">
<gl-cell
<gl-cell
wx:if="{{filterUtils.isShowFn(formData, item)}}"
wx:if="{{filterUtils.isShowFn(formData, item)
&& item.type != 'otherSlot'
}}"
border="{{!item.noBorder}}"
border="{{!item.noBorder}}"
class="{{item.name}}"
class="{{item.name}}"
haveArrow="{{item.haveArrow || false}}"
haveArrow="{{item.haveArrow || false}}"
...
@@ -18,6 +18,7 @@
...
@@ -18,6 +18,7 @@
requiredAfter="{{item.requiredAfter}}"
requiredAfter="{{item.requiredAfter}}"
cellHeight="{{!item.noCellHeight}}"
cellHeight="{{!item.noCellHeight}}"
cellStyle="{{item.cellStyle||''}}"
cellStyle="{{item.cellStyle||''}}"
labelStyle="{{item.labelStyle}}"
cellBoxStyle="{{item.cellBoxStyle||''}}">
cellBoxStyle="{{item.cellBoxStyle||''}}">
<!-- slot -->
<!-- slot -->
<slot wx:if="{{item.type == 'slot'}}" name="{{item.name}}" />
<slot wx:if="{{item.type == 'slot'}}" name="{{item.name}}" />
...
@@ -81,5 +82,6 @@
...
@@ -81,5 +82,6 @@
<view wx:else class="placeholder-class">{{item.placeholder || '请选择'}}</view>
<view wx:else class="placeholder-class">{{item.placeholder || '请选择'}}</view>
</view>
</view>
</gl-cell>
</gl-cell>
<slot wx:if="{{item.type == 'otherSlot'}}" name="{{item.name}}" />
</view>
</view>
packageEquity/pages/carEquity/components/SecondStep/SecondStep.js
View file @
b966e4a
// packageEquity/pages/carEquity/components/SecondStep/SecondStep.js
// packageEquity/pages/carEquity/components/SecondStep/SecondStep.js
import
constantData
from
'../constant/secondStepData'
import
constantData
from
'../constant/secondStepData'
const
IMG_URL
=
'https://img02.glsx.com.cn/weapp/resource/dj-car-boutique-work-wechat/'
import
fn
from
'../constant/ruleFn'
import
fn
from
'../constant/ruleFn'
const
defaultLabelWidth
=
'140rpx'
const
defaultLabelWidth
=
'140rpx'
import
api
from
'~/api/api'
import
api
from
'~/api/api'
...
@@ -32,6 +33,7 @@ Component({
...
@@ -32,6 +33,7 @@ Component({
const
productFormList
=
secondObj
.
productFormList
.
filter
(
item
=>
item
.
name
!=
'card'
)
const
productFormList
=
secondObj
.
productFormList
.
filter
(
item
=>
item
.
name
!=
'card'
)
delete
formRule
.
card
delete
formRule
.
card
// formRule = formRule.filter(item=> )
// formRule = formRule.filter(item=> )
console
.
log
(
productFormList
)
this
.
setData
({
this
.
setData
({
[
'secondObj.productFormList'
]:
productFormList
,
[
'secondObj.productFormList'
]:
productFormList
,
formRule
formRule
...
@@ -45,6 +47,9 @@ Component({
...
@@ -45,6 +47,9 @@ Component({
* 组件的初始数据
* 组件的初始数据
*/
*/
data
:
{
data
:
{
IMG_URL
,
imgShow
:
false
,
imgType
:
'rule'
,
defaultLabelWidth
,
defaultLabelWidth
,
secondObj
:
constantData
.
secondObj
,
secondObj
:
constantData
.
secondObj
,
formRule
:
constantData
.
formRule
,
formRule
:
constantData
.
formRule
,
...
@@ -107,6 +112,13 @@ Component({
...
@@ -107,6 +112,13 @@ Component({
* 组件的方法列表
* 组件的方法列表
*/
*/
methods
:
{
methods
:
{
onClickShow
(
e
)
{
const
{
type
}
=
e
.
target
.
dataset
this
.
setData
({
imgShow
:
true
,
imgType
:
type
})
},
onClickHide
()
{
this
.
setData
({
imgShow
:
false
})
},
dealFormRule
()
{
dealFormRule
()
{
let
formData
=
this
.
getPageData
()
let
formData
=
this
.
getPageData
()
var
{
formRule
}
=
this
.
data
var
{
formRule
}
=
this
.
data
...
...
packageEquity/pages/carEquity/components/SecondStep/SecondStep.json
View file @
b966e4a
...
@@ -2,6 +2,7 @@
...
@@ -2,6 +2,7 @@
"component"
:
true
,
"component"
:
true
,
"usingComponents"
:
{
"usingComponents"
:
{
"gl-form"
:
"/packageEquity/components/GLForm/GLForm"
,
"gl-form"
:
"/packageEquity/components/GLForm/GLForm"
,
"popup-select"
:
"/packageEquity/pages/carQuotation/components/PopupSelect/PopupSelect"
"popup-select"
:
"/packageEquity/pages/carQuotation/components/PopupSelect/PopupSelect"
,
"van-overlay"
:
"@vant/weapp/overlay/index"
}
}
}
}
packageEquity/pages/carEquity/components/SecondStep/SecondStep.wxml
View file @
b966e4a
<!--packageEquity/pages/carEquity/components/SecondStep/SecondStep.wxml-->
<!--packageEquity/pages/carEquity/components/SecondStep/SecondStep.wxml-->
<wxs src="find.wxs" module="find" />
<glsx-privacy appletName="生意助手员工版" bind:agreeClick="agreeClick" bind:disagreeClick="disagreeClick"></glsx-privacy>
<glsx-privacy appletName="生意助手员工版" bind:agreeClick="agreeClick" bind:disagreeClick="disagreeClick"></glsx-privacy>
<view>
<view>
<view class="box">
<view class="box">
...
@@ -82,6 +83,21 @@
...
@@ -82,6 +83,21 @@
</view>
</view>
</view>
</view>
</view>
</view>
<view slot="tire">
<view wx:for="{{find.find(secondObj.productFormList,'tire','name').tireItem}}" wx:key="index">
<view class="pro-head flex-b">
<view class="pro-service">{{item.name}}</view>
<view class="pro-view" bind:tap="onClickShow" wx-if="{{item.imgUrl}}" data-type="dot">位置示例</view>
</view>
<view class="pro-list">
<gl-form id="{{'tire' + index}}" background="#F4F5F7" formData="{{item.tireObj}}" dataAttrName="{{item.tireObj}}" formDataList="{{item.list}}"></gl-form>
</view>
</view>
</view>
<view class="pro-rule" slot="tireRule">
<view class="pro-rule-view" data-type="rule" bind:tap="onClickShow">位置示例</view>
<gl-form id="tireRule" formDataList="{{find.find(secondObj.productFormList,'tireRule','name').list}}"></gl-form>
</view>
</gl-form>
</gl-form>
</view>
</view>
<!-- 延保附件展示标识,0-展示,1-不展示 -->
<!-- 延保附件展示标识,0-展示,1-不展示 -->
...
@@ -131,3 +147,8 @@
...
@@ -131,3 +147,8 @@
<view class="h-40"></view>
<view class="h-40"></view>
</view>
</view>
<popup-select show="{{ popupShow }}" popObj="{{ popObj }}" typeName="{{ popObj.typename }}" bindconfirm="handleSelectConfirm" />
<popup-select show="{{ popupShow }}" popObj="{{ popObj }}" typeName="{{ popObj.typename }}" bindconfirm="handleSelectConfirm" />
<van-overlay show="{{ imgShow }}" bind:click="onClickHide" z-index="99999">
<view class="wrapper">
<image src="{{IMG_URL}}equity/{{imgType}}.png" mode="widthFix"/>
</view>
</van-overlay>
\ No newline at end of file
\ No newline at end of file
packageEquity/pages/carEquity/components/SecondStep/SecondStep.wxss
View file @
b966e4a
...
@@ -174,13 +174,25 @@
...
@@ -174,13 +174,25 @@
background: #FFFFFF;
background: #FFFFFF;
color: #347BFF;
color: #347BFF;
}
}
.wrapper {
position: absolute;
top: 50%;
width: 100%;
height: auto;
transform: translateY(-50%);
}
.h-40 {
.h-40 {
height: 40rpx;
height: 40rpx;
}
}
.pro-head {
.pro-head {
margin: 30rpx 0;
margin: 30rpx 0;
}
.flex-b {
display: flex;
justify-content: space-between;
}
}
.pro-head .pro-service {
.pro-head .pro-service {
...
@@ -189,7 +201,25 @@
...
@@ -189,7 +201,25 @@
margin-top: 4rpx;
margin-top: 4rpx;
}
}
.pro-view {
color: #347BFF;
}
.pro-rule {
position: relative;
}
.pro-rule-view {
font-size: 24rpx;
color: #347BFF;
position: absolute;
top: 44rpx;
left: 170rpx;
z-index: 9999;
}
.pro-list {
.pro-list {
border: 4rpx solid #F4F5F7;
border: 4rpx solid #F4F5F7;
border-radius: 8rpx;
border-radius: 8rpx;
margin: 30rpx 0;
margin: 30rpx 0;
...
...
packageEquity/pages/carEquity/components/SecondStep/find.wxs
0 → 100644
View file @
b966e4a
var find = function(arr,value,name){
var idx;
for(var i=0;i<arr.length;i++) {
if(arr[i][name] == value) {
idx=i;
break
}
}
return arr[idx]
}
module.exports = {
find:find
}
\ No newline at end of file
\ No newline at end of file
packageEquity/pages/carEquity/components/constant/secondStepData.js
View file @
b966e4a
...
@@ -413,33 +413,98 @@ const secondObj = {
...
@@ -413,33 +413,98 @@ const secondObj = {
// },
// },
{
{
label
:
'轮胎品牌'
,
label
:
'轮胎品牌'
,
name
:
'tireBrand'
,
name
:
'effectiveDate'
,
type
:
'input'
,
maxlength
:
'20'
},
{
label
:
''
,
name
:
'tireRule'
,
type
:
'otherSlot'
,
list
:
[{
label
:
'轮胎规格'
,
name
:
'tire'
,
type
:
'input'
,
type
:
'input'
,
maxlength
:
'20'
,
maxlength
:
'20'
,
isShowObj
:
{
labelWidth
:
'85px'
attr
:
'tireFlag'
,
}]
list
:
[
'1'
]
}
},
},
{
{
label
:
'规格型号(前轮)'
,
label
:
''
,
name
:
'frontTireSpecification'
,
name
:
'tire'
,
type
:
'slot'
,
labelWidth
:
'0rpx'
,
noCellHeight
:
true
,
tireObj
:
{
tire
:
''
},
labelStyle
:
"display:none"
,
tireItem
:
[{
name
:
'左前胎'
,
imgUrl
:
'1'
,
list
:
[{
label
:
'轮胎DOT号'
,
name
:
'tire'
,
type
:
'input'
,
type
:
'input'
,
maxlength
:
'20'
,
maxlength
:
'20'
,
isShowObj
:
{
labelWidth
:
'85px'
attr
:
'tireFlag'
,
list
:
[
'1'
]
}
},
},
{
{
label
:
'规格型号(后轮)
'
,
label
:
'轮胎生产批次
'
,
name
:
'rearTireSpecification
'
,
name
:
'tire
'
,
type
:
'input'
,
type
:
'input'
,
maxlength
:
'20'
,
maxlength
:
'20'
,
isShowObj
:
{
labelWidth
:
'85px'
attr
:
'tireFlag'
,
}]
list
:
[
'1'
]
},
{
}
name
:
'右前胎'
,
list
:
[{
label
:
'轮胎DOT号'
,
name
:
'tire'
,
type
:
'input'
,
maxlength
:
'20'
,
labelWidth
:
'85px'
},
{
label
:
'轮胎生产批次'
,
name
:
'tire'
,
type
:
'input'
,
maxlength
:
'20'
,
labelWidth
:
'85px'
}]
},
{
name
:
'左后胎'
,
list
:
[{
label
:
'轮胎DOT号'
,
name
:
'tire'
,
type
:
'input'
,
maxlength
:
'20'
,
labelWidth
:
'85px'
},
{
label
:
'轮胎生产批次'
,
name
:
'tire'
,
type
:
'input'
,
maxlength
:
'20'
,
labelWidth
:
'85px'
}]
},
{
name
:
'右后胎'
,
list
:
[{
label
:
'轮胎DOT号'
,
name
:
'tire'
,
type
:
'input'
,
maxlength
:
'20'
,
labelWidth
:
'85px'
},
{
label
:
'轮胎生产批次'
,
name
:
'tire'
,
type
:
'input'
,
maxlength
:
'20'
,
labelWidth
:
'85px'
}]
}]
},
},
{
{
label
:
'购车类型'
,
label
:
'购车类型'
,
...
...
pages/tabMine/api.js
View file @
b966e4a
...
@@ -23,5 +23,9 @@ module.exports = {
...
@@ -23,5 +23,9 @@ module.exports = {
/** 分页查询我的种草 */
/** 分页查询我的种草 */
GETGRASSLIST
(
data
)
{
GETGRASSLIST
(
data
)
{
return
api
.
post
(
'dj.api.smartcarlife.orderShareRecord.own.page'
,
data
)
return
api
.
post
(
'dj.api.smartcarlife.orderShareRecord.own.page'
,
data
)
},
/** 根据园区店商户号获取服务商列表 */
queryPartnersByYqShop
(
data
)
{
return
api
.
post
(
'dj.api.scenemerchantref.queryPartnersByYqShop'
,
data
)
}
}
}
}
pages/tabMine/pages/index/index.js
View file @
b966e4a
...
@@ -60,6 +60,15 @@ Page({
...
@@ -60,6 +60,15 @@ Page({
selectedSceneDesc
:
''
,
selectedSceneDesc
:
''
,
versionData
:
{}
versionData
:
{}
},
},
getByYqShop
()
{
let
{
sceneType
,
merchantId
}
=
wx
.
$util
.
getUserInfo
()
api
.
queryPartnersByYqShop
({
scene
:
sceneType
,
merchantId
}).
then
(
res
=>
{
const
merchantInfo
=
([
res
.
data
]
||
[]).
slice
(
0
,
3
)
this
.
setData
({
merchantInfo
})
})
},
goReservationCouponPage
()
{
goReservationCouponPage
()
{
wx
.
$router
.
go
(
'tabMine.collectCoupons'
)
wx
.
$router
.
go
(
'tabMine.collectCoupons'
)
},
},
...
@@ -322,6 +331,7 @@ Page({
...
@@ -322,6 +331,7 @@ Page({
selectedSceneDesc
:
constantData
?.
sceneList
?.
filter
(
val
=>
val
.
sceneType
==
userInfo
?.
sceneType
)[
0
]?.
sceneDesc
selectedSceneDesc
:
constantData
?.
sceneList
?.
filter
(
val
=>
val
.
sceneType
==
userInfo
?.
sceneType
)[
0
]?.
sceneDesc
})
})
this
.
getVersionInfo
()
this
.
getVersionInfo
()
this
.
getByYqShop
()
// console.log(app.globalData.isYqdSuper)
// console.log(app.globalData.isYqdSuper)
},
},
jump
:
e
=>
wx
.
$router
.
jump
(
e
),
jump
:
e
=>
wx
.
$router
.
jump
(
e
),
...
...
pages/tabMine/pages/index/index.wxml
View file @
b966e4a
...
@@ -24,11 +24,24 @@
...
@@ -24,11 +24,24 @@
<view class="item">
<view class="item">
所属园区:{{userInfo.merchantName}}{{userInfo.isSuper==true?'(超管)':loginRoleLabel[userInfo.loginRole]}}
所属园区:{{userInfo.merchantName}}{{userInfo.isSuper==true?'(超管)':loginRoleLabel[userInfo.loginRole]}}
</view>
</view>
<view class="item">商户号:{{userInfo.merchantId}}</view>
<view class="item flex">
<view>所属服务商:</view>
<view>
<view wx:for="{{merchantInfo}}">{{item.merchantName}}{{item.merchantId}}
</view>
</view>
</view>
</view>
</view>
</view>
<block >
<view class="item flex">
<view>服务商账号:</view>
<view>
<view wx:for="{{merchantInfo}}">{{item.merchantLoginAccount}}
</view>
</view>
</view>
</view>
</view>
</view>
<block>
<!-- <view class="scene_box">
<!-- <view class="scene_box">
<view class="title">场景</view>
<view class="title">场景</view>
<view class="select_item">
<view class="select_item">
...
@@ -49,40 +62,54 @@
...
@@ -49,40 +62,54 @@
</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="../../images/arrow_icon.png" mode=""/></view>
<view class="title">工位设置
<image class="arrow_icon" src="../../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>
<image class="icon_image" src="{{IMG_URL}}mine_icon_4.png" mode=""
/>
<image class="icon_image" src="{{IMG_URL}}mine_icon_4.png" mode=""
/>
</view>
</view>
<view class="set_item item_2" bindtap="showMerchantPop">
<view class="set_item item_2" bindtap="showMerchantPop">
<view class="title">录单设置<image class="arrow_icon" src="../../images/arrow_icon.png" mode=""/></view>
<view class="title">录单设置
<image class="arrow_icon" src="../../images/arrow_icon.png" mode="" />
</view>
<view class="set_tips">设置录单必填项</view>
<view class="set_tips">设置录单必填项</view>
<image class="icon_image" src="{{IMG_URL}}mine_icon_2.png" mode=""
/>
<image class="icon_image" src="{{IMG_URL}}mine_icon_2.png" mode=""
/>
</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="../../images/arrow_icon.png" mode=""/></view>
<view class="title">场景切换
<image class="arrow_icon" src="../../images/arrow_icon.png" mode="" />
</view>
<view class="set_tips">{{selectedSceneName}}</view>
<view class="set_tips">{{selectedSceneName}}</view>
<image class="icon_image" src="{{IMG_URL}}mine_icon_3.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_item item_4" bindtap="goVersionPage">
<view class="title">更新日志<image class="arrow_icon" src="../../images/arrow_icon.png" mode=""/></view>
<view class="title">更新日志
<image class="arrow_icon" src="../../images/arrow_icon.png" mode="" />
</view>
<view class="set_tips">最新{{versionData.version}}版</view>
<view class="set_tips">最新{{versionData.version}}版</view>
<image class="icon_image" src="{{IMG_URL}}mine_icon_1.png" mode=""
/>
<image class="icon_image" src="{{IMG_URL}}mine_icon_1.png" mode=""
/>
</view>
</view>
<view class="set_item item_5" bindtap="goReservationCouponPage">
<view class="set_item item_5" bindtap="goReservationCouponPage">
<view class="title">领券预约<image class="arrow_icon" src="../../images/arrow_icon.png" mode=""/></view>
<view class="title">领券预约
<image class="arrow_icon" src="../../images/arrow_icon.png" mode="" />
</view>
<view class="set_tips">设置接待电话</view>
<view class="set_tips">设置接待电话</view>
<image class="icon_image" src="{{IMG_URL}}mine_icon_5.png" mode=""
/>
<image class="icon_image" src="{{IMG_URL}}mine_icon_5.png" mode=""
/>
</view>
</view>
<view class="set_item item_6" bindtap="goTechnicianSetupPage">
<view class="set_item item_6" bindtap="goTechnicianSetupPage">
<view class="title">技师设置<image class="arrow_icon" src="../../images/arrow_icon.png" mode=""/></view>
<view class="title">技师设置
<image class="arrow_icon" src="../../images/arrow_icon.png" mode="" />
</view>
<view class="set_tips">设置园区店技师</view>
<view class="set_tips">设置园区店技师</view>
<image class="icon_image" src="{{IMG_URL}}mine_icon_6.png" mode=""
/>
<image class="icon_image" src="{{IMG_URL}}mine_icon_6.png" mode=""
/>
</view>
</view>
<view class="set_item item_7" bindtap="goConstructSetupPage">
<view class="set_item item_7" bindtap="goConstructSetupPage">
<view class="title">完成施工<image class="arrow_icon" src="../../images/arrow_icon.png" mode=""/></view>
<view class="title">完成施工
<image class="arrow_icon" src="../../images/arrow_icon.png" mode="" />
</view>
<view class="set_tips">设置施工完成上传图片</view>
<view class="set_tips">设置施工完成上传图片</view>
<image class="icon_image" src="{{IMG_URL}}mine_icon_7.png" mode=""
/>
<image class="icon_image" src="{{IMG_URL}}mine_icon_7.png" mode=""
/>
</view>
</view>
</view>
</view>
...
@@ -111,27 +138,13 @@
...
@@ -111,27 +138,13 @@
<view class="item hasborder">
<view class="item hasborder">
<view class="label">{{item.label}}</view>
<view class="label">{{item.label}}</view>
<view class="value">
<view class="value">
<view
<view class="minus {{userInfo.userType == 2 ?'disabled':''}}" bindtap="addWorkCount" data-count="{{-1}}" data-index="{{index}}" bindlongtap="addWorkCount" bindtouchend="touchend" bindtouchstart="touchstart">
class="minus {{userInfo.userType == 2 ?'disabled':''}}"
bindtap="addWorkCount"
data-count="{{-1}}"
data-index="{{index}}"
bindlongtap="addWorkCount"
bindtouchend="touchend"
bindtouchstart="touchstart">
-
-
</view>
</view>
<view class="input text-center {{userInfo.userType == 2 ?'disabled':''}}">
<view class="input text-center {{userInfo.userType == 2 ?'disabled':''}}">
{{item.maxCount}}
{{item.maxCount}}
</view>
</view>
<view
<view class="add {{userInfo.userType == 2 ?'disabled':''}}" bindtap="addWorkCount" data-count="{{1}}" data-index="{{index}}" bindlongtap="addWorkCount" bindtouchend="touchend" bindtouchstart="touchstart">
class="add {{userInfo.userType == 2 ?'disabled':''}}"
bindtap="addWorkCount"
data-count="{{1}}"
data-index="{{index}}"
bindlongtap="addWorkCount"
bindtouchend="touchend"
bindtouchstart="touchstart">
+
+
</view>
</view>
个
个
...
@@ -140,24 +153,11 @@
...
@@ -140,24 +153,11 @@
</block>
</block>
<view class="item hasborder">
<view class="item hasborder">
<view class="label">周六施工</view>
<view class="label">周六施工</view>
<switch
<switch class="{{userInfo.userType == 2 ?'disabled':''}}" disabled="{{userInfo.userType == 2}}" color="#347BFF" isYqdSuper="{{isYqdSuper}}" checked="{{saturdayFlag}}" bindchange="changeSwitch" data-target="saturdayFlag" />
class="{{userInfo.userType == 2 ?'disabled':''}}"
disabled="{{userInfo.userType == 2}}"
color="#347BFF"
isYqdSuper="{{isYqdSuper}}"
checked="{{saturdayFlag}}"
bindchange="changeSwitch"
data-target="saturdayFlag" />
</view>
</view>
<view class="item hasborder">
<view class="item hasborder">
<view class="label">周日施工</view>
<view class="label">周日施工</view>
<switch
<switch class="{{userInfo.userType == 2 ?'disabled':''}}" disabled="{{userInfo.userType == 2}}" color="#347BFF" checked="{{sundayFlag}}" bindchange="changeSwitch" data-target="sundayFlag" />
class="{{userInfo.userType == 2 ?'disabled':''}}"
disabled="{{userInfo.userType == 2}}"
color="#347BFF"
checked="{{sundayFlag}}"
bindchange="changeSwitch"
data-target="sundayFlag" />
</view>
</view>
<view class="tips">设置门店每日每个时段可接待的客户人数, 施工时段以1个半小时为准,请合理安排施工进度</view>
<view class="tips">设置门店每日每个时段可接待的客户人数, 施工时段以1个半小时为准,请合理安排施工进度</view>
</view>
</view>
...
@@ -169,11 +169,5 @@
...
@@ -169,11 +169,5 @@
</view>
</view>
</block>
</block>
<!-- isYqdSuper -->
<!-- isYqdSuper -->
<switch-popup
<switch-popup show="{{showMerchantPop}}" height="{{merchantPopConfig.height}}" title="{{merchantPopConfig.title}}" isYqdSuper="{{isYqdSuper}}" tips="{{merchantPopConfig.tips}}" />
show="{{showMerchantPop}}"
height="{{merchantPopConfig.height}}"
title="{{merchantPopConfig.title}}"
isYqdSuper="{{isYqdSuper}}"
tips="{{merchantPopConfig.tips}}" />
</block>
</block>
\ No newline at end of file
\ No newline at end of file
pages/tabMine/pages/index/index.wxss
View file @
b966e4a
...
@@ -70,6 +70,9 @@
...
@@ -70,6 +70,9 @@
font-size: 24rpx;
font-size: 24rpx;
margin: 4rpx;
margin: 4rpx;
}
}
.item.flex {
display: flex;
}
.scene_box{
.scene_box{
margin: 20rpx;
margin: 20rpx;
...
...
tabIndex/pages/index/index.js
View file @
b966e4a
...
@@ -171,7 +171,7 @@ Page({
...
@@ -171,7 +171,7 @@ Page({
merchantRange
merchantRange
})
})
})
})
.
catch
(
err
=>
{
})
.
catch
(
err
=>
{
})
},
},
changePicker
(
e
,
value
)
{
changePicker
(
e
,
value
)
{
console
.
log
(
e
)
console
.
log
(
e
)
...
@@ -194,12 +194,12 @@ Page({
...
@@ -194,12 +194,12 @@ Page({
})
})
this
.
tapPicker
()
this
.
tapPicker
()
},
},
navTabPage
(
e
)
{
navTabPage
(
e
)
{
let
{
item
}
=
e
.
currentTarget
.
dataset
let
{
item
}
=
e
.
currentTarget
.
dataset
console
.
log
(
item
)
console
.
log
(
item
)
if
(
'activeIndex'
in
item
)
{
if
(
'activeIndex'
in
item
)
{
wx
.
$util
.
refreshPageData
()
wx
.
$util
.
refreshPageData
()
item
.
url
&&
wx
.
$router
.
go
(
item
.
url
,{
activeIndex
:
item
.
activeIndex
})
item
.
url
&&
wx
.
$router
.
go
(
item
.
url
,
{
activeIndex
:
item
.
activeIndex
})
}
else
{
}
else
{
item
.
url
&&
wx
.
$router
.
go
(
item
.
url
)
item
.
url
&&
wx
.
$router
.
go
(
item
.
url
)
}
}
...
@@ -220,6 +220,15 @@ Page({
...
@@ -220,6 +220,15 @@ Page({
})
})
}
}
})
})
}
else
if
(
item
.
type
==
'mini'
)
{
wx
.
navigateToMiniProgram
({
appId
:
'wx2c28337db96364d2'
,
path
:
`pages/tab/index/index`
,
envVersion
:
'trial'
,
success
(
res
)
{
// 打开成功
}
})
}
else
{
}
else
{
wx
.
$router
.
go
(
item
.
url
)
wx
.
$router
.
go
(
item
.
url
)
}
}
...
@@ -357,7 +366,7 @@ Page({
...
@@ -357,7 +366,7 @@ Page({
})
})
}
}
})
})
.
catch
(
err
=>
{
})
.
catch
(
err
=>
{
})
},
},
getMerchantCouponList
()
{
getMerchantCouponList
()
{
...
@@ -465,11 +474,11 @@ Page({
...
@@ -465,11 +474,11 @@ Page({
})
})
}
}
})
})
.
catch
(
err
=>
{
})
.
catch
(
err
=>
{
})
},
},
getUserStat
(
userInfo
)
{
getUserStat
(
userInfo
)
{
api
api
.
userStat
({
merchantId
:
userInfo
?.
isSuper
?
undefined
:
userInfo
?.
shopMerchantId
})
.
userStat
({
merchantId
:
userInfo
?.
isSuper
?
undefined
:
userInfo
?.
shopMerchantId
})
.
then
(
result
=>
{
.
then
(
result
=>
{
let
{
code
,
data
}
=
result
let
{
code
,
data
}
=
result
if
(
code
==
0
)
{
if
(
code
==
0
)
{
...
@@ -478,7 +487,7 @@ Page({
...
@@ -478,7 +487,7 @@ Page({
})
})
}
}
})
})
.
catch
(
err
=>
{
})
.
catch
(
err
=>
{
})
},
},
totalListSet
()
{
totalListSet
()
{
let
{
userInfo
}
=
this
.
data
let
{
userInfo
}
=
this
.
data
...
@@ -553,8 +562,8 @@ Page({
...
@@ -553,8 +562,8 @@ Page({
// listStatus 0 待跟进 1已升级 2战败 3待支付
// listStatus 0 待跟进 1已升级 2战败 3待支付
if
(
options
?.
isGoPage
)
{
if
(
options
?.
isGoPage
)
{
// status 1待跟进(有inviteRecordId跳转预约详情无跳转待跟进工单页面 微信支付跳转工单确认页面)3待支付(跳转工单确认页面)constructionFlag(已施工页面)
// status 1待跟进(有inviteRecordId跳转预约详情无跳转待跟进工单页面 微信支付跳转工单确认页面)3待支付(跳转工单确认页面)constructionFlag(已施工页面)
let
pageName
=
(
options
?.
status
==
1
&&
options
?.
pageParams
?.
id
)
?
'tabDate.detail'
:
(
options
.
status
==
3
||
(
options
.
status
==
1
&&
options
.
selectPayType
==
1
))
?
'tabWorkOrder.confirmOrder'
:
options
.
constructionFlag
==
'Y'
&&
options
.
status
!=
10
?
'tabWorkOrder.constructionOrderDetail'
:
'tabWorkOrder.orderDetail'
let
pageName
=
(
options
?.
status
==
1
&&
options
?.
pageParams
?.
id
)
?
'tabDate.detail'
:
(
options
.
status
==
3
||
(
options
.
status
==
1
&&
options
.
selectPayType
==
1
))
?
'tabWorkOrder.confirmOrder'
:
options
.
constructionFlag
==
'Y'
&&
options
.
status
!=
10
?
'tabWorkOrder.constructionOrderDetail'
:
'tabWorkOrder.orderDetail'
wx
.
$router
.
go
(
`
${
pageName
}
?id=
${
options
?.
pageParams
?.
id
}
&
orderCode
=
$
{
options
?.
pageParams
?.
orderCode
}
`, {...options?.pageParams
})
wx
.
$router
.
go
(
`
${
pageName
}
?id=
${
options
?.
pageParams
?.
id
}
&
orderCode
=
$
{
options
?.
pageParams
?.
orderCode
}
`, { ...options?.pageParams
})
}
}
},
},
/**
/**
...
@@ -677,14 +686,14 @@ Page({
...
@@ -677,14 +686,14 @@ Page({
/**
/**
* 页面相关事件处理函数--监听用户下拉动作
* 页面相关事件处理函数--监听用户下拉动作
*/
*/
onPullDownRefresh: function () {
},
onPullDownRefresh: function () {
},
/**
/**
* 页面上拉触底事件的处理函数
* 页面上拉触底事件的处理函数
*/
*/
onReachBottom: function () {
},
onReachBottom: function () {
},
/**
/**
* 用户点击右上角分享
* 用户点击右上角分享
*/
*/
onShareAppMessage: function () {
}
onShareAppMessage: function () {
}
})
})
tabIndex/pages/index/index_mixins.js
View file @
b966e4a
...
@@ -61,6 +61,12 @@ export default {
...
@@ -61,6 +61,12 @@ export default {
url
:
'tabOperating.index'
,
url
:
'tabOperating.index'
,
recordId
:
11
,
recordId
:
11
,
icon
:
'business_data'
icon
:
'business_data'
},
{
name
:
'生意助手'
,
type
:
"mini"
,
recordId
:
12
,
icon
:
'boutique-syzs'
}
}
],
],
totalTableSum
:
[
totalTableSum
:
[
...
...
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