123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103 |
- <template>
- <view class="order_completion_box">
- <view class="order_completion_title">
- <view class="completion_icon">
- <uni-icons class="icon" type="checkmarkempty" size="40" color="#eeeeee"></uni-icons>
- </view>
- <view class="product_title">
- 支付成功 ¥{{this.price}}
- </view>
- </view>
- <view class="nav_button">
- <view class="nav_order" @click="navOrder()">
- <text>查看订单</text>
- </view>
- <view class="nav_home" @click="navHome()">
- <text>返回首页</text>
- </view>
- </view>
- </view>
- </template>
- <script>
- export default {
- data() {
- return {
- //报单成功的商品信息
- productTitleInfo:[],
- price:''
- }
- },
- onLoad(option) {
- console.log(option);
- //接受参数
- this.price = option.price;
- },
- onShow() {
- },
- methods: {
- navOrder(){
- uni.redirectTo({
- url:"/pagesA/orders/userorder"
- })
- },
- navHome(){
- uni.switchTab({
- url:"/pages/index/index"
- })
- },
- }
- }
- </script>
- <style lang="less">
- .order_completion_box{
- display:block;
- padding-bottom: 60rpx;
- .order_completion_title{
- display: block;
- width: 630rpx;
- // height: 300rpx;
- margin: 30rpx auto;
- line-height: 2.0;
- .completion_icon{
- width:150rpx;
- height: 150rpx;
- margin: 30rpx auto;
- border-radius: 50%;
- display: flex;
- justify-content: center;
- align-items: center;
- background-color: #00bba5;
- }
- .product_title{
- text-align: center;
- font-size: 24rpx;
- }
- }
- .nav_button{
- width: 630rpx;
- height: 300rpx;
- margin: 80rpx auto;
- display: block;
- line-height: 100rpx;
- .nav_order{
- text-align: center;
- margin: 30rpx 0rpx;
- border-radius: 60rpx;
- background-color: #00bba5;
- text{
- color: #eeeeee;
- }
- }
- .nav_home{
- text-align: center;
- border: 2rpx solid #00bba5;
- margin: 30rpx 0rpx;
- border-radius: 60rpx;
- }
- }
- }
- </style>
|