邀请码页面绘制

This commit is contained in:
zhangmanman
2021-09-29 16:52:53 +08:00
parent 88b0303188
commit c7d08d238c
4 changed files with 49 additions and 35 deletions

View File

@@ -28,7 +28,7 @@
<!-- 消息列表弹出 end -->
<!-- 用户信息 start -->
<view class="fileTool" :class="{ bigTool: scroll > 200 }">
<!-- <view class="fileTool" :class="{ bigTool: scroll > 200 }">
<view class="user-portrait">
<image class="user-portrait-head" :src="userData.avatar ? userData.avatar : '/static/user/user-portrait.png'" mode="aspectFill"></image>
</view>
@@ -39,7 +39,7 @@
<image class="user-tool-icon" src="/static/user/user-top-00.png" mode="aspectFill" @click="$Router.push({name: 'setting'})"></image>
<image class="user-tool-icon" src="/static/user/user-top-01.png" mode="aspectFill" @click="$Router.push({name: 'news'})"></image>
</view>
</view>
</view> -->
<view class="user-top" :class="[scroll > 0 ? 'bigTop' : 'refurnTop']">
<!-- <image class="user-back" :class="[scroll > 0 ? 'bigSize' : 'refurnSize']" src="../../static/img/user-back.png" mode="aspectFill"></image> -->
<view class="user-tool">
@@ -252,6 +252,7 @@
<script>
import { userIndex, userNotice, userCustomer } from '@/apis/interfaces/user'
import h5Copy from '@/js_sdk/junyi-h5-copy/junyi-h5-copy/junyi-h5-copy'
export default {
data() {
return {
@@ -355,20 +356,17 @@
// 复制邀请码
copyCenter(e) {
let copyNo = e
uni.vibrateShort({
success: () => {
uni.setClipboardData({
data : copyNo,
success : res=> {
uni.showToast({
title : '复制成功',
icon :'none',
duration: 3000
});
}
})
}
})
const result = h5Copy(copyNo)
if (result === false) {
uni.showToast({
title:'不支持',
})
} else {
uni.showToast({
title:'复制成功',
icon:'none'
})
}
},
// 友情提示信息