| | |
| | | <!-- 提交成功 --> |
| | | <view class="flex flex-v align-center"> |
| | | <image class="img" mode="aspectFit" src="../../static/images/succeed.png"></image> |
| | | <text class="font-16">提交成功请到前台付款</text> |
| | | <text class="font-16">{{txt}}</text> |
| | | <view class="sticky-footer"> |
| | | <button class="blue-btn btn mt-20">查看详情</button> |
| | | <button class="white-btn btn mt-20">返回首页</button> |
| | | <navigator :url="url"> |
| | | <button class="blue-btn btn">查看{{type == 1?'订单':'服务单'}}</button> |
| | | </navigator> |
| | | <navigator url="./index" open-type="switchTab"> |
| | | <button class="white-btn btn mt-15">返回首页</button> |
| | | </navigator> |
| | | </view> |
| | | </view> |
| | | </template> |
| | | |
| | | <script> |
| | | export default{ |
| | | data(){ |
| | | return { |
| | | type: 1, //1 订单提交成功, 2服务单提交成功 |
| | | txt: '提交成功请到前台付款', |
| | | url: './orderList' |
| | | } |
| | | }, |
| | | onLoad(options) { |
| | | if(options.type == 2){ |
| | | this.type = 2; |
| | | this.txt = '预约成功请到前台排班'; |
| | | this.url = './serviceOrderList'; |
| | | } |
| | | }, |
| | | onBackPress(options) { |
| | | if (options.from === 'navigateBack') { |
| | | return false; |
| | | } |
| | | uni.switchTab({ |
| | | url: "./index" |
| | | }) |
| | | return true; |
| | | }, |
| | | } |
| | | </script> |
| | | |
| | | <style> |