diff --git a/IOReportSysMP/miniprogram/components/yinput/yinput.ts b/IOReportSysMP/miniprogram/components/yinput/yinput.ts index 30ed8be..41cba2f 100644 --- a/IOReportSysMP/miniprogram/components/yinput/yinput.ts +++ b/IOReportSysMP/miniprogram/components/yinput/yinput.ts @@ -30,7 +30,7 @@ Component({ }, lifetimes: { ready:function(){ - const initValue = this.data.defaultValue || '' + const initValue = this.data.value || this.data.defaultValue || '' this.dataset[this.data.bindValue] = initValue this.setData({ value: initValue }) }, diff --git a/IOReportSysMP/miniprogram/pages/report/enter/enterReport.scss b/IOReportSysMP/miniprogram/pages/report/enter/enterReport.scss index 2480f98..ab8b917 100644 --- a/IOReportSysMP/miniprogram/pages/report/enter/enterReport.scss +++ b/IOReportSysMP/miniprogram/pages/report/enter/enterReport.scss @@ -1,20 +1,37 @@ .card-container { - margin: 20px; + margin: 20rpx; background-color: var(--color-gray-0); box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25); + font-size: 17px; + // font-weight: 550; .card-col-1 { + padding: 24rpx 0; display: flex; + width: auto; + + & yinput:nth-child(1) { + flex: 4 1 50px; + margin: 0 5rpx; + } + + & yinput:nth-child(2) { + flex: 7 1 50px; + margin:0 5rpx; + } } } + .input-container { padding-bottom: 80rpx; + .card-col-1 { display: flex; margin: 0 2px; - :nth-child(n){ + + :nth-child(n) { flex: 1 1 0; } } @@ -26,7 +43,7 @@ left: 0; background-color: var(--color-primary); color: white; - width: 100%; + width: 100%; border-radius: 0; z-index: 99; } \ No newline at end of file diff --git a/IOReportSysMP/miniprogram/pages/report/enter/enterReport.ts b/IOReportSysMP/miniprogram/pages/report/enter/enterReport.ts index 514d2ca..614381b 100644 --- a/IOReportSysMP/miniprogram/pages/report/enter/enterReport.ts +++ b/IOReportSysMP/miniprogram/pages/report/enter/enterReport.ts @@ -37,11 +37,6 @@ Page({ this.setData({ applyTime: e.detail.value, }); - }, - ioTypeChange (e:any) { - this.setData({ - ioType:this.data.ioTypesArray[e.detail.value], - }); }, // 获取文本框字数 inputs: function (e: any) { diff --git a/IOReportSysMP/miniprogram/pages/report/enter/enterReport.wxml b/IOReportSysMP/miniprogram/pages/report/enter/enterReport.wxml index ca3df90..b40b9b2 100644 --- a/IOReportSysMP/miniprogram/pages/report/enter/enterReport.wxml +++ b/IOReportSysMP/miniprogram/pages/report/enter/enterReport.wxml @@ -1,27 +1,18 @@ - - + + + - - + +
- 进出校报备信息填写 + 进出校报备信息填写 - - - - - - - {{ioType}} - - -