| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127 |
- <template>
- <view class="success-page">
- <u-navbar title="创建队伍" :autoBack="true" bgColor="#fff" leftIconColor="#333" titleStyle="font-weight:bold;"></u-navbar>
-
- <view class="success-content u-f u-f-jsb u-f-ac es-ver">
- <image src="/static/images/enter/activity/img_success.png" class="success-icon" mode="aspectFit"></image>
-
- <view class="title">队伍创建成功!</view>
- <view class="desc">赶紧分享队伍码,邀请队员加入吧</view>
-
- <view class="code-box u-f u-f-ac" @click="copyCode">
- <text class="label">队伍码:</text>
- <text class="code">{{teamCode}}</text>
- <image class="es-icon-32" src="/static/images/enter/activity/icon_copy.png" mode=""></image>
- </view>
-
- <view class="return-btn" @click="handleReturn">
- 返回
- </view>
- </view>
- </view>
- </template>
- <script>
- export default {
- data() {
- return {
- teamCode: 'zkzh202604021235'
- }
- },
- onLoad(options) {
- if (options.teamCode) {
- this.teamCode = options.teamCode;
- }
- },
- methods: {
- copyCode() {
- uni.setClipboardData({
- data: this.teamCode,
- success: () => {
- uni.showToast({title: '复制成功', icon: 'success'});
- }
- });
- },
- handleReturn() {
- uni.redirectTo({
- url: '/pages_enter/activity/detail'
- });
- }
- }
- }
- </script>
- <style lang="scss" scoped>
- .success-page {
- min-height: 100vh;
- background-color: #fff;
- padding: 40rpx;
- }
- .success-content {
- padding-top: 100rpx;
- display: flex;
- flex-direction: column;
- align-items: center;
- .success-icon {
- width: 240rpx;
- height: 240rpx;
- margin-bottom: 60rpx;
- }
- .title {
- font-size: 44rpx;
- font-weight: bold;
- color: #333;
- margin-bottom: 30rpx;
- }
- .desc {
- font-size: 32rpx;
- color: #666;
- margin-bottom: 60rpx;
- }
- .code-box {
- background-color: #f8f8f8;
- padding: 24rpx 40rpx;
- border-radius: 40rpx;
- margin-bottom: 120rpx;
- display: flex;
- align-items: center;
- .label {
- font-size: 32rpx;
- color: #666;
- }
- .code {
- font-size: 32rpx;
- color: #333;
- font-weight: bold;
- margin-right: 20rpx;
- }
- .copy-icon {
- margin-left: 10rpx;
- }
- }
- .return-btn {
- width: 500rpx;
- height: 100rpx;
- border: 2rpx solid #D9D9D9;
- border-radius: 50rpx;
- color: #666;
- font-size: 32rpx;
- display: flex;
- align-items: center;
- justify-content: center;
- &:active {
- background-color: #f8f8f8;
- }
- }
- }
- </style>
|