|
|
@@ -234,6 +234,15 @@
|
|
|
</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>
|
|
|
@@ -280,8 +289,9 @@
|
|
|
urlNo:1,
|
|
|
shortUrlList:[],
|
|
|
unReadMsgNum:0, //未读消息数
|
|
|
- currentDate: '', // 当前日期信息 如:12月26号 周五
|
|
|
- };
|
|
|
+ currentDate: '', // 当前日期信息 如:12月26号 周五
|
|
|
+ showBoughtTooltip: false, // 是否显示买花记录提示
|
|
|
+ };
|
|
|
},
|
|
|
computed: {
|
|
|
...mapGetters({ loginInfo: "getLoginInfo",dictInfo:"getDictionariesInfo",myShopInfo:"getMyShopInfo" })
|
|
|
@@ -304,10 +314,12 @@
|
|
|
})
|
|
|
this.updateCurrentDate()
|
|
|
},
|
|
|
- onShow () {
|
|
|
- this.unReadMsgNum = 0; // 重置未读消息数
|
|
|
+ onShow () {
|
|
|
+ this.unReadMsgNum = 0; // 重置未读消息数
|
|
|
|
|
|
- this.init();
|
|
|
+ this.showBoughtTooltip = !uni.getStorageSync('boughtTooltipClosed');
|
|
|
+
|
|
|
+ this.init();
|
|
|
|
|
|
// 判断是否登录
|
|
|
if(!this.$util.isEmpty(this.loginInfo.admin) && this.loginInfo.admin.currentShopId > 0){
|
|
|
@@ -320,7 +332,11 @@
|
|
|
return { title: "花掌柜,花店管家婆", desc: "", imageUrl: "", path: "admin/home/mall" }
|
|
|
},
|
|
|
methods: {
|
|
|
- onChooseAvatar(e){
|
|
|
+ closeBoughtTooltip() {
|
|
|
+ this.showBoughtTooltip = false;
|
|
|
+ uni.setStorageSync('boughtTooltipClosed', true);
|
|
|
+ },
|
|
|
+ onChooseAvatar(e){
|
|
|
if(this.loginInfo && this.loginInfo.staff && this.loginInfo.staff.founder != 2){
|
|
|
this.$msg('门店LOGO请老板修改')
|
|
|
return
|
|
|
@@ -1572,4 +1588,43 @@
|
|
|
text-align: center;
|
|
|
line-height: 1.4;
|
|
|
}
|
|
|
- </style>
|
|
|
+ .bought-tooltip-box {
|
|
|
+ position: fixed;
|
|
|
+ bottom: calc(env(safe-area-inset-bottom) + 120upx);
|
|
|
+ left: 28%;
|
|
|
+ transform: translateX(-50%);
|
|
|
+ z-index: 10000;
|
|
|
+ display: flex;
|
|
|
+ flex-direction: column;
|
|
|
+ align-items: center;
|
|
|
+}
|
|
|
+
|
|
|
+.bought-tooltip-content {
|
|
|
+ background-color: rgba(0, 0, 0, 0.75);
|
|
|
+ color: #fff;
|
|
|
+ padding: 16upx 24upx;
|
|
|
+ border-radius: 12upx;
|
|
|
+ font-size: 29upx;
|
|
|
+ display: flex;
|
|
|
+ align-items: center;
|
|
|
+ white-space: nowrap;
|
|
|
+}
|
|
|
+
|
|
|
+.close-tooltip-icon {
|
|
|
+ margin-left: 12upx;
|
|
|
+ font-size: 38upx;
|
|
|
+ color: #ccc;
|
|
|
+ padding: 0 4upx;
|
|
|
+ line-height: 1;
|
|
|
+}
|
|
|
+
|
|
|
+.bought-tooltip-arrow {
|
|
|
+ width: 0;
|
|
|
+ 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;
|
|
|
+}
|
|
|
+</style>
|