|
|
@@ -17,45 +17,24 @@
|
|
|
<view class="profile-section">
|
|
|
<view class="profile-header">
|
|
|
<view class="avatar-container">
|
|
|
- <button
|
|
|
- class="avatar-button"
|
|
|
- open-type="chooseAvatar"
|
|
|
- @chooseavatar="onChooseAvatar"
|
|
|
- >
|
|
|
- <image
|
|
|
- class="avatar"
|
|
|
- :src="shopAvatar()"
|
|
|
- mode="aspectFill"
|
|
|
- />
|
|
|
+ <button class="avatar-button" open-type="chooseAvatar" @chooseavatar="onChooseAvatar" >
|
|
|
+ <image class="avatar" :src="shopAvatar()" mode="aspectFill" />
|
|
|
</button>
|
|
|
</view>
|
|
|
<view class="user-info" @click="pageTo({url:'/admin/home/edit'})">
|
|
|
<text class="username">{{ (shopInfo && shopInfo.shopName == '首店') ? (shopInfo.merchantName || '') : (((shopInfo && shopInfo.merchantName) ? shopInfo.merchantName : '') + (shopInfo && shopInfo.shopName ? (' ' + shopInfo.shopName) : '')) }}</text>
|
|
|
- <text class="user-id">ID {{ shopInfo && shopInfo.id ? shopInfo.id : '' }}</text>
|
|
|
- </view>
|
|
|
- <view class="more-icon" @click="pageTo({url:'/admin/home/edit'})">
|
|
|
- <zui-svg-icon icon="home-more" :width="26" color="#FFFFFF" />
|
|
|
</view>
|
|
|
</view>
|
|
|
|
|
|
<view class="function-grid function-grid--overlay" style="padding: 25upx 0upx 30upx 0upx; display: flex; justify-content: space-around; gap: 12upx;">
|
|
|
<view class="function-item function-item--overlay" style="flex: 1; text-align: center; border: 1upx solid rgba(255,255,255,0.5); border-radius: 16upx; padding: 15upx 0;" @click="pageTo({url:'/admin/shop/add?id='+loginInfo.shopId})">
|
|
|
- <view class="function-icon" style="font-size: 38upx; margin-bottom: 8upx;">
|
|
|
- 📍
|
|
|
- </view>
|
|
|
- <text class="function-text function-text--overlay" style="font-size: 22upx;">我的地址</text>
|
|
|
+ <text class="function-text function-text--overlay" style="font-size: 26upx;">我的地址</text>
|
|
|
</view>
|
|
|
<view class="function-item function-item--overlay" style="flex: 1; text-align: center; border: 1upx solid rgba(255,255,255,0.5); border-radius: 16upx; padding: 15upx 0;" @click="pageTo({url:'/admin/stat/cgItem'})">
|
|
|
- <view class="function-icon" style="font-size: 38upx; margin-bottom: 8upx;">
|
|
|
- 📊
|
|
|
- </view>
|
|
|
- <text class="function-text function-text--overlay" style="font-size: 22upx;">采购统计</text>
|
|
|
+ <text class="function-text function-text--overlay" style="font-size: 26upx;">采购统计</text>
|
|
|
</view>
|
|
|
<view class="function-item function-item--overlay" style="flex: 1; text-align: center; border: 1upx solid rgba(255,255,255,0.5); border-radius: 16upx; padding: 15upx 0;" @click="goMore()">
|
|
|
- <view class="function-icon" style="font-size: 38upx; margin-bottom: 8upx;">
|
|
|
- ⋯
|
|
|
- </view>
|
|
|
- <text class="function-text function-text--overlay" style="font-size: 22upx;">更多</text>
|
|
|
+ <text class="function-text function-text--overlay" style="font-size: 26upx;">更多</text>
|
|
|
</view>
|
|
|
</view>
|
|
|
|
|
|
@@ -113,6 +92,19 @@
|
|
|
<view class="box_9">
|
|
|
<view class="tag_2" @click="pageTo({ url: '/admin/ghs/debtChange?ghsId='+ghsInfo.id})"> <text>挂账变动记录</text> </view>
|
|
|
<view class="tag_2" @click="pageTo({ url: '/admin/clear/list?ghsId='+ghsInfo.id})"> <text>结账记录</text> </view>
|
|
|
+ <view class="tag_2" style="position:relative;" @click="pageTo({url:'/pagesPurchase/shopping?ghsId='+ghsInfo.id+'&ghsName='+ghsInfo.name})">
|
|
|
+ <text>买花记录</text>
|
|
|
+
|
|
|
+ <!-- 买花记录提示 -->
|
|
|
+ <view class="inline-bought-tooltip-box" v-if="showBoughtTooltip && index === 0" @click.stop="closeBoughtTooltip">
|
|
|
+ <view class="bought-tooltip-content">
|
|
|
+ 买花记录 请在这里查看,不是在底部菜单“订单”里查看
|
|
|
+ <text class="close-tooltip-icon">×</text>
|
|
|
+ </view>
|
|
|
+ <view class="bought-tooltip-arrow"></view>
|
|
|
+ </view>
|
|
|
+
|
|
|
+ </view>
|
|
|
<view class="tag_2" @click.stop="callUp(ghsInfo)" style="color:green;font-weight:bold;"> <text>联系我们</text> </view>
|
|
|
</view>
|
|
|
<view class="box_6 flex-row" @click="settleAccounts(ghsInfo)" v-if="Number(ghsInfo.debtAmount)>0">
|
|
|
@@ -222,15 +214,6 @@
|
|
|
</view>
|
|
|
</uni-popup>
|
|
|
|
|
|
- <!-- 买花记录提示 -->
|
|
|
- <view class="bought-tooltip-box" v-if="showBoughtTooltip" @click.stop="closeBoughtTooltip">
|
|
|
- <view class="bought-tooltip-content">
|
|
|
- 买花记录 移到这里了
|
|
|
- <text class="close-tooltip-icon">×</text>
|
|
|
- </view>
|
|
|
- <view class="bought-tooltip-arrow"></view>
|
|
|
- </view>
|
|
|
-
|
|
|
<custom-tab-bar :current="0" />
|
|
|
|
|
|
</view>
|
|
|
@@ -510,10 +493,6 @@
|
|
|
showShopName(){
|
|
|
currentShop().then(res => {
|
|
|
if(res.code == 1){
|
|
|
- let sjName = res.data.merchantName ? res.data.merchantName : ''
|
|
|
- let shopName = res.data.shopName ? res.data.shopName : ''
|
|
|
- let title = shopName == '首店' ? sjName : sjName+' '+shopName
|
|
|
- uni.setNavigationBarTitle({ title: title })
|
|
|
this.shopInfo = res.data?res.data:[]
|
|
|
if(this.shopInfo.avatar) {
|
|
|
uni.setStorageSync('shopAvatar', this.shopInfo.avatar);
|
|
|
@@ -1096,38 +1075,46 @@
|
|
|
display: flex;
|
|
|
align-items: center;
|
|
|
.avatar-container {
|
|
|
- width: 120upx;
|
|
|
- height: 120upx;
|
|
|
- border-radius: 60upx;
|
|
|
+ width: 50upx;
|
|
|
+ height: 50upx;
|
|
|
+ border-radius: 50upx;
|
|
|
overflow: hidden;
|
|
|
background-color: rgba(255,255,255,0.2);
|
|
|
border: 1upx solid #ffffff;
|
|
|
+ display: flex;
|
|
|
+ align-items: center;
|
|
|
+ justify-content: center;
|
|
|
.avatar-button {
|
|
|
background: none !important;
|
|
|
border: none !important;
|
|
|
padding: 0 !important;
|
|
|
margin: 0 !important;
|
|
|
line-height: 1;
|
|
|
- display: block;
|
|
|
- width: 120upx;
|
|
|
- height: 120upx;
|
|
|
+ display: flex;
|
|
|
+ align-items: center;
|
|
|
+ justify-content: center;
|
|
|
+ width: 50upx;
|
|
|
+ height: 50upx;
|
|
|
color: transparent !important;
|
|
|
&::after { border: none !important; }
|
|
|
}
|
|
|
.avatar {
|
|
|
- width: 120upx;
|
|
|
- height: 120upx;
|
|
|
- border-radius: 60upx;
|
|
|
+ width: 50upx;
|
|
|
+ height: 50upx;
|
|
|
+ border-radius: 50upx;
|
|
|
}
|
|
|
}
|
|
|
.user-info {
|
|
|
flex: 1;
|
|
|
- margin-left: 24upx;
|
|
|
+ margin-left: 10upx;
|
|
|
+ display: flex;
|
|
|
+ align-items: center;
|
|
|
.username {
|
|
|
display: block;
|
|
|
- font-size: 36upx;
|
|
|
+ font-size: 40upx;
|
|
|
font-weight: bold;
|
|
|
color: #ffffff;
|
|
|
+ line-height: 1;
|
|
|
}
|
|
|
.user-id {
|
|
|
display: block;
|
|
|
@@ -1549,34 +1536,40 @@
|
|
|
text-align: center;
|
|
|
line-height: 1.4;
|
|
|
}
|
|
|
- .bought-tooltip-box {
|
|
|
- position: fixed;
|
|
|
- bottom: calc(env(safe-area-inset-bottom) + 120upx);
|
|
|
- left: 28%;
|
|
|
+ .inline-bought-tooltip-box {
|
|
|
+ position: absolute;
|
|
|
+ top: 70upx;
|
|
|
+ left: 50%;
|
|
|
transform: translateX(-50%);
|
|
|
z-index: 10000;
|
|
|
display: flex;
|
|
|
flex-direction: column;
|
|
|
align-items: center;
|
|
|
+ width: 480upx;
|
|
|
}
|
|
|
|
|
|
.bought-tooltip-content {
|
|
|
- background-color: rgba(0, 0, 0, 0.75);
|
|
|
+ background-color: #333333;
|
|
|
color: #fff;
|
|
|
- padding: 16upx 24upx;
|
|
|
+ padding: 16upx 20upx;
|
|
|
border-radius: 12upx;
|
|
|
- font-size: 29upx;
|
|
|
+ font-size: 28upx;
|
|
|
display: flex;
|
|
|
- align-items: center;
|
|
|
- white-space: nowrap;
|
|
|
+ align-items: flex-start;
|
|
|
+ white-space: normal;
|
|
|
+ text-align: left;
|
|
|
+ line-height: 1.5;
|
|
|
+ word-break: break-all;
|
|
|
}
|
|
|
|
|
|
.close-tooltip-icon {
|
|
|
- margin-left: 12upx;
|
|
|
- font-size: 38upx;
|
|
|
+ margin-left: 10upx;
|
|
|
+ font-size: 32upx;
|
|
|
color: #ccc;
|
|
|
padding: 0 4upx;
|
|
|
line-height: 1;
|
|
|
+ flex-shrink: 0;
|
|
|
+ margin-top: 4upx;
|
|
|
}
|
|
|
|
|
|
.bought-tooltip-arrow {
|
|
|
@@ -1584,8 +1577,8 @@
|
|
|
height: 0;
|
|
|
border-left: 12upx solid transparent;
|
|
|
border-right: 12upx solid transparent;
|
|
|
- border-top: 12upx solid rgba(0, 0, 0, 0.75);
|
|
|
- margin-top: -1upx;
|
|
|
- margin-right: 39upx;
|
|
|
+ border-bottom: 12upx solid #333333;
|
|
|
+ margin-bottom: -1upx;
|
|
|
+ order: -1;
|
|
|
}
|
|
|
</style>
|