You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

104 lines
2.1 KiB

4 years ago
<template>
<view class="content">
<view class="successBox">
<view class="iconfont icon-success"></view>
4 years ago
<view class="h3">已收到您的订单</view>
<view class="p">我们将根据您的预产期联系您并安排与商家对接</view>
<view class="p" v-if="phone!=''" >若您有需要也可以联系我们:<text style="color:blue">{{phone}}</text></view>
<view class="p" v-if="wechat!=''">:<text style="color:blue">{{wechat}}</text></view>
4 years ago
</view>
4 years ago
<view class="pinkBtn" @tap="goMyOrder"></view>
4 years ago
</view>
</template>
<script>
4 years ago
import {
weixin
} from '../../../../utils/weixin.js'
4 years ago
export default {
data() {
return {
4 years ago
phone: "",
wechat: "",
id: ""
4 years ago
}
},
4 years ago
onLoad(options) {
this.id = options.id;
this.getPackages();
4 years ago
},
methods: {
4 years ago
goMyOrder() {
4 years ago
uni.navigateTo({
4 years ago
url: "../../../packageOrder/pages/myOrder/myOrder?status=ongoing"
})
},
getPackages() {
weixin.request({
api: '/api/member/get-packages-info/' + this.id,
method: 'GET',
utilSuccess: r => {
this.phone = r.data.phone;
this.wechat = r.data.wechat;
},
utilFail: r => {
console.log(r);
}
4 years ago
})
}
4 years ago
}
}
</script>
<style>
4 years ago
page {
background: #fff;
}
4 years ago
</style>
4 years ago
<style lang="scss" scoped>
4 years ago
.content {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
}
4 years ago
.successBox {
width: 100%;
4 years ago
text-align: center;
4 years ago
padding: 80rpx 40rpx 0 40rpx;
.iconfont {
color: #39C852;
font-size: 120rpx;
}
.h3 {
font-size: 40rpx;
font-weight: 500;
color: #333333;
margin-top: 40rpx;
}
.p {
font-size: 28rpx;
font-weight: 400;
color: #333333;
margin-top: 24rpx;
}
4 years ago
}
4 years ago
.pinkBtn {
4 years ago
width: 670rpx;
height: 88rpx;
background: linear-gradient(90deg, #FF7E95 0%, #FF447B 100%);
border-radius: 44rpx;
font-size: 36rpx;
font-weight: 500;
4 years ago
color: #FFFFFF;
4 years ago
text-align: center;
4 years ago
line-height: 88rpx;
margin: 80rpx auto;
4 years ago
}
4 years ago
</style>