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 3e7cde85
authored
Mar 29, 2023
by
张立顺
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
2.0 需求样式修改
1 parent
d27ebb11
Hide whitespace changes
Inline
Side-by-side
Showing
14 changed files
with
49 additions
and
28 deletions
app.js
components/GlCell/GlCell.js
components/GlCell/GlCell.wxml
packageEquity/pages/carQuotation/CarQuotationPay/CarQuotationPay.sass
packageEquity/pages/carQuotation/components/FirstStep/FirstStep.js
packageEquity/pages/carQuotation/components/FirstStep/FirstStep.sass
packageEquity/pages/carQuotation/components/FirstStep/FirstStep.wxml
packageEquity/pages/carQuotation/components/FirstStep/FirstStep.wxss
packageEquity/pages/carQuotation/schemeConfirmation/schemeConfirmation.sass
project.private.config.json
store/index.js
tabDate/pages/index/index.js
tabDate/pages/index/index.wxml
tabWorkOrder/pages/createOrder/createOrder.js
app.js
View file @
3e7cde8
...
@@ -37,16 +37,16 @@ App({
...
@@ -37,16 +37,16 @@ App({
// options.query.scene = 2 //调试用
// options.query.scene = 2 //调试用
// console.log(options, 'options')
// console.log(options, 'options')
// orderCode=2208241419054111&merchantId=44209480&customerName=123&page=createOrder
// orderCode=2208241419054111&merchantId=44209480&customerName=123&page=createOrder
let
mockOptions
=
{
//
let mockOptions = {
query
:
{
//
query: {
// orderCode: 2208241419054111,
//
// orderCode: 2208241419054111,
// merchantId: 44209480,
//
// merchantId: 44209480,
customerName
:
'%E7%83%82%EC%A7%84%ED%9D%99%E6%B3%A5'
,
//
customerName: '%E7%83%82%EC%A7%84%ED%9D%99%E6%B3%A5',
page
:
'createArchives'
//
page: 'createArchives'
}
//
}
}
//
}
options
=
mockOptions
//
options = mockOptions
if
(
options
)
{
if
(
options
)
{
let
query
=
options
.
query
let
query
=
options
.
query
if
(
query
)
{
if
(
query
)
{
...
@@ -60,7 +60,7 @@ App({
...
@@ -60,7 +60,7 @@ App({
let
res
=
checkScene
(
options
)
let
res
=
checkScene
(
options
)
// console.log(res, 'res')
// console.log(res, 'res')
// 如果需要重新登录
// 如果需要重新登录
res
&&
this
.
login
(
true
,
'订单与当前登录园区不一致,请重新登录。'
)
res
&&
this
.
login
(
true
,
res
)
}
}
},
},
login
(
relogin
,
context
)
{
login
(
relogin
,
context
)
{
...
...
components/GlCell/GlCell.js
View file @
3e7cde8
// components/GlCell/GlCell.js
// components/GlCell/GlCell.js
Component
({
Component
({
options
:
{
styleIsolation
:
'apply-shared'
},
/**
/**
* 组件的属性列表
* 组件的属性列表
*/
*/
...
...
components/GlCell/GlCell.wxml
View file @
3e7cde8
<view class='cell-box'>
<view class='cell-box'>
<view class="cell {{cellHeight?'cellHeight': ''}} {{border?'border':''}}" bindtap="click">
<view class="cell {{cellHeight?'cellHeight': ''}} {{border?'border':''}}" bindtap="click">
<view class='cell-label' style="width:{{labelWidth}};{{labelStyle}}" bindtap="titleClick">
<view class='cell-label
title-style
' style="width:{{labelWidth}};{{labelStyle}}" bindtap="titleClick">
<text wx:if='{{required&&requiredBefore}}' class='required'>*</text>
<text wx:if='{{required&&requiredBefore}}' class='required'>*</text>
{{label||'标题'}}
{{label||'标题'}}
<text wx:if='{{required&&requiredAfter}}' class='required'>*</text>
<text wx:if='{{required&&requiredAfter}}' class='required'>*</text>
...
...
packageEquity/pages/carQuotation/CarQuotationPay/CarQuotationPay.sass
View file @
3e7cde8
...
@@ -21,8 +21,8 @@ page {
...
@@ -21,8 +21,8 @@ page {
.arrow
{
.arrow
{
position
:
absolute
;
position
:
absolute
;
top
:
50%
;
top
:
50%
;
width
:
48
rpx
;
width
:
72
rpx
;
height
:
48
rpx
;
height
:
72
rpx
;
}
}
.right
{
.right
{
...
...
packageEquity/pages/carQuotation/components/FirstStep/FirstStep.js
View file @
3e7cde8
...
@@ -6,6 +6,9 @@ import carLifeApi from '~/packageEquity/carEquityApi'
...
@@ -6,6 +6,9 @@ import carLifeApi from '~/packageEquity/carEquityApi'
const
defaultLabelWidth
=
'140rpx'
const
defaultLabelWidth
=
'140rpx'
// import api from '~/api/api'
// import api from '~/api/api'
Component
({
Component
({
options
:
{
styleIsolation
:
'shared'
},
/**
/**
* 组件的属性列表
* 组件的属性列表
*/
*/
...
...
packageEquity/pages/carQuotation/components/FirstStep/FirstStep.sass
View file @
3e7cde8
...
@@ -16,6 +16,15 @@
...
@@ -16,6 +16,15 @@
overflow
:
hidden
;
overflow
:
hidden
;
}
}
.pickerCell
{
.cell-label
{
font-weight
:
500
;
font-size
:
32rpx
;
color
:
#222222
;
}
}
.employeeBox
{
.employeeBox
{
box-shadow
:
0
6rpx
16rpx
0
#cdcdd1
59
;
box-shadow
:
0
6rpx
16rpx
0
#cdcdd1
59
;
border-radius
:
16rpx
;
border-radius
:
16rpx
;
...
@@ -30,6 +39,8 @@
...
@@ -30,6 +39,8 @@
display
:
flex
;
display
:
flex
;
}
}
.title
{
.title
{
display
:
flex
;
display
:
flex
;
justify-content
:
space-between
;
justify-content
:
space-between
;
...
@@ -79,7 +90,7 @@
...
@@ -79,7 +90,7 @@
color
:
#B6B6B8
;
color
:
#B6B6B8
;
}
}
.
a
rrow
{
.
pickerA
rrow
{
width
:
28rpx
;
width
:
28rpx
;
height
:
26rpx
;
height
:
26rpx
;
margin-top
:
26rpx
;
margin-top
:
26rpx
;
...
...
packageEquity/pages/carQuotation/components/FirstStep/FirstStep.wxml
View file @
3e7cde8
...
@@ -5,6 +5,7 @@
...
@@ -5,6 +5,7 @@
border
border
valueAlign="right"
valueAlign="right"
label="推荐人"
label="推荐人"
class="pickerCell"
labelWidth="{{defaultLabelWidth}}">
labelWidth="{{defaultLabelWidth}}">
<picker
<picker
bindchange="handleSalesChange"
bindchange="handleSalesChange"
...
@@ -12,7 +13,7 @@
...
@@ -12,7 +13,7 @@
range="{{employeeList}}"
range="{{employeeList}}"
range-key="staffName">
range-key="staffName">
<view class="picker">
<view class="picker">
<image class="
a
rrow" src="/components/images/arrow-x.png" />
<image class="
pickerA
rrow" src="/components/images/arrow-x.png" />
<view class="text-hide" wx:if="{{orderInfo.referrerId }}">{{orderInfo.referrer }}</view>
<view class="text-hide" wx:if="{{orderInfo.referrerId }}">{{orderInfo.referrer }}</view>
<text class="placeholder" wx:else>请选择</text>
<text class="placeholder" wx:else>请选择</text>
</view>
</view>
...
...
packageEquity/pages/carQuotation/components/FirstStep/FirstStep.wxss
0 → 100644
View file @
3e7cde8
File mode changed
packageEquity/pages/carQuotation/schemeConfirmation/schemeConfirmation.sass
View file @
3e7cde8
...
@@ -14,6 +14,7 @@ page {
...
@@ -14,6 +14,7 @@ page {
box-shadow
:
0
6rpx
16rpx
0
#cdcdd1
59
;
box-shadow
:
0
6rpx
16rpx
0
#cdcdd1
59
;
border-radius
:
16rpx
;
border-radius
:
16rpx
;
text-align
:
center
;
text-align
:
center
;
overflow
:
hidden
;
.title
{
.title
{
font-weight
:
500
;
font-weight
:
500
;
...
...
project.private.config.json
View file @
3e7cde8
...
@@ -176,5 +176,6 @@
...
@@ -176,5 +176,6 @@
]
]
}
}
},
},
"setting"
:
{}
"setting"
:
{},
"libVersion"
:
"2.29.2"
}
}
\ No newline at end of file
\ No newline at end of file
store/index.js
View file @
3e7cde8
...
@@ -153,22 +153,21 @@ export const setConfigInfo = globalData => {
...
@@ -153,22 +153,21 @@ export const setConfigInfo = globalData => {
}
}
export
const
checkScene
=
options
=>
{
export
const
checkScene
=
options
=>
{
// console.log(options, 'options')
// console.log(wx)
// return true
let
{
query
}
=
options
let
{
query
}
=
options
console
.
log
(
query
,
'query'
)
console
.
log
(
query
,
'query'
)
let
userInfo
=
wx
.
$util
.
getStorageSync
(
'dj_boutique_user_info'
)
// 判断对象是否满足任意一个key
// 判断对象是否满足任意一个key
// console.log(query, ' query')
// console.log(query, ' query')
if
(
query
&&
(
query
.
scene
||
query
.
merchantId
||
query
.
type
||
query
.
page
))
{
if
(
query
&&
(
query
.
scene
||
query
.
merchantId
||
query
.
type
||
query
.
page
))
{
if
(
query
.
merchantId
)
{
if
(
query
.
merchantId
)
{
// &&options.patch == 'tabIndex/pages/index/index'
// &&options.patch == 'tabIndex/pages/index/index'
let
userInfo
=
wx
.
$util
.
getStorageSync
(
'dj_boutique_user_info'
)
// 需要当前门店的 不是就重新登录
// 需要当前门店的 不是就重新登录
if
(
userInfo
?.
subLoginUser
?.
merchantId
!=
query
.
merchantId
)
{
if
(
userInfo
?.
subLoginUser
?.
merchantId
!=
query
.
merchantId
)
{
wx
.
$SCENE
=
null
wx
.
$SCENE
=
null
// return this.login(true)
// return this.login(true)
return
true
// 重新登录
// return true // 重新登录
return
'订单与当前登录园区不一致,请重新登录。'
}
}
if
(
query
.
page
)
{
if
(
query
.
page
)
{
//订单跟进
//订单跟进
...
@@ -178,7 +177,6 @@ export const checkScene = options => {
...
@@ -178,7 +177,6 @@ export const checkScene = options => {
options
.
path
=
'pages/index/index'
options
.
path
=
'pages/index/index'
}
}
}
}
// path
// h5跳转小程序 路径处理
// h5跳转小程序 路径处理
if
(
query
.
page
)
{
if
(
query
.
page
)
{
const
pagePath
=
{
const
pagePath
=
{
...
@@ -190,6 +188,9 @@ export const checkScene = options => {
...
@@ -190,6 +188,9 @@ export const checkScene = options => {
}
}
console
.
log
(
options
,
'options'
)
console
.
log
(
options
,
'options'
)
wx
.
$SCENE
=
options
wx
.
$SCENE
=
options
if
(
!
userInfo
)
{
return
'未登录,请登录。'
}
}
}
}
}
...
...
tabDate/pages/index/index.js
View file @
3e7cde8
...
@@ -43,13 +43,13 @@ Page({
...
@@ -43,13 +43,13 @@ Page({
text
:
'取消预约'
,
text
:
'取消预约'
,
color
:
'#FF7D12'
color
:
'#FF7D12'
},
},
4
:
{
text
:
'已施工'
,
color
:
'#999999'
},
5
:
{
5
:
{
text
:
'过期到店'
,
text
:
'过期到店'
,
color
:
'#FF7D12'
color
:
'#FF7D12'
},
4
:
{
text
:
'已施工'
,
color
:
'#999999'
}
}
},
},
searchObj
:
{},
searchObj
:
{},
...
...
tabDate/pages/index/index.wxml
View file @
3e7cde8
...
@@ -53,7 +53,7 @@
...
@@ -53,7 +53,7 @@
data-item="{{li}}">
data-item="{{li}}">
<view class="status" style="color:{{status[li.inviteStatus].color}}">
<view class="status" style="color:{{status[li.inviteStatus].color}}">
<block>{{status[li.inviteStatus].text}}</block>
<block>{{status[li.inviteStatus].text}}</block>
<block wx:if="{{li.inviteStatus !=
=
4}}">
<block wx:if="{{li.inviteStatus !=4}}">
<view class="line" style="background-color:{{status[li.inviteStatus].color}};" />
<view class="line" style="background-color:{{status[li.inviteStatus].color}};" />
</block>
</block>
</view>
</view>
...
...
tabWorkOrder/pages/createOrder/createOrder.js
View file @
3e7cde8
...
@@ -663,7 +663,7 @@ Page({
...
@@ -663,7 +663,7 @@ Page({
})
})
console
.
log
(
res
)
console
.
log
(
res
)
let
{
code
,
message
,
data
}
=
result
let
{
code
,
message
,
data
}
=
result
data
.
customer
.
customerName
=
res
.
customerName
//
data.customer.customerName = res.customerName
code
==
0
&&
(
res
=
data
)
code
==
0
&&
(
res
=
data
)
}
}
...
...
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