Commit ba359819 authored by Facius's avatar Facius

feat: 底部按钮:【ID1001292】 前台-师傅在小程序前台完工后,“审核中”及“已完工”状态下均可查看完工信息

parent 13f1ff51
...@@ -260,9 +260,16 @@ ...@@ -260,9 +260,16 @@
</u-form> </u-form>
</scroll-view> </scroll-view>
</view> </view>
<view :class="['btn-wrap', 'flex-xc', { 'btn-bottom': tabIndex > 0 }]"> <view
:class="[
'btn-wrap',
'flex-xc',
{ 'btn-bottom': tabIndex > 0, 'read-only': readOnly },
]"
>
<u-button <u-button
class="btn-submit" class="btn-submit"
v-if="!readOnly"
@click="saveComplete" @click="saveComplete"
type="primary" type="primary"
shape="circle" shape="circle"
...@@ -279,7 +286,15 @@ ...@@ -279,7 +286,15 @@
shape="circle" shape="circle"
:hover-class="submitStatus ? '' : 'none'" :hover-class="submitStatus ? '' : 'none'"
> >
{{ tabIndex === list.length - 1 ? '提交' : '下一步' }} {{
tabIndex === list.length - 1
? readOnly
? '返回列表'
: '提交'
: readOnly
? '查看下一步'
: '下一步'
}}
</u-button> </u-button>
</view> </view>
</view> </view>
...@@ -862,9 +877,12 @@ export default { ...@@ -862,9 +877,12 @@ export default {
// 下一步弹窗处理 // 下一步弹窗处理
nextStep() { nextStep() {
console.log('---------------------------', this.readOnly)
if (this.readOnly) { if (this.readOnly) {
this.nextTab() if (this.tabIndex === this.list.length - 1) {
uni.navigateBack()
} else {
this.nextTab()
}
return return
} }
this.pass = this.checkCompleteItem() this.pass = this.checkCompleteItem()
...@@ -1432,6 +1450,10 @@ export default { ...@@ -1432,6 +1450,10 @@ export default {
justify-content: center; justify-content: center;
align-items: center; align-items: center;
} }
.read-only {
justify-content: flex-end;
padding-right: 30rpx;
}
.btn-save { .btn-save {
color: #ffffff; color: #ffffff;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment