@ -48,7 +48,8 @@
< / view >
< / view >
< view class = "row-right" @click ="choose()" style = "width: 70%;" >
< view class = "row-right" @click ="choose()" style = "width: 70%;" >
< text
< text
: style = "form.address == '' ? 'font-size: 28rpx;color: #9C9C9C;' : 'font-size: 28rpx;color: #3D3D3D;'" > { { form . address == '' ? '请填写地址' : form . address } } < / text >
: style = "form.address == '' ? 'font-size: 28rpx;color: #9C9C9C;' : 'font-size: 28rpx;color: #3D3D3D;'" > { {
form . address == '' ? '请填写地址' : form . address } } < / text >
< u-icon name = "arrow-right" color = "#323232" > < / u-icon >
< u-icon name = "arrow-right" color = "#323232" > < / u-icon >
< / view >
< / view >
< / view >
< / view >
@ -69,7 +70,9 @@
< view class = "row-right" @click ="dateShowHidden()" style = "width: 70%;" >
< view class = "row-right" @click ="dateShowHidden()" style = "width: 70%;" >
<!-- < input type = "text" placeholder = "请选择活动时间" class = "input" disabled = "true" v -model = " form.time "
<!-- < input type = "text" placeholder = "请选择活动时间" class = "input" disabled = "true" v -model = " form.time "
placeholder - class = "plasty" style = "width: auto;" / > -- >
placeholder - class = "plasty" style = "width: auto;" / > -- >
< text : style = "form.time == '' ? 'font-size: 28rpx;color: #9C9C9C;' : 'font-size: 28rpx;color: #3D3D3D;'" > { { form . time == '' ? '请选择活动时间' : form . time } } < / text >
< text
: style = "form.time == '' ? 'font-size: 28rpx;color: #9C9C9C;' : 'font-size: 28rpx;color: #3D3D3D;'" > { {
form . time == '' ? '请选择活动时间' : form . time } } < / text >
< u-icon name = "arrow-right" color = "#323232" > < / u-icon >
< u-icon name = "arrow-right" color = "#323232" > < / u-icon >
< / view >
< / view >
< / view >
< / view >
@ -84,7 +87,8 @@
<!-- < input type = "text" placeholder = "请选择活动分类" class = "input" disabled = "true"
<!-- < input type = "text" placeholder = "请选择活动分类" class = "input" disabled = "true"
v - model = "form.cate_idsName" placeholder - class = "plasty" / > -- >
v - model = "form.cate_idsName" placeholder - class = "plasty" / > -- >
< text
< text
: style = "form.cate_idsName == '' ? 'font-size: 28rpx;color: #9C9C9C;' : 'font-size: 28rpx;color: #3D3D3D;'" > { { form . cate _idsName == '' ? '请选择活动分类' : form . cate _idsName } } < / text >
: style = "form.cate_idsName == '' ? 'font-size: 28rpx;color: #9C9C9C;' : 'font-size: 28rpx;color: #3D3D3D;'" > { {
form . cate _idsName == '' ? '请选择活动分类' : form . cate _idsName } } < / text >
< u-icon name = "arrow-right" color = "#323232" > < / u-icon >
< u-icon name = "arrow-right" color = "#323232" > < / u-icon >
< / span >
< / span >
< / view >
< / view >
@ -99,8 +103,8 @@
< view class = "row-right" @ click = "tuikuan = true" >
< view class = "row-right" @ click = "tuikuan = true" >
<!-- < input type = "text" placeholder = "请选择退款政策" class = "input" disabled = "true"
<!-- < input type = "text" placeholder = "请选择退款政策" class = "input" disabled = "true"
v - model = "form.refund_idn" placeholder - class = "plasty_c" / > -- >
v - model = "form.refund_idn" placeholder - class = "plasty_c" / > -- >
< text
< text style = "font-size: 28rpx;color: #FF4810;" > { { form . refund _idn == '' ? '请选择退款政策' :
style= "font-size: 28rpx;color: #FF4810;" > { { form . refund _idn == '' ? '请选择退款政策' : form. refund _idn } } < / text >
form. refund _idn } } < / text >
< u-icon name = "arrow-right" color = "#323232" > < / u-icon >
< u-icon name = "arrow-right" color = "#323232" > < / u-icon >
< / view >
< / view >
< / view >
< / view >
@ -142,7 +146,8 @@
< span style = "color: #3D3D3D;" > * < / span >
< span style = "color: #3D3D3D;" > * < / span >
活动价格
活动价格
< / view >
< / view >
< view class = "row-right" style = "font-size:28rpx;color:#FF4810;font-weight: 600;" @ click = "priceShow = true" >
< view class = "row-right" style = "font-size:28rpx;color:#FF4810;font-weight: 600;"
@ click = "priceShow = true" >
<!-- < input type = "digit" placeholder = "请填写活动价格" class = "input" v -model = " priceName "
<!-- < input type = "digit" placeholder = "请填写活动价格" class = "input" v -model = " priceName "
placeholder - class = "plasty" / > -- >
placeholder - class = "plasty" / > -- >
< view >
< view >
@ -335,26 +340,27 @@
< long-date v-if = "birthShow" chooseNum="90" @select="birthConfirm($event, bmIndex)" > < / long -date >
< long-date v-if = "birthShow" chooseNum="90" @select="birthConfirm($event, bmIndex)" > < / long -date >
< / view >
< / view >
< / u-popup >
< / u-popup >
< u-popup :show = "priceShow" :round = "20" :closeable = "true" mode = "bottom" @ close = "priceShow = false;" >
< u-popup :show = "priceShow" :round = "20" :closeable = "false" mode = "bottom" @ close = "priceShow = false;" >
< view
< view style = "display: flex;justify-content: space-between;align-items: center;padding: 0px 40rpx;" >
style = "padding: 26rpx;font-size: 36rpx;font-weight: 400;color: #3D3D3D;text-align: center;font-weight: 600;" >
< view style = "color: #9C9C9C;font-size: 28rpx;" @ click = "priceShow = false" > 取消 < / view >
请输入活动价格
< view
style = "padding: 26rpx;font-size: 36rpx;font-weight: 400;color: #3D3D3D;text-align: center;font-weight: 600;" >
活动价格
< / view >
< view style = "color: #3D3D3D;font-size: 28rpx;" @click ="priceDo" > 确定 < / view >
< / view >
< / view >
< view style = "padding: 0rpx 30rpx;" >
< view style = "padding: 0rpx 30rpx;" >
< view style = "display: flex;align-items: center;justify-content: space-between;padding: 30rpx 0rpx;" >
< view style = "padding: 30rpx 0rpx;border: 2px solid #EEEEEE;border-radius: 20rpx;" >
< view style = "font-size: 30rpx;" >
< view >
活动价格
< input focus :cursor-spacing = "300" type = "digit" placeholder = "请输入" v -model = " price "
< / view >
style = "text-align: center;" / >
< view style = "width: 75%;" >
< input :cursor-spacing = "300" type = "digit" placeholder = "请填写活动价格" class = "input"
v - model = "price" / >
< / view >
< / view >
< / view >
< / view >
< view style = " height: 1px;background-color: #eeeeee;width: 100%;"> < / view >
< view style = "font-size: 24rpx;color: #FF4810;margin-top: 20rpx;" > 注意 : 【 活动金额为0时 , 将不支持自动退款 。 若金额设置为1或以上 , 可设置其他退款政策 。 】 < / view >
< / view >
< / view >
< view style = "margin-top: 40rpx;" >
<!-- < view style = "margin-top: 40rpx;" >
< view class = "btn_1" @click ="priceDo" style = "margin: 0 auto;" > 确认 < / view >
< view class = "btn_1" @click ="priceDo" style = "margin: 0 auto;" > 确认 < / view >
< / view >
< / view > -- >
< / u-popup >
< / u-popup >
<!-- 活动时间 -- >
<!-- 活动时间 -- >
<!-- < u-datetime-picker @cancel ="datecel" ref = "dateRef" title = "开始时间" :minDate = "minDate" confirmText = "下一步"
<!-- < u-datetime-picker @cancel ="datecel" ref = "dateRef" title = "开始时间" :minDate = "minDate" confirmText = "下一步"
@ -388,7 +394,7 @@ export default {
} ,
} ,
data ( ) {
data ( ) {
return {
return {
price : '' ,
price : '' ,
priceName : '免费' ,
priceName : '免费' ,
priceShow : false ,
priceShow : false ,
bmIndex : 1 ,
bmIndex : 1 ,
@ -524,8 +530,14 @@ export default {
methods : {
methods : {
priceDo ( ) {
priceDo ( ) {
var price = this . price ;
var price = this . price ;
console . log ( price ) ;
if ( price == '' || price == null || price == undefined || price == 0 ) {
this . priceName = '免费' ;
this . priceShow = false ;
return ;
}
/ / 判 断 金 额 不 能 小 于 1
/ / 判 断 金 额 不 能 小 于 1
if ( price < 1 ) {
if ( price < 1 ) {
uni . showToast ( {
uni . showToast ( {
title : '活动价格不能小于1.00' ,
title : '活动价格不能小于1.00' ,
icon : 'none' ,
icon : 'none' ,
@ -1354,10 +1366,10 @@ export default {
this . fileList1 = [ ] ;
this . fileList1 = [ ] ;
this . agree = false ;
this . agree = false ;
this . list1 = '' ;
this . list1 = '' ;
this . price = '' ;
this . price = '' ;
this . priceName = '免费' ;
this . priceName = '免费' ;
this . form = {
this . form = {
qunQrcode : '' ,
qunQrcode : '' ,
cate _ids : '' ,
cate _ids : '' ,
/ / 活 动 分 类 名 字
/ / 活 动 分 类 名 字
cate _idsName : "" ,
cate _idsName : "" ,