|
|
@@ -13,6 +13,9 @@
|
|
|
<text class="username">{{ user.nickname || '未登录' }}</text>
|
|
|
<text class="user-title" v-if="user.title">职称: {{ user.title }}</text>
|
|
|
</view>
|
|
|
+ <view class="qr-button" @click="onQrClick">
|
|
|
+ <image src="/static/icons/remixicon/qr-code-line.svg" class="qr-icon" />
|
|
|
+ </view>
|
|
|
</view>
|
|
|
</view>
|
|
|
|
|
|
@@ -259,6 +262,10 @@ function onItemClick(type: string) {
|
|
|
uni.showToast({ title: '功能正在开发中', icon: 'none' })
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
+function onQrClick() {
|
|
|
+ uni.showToast({ title: '二维码功能开发中', icon: 'none' })
|
|
|
+}
|
|
|
</script>
|
|
|
|
|
|
<style>
|
|
|
@@ -333,6 +340,23 @@ function onItemClick(type: string) {
|
|
|
margin-bottom: 10rpx;
|
|
|
}
|
|
|
|
|
|
+.qr-button {
|
|
|
+ width: 100rpx;
|
|
|
+ height: 100rpx;
|
|
|
+ border-radius: 50%;
|
|
|
+ background-color: rgba(255, 255, 255, 0.5);
|
|
|
+ display: flex;
|
|
|
+ align-items: center;
|
|
|
+ justify-content: center;
|
|
|
+ margin-left: 20rpx;
|
|
|
+ box-shadow: 0 2rpx 8rpx rgba(0, 0, 0, 0.1);
|
|
|
+}
|
|
|
+
|
|
|
+.qr-icon {
|
|
|
+ width: 60rpx;
|
|
|
+ height: 60rpx;
|
|
|
+}
|
|
|
+
|
|
|
.function-container {
|
|
|
padding-inline: 20rpx;
|
|
|
}
|