Commit ba359819 authored by Facius's avatar Facius

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

parent 13f1ff51
......@@ -260,9 +260,16 @@
</u-form>
</scroll-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
class="btn-submit"
v-if="!readOnly"
@click="saveComplete"
type="primary"
shape="circle"
......@@ -279,7 +286,15 @@
shape="circle"
:hover-class="submitStatus ? '' : 'none'"
>
{{ tabIndex === list.length - 1 ? '提交' : '下一步' }}
{{
tabIndex === list.length - 1
? readOnly
? '返回列表'
: '提交'
: readOnly
? '查看下一步'
: '下一步'
}}
</u-button>
</view>
</view>
......@@ -862,9 +877,12 @@ export default {
// 下一步弹窗处理
nextStep() {
console.log('---------------------------', this.readOnly)
if (this.readOnly) {
this.nextTab()
if (this.tabIndex === this.list.length - 1) {
uni.navigateBack()
} else {
this.nextTab()
}
return
}
this.pass = this.checkCompleteItem()
......@@ -1432,6 +1450,10 @@ export default {
justify-content: center;
align-items: center;
}
.read-only {
justify-content: flex-end;
padding-right: 30rpx;
}
.btn-save {
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