|
|
@@ -5,14 +5,11 @@
|
|
|
<view class="user-info">
|
|
|
<view class="user-header" @tap="handleUpdateUserInfo">
|
|
|
<view class="user-avatar">
|
|
|
- <image class="avatar" :src="userInfo.imgPath" mode="aspectFill" v-if="userInfo.imgPath" style="width: 100%; height: 100%; display: block"></image>
|
|
|
- <image
|
|
|
- class="avatar"
|
|
|
- src="https://shuhi.oss-cn-qingdao.aliyuncs.com/mini/logo3.png"
|
|
|
- mode="heightFix"
|
|
|
- v-else
|
|
|
- style="width: 100%; height: 116rpx; display: block; border-radius: 10%"
|
|
|
- ></image>
|
|
|
+ <image class="avatar" :src="userInfo.imgPath" mode="aspectFill" v-if="userInfo.imgPath"
|
|
|
+ style="width: 100%; height: 100%; display: block"></image>
|
|
|
+ <image class="avatar" src="https://shuhi.oss-cn-qingdao.aliyuncs.com/mini/logo3.png"
|
|
|
+ mode="heightFix" v-else style="width: 100%; height: 116rpx; display: block; border-radius: 10%">
|
|
|
+ </image>
|
|
|
</view>
|
|
|
<view class="user-detail">
|
|
|
<view class="nickname">{{ userInfo.nickName }}</view>
|
|
|
@@ -48,7 +45,8 @@
|
|
|
</view>
|
|
|
</view>
|
|
|
<view class="order-types" style="padding: 0 20rpx">
|
|
|
- <view class="type-item flex-d flex-a-c" v-for="(item, index) in orderTypes" :key="index" @click="navigateToOrder(item.path)">
|
|
|
+ <view class="type-item flex-d flex-a-c" v-for="(item, index) in orderTypes" :key="index"
|
|
|
+ @click="navigateToOrder(item.path)">
|
|
|
<image class="type-icon" :src="item.icon" mode="aspectFit"></image>
|
|
|
<text>{{ item.name }}</text>
|
|
|
<view class="badge" v-if="item.badge">{{ item.badge }}</view>
|
|
|
@@ -60,9 +58,11 @@
|
|
|
<view class="tools-section">
|
|
|
<view class="section-title">实用工具</view>
|
|
|
<view class="tools-grid">
|
|
|
- <view class="tool-item flex-d flex-a-c" v-for="(tool, index) in tools" :key="index" @click="navigateToTool(tool.path)">
|
|
|
+ <view class="tool-item flex-d flex-a-c" v-for="(tool, index) in tools" :key="index"
|
|
|
+ @click="navigateToTool(tool.path)">
|
|
|
<!-- #ifdef MP-ALIPAY -->
|
|
|
- <button class="link-service flex-d flex-a-c" v-if="tool.path == 'link-service'" @click="navigateToCustomerService">
|
|
|
+ <button class="link-service flex-d flex-a-c" v-if="tool.path == 'link-service'"
|
|
|
+ @click="navigateToCustomerService">
|
|
|
<image class="tool-icon" :src="tool.icon" mode="aspectFit"></image>
|
|
|
<text>联系客服</text>
|
|
|
</button>
|
|
|
@@ -83,21 +83,13 @@
|
|
|
</view>
|
|
|
|
|
|
<!-- 悬浮提现确认按钮 -->
|
|
|
- <withdrawal-confirm
|
|
|
- :visible="withdrawalOrder && withdrawalOrder.length > 0"
|
|
|
- :initialPosition="buttonPosition"
|
|
|
- @click="navigateToWithdrawal"
|
|
|
- @position-change="onPositionChange"
|
|
|
- />
|
|
|
+ <withdrawal-confirm :visible="withdrawalOrder && withdrawalOrder.length > 0" :initialPosition="buttonPosition"
|
|
|
+ @click="navigateToWithdrawal" @position-change="onPositionChange" />
|
|
|
|
|
|
<!-- 活动悬浮按钮 -->
|
|
|
- <floating-activity
|
|
|
- :img="activityInfo.img"
|
|
|
- :visible="activityInfo.frequency && activityInfo.frequency == 3"
|
|
|
- :initialPosition="activityPosition"
|
|
|
- @click="contactCustomerService"
|
|
|
- @position-change="onActivityButtonPositionChange"
|
|
|
- />
|
|
|
+ <floating-activity :img="activityInfo.img" :visible="activityInfo.frequency && activityInfo.frequency == 3"
|
|
|
+ :initialPosition="activityPosition" @click="contactCustomerService"
|
|
|
+ @position-change="onActivityButtonPositionChange" />
|
|
|
|
|
|
<!-- 提现进度弹窗 -->
|
|
|
<withdrawal-progress :orderInfo="currentWithdrawalOrder" @confirm="confirmWithdrawal" ref="withdrawalRef" />
|
|
|
@@ -298,6 +290,7 @@ export default {
|
|
|
},
|
|
|
//跳转工具
|
|
|
navigateToTool(path) {
|
|
|
+ if (path === 'link-service') return
|
|
|
if (!path)
|
|
|
return uni.showToast({
|
|
|
title: '开发中...',
|
|
|
@@ -603,6 +596,7 @@ export default {
|
|
|
.type-item {
|
|
|
text-align: center;
|
|
|
position: relative;
|
|
|
+
|
|
|
.badge {
|
|
|
position: absolute;
|
|
|
top: -15rpx;
|