Commit 3fd1e393 by 张立顺

第二轮bug修复

1 parent 8af97323
......@@ -35,6 +35,10 @@ Component({
isInt: {
type: Boolean,
value: false
},
required: {
type: Boolean,
value: false
}
},
......@@ -86,7 +90,7 @@ Component({
},
remarkConfirm() {
// console.log('confirm')
let { isInt, value, inputValue, isEdit } = this.data
let { isInt, value, inputValue, isEdit, required } = this.data
let confirmValue = isEdit ? inputValue : value
console.log('1', confirmValue)
console.log('confirmValue', confirmValue.length)
......@@ -96,6 +100,13 @@ Component({
icon: 'none'
})
}
if (required && !confirmValue.length) {
return wx.showToast({
title: '内容不能为空',
icon: 'none'
})
}
// let { isFormComponent } = this.data
this.triggerEvent('confirm', confirmValue)
// if (!isFormComponent) {
......
......@@ -99,6 +99,7 @@ Component({
// 弹出框确认事件
onConfirm(e) {
// console.log(e, 1111)
let { value } = e.detail
let thisPage = wx.$router.getPageInstance()
console.log(value, 'value')
thisPage.setData({
......
......@@ -29,7 +29,7 @@
<van-field
class="inputBox"
border="{{false}}"
hold-keyboard
hold-keyboard
value="{{orderInfo.business.base}}"
data-attrName="base"
data-type='number'
......@@ -59,7 +59,7 @@
class="inputBox"
border="{{false}}"
placeholder="请输入保费"
hold-keyboard
hold-keyboard
value="{{orderInfo.business.threePremium}}"
data-type='number'
data-attrType="business"
......@@ -254,9 +254,8 @@
<view class="label">增值车损险</view>
</view>
</view>
<van-checkbox value="{{ true }}" shape="square" bind:change="onChange">
请勾选增值车损险服务
</van-checkbox>
<!-- bind:change="onChange" -->
<van-checkbox value="{{ true }}" shape="square">请勾选增值车损险服务</van-checkbox>
<view class="incrementInfo">
<!-- <view class="img" mode="widthFix" /> -->
<image class="img" src="{{orderInfo.quotationGoodsInfo.titlePictureUrl}}" />
......@@ -267,7 +266,9 @@
<text>包含</text>
<!-- {{orderInfo.quotationGoodsInfo.quotationGoodsServiceItemsRelationDTOList.length==index?'':'、'}} -->
<block wx:key="index" wx:for="{{orderInfo.quotationGoodsInfo.quotationGoodsServiceItemsRelationDTOList}}">
<text>{{item.serviceName}}{{orderInfo.quotationGoodsInfo.quotationGoodsServiceItemsRelationDTOList.length==index?'':'、'}}</text>
<text>
{{item.serviceName}}{{orderInfo.quotationGoodsInfo.quotationGoodsServiceItemsRelationDTOList.length==index?'':'、'}}
</text>
</block>
</view>
</view>
......
......@@ -45,8 +45,8 @@ Page({
},
// 页面存放表单对象的对象名
dataAttrName: 'owner',
// step: 'first',
step: 'second',
step: 'first',
// step: 'second',
needChangeList: ['price', 'base', 'threePremium', 'carInsidePremium', 'passengerPremium', 'payPrice']
},
reWrite(type, data) {
......@@ -345,6 +345,15 @@ Page({
}
return parseFloat(strVal)
},
back() {
wx.$router.reLaunch('pages.sceneIndex')
},
navbarReady(e) {
let navBarHeight = e.detail.height
this.setData({
navBarHeight
})
},
onRoute(options) {
console.log(options, 'options')
// 判断是编辑还是新增
......
......@@ -3,5 +3,6 @@
"usingComponents": {
"first-step": "../components/FirstStep/FirstStep",
"second-step": "../components/SecondStep/SecondStep"
}
},
"navigationStyle": "custom"
}
<!-- packageEquity/pages/carEquity/serviceInfo/serviceInfo.wxml -->
<navigation-bar
class="navigation-header"
bindnavbarReady="navbarReady"
showMenu="{{true}}"
bindback="back">
<!-- bindtap="showStorePicker" -->
<view class="navigation-title">
<view class="navigation-title-text text-hide">
{{userInfo && userInfo.default4SStoreInfo && userInfo.default4SStoreInfo.merchantName}}
</view>
<view class="arrow">
<image src="/images/back.png" />
</view>
</view>
</navigation-bar>
<view class="layout">
<first-step
wx:if="{{step == 'first'}}"
......
......@@ -5,4 +5,39 @@
/* padding-bottom: 60rpx; */
background: #f3f5f7;
min-height: 100vh;
}
.navigation-title {
display: flex;
align-items: center;
justify-content: center;
}
.navigation-title-text {
text-align: center;
max-width: calc(100% - 24rpx);
}
.navigation-title .arrow {
flex-shrink: 0;
width: 32rpx;
height: 32rpx;
margin-left: 4rpx;
transform: rotate(180deg);
transition: all 0.5s;
}
.navigation-title .move {
transform: rotate(270deg);
}
.layout {
box-sizing: border-box;
position: relative;
font-size: 24rpx;
color: #8A8C90;
display: flex;
flex-direction: column;
height: calc(100vh - 50px);
overflow: hidden;
}
\ No newline at end of file
......@@ -196,7 +196,7 @@ Page({
quotationUpgrade(para).then(res => {
wx.$util.hideLoading()
let { code, data } = res
code == 0 && wx.$router.relaunch('CarQuotationPay', { data, id })
code == 0 && wx.$router.reLaunch('CarQuotationPay', { data, id })
})
}
})
......@@ -22,6 +22,7 @@
<remark-popup
wx:if="{{showRemark}}"
show="{{showRemark}}"
required="{{true}}"
bindconfirm="remarkConfirm"
placeholder="请填写内容,最多15个字"
maxlength="15" />
......
......@@ -172,10 +172,14 @@ Page({
btnTap(e) {
// console.log(e.detail)
// console.log(e.currentTarget.dataset)
// console.log(name)
let { name } = e.detail
console.log(name)
this[name]()
},
cancel() {
// wx.$router.reLaunch('')
wx.$router.reLaunch('packageEquity.equityPage')
},
toFullPage() {
let { id } = this.data
wx.$router.go('fullSignture', { id })
......
......@@ -68,6 +68,14 @@ page {
position: absolute;
right: 26rpx;
// top: 16rpx;
top: 26rpx;
z-index: 10000;
}
.delete_icon {
position: absolute;
right: 26rpx;
// top: 16rpx;
bottom: 26rpx;
z-index: 10000;
}
......@@ -77,6 +85,12 @@ page {
height: 40rpx;
}
.deleteIcon {
transform: rotate(-90deg);
width: 80rpx;
height: 80rpx;
}
.full_icon .full_text {
font-size: 24rpx;
font-weight: 400;
......
......@@ -30,6 +30,13 @@
src="../../../images/fullScreen.png" />
<!-- <cover-view class="full_text">全屏</cover-view> -->
</cover-view>
<cover-view bind:tap="clearCanvas" class="delete_icon flex_scb">
<cover-image
webp
mode="widthFix "
class="icon deleteIcon"
src="../../../images/sign_del.png" />
</cover-view>
</view>
<view wx:else class="canvas_wrap">
<image class="coverImage" src="{{signImage}}" />
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!