消息通知修改

This commit is contained in:
1154079537 2024-05-06 17:12:43 +08:00
parent 448be8de75
commit 926df5bad0
5 changed files with 770 additions and 738 deletions

View File

@ -2,8 +2,8 @@
"name": "惠农生活", "name": "惠农生活",
"appid": "__UNI__3A527D1", "appid": "__UNI__3A527D1",
"description": "", "description": "",
"versionName": "2.0.44", "versionName": "2.0.47",
"versionCode": 2044, "versionCode": 2047,
"transformPx": false, "transformPx": false,
/* 5+App */ /* 5+App */
"app-plus": { "app-plus": {

View File

@ -144,8 +144,10 @@
<view style="margin-right: 30rpx;" @click="scanQRcode" hover-class="none"> <view style="margin-right: 30rpx;" @click="scanQRcode" hover-class="none">
<view class="iconfont icon-saoma" style="color:#fff;font-size:40rpx;"> </view> <view class="iconfont icon-saoma" style="color:#fff;font-size:40rpx;"> </view>
</view> </view>
<navigator url="/pages/chat/customer_list/index?type=0" hover-class="none"> <navigator url="/pages/chat/customer_list/index?type=0" hover-class="none"
style="position: relative;">
<view class="iconfont icon-xiaoxi" style="color:#fff;font-size:40rpx;"> </view> <view class="iconfont icon-xiaoxi" style="color:#fff;font-size:40rpx;"> </view>
<text class="iconnum" v-if="userInfoData.user_unread">{{userInfoData.user_unread}}</text>
</navigator> </navigator>
</view> </view>
</view> </view>
@ -211,7 +213,6 @@
<u-transition v-for="(item, index) in AllMenuList" :key="item.name" show> <u-transition v-for="(item, index) in AllMenuList" :key="item.name" show>
<view class="examine" @click.stop="pushMenu(item)"> <view class="examine" @click.stop="pushMenu(item)">
<image class="icon_img" :src="item.pic" mode="aspectFit"> </image> <image class="icon_img" :src="item.pic" mode="aspectFit"> </image>
<!-- <u-icon class="icon" name="plus-circle-fill"></u-icon> -->
<view class="icon">添加</view> <view class="icon">添加</view>
<text class="text">{{ item.name }}</text> <text class="text">{{ item.name }}</text>
</view> </view>
@ -284,6 +285,7 @@
backColor: 'rgba(252, 252, 252, 0)', backColor: 'rgba(252, 252, 252, 0)',
newData: {}, newData: {},
activeRouter: '', activeRouter: '',
userInfo: {},
}; };
}, },
computed: { computed: {
@ -344,6 +346,16 @@
} }
}, },
methods: { methods: {
/**
* 获取个人用户信息
*/
getUserInfo: function() {
let that = this;
getUserInfo().then(res => {
showTab(res.data);
this.userInfo = res.data;
});
},
changeSwiper(e) { changeSwiper(e) {
if (e.length > 0 && e[1].value) { if (e.length > 0 && e[1].value) {
uni.navigateTo({ uni.navigateTo({
@ -600,6 +612,18 @@
} }
} }
.iconnum {
min-width: 14rpx;
color: #fff;
background: #E93323;
border-radius: 15rpx;
position: absolute;
left: 20rpx;
top: -10rpx;
font-size: 10px;
padding: 0 5px;
}
.site-box { .site-box {
width: 100%; width: 100%;
/* #ifdef MP || APP-PLUS */ /* #ifdef MP || APP-PLUS */

View File

@ -263,7 +263,8 @@
:url="`/pages/store/home/index?id=${storeInfo.mer_id}&sale_type=${sale_type||1}`" :url="`/pages/store/home/index?id=${storeInfo.mer_id}&sale_type=${sale_type||1}`"
hover-class="none" class="info"> hover-class="none" class="info">
<view class="name line1"> <view class="name line1">
<text class="line1" style="max-width:450rpx;">{{storeInfo.merchant.mer_name ? storeInfo.merchant.mer_name : ''}}</text> <text class="line1"
style="max-width:450rpx;">{{storeInfo.merchant.mer_name ? storeInfo.merchant.mer_name : ''}}</text>
<image <image
v-if="margin_ico_switch==1 && margin_ico && storeInfo.merchant.is_margin == 10" v-if="margin_ico_switch==1 && margin_ico && storeInfo.merchant.is_margin == 10"
:src="margin_ico" class="store-margin"></image> :src="margin_ico" class="store-margin"></image>
@ -714,6 +715,7 @@
}, },
}, },
onLoad(options) { onLoad(options) {
console.log(options)
let that = this let that = this
if (options.spid) { if (options.spid) {
app.globalData.spid = options.spid; app.globalData.spid = options.spid;

View File

@ -6,15 +6,18 @@
<view class="location"> <view class="location">
<view class="box flex_a_c_j_sb"> <view class="box flex_a_c_j_sb">
<view class="place_wrapper flex_a_c"> <view class="place_wrapper flex_a_c">
<view v-if="street&&street!='未开启定位'" @click="changeMap" class="iconfont icon-weizhi" style="color:#fff;font-size:40rpx;"></view> <view v-if="street&&street!='未开启定位'" @click="changeMap" class="iconfont icon-weizhi"
style="color:#fff;font-size:40rpx;"></view>
<view v-if="street&&street!='未开启定位'" @click="changeMap" class="town_name">{{street}}</view> <view v-if="street&&street!='未开启定位'" @click="changeMap" class="town_name">{{street}}</view>
</view> </view>
<view class="flex_a_c_j_sb"> <view class="flex_a_c_j_sb">
<view style="margin-right: 30rpx;" @click="scanQRcode" hover-class="none"> <view style="margin-right: 30rpx;" @click="scanQRcode" hover-class="none">
<view class="iconfont icon-saoma" style="color:#fff;font-size:40rpx;"> </view> <view class="iconfont icon-saoma" style="color:#fff;font-size:40rpx;"> </view>
</view> </view>
<navigator url="/pages/chat/customer_list/index?type=0" hover-class="none"> <navigator url="/pages/chat/customer_list/index?type=0" hover-class="none"
style="position: relative;">
<view class="iconfont icon-xiaoxi" style="color:#fff;font-size:40rpx;"> </view> <view class="iconfont icon-xiaoxi" style="color:#fff;font-size:40rpx;"> </view>
<text class="iconnum" v-if="userInfo.user_unread">{{userInfo.user_unread}}</text>
</navigator> </navigator>
</view> </view>
</view> </view>
@ -26,7 +29,8 @@
<view class="swiper page_swiper" v-if="imgUrls.length"> <view class="swiper page_swiper" v-if="imgUrls.length">
<swiper :autoplay="true" :circular="circular" :interval="intervals" :duration="duration" <swiper :autoplay="true" :circular="circular" :interval="intervals" :duration="duration"
indicator-color="rgba(255,255,255,0.6)" indicator-active-color="#fff" :current="swiperCur" indicator-color="rgba(255,255,255,0.6)" indicator-active-color="#fff" :current="swiperCur"
style="height:330rpx;margin: 0 auto;width:710rpx;" @change="swiperChange" :class="{ scalex:isScale }"> style="height:330rpx;margin: 0 auto;width:710rpx;" @change="swiperChange"
:class="{ scalex:isScale }">
<block v-for="(item,index) in imgUrls" :key="index"> <block v-for="(item,index) in imgUrls" :key="index">
<swiper-item :class="{ active: index == swiperCur,scalex:isScale }"> <swiper-item :class="{ active: index == swiperCur,scalex:isScale }">
<view @click="goDetail(item)" class='slide-navigator acea-row row-between-wrapper'> <view @click="goDetail(item)" class='slide-navigator acea-row row-between-wrapper'>
@ -439,11 +443,11 @@
.iconnum { .iconnum {
min-width: 14rpx; min-width: 14rpx;
color: #E93323; color: #fff;
background: #fff; background: #E93323;
border-radius: 15rpx; border-radius: 15rpx;
position: absolute; position: absolute;
right: -10rpx; left: 20rpx;
top: -10rpx; top: -10rpx;
font-size: 10px; font-size: 10px;
padding: 0 5px; padding: 0 5px;

View File

@ -305,7 +305,9 @@
import { import {
toLogin toLogin
} from '@/libs/login.js'; } from '@/libs/login.js';
import {showTab} from "@/utils/showTab.js"; import {
showTab
} from "@/utils/showTab.js";
const app = getApp(); const app = getApp();
export default { export default {
components: { components: {
@ -1263,11 +1265,11 @@
.iconnum { .iconnum {
min-width: 6px; min-width: 6px;
background-color: #fff; background-color: red;
color: var(--view-theme); color: #fff;
border-radius: 15rpx; border-radius: 15rpx;
position: absolute; position: absolute;
right: -10rpx; left: 50rpx;
top: -10rpx; top: -10rpx;
font-size: 10px; font-size: 10px;
padding: 0 4px; padding: 0 4px;