Commit b09c0df0 by 张立顺

bug修复

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