1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192 |
- <template>
- <view class="content">
- <image class="success-icon" src="../../static/user/success.png" mode=""></image>
- <text class="tit">提交成功</text>
- <view class="btn-group">
- <!-- <navigator url="/pages/order/order?state=1" open-type="redirect" class="mix-btn">查看订单</navigator> -->
- <navigator url="/pages/index/index" open-type="switchTab" class="mix-btn hollow">返回首页</navigator>
- </view>
- </view>
- </template>
- <script>
- export default {
- data() {
- return {
- type: 2 //1为兑换支付成功2为预购成功
- };
- },
- onLoad(opt) {
- // 保存订单号
- // if ('type' in opt) {
- // this.type = opt.type;
- // }
- // if (this.type == 1) {
- // uni.setNavigationBarTitle({
- // title: '兑换成功'
- // });
- // }
- // if (this.type == 2) {
- // uni.setNavigationBarTitle({
- // title: '预约成功'
- // });
- // }
- },
- methods: {}
- };
- </script>
- <style lang="scss">
- page,.content {
- height: 100%;
- width: 750rpx;
- background: #040404;
- display: flex;
- flex-direction: column;
- align-items: center;
- }
- .success-icon {
- margin-top: 100rpx;
- width: 260rpx;
- height: 200rpx;
- }
- .tit {
- font-size: 40rpx;
- font-family: PingFang SC;
- font-weight: 500;
- color: #FFFFFF;
- line-height: 40rpx;
- }
- .btn-group {
- padding-top: 130rpx;
- display: flex;
- justify-content: flex-start;
- }
- .mix-btn {
- // margin-top: 30upx;
- display: flex;
- align-items: center;
- justify-content: center;
- width: 301rpx;
- height: 78rpx;
- // background: #08d29b;
- border-radius: 10rpx;
- font-size: $font-lg;
- border: 2rpx solid #A581FF;
- font-size: 30rpx;
- font-family: PingFang SC;
- font-weight: 500;
- color: #A581FF;
- // &.hollow {
- // margin-left: 36rpx;
- // background: #fff;
- // color: #08d29b;
- // border: 1px solid #08d29b;
- // }
- }
- </style>
|