Commit b09c0df0 by 张立顺

bug修复

1 parent 9f5f336b
{ {
"pages": [ "pages": [
"pages/wxLogin/wxLogin",
"pages/sceneIndex/sceneIndex", "pages/sceneIndex/sceneIndex",
"pages/wxLogin/wxLogin",
"tabIndex/pages/index/index", "tabIndex/pages/index/index",
"pages/accountItems/accountItems", "pages/accountItems/accountItems",
"pages/nothing/nothing", "pages/nothing/nothing",
......
...@@ -9,7 +9,7 @@ Component({ ...@@ -9,7 +9,7 @@ Component({
properties: { properties: {
formData: { formData: {
type: Object, type: Object,
value: () => { }, value: () => {},
observer: function (n) { observer: function (n) {
this.setData({ this.setData({
formData: n formData: n
...@@ -28,6 +28,10 @@ Component({ ...@@ -28,6 +28,10 @@ Component({
dataAttrName: { dataAttrName: {
type: String, type: String,
value: null value: null
},
disable: {
type: Boolean,
value: false
} }
}, },
......
...@@ -24,11 +24,11 @@ ...@@ -24,11 +24,11 @@
input-align="{{itme.inputAlign || 'right'}}" input-align="{{itme.inputAlign || 'right'}}"
rows="1" rows="1"
autosize autosize
hold-keyboard hold-keyboard
type="{{item.fieldType || 'text'}}" type="{{item.fieldType || 'text'}}"
placeholder="{{item.placeholder || '请输入'}}" placeholder="{{item.placeholder || '请输入'}}"
maxlength="{{item.maxlength || 140}}" maxlength="{{item.maxlength || 140}}"
disabled="{{item.disabled}}" disabled="{{item.disabled||disable}}"
readonly="{{item.readonly}}" readonly="{{item.readonly}}"
data-attr="{{item.name}}" data-attr="{{item.name}}"
bindinput="handleInput" /> bindinput="handleInput" />
...@@ -40,6 +40,7 @@ ...@@ -40,6 +40,7 @@
bindchange="handlePickerChange" bindchange="handlePickerChange"
data-target="{{item}}" data-target="{{item}}"
value="{{index}}" value="{{index}}"
disabled="{{item.disabled||disable}}"
range="{{item.optionList}}" range="{{item.optionList}}"
range-key="{{item.optionLabel}}"> range-key="{{item.optionLabel}}">
<view class="picker"> <view class="picker">
......

2.02 KB | W: | H:

1.84 KB | W: | H:

packageEquity/images/waitIcon.png
packageEquity/images/waitIcon.png
packageEquity/images/waitIcon.png
packageEquity/images/waitIcon.png
  • 2-up
  • Swipe
  • Onion skin
...@@ -7,9 +7,9 @@ page { ...@@ -7,9 +7,9 @@ page {
// background-color: #f5f5f5; // background-color: #f5f5f5;
padding: 20rpx; padding: 20rpx;
.qrCode { .qrCodeCom {
box-sizing: border-box; box-sizing: border-box;
// padding: 32rpx 40rpx; padding: 32rpx 40rpx;
position: relative; position: relative;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
...@@ -22,7 +22,7 @@ page { ...@@ -22,7 +22,7 @@ page {
z-index: 1; z-index: 1;
.title { .title {
// display: flex; display: flex;
z-index: 3; z-index: 3;
width: 100%; width: 100%;
font-family: PingFangSC-SNaNrpxibold; font-family: PingFangSC-SNaNrpxibold;
...@@ -30,8 +30,21 @@ page { ...@@ -30,8 +30,21 @@ page {
font-size: 40rpx; font-size: 40rpx;
color: #222222; color: #222222;
line-height: 44rpx; line-height: 44rpx;
// display: flex; // display: flex;
// align-items: center // align-items: center
.label {
font-weight: 600;
font-size: 40rpx;
color: #222222;
}
.price {
font-weight: 500;
font-size: 28rpx;
color: #222222;
margin-left: auto;
}
} }
.qrCode { .qrCode {
...@@ -40,6 +53,7 @@ page { ...@@ -40,6 +53,7 @@ page {
height: 270rpx; height: 270rpx;
background: #FFFFFF; background: #FFFFFF;
margin: 20rpx 0 10rpx; margin: 20rpx 0 10rpx;
margin-bottom: 20rpx;
} }
.MerchantName { .MerchantName {
......
<!-- packageEquity/pages/carQuotation/CarQuotationPay/CarQuotationPay.wxml --> <!-- packageEquity/pages/carQuotation/CarQuotationPay/CarQuotationPay.wxml -->
<view class="OrderInfoPay"> <view class="OrderInfoPay">
<view class="qrCode"> <view class="qrCodeCom">
<!-- <gl-image src="../../../images/waitIcon.png" /> --> <!-- <gl-image src="../../../images/waitIcon.png" /> -->
<view class="title"> <view class="title">
<image <image
...@@ -10,7 +10,8 @@ ...@@ -10,7 +10,8 @@
mode="widthFix" mode="widthFix"
binderror="" binderror=""
bindload="" /> bindload="" />
待支付 <view class="label">待支付</view>
<view>总保费{{orderDetail.totalPrice}}元/年</view>
</view> </view>
<!-- <image src="" mode="scaleToFill|aspectFit|aspectFill|widthFix" binderror="" bindload=""></image> --> <!-- <image src="" mode="scaleToFill|aspectFit|aspectFill|widthFix" binderror="" bindload=""></image> -->
<image <image
......
...@@ -21,9 +21,16 @@ Component({ ...@@ -21,9 +21,16 @@ Component({
orderInfo: { orderInfo: {
type: Object, type: Object,
observer: function (n) { observer: function (n) {
// this.setData({ if (n?.modifyEquityQuotation) {
// formData: n this.setData({
// }) // activeNames: ['3'],
disable: true
})
} else {
this.setData({
disable: false
})
}
} }
}, },
// 页面存放表单对象的对象名 // 页面存放表单对象的对象名
...@@ -41,6 +48,7 @@ Component({ ...@@ -41,6 +48,7 @@ Component({
formData: {}, formData: {},
employeeList: [], employeeList: [],
first: data.firstObj, first: data.firstObj,
disable: true,
// salesList: [ // salesList: [
// { // {
// id: '1', // id: '1',
...@@ -90,7 +98,8 @@ Component({ ...@@ -90,7 +98,8 @@ Component({
// ['orderInfo' + '.' + attrtype + '.' + attrname]: value // ['orderInfo' + '.' + attrtype + '.' + attrname]: value
// }) // })
let idx = e.detail.value || 0 let idx = e.detail.value || 0
let { employeeList } = this.data let { employeeList, disable } = this.data
if (disable) return false
let thisPage = wx.$router.getPageInstance() let thisPage = wx.$router.getPageInstance()
thisPage.setData({ thisPage.setData({
......
...@@ -34,7 +34,11 @@ ...@@ -34,7 +34,11 @@
<view class="text" data-type="idCard">拍照识别</view> <view class="text" data-type="idCard">拍照识别</view>
</view> </view>
</view> </view>
<gl-form formData="{{serviceInfo}}" dataAttrName="{{dataAttrName}}" formDataList="{{first.customerFormList}}" /> <gl-form
disable="{{disable}}"
formData="{{serviceInfo}}"
dataAttrName="{{dataAttrName}}"
formDataList="{{first.customerFormList}}" />
</view> </view>
<view class="box"> <view class="box">
<view class="title"> <view class="title">
...@@ -50,7 +54,11 @@ ...@@ -50,7 +54,11 @@
<view class="text" data-type="vehicleCertificate">拍照识别</view> <view class="text" data-type="vehicleCertificate">拍照识别</view>
</view> </view>
</view> </view>
<gl-form formData="{{serviceInfo}}" dataAttrName="{{dataAttrName}}" formDataList="{{first.carFormList}}" /> <gl-form
disable="{{disable}}"
formData="{{serviceInfo}}"
dataAttrName="{{dataAttrName}}"
formDataList="{{first.carFormList}}" />
</view> </view>
<Gl-Button-Group bindbtnTap="btnTap" textNameObj="{{textNameObj}}" /> <Gl-Button-Group bindbtnTap="btnTap" textNameObj="{{textNameObj}}" />
</view> </view>
......
...@@ -11,6 +11,7 @@ Component({ ...@@ -11,6 +11,7 @@ Component({
console.log('component attached') console.log('component attached')
this.makeYear() this.makeYear()
}, },
/** /**
* 组件的属性列表 * 组件的属性列表
*/ */
...@@ -31,10 +32,13 @@ Component({ ...@@ -31,10 +32,13 @@ Component({
observer: function (n) { observer: function (n) {
if (n?.modifyEquityQuotation) { if (n?.modifyEquityQuotation) {
this.setData({ this.setData({
activeNames: ['3'] activeNames: ['3'],
// textNameObj: { disable: true
// confirmName: '下一步·生成告知书(2/4)' })
// } } else {
this.setData({
activeNames: ['1', '2', '3', '4'],
disable: false
}) })
} }
} }
...@@ -49,7 +53,7 @@ Component({ ...@@ -49,7 +53,7 @@ Component({
showYear: false, showYear: false,
// 选择时间的年份 // 选择时间的年份
columns: [], columns: [],
disable: false,
currentDate: new Date().getTime(), currentDate: new Date().getTime(),
// 默认当前年份 // 默认当前年份
...@@ -136,6 +140,8 @@ Component({ ...@@ -136,6 +140,8 @@ Component({
}, },
handlePopupShow(e) { handlePopupShow(e) {
// console.log(e) // console.log(e)
let { disable } = this.data
if (disable) return false //修改权益价时,不可修改
// let { attrtype, attrname, typename } = e.target.dataset // let { attrtype, attrname, typename } = e.target.dataset
let { attrtype, attrname, typename } = e.currentTarget.dataset let { attrtype, attrname, typename } = e.currentTarget.dataset
console.log(attrtype, attrname, typename, 'attrType, attrName') console.log(attrtype, attrname, typename, 'attrType, attrName')
...@@ -154,6 +160,9 @@ Component({ ...@@ -154,6 +160,9 @@ Component({
}, },
handlePopInputShow(e) { handlePopInputShow(e) {
// console.log(e) // console.log(e)
let { disable } = this.data
if (disable) return false //修改权益价时,不可修改
let { handletype, index } = e.target.dataset let { handletype, index } = e.target.dataset
console.log(handletype, index, 'type, index') console.log(handletype, index, 'type, index')
let thisPage = wx.$router.getPageInstance() let thisPage = wx.$router.getPageInstance()
......
...@@ -29,6 +29,7 @@ ...@@ -29,6 +29,7 @@
<van-field <van-field
class="inputBox" class="inputBox"
border="{{false}}" border="{{false}}"
disabled="{{disable}}"
hold-keyboard hold-keyboard
value="{{orderInfo.business.base}}" value="{{orderInfo.business.base}}"
data-attrName="base" data-attrName="base"
...@@ -58,6 +59,7 @@ ...@@ -58,6 +59,7 @@
<van-field <van-field
class="inputBox" class="inputBox"
border="{{false}}" border="{{false}}"
disabled="{{disable}}"
placeholder="请输入保费" placeholder="请输入保费"
hold-keyboard hold-keyboard
value="{{orderInfo.business.threePremium}}" value="{{orderInfo.business.threePremium}}"
...@@ -87,6 +89,7 @@ ...@@ -87,6 +89,7 @@
<van-field <van-field
class="inputBox" class="inputBox"
border="{{false}}" border="{{false}}"
disabled="{{disable}}"
placeholder="请输入保费" placeholder="请输入保费"
data-type='number' data-type='number'
value="{{orderInfo.business.carInsidePremium}}" value="{{orderInfo.business.carInsidePremium}}"
...@@ -115,6 +118,7 @@ ...@@ -115,6 +118,7 @@
<van-field <van-field
class="inputBox" class="inputBox"
border="{{false}}" border="{{false}}"
disabled="{{disable}}"
placeholder="请输入保费" placeholder="请输入保费"
data-type='number' data-type='number'
value="{{orderInfo.business.passengerPremium}}" value="{{orderInfo.business.passengerPremium}}"
...@@ -195,6 +199,7 @@ ...@@ -195,6 +199,7 @@
<van-field <van-field
class="inputBox" class="inputBox"
border="{{false}}" border="{{false}}"
disabled="{{disable}}"
placeholder="请输入" placeholder="请输入"
value="{{orderInfo.mutualStrength.compensation}}" value="{{orderInfo.mutualStrength.compensation}}"
data-attrType="mutualStrength" data-attrType="mutualStrength"
...@@ -203,6 +208,7 @@ ...@@ -203,6 +208,7 @@
<van-field <van-field
class="inputBox" class="inputBox"
border="{{false}}" border="{{false}}"
disabled="{{disable}}"
placeholder="请输入保费" placeholder="请输入保费"
data-type='number' data-type='number'
value="{{orderInfo.mutualStrength.payPrice}}" value="{{orderInfo.mutualStrength.payPrice}}"
...@@ -223,17 +229,10 @@ ...@@ -223,17 +229,10 @@
binderror="" binderror=""
bindload="" /> bindload="" />
</view> </view>
<!-- <van-field
class="inputBox"
border="{{false}}"
placeholder="请输入"
value="{{orderInfo.vehiclesAndVessels.compensation}}"
data-attrType="vehiclesAndVessels"
data-attrName="compensation"
bindinput="handleInput" /> -->
<van-field <van-field
class="inputBox" class="inputBox"
border="{{false}}" border="{{false}}"
disabled="{{disable}}"
placeholder="请输入保费" placeholder="请输入保费"
data-type='number' data-type='number'
value="{{orderInfo.vehiclesAndVessels.payPrice}}" value="{{orderInfo.vehiclesAndVessels.payPrice}}"
......
...@@ -346,7 +346,17 @@ Page({ ...@@ -346,7 +346,17 @@ Page({
return parseFloat(strVal) return parseFloat(strVal)
}, },
back() { back() {
wx.$router.reLaunch('pages.sceneIndex') console.log('back')
// wx.$router.reLaunch('pages.sceneIndex')
let { step } = this.data
console.log('step', step)
if (step == 'first') {
wx.$router.reLaunch('packageEquity.equityPage')
} else {
this.setData({
step: 'first'
})
}
}, },
navbarReady(e) { navbarReady(e) {
let navBarHeight = e.detail.height let navBarHeight = e.detail.height
......
...@@ -2,19 +2,21 @@ ...@@ -2,19 +2,21 @@
<navigation-bar <navigation-bar
class="navigation-header" class="navigation-header"
bindnavbarReady="navbarReady" bindnavbarReady="navbarReady"
showMenu="{{true}}" showBack="{{true}}"
bindback="back"> bindback="back">
<!-- showMenu="{{true}}" -->
<!-- bindtap="showStorePicker" --> <!-- bindtap="showStorePicker" -->
<view class="navigation-title"> <view class="navigation-title">
<view class="navigation-title-text text-hide"> <view class="navigation-title-text text-hide">
{{userInfo && userInfo.default4SStoreInfo && userInfo.default4SStoreInfo.merchantName}} <!-- {{userInfo && userInfo.default4SStoreInfo && userInfo.default4SStoreInfo.merchantName}} -->
{{step=='first'?'车辆和车主信息':'车险信息'}}
</view> </view>
<view class="arrow"> <!-- <view class="arrow">
<image src="/images/back.png" /> <image src="/images/back.png" />
</view> </view> -->
</view> </view>
</navigation-bar> </navigation-bar>
<view class="layout"> <view class="layout" style="padding-top:{{navBarHeight}}px; height: calc(100vh - {{navBarHeight}}px);">
<first-step <first-step
wx:if="{{step == 'first'}}" wx:if="{{step == 'first'}}"
id="FirstStep" id="FirstStep"
......
...@@ -38,6 +38,6 @@ ...@@ -38,6 +38,6 @@
color: #8A8C90; color: #8A8C90;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
height: calc(100vh - 50px); /* height: calc(100vh - 50px); */
overflow: hidden; overflow: scroll;
} }
\ No newline at end of file \ No newline at end of file
...@@ -19,6 +19,7 @@ page { ...@@ -19,6 +19,7 @@ page {
font-weight: 500; font-weight: 500;
font-size: 32rpx; font-size: 32rpx;
color: #222222; color: #222222;
margin-bottom: 16rpx;
} }
.image { .image {
...@@ -52,6 +53,10 @@ page { ...@@ -52,6 +53,10 @@ page {
border-right: none; border-right: none;
} }
} }
.disabled {
color: #666;
}
} }
} }
......
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
bindload="" /> bindload="" />
<view class="btnCom"> <view class="btnCom">
<view class="btn" bind:tap="createdQr">生成二维码</view> <view class="btn" bind:tap="createdQr">生成二维码</view>
<view class="btn">长按图片分享报价</view> <view class="btn disabled">长按图片分享报价</view>
</view> </view>
</view> </view>
<view class="qrDialog" wx:if="{{dialogShow}}"> <view class="qrDialog" wx:if="{{dialogShow}}">
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!