Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
glsx
/
gl_tape
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
3
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 7715c095
authored
Dec 25, 2025
by
cen
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'SAAS+V5.5.1' of
http://192.168.3.233:8090/glsx/gl_tape
into SAAS+V5.5.1
2 parents
0f20a370
cbb76217
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
134 additions
and
56 deletions
pages/boutique/components/CouponPop.vue
pages/equity/tool/components/CreateEquity.vue
pages/equity/tool/components/CreateOrder.vue
pages/equity/tool/components/SkuGoods.vue
uni_modules/uni-calendar/components/uni-calendar/uni-calendar.vue
pages/boutique/components/CouponPop.vue
View file @
7715c09
...
@@ -32,6 +32,21 @@
...
@@ -32,6 +32,21 @@
>
>
<view
:class=
"['label',
{required:i.required}]">
{{
i
.
label
}}
</view>
<view
:class=
"['label',
{required:i.required}]">
{{
i
.
label
}}
</view>
<view
:class=
"['value',
{ error: showError(i.key)
&&
i.required },{disabled: pageParams.received}]">
<view
:class=
"['value',
{ error: showError(i.key)
&&
i.required },{disabled: pageParams.received}]">
<template
v-if=
"i.addHtml"
>
<view
:class=
"['select', `$
{pageParams.carInfo[i.key]? '' : 'placeholder'}`]"
@click="showPopup(i.popKey)"
:key="selectKey"
>
{{
pageParams
.
carInfo
[
i
.
key
]
||
i
.
placeholder
}}
<uni-icons
class=
"arrow"
type=
"down"
:size=
"16"
></uni-icons>
</view>
</
template
>
<
template
v-else
>
<template
v-if=
"i.type == 'input'"
>
<template
v-if=
"i.type == 'input'"
>
<input
<input
:type=
"i.inputType"
:type=
"i.inputType"
...
@@ -61,6 +76,7 @@
...
@@ -61,6 +76,7 @@
<
template
v-else
>
<
template
v-else
>
<view
class=
"text"
>
{{
customerInfo
[
i
.
key
]
}}
</view>
<view
class=
"text"
>
{{
customerInfo
[
i
.
key
]
}}
</view>
</
template
>
</
template
>
</template>
</view>
</view>
</view>
</view>
</view>
</view>
...
@@ -77,7 +93,14 @@
...
@@ -77,7 +93,14 @@
:key=
"idx"
:key=
"idx"
>
>
<view
class=
"label"
>
{{ j.label }}
</view>
<view
class=
"label"
>
{{ j.label }}
</view>
<view
class=
"value-text"
>
{{ customerInfo[j.key] || '--'}}
</view>
<view
class=
"value-text"
>
<
template
v-if=
"j.addHtml"
>
{{
pageParams
.
carInfo
[
j
.
key
]
||
'--'
}}
</
template
>
<
template
v-else
>
{{
customerInfo
[
j
.
key
]
||
'--'
}}
</
template
>
</view>
</view>
</view>
</view>
</view>
</view>
</view>
...
@@ -147,6 +170,11 @@
...
@@ -147,6 +170,11 @@
>
生成专属二维码
</view>
>
生成专属二维码
</view>
</view>
</view>
</MessageBox>
</MessageBox>
<car-brands
:linkage=
"false"
ref=
"carBrandListVisible"
@
select=
"handleSelect($event, 'carBrandListVisible')"
/>
<employee
<employee
ref=
"employeeBoxVisible"
ref=
"employeeBoxVisible"
@
select=
"handleSelect($event,'employeeBoxVisible')"
@
select=
"handleSelect($event,'employeeBoxVisible')"
...
@@ -179,6 +207,8 @@
...
@@ -179,6 +207,8 @@
<
script
type=
"text/ecmascript-6"
>
<
script
type=
"text/ecmascript-6"
>
import
Employee
from
'@/components/Employee.vue'
import
Employee
from
'@/components/Employee.vue'
import
qrcode
from
'@/utils/qrcode.js'
import
qrcode
from
'@/utils/qrcode.js'
import
CarBrands
from
'@/components/CarBrands.vue'
const
phoneRex
=
/^
[
1
]([
3-9
])[
0-9
]{9}
$/
;
const
phoneRex
=
/^
[
1
]([
3-9
])[
0-9
]{9}
$/
;
import
dayjs
from
'dayjs'
import
dayjs
from
'dayjs'
const
formObject_boutique
=
[{
const
formObject_boutique
=
[{
...
@@ -201,10 +231,12 @@ const formObject_boutique = [{
...
@@ -201,10 +231,12 @@ const formObject_boutique = [{
},
},
{
{
label
:
"品牌车型"
,
label
:
"品牌车型"
,
key
:
"carModel"
,
type
:
"select"
,
type
:
"text"
,
popKey
:
"carBrandListVisible"
,
popKey
:
"carBrandListVisible"
,
placeholder
:
'请选择车型'
placeholder
:
'请选择车型'
,
addHtml
:
'carbrand'
,
key
:
'name'
,
required
:
true
},
},
{
{
label
:
"交付专员"
,
label
:
"交付专员"
,
...
@@ -233,12 +265,22 @@ export default {
...
@@ -233,12 +265,22 @@ export default {
title
:
String
,
title
:
String
,
tips
:
String
tips
:
String
},
},
components
:
{
Employee
},
components
:
{
Employee
,
CarBrands
},
watch
:
{
watch
:
{
watchCustomerInfo
:
{
watchCustomerInfo
:
{
immediate
:
true
,
immediate
:
true
,
handler
(
newval
)
{
handler
(
newval
)
{
this
.
customerInfo
=
Object
.
assign
(
this
.
customerInfo
,
newval
)
this
.
customerInfo
=
Object
.
assign
(
this
.
customerInfo
,
newval
)
if
(
newval
.
carModel
)
{
this
.
pageParams
.
carInfo
=
{
carChildsBrandId
:
newval
.
carChildsBrandId
,
carChildsBrandName
:
newval
.
carChildsBrandName
,
carBrandId
:
newval
.
carBrandId
,
carBrand
:
newval
.
carBrand
,
id
:
newval
.
carSeriesId
,
name
:
newval
.
carModel
}
}
try
{
try
{
// 监听完成接待修改数据,同步修改生成优惠券按钮状态
// 监听完成接待修改数据,同步修改生成优惠券按钮状态
const
{
customerName
,
phoneNumber
,
staffName
}
=
this
.
customerInfo
const
{
customerName
,
phoneNumber
,
staffName
}
=
this
.
customerInfo
...
@@ -268,6 +310,21 @@ export default {
...
@@ -268,6 +310,21 @@ export default {
},
},
show
()
{
show
()
{
this
.
closeAllPopup
()
this
.
closeAllPopup
()
},
carInfo
:
{
handler
(
newval
)
{
console
.
log
(
newval
,
'==='
)
this
.
pageParams
.
carInfo
=
{
carChildsBrandId
:
newval
.
carChildsBrandId
,
carChildsBrandName
:
newval
.
carChildsBrandName
,
carBrandId
:
newval
.
carBrandId
,
carBrand
:
newval
.
carBrand
,
id
:
newval
.
id
,
name
:
newval
.
name
}
},
deep
:
true
,
immediate
:
true
}
}
},
},
computed
:
{
computed
:
{
...
@@ -419,11 +476,18 @@ export default {
...
@@ -419,11 +476,18 @@ export default {
if
(
popkey
==
"employeeBoxVisible"
)
{
if
(
popkey
==
"employeeBoxVisible"
)
{
this
.
customerInfo
.
salesUuid
=
item
.
uuid
;
this
.
customerInfo
.
salesUuid
=
item
.
uuid
;
this
.
customerInfo
.
staffName
=
item
.
staffName
;
this
.
customerInfo
.
staffName
=
item
.
staffName
;
this
.
$store
.
dispatch
(
"setCustomerInfo"
,
this
.
customerInfo
);
}
else
{
}
else
{
this
.
$refs
.
carBrandListVisible
.
close
();
this
.
$refs
.
carBrandListVisible
.
close
();
this
.
customerInfo
.
carModel
=
item
.
name
;
this
.
pageParams
.
carInfo
=
{
carChildsBrandId
:
item
.
carChildsBrandId
,
carChildsBrandName
:
item
.
carChildsBrandName
,
carBrandId
:
item
.
carBrandId
,
carBrand
:
item
.
carBrand
,
id
:
item
.
id
,
name
:
item
.
name
}
}
}
this
.
$store
.
dispatch
(
"setCustomerInfo"
,
this
.
customerInfo
);
this
.
selectKey
=
Date
.
now
()
this
.
selectKey
=
Date
.
now
()
const
{
customerName
,
phoneNumber
,
staffName
}
=
this
.
customerInfo
const
{
customerName
,
phoneNumber
,
staffName
}
=
this
.
customerInfo
this
.
isCheck
=
customerName
&&
phoneNumber
&&
staffName
this
.
isCheck
=
customerName
&&
phoneNumber
&&
staffName
...
@@ -455,7 +519,7 @@ export default {
...
@@ -455,7 +519,7 @@ export default {
if
(
this
.
pageParams
.
received
)
return
if
(
this
.
pageParams
.
received
)
return
if
(
!
this
.
isCheck
)
return
// 按钮置灰的情况
if
(
!
this
.
isCheck
)
return
// 按钮置灰的情况
try
{
try
{
const
{
pageParams
:
{
clickFlag
,
couponId
},
carInfo
,
customerInfo
}
=
this
,
{
const
{
pageParams
:
{
clickFlag
,
couponId
,
carInfo
}
,
customerInfo
}
=
this
,
{
shopMerchantId
}
=
uni
.
$storage
.
get
(
"userInfo"
),
shopMerchantId
}
=
uni
.
$storage
.
get
(
"userInfo"
),
validateStatus
=
await
this
.
validate
(),
validateStatus
=
await
this
.
validate
(),
checkCouponAmount
=
await
this
.
checkCouponAmount
(
couponId
,
[
shopMerchantId
])
checkCouponAmount
=
await
this
.
checkCouponAmount
(
couponId
,
[
shopMerchantId
])
...
@@ -512,7 +576,7 @@ export default {
...
@@ -512,7 +576,7 @@ export default {
try
{
try
{
this
.
pageParams
.
received
=
false
this
.
pageParams
.
received
=
false
this
.
pageParams
.
qrTimer
=
setInterval
(
async
()
=>
{
this
.
pageParams
.
qrTimer
=
setInterval
(
async
()
=>
{
const
{
pageParams
:
{
couponId
},
customerInfo
}
=
this
,
const
{
pageParams
:
{
couponId
,
carInfo
},
customerInfo
}
=
this
,
res
=
await
uni
.
$api
.
boutiqueApi
.
findCustomerReceivedStatus
({
res
=
await
uni
.
$api
.
boutiqueApi
.
findCustomerReceivedStatus
({
merchantCouponId
:
couponId
,
merchantCouponId
:
couponId
,
customerPhone
:
customerInfo
.
phoneNumber
,
customerPhone
:
customerInfo
.
phoneNumber
,
...
@@ -524,7 +588,7 @@ export default {
...
@@ -524,7 +588,7 @@ export default {
this
.
$emit
(
'reception'
,
{
this
.
$emit
(
'reception'
,
{
item
:
{
item
:
{
customerName
:
customerInfo
.
customerName
,
customerName
:
customerInfo
.
customerName
,
carSeriesName
:
c
ustomerInfo
.
carModel
,
carSeriesName
:
c
arInfo
.
name
,
customerPhone
:
customerInfo
.
phoneNumber
,
customerPhone
:
customerInfo
.
phoneNumber
,
userId
:
customerInfo
.
salesUuid
,
userId
:
customerInfo
.
salesUuid
,
employeeName
:
customerInfo
.
staffName
,
employeeName
:
customerInfo
.
staffName
,
...
...
pages/equity/tool/components/CreateEquity.vue
View file @
7715c09
...
@@ -84,7 +84,7 @@
...
@@ -84,7 +84,7 @@
ref=
"futureCalendar"
ref=
"futureCalendar"
:insert=
"false"
:insert=
"false"
:clearDate=
"false"
:clearDate=
"false"
:startDate=
"
end
Date"
:startDate=
"
start
Date"
@
confirm=
"confirmCalendar($event,'effectiveDate')"
@
confirm=
"confirmCalendar($event,'effectiveDate')"
:date=
"orderObj.effectiveDate"
:date=
"orderObj.effectiveDate"
showBottomBtn
showBottomBtn
...
@@ -173,6 +173,7 @@ export default {
...
@@ -173,6 +173,7 @@ export default {
formList
:
utils
.
deepClone
(
EQUITY_FORM_LIST
),
formList
:
utils
.
deepClone
(
EQUITY_FORM_LIST
),
titleList
:
utils
.
deepClone
(
EQUITY_FORM_TITLE_LIST
),
titleList
:
utils
.
deepClone
(
EQUITY_FORM_TITLE_LIST
),
endDate
:
dayjs
().
format
(
'YYYY-MM-DD'
),
endDate
:
dayjs
().
format
(
'YYYY-MM-DD'
),
startDate
:
dayjs
().
add
(
1
,
'day'
).
format
(
'YYYY-MM-DD'
),
equityFormRule
:
utils
.
deepClone
(
EQUITY_FORM_RULE
),
equityFormRule
:
utils
.
deepClone
(
EQUITY_FORM_RULE
),
orderObj
:
{},
orderObj
:
{},
loadComplete
:
false
,
loadComplete
:
false
,
...
@@ -232,7 +233,7 @@ export default {
...
@@ -232,7 +233,7 @@ export default {
if
(
i
.
value
==
val
.
value
)
i
.
current
=
e
.
detail
.
value
if
(
i
.
value
==
val
.
value
)
i
.
current
=
e
.
detail
.
value
})
})
})
})
this
.
viewKey
=
Date
.
now
()
//
this.viewKey = Date.now()
},
},
handleCell
(
val
)
{
handleCell
(
val
)
{
if
([
'calendar'
,
'futureCalendar'
].
includes
(
val
.
key
))
return
this
.
$refs
[
val
.
key
]?.
open
()
if
([
'calendar'
,
'futureCalendar'
].
includes
(
val
.
key
))
return
this
.
$refs
[
val
.
key
]?.
open
()
...
...
pages/equity/tool/components/CreateOrder.vue
View file @
7715c09
...
@@ -104,7 +104,7 @@ import GlCell from '../../../../components/Form/GlCell.vue'
...
@@ -104,7 +104,7 @@ import GlCell from '../../../../components/Form/GlCell.vue'
import
Product
from
'./Product.vue'
import
Product
from
'./Product.vue'
import
Package
from
'./Package.vue'
import
Package
from
'./Package.vue'
import
SkuGoods
from
'./SkuGoods.vue'
import
SkuGoods
from
'./SkuGoods.vue'
import
{
FORM_LIST
,
popupTypeEnum
,
payTypeList
,
titleList
}
from
'../contant'
import
{
FORM_LIST
,
popupTypeEnum
,
titleList
}
from
'../contant'
import
{
interceptionMixin
}
from
'@/mixin/index'
import
{
interceptionMixin
}
from
'@/mixin/index'
import
UploadProofOfPayment
from
'./UploadProofOfPayment.vue'
import
UploadProofOfPayment
from
'./UploadProofOfPayment.vue'
import
dayjs
from
'dayjs'
import
dayjs
from
'dayjs'
...
@@ -194,7 +194,6 @@ export default {
...
@@ -194,7 +194,6 @@ export default {
djPayList
:
[],
// 嘀加收款方对应支付方式
djPayList
:
[],
// 嘀加收款方对应支付方式
merchantPayList
:
[],
// 门店收款方对应支付方式
merchantPayList
:
[],
// 门店收款方对应支付方式
configPayTypeList
:
[],
// 园区店配置支持的支付方式
configPayTypeList
:
[],
// 园区店配置支持的支付方式
payTypeList
,
goodsList
:
[],
goodsList
:
[],
subOrderList
:
[],
subOrderList
:
[],
otherProduct
:
[],
otherProduct
:
[],
...
@@ -234,7 +233,7 @@ export default {
...
@@ -234,7 +233,7 @@ export default {
orderObj
.
price
=
this
.
divideByHundred
(
owner
.
price
)
orderObj
.
price
=
this
.
divideByHundred
(
owner
.
price
)
orderObj
.
insurancePrice
=
this
.
divideByHundred
(
insurancePrice
)
orderObj
.
insurancePrice
=
this
.
divideByHundred
(
insurancePrice
)
orderObj
.
quotedPriceUpdate
=
this
.
divideByHundred
(
quotedPriceUpdate
)
orderObj
.
quotedPriceUpdate
=
this
.
divideByHundred
(
quotedPriceUpdate
)
if
(
!
data
.
vdQuotationGoodsList
)
data
.
vdQuotationGoodsList
=
[]
if
(
!
data
.
vdQuotationGoodsList
)
data
.
vdQuotationGoodsList
=
[]
orderObj
.
vdQuotationGoodsList
=
data
.
vdQuotationGoodsList
.
map
(
orderObj
.
vdQuotationGoodsList
=
data
.
vdQuotationGoodsList
.
map
(
item
=>
{
item
=>
{
item
.
price
=
this
.
divideByHundred
(
item
.
goodsPrice
)
item
.
price
=
this
.
divideByHundred
(
item
.
goodsPrice
)
...
@@ -791,7 +790,9 @@ export default {
...
@@ -791,7 +790,9 @@ export default {
total
=
NP
.
plus
(
total
,
NP
.
times
(
item
.
goods
.
sellPrice
,
item
.
goods
.
number
))
total
=
NP
.
plus
(
total
,
NP
.
times
(
item
.
goods
.
sellPrice
,
item
.
goods
.
number
))
}
else
if
(
item
.
packageGoods
&&
item
.
packageGoods
.
totalPrice
)
{
}
else
if
(
item
.
packageGoods
&&
item
.
packageGoods
.
totalPrice
)
{
console
.
log
(
item
.
packageGoods
,
'套餐'
)
console
.
log
(
item
.
packageGoods
,
'套餐'
)
total
=
NP
.
plus
(
total
,
item
.
packageGoods
.
totalPrice
)
item
.
packageGoods
.
goodsList
.
map
(
i
=>
{
total
=
NP
.
plus
(
total
,
i
.
sellPrice
*
i
.
number
)
})
}
else
if
(
item
.
multipleSpecificationsGoods
&&
item
.
multipleSpecificationsGoods
.
goods
&&
item
.
multipleSpecificationsGoods
.
goods
.
sellPrice
)
{
}
else
if
(
item
.
multipleSpecificationsGoods
&&
item
.
multipleSpecificationsGoods
.
goods
&&
item
.
multipleSpecificationsGoods
.
goods
.
sellPrice
)
{
console
.
log
(
item
.
multipleSpecificationsGoods
,
'多规格'
)
console
.
log
(
item
.
multipleSpecificationsGoods
,
'多规格'
)
total
=
NP
.
plus
(
total
,
NP
.
times
(
item
.
multipleSpecificationsGoods
.
goods
.
sellPrice
,
item
.
multipleSpecificationsGoods
.
number
||
1
))
total
=
NP
.
plus
(
total
,
NP
.
times
(
item
.
multipleSpecificationsGoods
.
goods
.
sellPrice
,
item
.
multipleSpecificationsGoods
.
number
||
1
))
...
@@ -806,19 +807,11 @@ export default {
...
@@ -806,19 +807,11 @@ export default {
// 获取园区店支付方式
// 获取园区店支付方式
async
getConfig
()
{
async
getConfig
()
{
const
{
merchantId
}
=
this
.
userInfo
,
res
=
await
uni
.
$api
.
boutiqueApi
.
getYqStoreConfig
({
yqMerchantId
:
merchantId
})
console
.
log
(
123
)
let
m
=
res
.
supportPayTypes
||
[]
let
n
=
this
.
payTypeList
let
list
=
n
.
filter
(
k
=>
{
let
idx
=
m
.
find
(
j
=>
j
==
k
.
value
)
return
idx
>=
0
})
this
.
djPayList
=
[
this
.
djPayList
=
[
...
list
?.
filter
(
v
=>
!
[
2
,
5
].
includes
(
Number
(
v
.
value
))),
{
value
:
'1'
,
name
:
'微信支付'
},
{
{
name
:
'对公转账'
,
name
:
'对公转账'
,
value
:
'6'
value
:
'6'
...
@@ -828,7 +821,10 @@ export default {
...
@@ -828,7 +821,10 @@ export default {
value
:
'7'
value
:
'7'
},
},
]
]
this
.
merchantPayList
=
[...
list
?.
filter
(
v
=>
v
.
value
==
2
)]
this
.
merchantPayList
=
[{
value
:
'2'
,
name
:
'门店收款'
},]
this
.
changePayee
()
this
.
changePayee
()
},
},
changePayee
()
{
changePayee
()
{
...
@@ -999,8 +995,8 @@ export default {
...
@@ -999,8 +995,8 @@ export default {
},
},
clearPayMentDocList
()
{
clearPayMentDocList
()
{
this
.
showUpload
=
false
this
.
showUpload
=
false
this
.
order
Info
.
paymentDocList
=
[]
this
.
order
Obj
.
paymentDocList
=
[]
this
.
order
Info
.
transactionNo
=
''
this
.
order
Obj
.
transactionNo
=
''
}
}
}
}
}
}
...
...
pages/equity/tool/components/SkuGoods.vue
View file @
7715c09
...
@@ -221,25 +221,38 @@ export default {
...
@@ -221,25 +221,38 @@ export default {
value
=
'0'
value
=
'0'
}
}
// 检查最小价格
// 检查最小价格
// if (!item.multipleSpecificationsGoods) {
if
(
!
item
.
multipleSpecificationsGoods
)
{
// // 普通商品的最小价格检查
if
(
item
.
packageGoods
)
{
// if (item.goods.validMinSellPrice === 'Y' && item.goods.minSellPrice && parseFloat(value) < parseFloat(item.goods.minSellPrice)) {
item
.
packageGoods
?.
goodsList
[
cindex
]
// uni.showToast({
let
packageItem
=
item
.
packageGoods
?.
goodsList
[
cindex
]
// title: '单价不可低于商品最低价',
if
(
packageItem
&&
packageItem
.
validMinSellPrice
===
'N'
&&
packageItem
.
minSellPrice
&&
parseFloat
(
value
)
<
parseFloat
(
packageItem
.
minSellPrice
))
{
// icon: 'none'
uni
.
showToast
({
// })
title
:
'价格不可低于商品最低价'
,
// value = item.goods.minSellPrice.toString()
icon
:
'none'
// }
})
// } else if (item.multipleSpecificationsGoods && item.multipleSpecificationsGoods.goods) {
value
=
packageItem
.
minSellPrice
.
toString
()
// // 多规格商品的最小价格检查
}
// if (item.multipleSpecificationsGoods.goods.validMinSellPrice === 'Y' && item.multipleSpecificationsGoods.goods.minSellPrice && parseFloat(value) < parseFloat(item.multipleSpecificationsGoods.goods.minSellPrice)) {
}
else
{
// uni.showToast({
// 普通商品的最小价格检查
// title: '单价不可低于商品最低价',
if
(
item
.
goods
.
validMinSellPrice
===
'Y'
&&
item
.
goods
.
minSellPrice
&&
parseFloat
(
value
)
<
parseFloat
(
item
.
goods
.
minSellPrice
))
{
// icon: 'none'
uni
.
showToast
({
// })
title
:
'价格不可低于商品最低价'
,
// value = item.multipleSpecificationsGoods.goods.minSellPrice.toString()
icon
:
'none'
// }
})
// }
value
=
item
.
goods
.
minSellPrice
.
toString
()
}
}
}
else
if
(
item
.
multipleSpecificationsGoods
&&
item
.
multipleSpecificationsGoods
.
goods
)
{
// 多规格商品的最小价格检查
if
(
item
.
multipleSpecificationsGoods
.
goods
.
validMinSellPrice
===
'Y'
&&
item
.
multipleSpecificationsGoods
.
goods
.
minSellPrice
&&
parseFloat
(
value
)
<
parseFloat
(
item
.
multipleSpecificationsGoods
.
goods
.
minSellPrice
))
{
uni
.
showToast
({
title
:
'价格不可低于商品最低价'
,
icon
:
'none'
})
value
=
item
.
multipleSpecificationsGoods
.
goods
.
minSellPrice
.
toString
()
}
}
if
(
!
item
.
multipleSpecificationsGoods
)
{
if
(
!
item
.
multipleSpecificationsGoods
)
{
if
(
item
.
goodsFlag
==
1
)
{
if
(
item
.
goodsFlag
==
1
)
{
//如果没有多规格商品,更新普通商品的价格
//如果没有多规格商品,更新普通商品的价格
...
@@ -439,12 +452,11 @@ export default {
...
@@ -439,12 +452,11 @@ export default {
.number
{
.number
{
margin-left
:
toRpx
(
16
);
margin-left
:
toRpx
(
16
);
}
}
.front-number-box
{
.front-number-box
{
position
:
absolute
;
position
:
absolute
;
top
:
50%
;
top
:
50%
;
right
:
toRpx
(
24
);
right
:
toRpx
(
24
);
transform
:
translateY
(
-50%
);
transform
:
translateY
(
-50%
);
}
}
}
}
}
}
...
...
uni_modules/uni-calendar/components/uni-calendar/uni-calendar.vue
View file @
7715c09
...
@@ -47,7 +47,7 @@
...
@@ -47,7 +47,7 @@
</view>
</view>
<view
class=
"uni-calendar__header"
>
<view
class=
"uni-calendar__header"
>
<view
<view
class=
"uni-calendar__header-btn-box"
:class=
"['uni-calendar__header-btn-box prev-btn',{'show-prev-btn':showPreBtn}]"
@
click
.
stop=
"pre"
@
click
.
stop=
"pre"
>
>
<view
class=
"uni-calendar__header-btn uni-calendar--left"
></view>
<view
class=
"uni-calendar__header-btn uni-calendar--left"
></view>
...
@@ -291,7 +291,12 @@ export default {
...
@@ -291,7 +291,12 @@ export default {
showNextBtn
()
{
showNextBtn
()
{
let
{
cale
,
endDate
,
nowDate
}
=
this
,
let
{
cale
,
endDate
,
nowDate
}
=
this
,
maxDate
=
cale
.
getDate
(
endDate
,
-
1
,
'month'
)
maxDate
=
cale
.
getDate
(
endDate
,
-
1
,
'month'
)
return
cale
.
dateCompare
(
`
${
nowDate
.
year
}
/
${
nowDate
.
month
}
`
,
`
${
maxDate
.
year
}
/
${
maxDate
.
month
}
`
)
return
!
endDate
?
true
:
cale
.
dateCompare
(
`
${
nowDate
.
year
}
/
${
nowDate
.
month
}
`
,
`
${
maxDate
.
year
}
/
${
maxDate
.
month
}
`
)
},
showPreBtn
()
{
let
{
cale
,
startDate
,
nowDate
}
=
this
,
minDate
=
cale
.
getDate
(
startDate
,
-
1
,
'month'
)
return
!
startDate
?
true
:
cale
.
dateCompare
(
`
${
nowDate
.
year
}
/
${
nowDate
.
month
}
`
,
`
${
minDate
.
year
}
/
${
minDate
.
month
}
`
)
}
}
},
},
watch
:
{
watch
:
{
...
@@ -656,10 +661,10 @@ $uni-text-color-grey: #999;
...
@@ -656,10 +661,10 @@ $uni-text-color-grey: #999;
width
:
50px
;
width
:
50px
;
height
:
50px
;
height
:
50px
;
}
}
.next-btn
{
.next-btn
,
.prev-btn
{
opacity
:
0
;
opacity
:
0
;
}
}
.show-next-btn
{
.show-next-btn
,
.show-prev-btn
{
opacity
:
1
;
opacity
:
1
;
}
}
.uni-calendar__header-btn
{
.uni-calendar__header-btn
{
...
...
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