|
@@ -4,87 +4,82 @@
|
|
|
<text class="tit" v-if="type == 1">订单支付成功</text>
|
|
|
<text class="tit" v-else>订单预约成功</text>
|
|
|
<view class="btn-group">
|
|
|
- <navigator url="/pages/user/fulilist" open-type="redirect" class="mix-btn" v-if="type == 1">继续兑换</navigator>
|
|
|
- <navigator url="/pages/assets/myPing" open-type="redirect" class="mix-btn" v-else>我的拼购</navigator>
|
|
|
+ <navigator url="/pages/order/order" 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: {
|
|
|
-
|
|
|
+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'>
|
|
|
- .content{
|
|
|
- display: flex;
|
|
|
- flex-direction: column;
|
|
|
- justify-content: center;
|
|
|
- align-items: center;
|
|
|
- }
|
|
|
- .success-icon{
|
|
|
- margin-top: 100rpx;
|
|
|
- width: 302rpx;
|
|
|
- height: 320rpx;
|
|
|
- }
|
|
|
- .tit{
|
|
|
- margin-top: 40rpx;
|
|
|
- font-size: 32rpx;
|
|
|
- font-family: PingFang SC;
|
|
|
- font-weight: bold;
|
|
|
- color: #333333;
|
|
|
- }
|
|
|
- .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: #59BAB0;
|
|
|
- border-radius: 10rpx;
|
|
|
- font-size: $font-lg;
|
|
|
- font-size: 30rpx;
|
|
|
- font-family: PingFang SC;
|
|
|
- font-weight: 500;
|
|
|
- color: #FFFFFF;
|
|
|
- &.hollow{
|
|
|
- margin-left: 36rpx;
|
|
|
- background: #fff;
|
|
|
- color: #59BAB0;
|
|
|
- border: 1px solid #59BAB0;
|
|
|
- }
|
|
|
+<style lang="scss">
|
|
|
+.content {
|
|
|
+ display: flex;
|
|
|
+ flex-direction: column;
|
|
|
+ justify-content: center;
|
|
|
+ align-items: center;
|
|
|
+}
|
|
|
+.success-icon {
|
|
|
+ margin-top: 100rpx;
|
|
|
+ width: 302rpx;
|
|
|
+ height: 320rpx;
|
|
|
+}
|
|
|
+.tit {
|
|
|
+ margin-top: 40rpx;
|
|
|
+ font-size: 32rpx;
|
|
|
+ font-family: PingFang SC;
|
|
|
+ font-weight: bold;
|
|
|
+ color: #333333;
|
|
|
+}
|
|
|
+.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: linear-gradient(0deg, #2e58ff, #32c6ff);
|
|
|
+ border-radius: 10rpx;
|
|
|
+ font-size: $font-lg;
|
|
|
+ font-size: 30rpx;
|
|
|
+ font-family: PingFang SC;
|
|
|
+ font-weight: 500;
|
|
|
+ color: #ffffff;
|
|
|
+ &.hollow {
|
|
|
+ margin-left: 36rpx;
|
|
|
+ background: #fff;
|
|
|
+ color: #438bed;
|
|
|
+ border: 1px solid #438bed;
|
|
|
}
|
|
|
+}
|
|
|
</style>
|