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 0be7a79e
authored
Nov 20, 2023
by
前端
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
1111
1 parent
823d50e0
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
129 additions
and
121 deletions
tabMine/pages/collectCoupons/collectCoupons.js
tabMine/pages/collectCoupons/collectCoupons.sass
tabMine/pages/collectCoupons/collectCoupons.wxml
tabMine/pages/completeBuild/completeBuild.js
tabMine/pages/completeBuild/completeBuild.wxml
tabMine/pages/collectCoupons/collectCoupons.js
View file @
0be7a79
This diff is collapsed.
Click to expand it.
tabMine/pages/collectCoupons/collectCoupons.sass
View file @
0be7a79
...
@@ -174,6 +174,10 @@ page {
...
@@ -174,6 +174,10 @@ page {
pointer-events
:
none
;
pointer-events
:
none
;
}
}
.disabled
{
opacity
:
.5
;
}
.btns
{
.btns
{
position
:
fixed
;
position
:
fixed
;
/* position: absolute; */
/* position: absolute; */
...
...
tabMine/pages/collectCoupons/collectCoupons.wxml
View file @
0be7a79
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
<view class="main {{isFullSucreen?'isFullSucreen':''}}">
<view class="main {{isFullSucreen?'isFullSucreen':''}}">
<view class="switch-v">
<view class="switch-v">
<view class="label">设置园区店集中接待电话</view>
<view class="label">设置园区店集中接待电话</view>
<switch color="#347BFF"
isYqdSuper="{{
isYqdSuper}}" checked="{{info.yqMerchantEnableFlag}}" bindchange="changeYQSwitch" data-target="info.yqMerchantEnableFlag" />
<switch color="#347BFF"
class=" {{userInfo.userType == 2 ?'disabled':''}}" disabled="{{!
isYqdSuper}}" checked="{{info.yqMerchantEnableFlag}}" bindchange="changeYQSwitch" data-target="info.yqMerchantEnableFlag" />
</view>
</view>
<view class="setItem {{info.yqMerchantEnableFlag?'':'itemOP'}}">
<view class="setItem {{info.yqMerchantEnableFlag?'':'itemOP'}}">
<view class="item-label">{{info.yqMerchantName}}</view>
<view class="item-label">{{info.yqMerchantName}}</view>
...
@@ -23,7 +23,7 @@
...
@@ -23,7 +23,7 @@
</view>
</view>
<view class="switch-v">
<view class="switch-v">
<view class="label">设置单店驻店接待电话</view>
<view class="label">设置单店驻店接待电话</view>
<switch color="#347BFF"
isYqdSuper="{{
isYqdSuper}}" checked="{{info.shopMerchantEnableFlag}}" bindchange="change4sSwitch" data-target="info.shopMerchantEnableFlag" />
<switch color="#347BFF"
class=" {{userInfo.userType == 2 ?'disabled':''}}" disabled="{{!
isYqdSuper}}" checked="{{info.shopMerchantEnableFlag}}" bindchange="change4sSwitch" data-target="info.shopMerchantEnableFlag" />
</view>
</view>
<block wx:for="{{info.shopMerchantConfigList}}" wx:key="index">
<block wx:for="{{info.shopMerchantConfigList}}" wx:key="index">
<view class="setItem {{info.shopMerchantEnableFlag?'':'itemOP'}}">
<view class="setItem {{info.shopMerchantEnableFlag?'':'itemOP'}}">
...
@@ -48,6 +48,6 @@
...
@@ -48,6 +48,6 @@
<view class="btns {{isFullSucreen?'isFullSucreen-btn':''}}">
<view class="btns {{isFullSucreen?'isFullSucreen-btn':''}}">
<tips-bottom style="width: 100%;box-sizing: border-box;" tipsProps="{{ tipsProps }}" />
<tips-bottom style="width: 100%;box-sizing: border-box;" tipsProps="{{ tipsProps }}" />
<view class="btns-con">
<view class="btns-con">
<view class="confirm text-center" bindtap="submit">批量提交</view>
<view class="confirm text-center
{{userInfo.userType == 2 ?'disabled':''}}
" bindtap="submit">批量提交</view>
</view>
</view>
</view>
</view>
\ No newline at end of file
\ No newline at end of file
tabMine/pages/completeBuild/completeBuild.js
View file @
0be7a79
// 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'
;
const
app
=
getApp
()
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
()
},
this
.
setData
({
isYqdSuper
:
app
.
globalData
.
isYqdSuper
,
})
},
/**
/**
* 生命周期函数--监听页面初次渲染完成
* 生命周期函数--监听页面初次渲染完成
*/
*/
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
)
{
let
{
let
{
userInfo
userInfo
}
=
this
.
data
}
=
this
.
data
if
(
userInfo
.
userType
==
2
)
return
if
(
userInfo
.
userType
==
2
)
return
console
.
log
(
'e'
,
e
);
console
.
log
(
'e'
,
e
);
let
{
let
{
value
value
}
=
e
.
detail
}
=
e
.
detail
let
{
let
{
target
target
}
=
e
.
currentTarget
.
dataset
}
=
e
.
currentTarget
.
dataset
this
.
setData
({
this
.
setData
({
[
target
]:
value
[
target
]:
value
})
})
this
.
updateSignatureConfiguration
()
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.wxml
View file @
0be7a79
...
@@ -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 class=" {{userInfo.userType == 2 ?'disabled':''}}" color="#347BFF"
isYqdSuper="{{
isYqdSuper}}" checked="{{saturdayFlag}}" bindchange="changeSwitch" data-target="saturdayFlag" />
<switch class=" {{userInfo.userType == 2 ?'disabled':''}}" color="#347BFF"
disabled="{{!
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>
...
...
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