Commit 3fd1e393 by 张立顺

第二轮bug修复

1 parent 8af97323
...@@ -35,6 +35,10 @@ Component({ ...@@ -35,6 +35,10 @@ Component({
isInt: { isInt: {
type: Boolean, type: Boolean,
value: false value: false
},
required: {
type: Boolean,
value: false
} }
}, },
...@@ -86,7 +90,7 @@ Component({ ...@@ -86,7 +90,7 @@ Component({
}, },
remarkConfirm() { remarkConfirm() {
// console.log('confirm') // console.log('confirm')
let { isInt, value, inputValue, isEdit } = this.data let { isInt, value, inputValue, isEdit, required } = this.data
let confirmValue = isEdit ? inputValue : value let confirmValue = isEdit ? inputValue : value
console.log('1', confirmValue) console.log('1', confirmValue)
console.log('confirmValue', confirmValue.length) console.log('confirmValue', confirmValue.length)
...@@ -96,6 +100,13 @@ Component({ ...@@ -96,6 +100,13 @@ Component({
icon: 'none' icon: 'none'
}) })
} }
if (required && !confirmValue.length) {
return wx.showToast({
title: '内容不能为空',
icon: 'none'
})
}
// let { isFormComponent } = this.data // let { isFormComponent } = this.data
this.triggerEvent('confirm', confirmValue) this.triggerEvent('confirm', confirmValue)
// if (!isFormComponent) { // if (!isFormComponent) {
......
...@@ -99,6 +99,7 @@ Component({ ...@@ -99,6 +99,7 @@ Component({
// 弹出框确认事件 // 弹出框确认事件
onConfirm(e) { onConfirm(e) {
// console.log(e, 1111) // console.log(e, 1111)
let { value } = e.detail
let thisPage = wx.$router.getPageInstance() let thisPage = wx.$router.getPageInstance()
console.log(value, 'value') console.log(value, 'value')
thisPage.setData({ thisPage.setData({
......
...@@ -254,9 +254,8 @@ ...@@ -254,9 +254,8 @@
<view class="label">增值车损险</view> <view class="label">增值车损险</view>
</view> </view>
</view> </view>
<van-checkbox value="{{ true }}" shape="square" bind:change="onChange"> <!-- bind:change="onChange" -->
请勾选增值车损险服务 <van-checkbox value="{{ true }}" shape="square">请勾选增值车损险服务</van-checkbox>
</van-checkbox>
<view class="incrementInfo"> <view class="incrementInfo">
<!-- <view class="img" mode="widthFix" /> --> <!-- <view class="img" mode="widthFix" /> -->
<image class="img" src="{{orderInfo.quotationGoodsInfo.titlePictureUrl}}" /> <image class="img" src="{{orderInfo.quotationGoodsInfo.titlePictureUrl}}" />
...@@ -267,7 +266,9 @@ ...@@ -267,7 +266,9 @@
<text>包含</text> <text>包含</text>
<!-- {{orderInfo.quotationGoodsInfo.quotationGoodsServiceItemsRelationDTOList.length==index?'':'、'}} --> <!-- {{orderInfo.quotationGoodsInfo.quotationGoodsServiceItemsRelationDTOList.length==index?'':'、'}} -->
<block wx:key="index" wx:for="{{orderInfo.quotationGoodsInfo.quotationGoodsServiceItemsRelationDTOList}}"> <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> </block>
</view> </view>
</view> </view>
......
...@@ -45,8 +45,8 @@ Page({ ...@@ -45,8 +45,8 @@ Page({
}, },
// 页面存放表单对象的对象名 // 页面存放表单对象的对象名
dataAttrName: 'owner', dataAttrName: 'owner',
// step: 'first', step: 'first',
step: 'second', // step: 'second',
needChangeList: ['price', 'base', 'threePremium', 'carInsidePremium', 'passengerPremium', 'payPrice'] needChangeList: ['price', 'base', 'threePremium', 'carInsidePremium', 'passengerPremium', 'payPrice']
}, },
reWrite(type, data) { reWrite(type, data) {
...@@ -345,6 +345,15 @@ Page({ ...@@ -345,6 +345,15 @@ Page({
} }
return parseFloat(strVal) return parseFloat(strVal)
}, },
back() {
wx.$router.reLaunch('pages.sceneIndex')
},
navbarReady(e) {
let navBarHeight = e.detail.height
this.setData({
navBarHeight
})
},
onRoute(options) { onRoute(options) {
console.log(options, 'options') console.log(options, 'options')
// 判断是编辑还是新增 // 判断是编辑还是新增
......
...@@ -3,5 +3,6 @@ ...@@ -3,5 +3,6 @@
"usingComponents": { "usingComponents": {
"first-step": "../components/FirstStep/FirstStep", "first-step": "../components/FirstStep/FirstStep",
"second-step": "../components/SecondStep/SecondStep" "second-step": "../components/SecondStep/SecondStep"
} },
"navigationStyle": "custom"
} }
<!-- packageEquity/pages/carEquity/serviceInfo/serviceInfo.wxml --> <!-- 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"> <view class="layout">
<first-step <first-step
wx:if="{{step == 'first'}}" wx:if="{{step == 'first'}}"
......
...@@ -6,3 +6,38 @@ ...@@ -6,3 +6,38 @@
background: #f3f5f7; background: #f3f5f7;
min-height: 100vh; 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 \ No newline at end of file
...@@ -196,7 +196,7 @@ Page({ ...@@ -196,7 +196,7 @@ Page({
quotationUpgrade(para).then(res => { quotationUpgrade(para).then(res => {
wx.$util.hideLoading() wx.$util.hideLoading()
let { code, data } = res let { code, data } = res
code == 0 && wx.$router.relaunch('CarQuotationPay', { data, id }) code == 0 && wx.$router.reLaunch('CarQuotationPay', { data, id })
}) })
} }
}) })
...@@ -22,6 +22,7 @@ ...@@ -22,6 +22,7 @@
<remark-popup <remark-popup
wx:if="{{showRemark}}" wx:if="{{showRemark}}"
show="{{showRemark}}" show="{{showRemark}}"
required="{{true}}"
bindconfirm="remarkConfirm" bindconfirm="remarkConfirm"
placeholder="请填写内容,最多15个字" placeholder="请填写内容,最多15个字"
maxlength="15" /> maxlength="15" />
......
...@@ -172,10 +172,14 @@ Page({ ...@@ -172,10 +172,14 @@ Page({
btnTap(e) { btnTap(e) {
// console.log(e.detail) // console.log(e.detail)
// console.log(e.currentTarget.dataset) // console.log(e.currentTarget.dataset)
// console.log(name)
let { name } = e.detail let { name } = e.detail
console.log(name)
this[name]() this[name]()
}, },
cancel() {
// wx.$router.reLaunch('')
wx.$router.reLaunch('packageEquity.equityPage')
},
toFullPage() { toFullPage() {
let { id } = this.data let { id } = this.data
wx.$router.go('fullSignture', { id }) wx.$router.go('fullSignture', { id })
......
...@@ -68,6 +68,14 @@ page { ...@@ -68,6 +68,14 @@ page {
position: absolute; position: absolute;
right: 26rpx; right: 26rpx;
// top: 16rpx; // top: 16rpx;
top: 26rpx;
z-index: 10000;
}
.delete_icon {
position: absolute;
right: 26rpx;
// top: 16rpx;
bottom: 26rpx; bottom: 26rpx;
z-index: 10000; z-index: 10000;
} }
...@@ -77,6 +85,12 @@ page { ...@@ -77,6 +85,12 @@ page {
height: 40rpx; height: 40rpx;
} }
.deleteIcon {
transform: rotate(-90deg);
width: 80rpx;
height: 80rpx;
}
.full_icon .full_text { .full_icon .full_text {
font-size: 24rpx; font-size: 24rpx;
font-weight: 400; font-weight: 400;
......
...@@ -30,6 +30,13 @@ ...@@ -30,6 +30,13 @@
src="../../../images/fullScreen.png" /> src="../../../images/fullScreen.png" />
<!-- <cover-view class="full_text">全屏</cover-view> --> <!-- <cover-view class="full_text">全屏</cover-view> -->
</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>
<view wx:else class="canvas_wrap"> <view wx:else class="canvas_wrap">
<image class="coverImage" src="{{signImage}}" /> <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!