修改BUG
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
import { onLoad } from '@dcloudio/uni-app'
|
||||
import { GROUP_STATUS } from '@/constants/mall-data'
|
||||
import { getGroupDetail } from '@/api/mall'
|
||||
import { navigateBack, redirectTo } from '@/utils/router'
|
||||
import { navigateBack, navigateTo, redirectTo } from '@/utils/router'
|
||||
import { ref } from 'vue'
|
||||
|
||||
const viewData = ref({})
|
||||
@@ -21,7 +21,8 @@
|
||||
}
|
||||
|
||||
const onShare = () => {
|
||||
console.log('分享')
|
||||
// productId
|
||||
navigateTo('/pages/shop-together/share')
|
||||
}
|
||||
|
||||
onLoad(e => {
|
||||
|
||||
59
pages/shop-together/share.vue
Normal file
59
pages/shop-together/share.vue
Normal file
@@ -0,0 +1,59 @@
|
||||
<script setup></script>
|
||||
|
||||
<template>
|
||||
<view class="share-box">
|
||||
<nav-bar title="拼单" targetColor="transparent"></nav-bar>
|
||||
<view class="code-box">
|
||||
<view class="code-content">
|
||||
<view class="code">二维码</view>
|
||||
<view class="btn-box">
|
||||
<text>分享二维码</text>
|
||||
<text>保存到本地</text>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
.share-box {
|
||||
height: 100vh;
|
||||
width: 100vw;
|
||||
// 导入背景图
|
||||
background: url('/static/images/discover/share-bg.png');
|
||||
background-size: 100%;
|
||||
background-position: center;
|
||||
background-repeat: no-repeat;
|
||||
|
||||
.code-box {
|
||||
padding-top: 20vh;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
|
||||
.code-content {
|
||||
width: 560rpx;
|
||||
height: 618rpx;
|
||||
background: linear-gradient(0deg, #00d993 0%, #00d9c5 100%);
|
||||
border-radius: 32rpx;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
.code {
|
||||
width: 332rpx;
|
||||
height: 332rpx;
|
||||
background: rgb(202, 118, 118);
|
||||
}
|
||||
.btn-box {
|
||||
margin-top: 60rpx;
|
||||
width: 332rpx;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
font-weight: bold;
|
||||
font-size: 28rpx;
|
||||
color: #ffffff;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
</style>
|
||||
Reference in New Issue
Block a user