hmp 4 年之前
父节点
当前提交
2b9095192f
共有 4 个文件被更改,包括 12 次插入21 次删除
  1. 1 1
      pages/bill/billDetail.vue
  2. 11 20
      pages/index/index.vue
  3. 二进制
      static/icon/faqi.png
  4. 二进制
      static/icon/qingdan.png

+ 1 - 1
pages/bill/billDetail.vue

@@ -2,7 +2,7 @@
 	<view>
 		<block v-if="current==0">
 			<view class="top">
-				<image :src="billDetail.channelLogo" mode="aspectFit"></image>
+				<image :src="billDetail.channelLogo?billDetail.channelLogo:'/static/icon/avatar.png'" mode="aspectFit"></image>
 				<text class="title">{{billDetail.channelName}}</text>
 				<view class="data">
 					<image src="@/static/icon/points-value.png" mode="aspectFit"></image>

+ 11 - 20
pages/index/index.vue

@@ -67,7 +67,7 @@
 							<text class="text-lg">会员中心</text>
 						</view>
 					</view>
-					<view class="menu-bottom">
+					<view class="menu-bottom" style="color: #FFFFFF;">
 						<view class="">
 							<text>新增会员</text>
 							<text>{{statistic.todayMemberIn}}</text>
@@ -84,10 +84,8 @@
 				<text class="title">营销管理</text>
 				<view class="cu-list grid col-2 no-border margin-top-30">
 					<view class="cu-item" @click="$jump(item.path)" v-for="(item,index) in marketList" :key="index">
-						<view class="center">
-							<view class="icon" :style="item.background">
-								<image :src="item.icon" mode=""></image>
-							</view>
+						<view class="grid-icon">
+							<image mode="widthFix" style="width: 120rpx;" :src="item.icon" />
 						</view>
 						<text style="color: #222222;font-size: 26rpx;margin-top: 20rpx;">{{item.name}}</text>
 						<view class="cu-tag bg-red badge" v-if="item.count>0">{{item.count}}</view>
@@ -182,14 +180,14 @@
 					}
 				],
 				marketList: [{
-						icon: '/static/icon/publish.png',
+						icon: '/static/icon/faqi.png',
 						name: '发起活动',
 						background: "background-image:linear-gradient(#FF9549,#FCB07B)",
 						path: '/pages/publish/publish',
 						count: 0
 					},
 					{
-						icon: '/static/icon/list.png',
+						icon: '/static/icon/qingdan.png',
 						name: '活动清单',
 						background: "background-image:linear-gradient(#5892F7,#67BBF9)",
 						path: '/pages/activity/activity',
@@ -232,6 +230,12 @@
 		onLoad() {
 			this.init()
 		},
+		onShow() {
+			if (this.canReset) {
+				this.getStatistic()
+			}
+			this.canReset=true
+		},
 		methods: {
 			logout(){
 				this.$dialog.showModal('确定要退出吗?').then(res=>{
@@ -463,20 +467,7 @@
 			font-weight: 800;
 		}
 
-		.icon {
-			width: 120rpx;
-			height: 120rpx;
-			display: flex;
-			justify-content: center;
-			align-items: center;
-			border-radius: 20rpx;
-			padding: 20rpx;
 
-			image {
-				width: 60rpx;
-				height: 60rpx;
-			}
-		}
 	}
 
 	.system {

二进制
static/icon/faqi.png


二进制
static/icon/qingdan.png