1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
| <template>
| <!-- 提交成功 -->
| <view class="flex flex-v align-center">
| <image class="img" mode="aspectFit" src="../../static/images/succeed.png"></image>
| <text class="font-16">{{txt}}</text>
| <view class="sticky-footer">
| <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>
| .img{
| width:200px;
| height: 150px;
| margin-top: 50px;
| }
| </style>
|
|