Merge pull request '首页图标' (#2) from zyj into master

Reviewed-on: #2
xiaozy_当月动销
zhangyouji 1 year ago
commit 2024e05db3
  1. 45
      pages/index/menu.json
  2. 22
      pages/index/newindex.css
  3. 10
      pages/index/newindex.vue
  4. BIN
      static/newindex/accountEnterpriseList.png
  5. BIN
      static/newindex/accountServiceStationList.png
  6. BIN
      static/newindex/customerList.png
  7. BIN
      static/newindex/distributeReverseAdd.png
  8. BIN
      static/newindex/distributeReverseList.png
  9. BIN
      static/newindex/driverAdd.png
  10. BIN
      static/newindex/driverList.png
  11. BIN
      static/newindex/enterpriseList.png
  12. BIN
      static/newindex/oilOrderList.png
  13. BIN
      static/newindex/priceAdjustList.png
  14. BIN
      static/newindex/priceTaskList.png
  15. BIN
      static/newindex/rankingList.png
  16. BIN
      static/newindex/siteAcctList.png
  17. BIN
      static/newindex/siteCompanyList.png
  18. BIN
      static/newindex/yunSiteList.png
  19. 12
      utils/request.js

@ -9,13 +9,15 @@
"name":"司机列表",
"router":"/driverManagement/index/index",
"lable":"driver:info:list",
"icon":"iconxiugaiyonghuxinxi"
"icon":"iconxiugaiyonghuxinxi",
"image":"../../static/newindex/driverList.png"
},
{
"name":"新增司机",
"router":"/driverManagement/addDiver/addDiver",
"lable":"driver:info:add",
"icon":"iconxiugaiyonghuxinxi"
"icon":"iconxiugaiyonghuxinxi",
"image":"../../static/newindex/driverAdd.png"
}
]
},
@ -29,13 +31,15 @@
"name":"分发列表",
"router":"/oilDistribution/index/index",
"lable":"distributeReverse:info:list",
"icon":"iconbiangeng"
"icon":"iconbiangeng",
"image":"../../static/newindex/distributeReverseList.png"
},
{
"icon":"iconbiangeng",
"name":"新增分发",
"router":"/oilDistribution/distribute/distribute",
"lable":"distributeReverse:info:add"
"lable":"distributeReverse:info:add",
"image":"../../static/newindex/distributeReverseAdd.png"
}
]
},
@ -49,7 +53,8 @@
"icon":"iconzhangdanchaxun",
"name":"订单列表",
"router":"/orderList/index/index",
"lable":"oilOrder:info:list"
"lable":"oilOrder:info:list",
"image":"../../static/newindex/oilOrderList.png"
}
]
},
@ -63,13 +68,15 @@
"icon":"iconjiagebiangeng",
"name":"油站动销",
"router":"/salesRanking/page/index/index",
"lable":"ranking:info:list"
"lable":"ranking:info:list",
"image":"../../static/newindex/rankingList.png"
},
{
"icon":"iconjiagebiangeng",
"name":"企业动销",
"router":"/salesRanking/page/index/enterpriseIndex",
"lable":"ranking:info:list"
"lable":"ranking:info:list",
"image":"../../static/newindex/enterpriseList.png"
}
]
},
@ -83,13 +90,15 @@
"icon":"iconxiugaijiage",
"name":"调价申请",
"router":"/priceAdjustment/page/index/index",
"lable":"priceAdjust:info:list"
"lable":"priceAdjust:info:list",
"image":"../../static/newindex/priceAdjustList.png"
},
{
"icon":"iconxiugaijiage",
"name":"调价任务",
"router":"/priceAdjustmentTask/page/index",
"lable":"priceTask:info:list"
"lable":"priceTask:info:list",
"image":"../../static/newindex/priceTaskList.png"
}
]
},
@ -103,13 +112,15 @@
"icon":"iconxiugaijiage",
"name":"油站公司充值",
"router":"/oilAccount/page/companyRecharge/index",
"lable":"sys:siteCompany:recharge"
"lable":"sys:siteCompany:recharge",
"image":"../../static/newindex/siteCompanyList.png"
},
{
"icon":"iconxiugaijiage",
"name":"油站账户充值",
"router":"/oilAccount/page/accountRecharge/index",
"lable":"sys:siteAcct:recharge"
"lable":"sys:siteAcct:recharge",
"image":"../../static/newindex/siteAcctList.png"
}
]
},
@ -123,13 +134,15 @@
"icon":"iconxiugaijiage",
"name":"公司账户管理",
"router":"/financialCenter/business/index",
"lable":"finance:account:enterprise"
"lable":"finance:account:enterprise",
"image":"../../static/newindex/accountEnterpriseList.png"
},
{
"icon":"iconxiugaijiage",
"name":"油站账户管理",
"router":"/financialCenter/serviceStation/index",
"lable":"finance:account:serviceStation"
"lable":"finance:account:serviceStation",
"image":"../../static/newindex/accountServiceStationList.png"
}
]
},
@ -143,13 +156,15 @@
"icon":"iconxiugaiyonghuxinxi",
"name":"客户运营系统",
"router":"/userManagement/customer/index",
"lable":"management:user:customer"
"lable":"management:user:customer",
"image":"../../static/newindex/customerList.png"
},
{
"icon":"iconxiugaiyonghuxinxi",
"name":"星油云站",
"router":"/userManagement/yunSite/index",
"lable":"management:user:yunSite"
"lable":"management:user:yunSite",
"image":"../../static/newindex/yunSiteList.png"
}
]
}

@ -226,14 +226,14 @@
}
.options-frame {
margin-top: 10rpx;
padding-left: 106rpx;
padding: 0 35rpx;
display: flex;
}
.options-frame > .option {
position: relative;
margin-left: 20rpx;
padding: 10rpx 14rpx;
width: 240rpx;
width: 335rpx;
height: 140rpx;
background: #fff;
border-radius: 20rpx;
@ -243,11 +243,11 @@
}
.options-frame > .option > .star {
position: absolute;
top: 0;
right: 0;
width: 80rpx;
height: 80rpx;
line-height: 80rpx;
top: 5rpx;
right: 8rpx;
width: 30rpx;
height: 30rpx;
line-height: 30rpx;
text-align: center;
background: #ffffff;
border-radius: 20rpx;
@ -256,17 +256,15 @@
}
.options-frame > .option > .wall {
position: relative;
padding-left: 20rpx;
padding-top: 9rpx;
width: 212rpx;
width: 297rpx;
height: 120rpx;
background: rgba(40, 102, 255, .1) ;
border-radius: 20rpx;
}
.options-frame > .option > .wall > .name {
position: absolute;
left: 24rpx;
bottom: 12rpx;
left: 110rpx;
bottom: 40rpx;
font-size: 28rpx;
color: #666;
}

@ -57,11 +57,12 @@
<template v-for="optionItme,optionIndex in item.submenu">
<view class="option" v-if="user.authList.includes(optionItme.lable)" :key="optionIndex" @tap.stop="jump(optionItme)">
<view class="star" @tap.stop="collectionFn(optionItme)">
<uni-icons :color="iconFn(optionItme)" custom-prefix="iconfont" type="iconshoucang-yishoucang" size="18"></uni-icons>
<uni-icons :color="iconFn(optionItme)" custom-prefix="iconfont" type="iconshoucang-yishoucang" size="14"></uni-icons>
</view>
<view class="wall">
<view class="name">{{optionItme.name}}</view>
<uni-icons color="#fff" custom-prefix="iconfont" :type="optionItme.icon" size="50"></uni-icons>
<image style="width: 100rpx;height: 100rpx;" :src="optionItme.image"></image>
<!-- <uni-icons color="#fff" custom-prefix="iconfont" :type="optionItme.icon" size="50"></uni-icons> -->
</view>
</view>
</template>
@ -80,7 +81,8 @@
<uni-icons custom-prefix="iconfont" color="#fff" type="iconchiping" size="20"></uni-icons>
</view>
<view class="collection_item_name">
<uni-icons custom-prefix="iconfont" color="#2866FF" :type="item.icon" size="30"></uni-icons>
<image style="width: 95rpx;height: 95rpx;" :src="item.image"></image>
<!-- <uni-icons custom-prefix="iconfont" color="#2866FF" :type="item.icon" size="30"></uni-icons> -->
<view class="collection_item_text">{{item.name}}</view>
</view>
</view>
@ -176,7 +178,7 @@
this.$set(this.collection,index,'')
},
iconFn(e) {
return this.collection.filter((item) => e.name == item.name).length == 0 ? '#bbbbbb' : '#FFB730';
return this.collection.filter((item) => e.name == item.name).length == 0 ? '#bbbbbb' : '#0256FF';
},
initFn() {
this.menuList = JSON.parse(JSON.stringify(menus))

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.0 KiB

@ -2,21 +2,21 @@ import axios from 'axios'
import utils from '@/utils/encode'
// const env = process.env.NODE_ENV
// const env = 'test'
const env = 'test'
const env = 'production'
const testUrl = 'http://192.168.1.85:38080'
// const productUrl = 'https://www.xingoil.com/adminapi'
// const productUrl = 'https://www.xingoil.com/adminapi' // 生产,加密 new
// const productUrl = 'https://www.xingoil.com/adminapi' // 生产,加密 new
const productUrl = 'http://uat.xingoil.com/adminapi'
const service = axios.create({
baseURL: env == 'production' ? productUrl : testUrl,
// baseURL: testUrl,
// baseURL: testUrl,
timeout: 5000
})
var url = ''
service.interceptors.request.use(
config => {
// 拦截请求
// 拦截请求
uni.showLoading({
title: '加载中...',
mask: true
@ -25,7 +25,7 @@ service.interceptors.request.use(
const unionId = uni.getStorageSync('unionid')
const openId = uni.getStorageSync('openid')
// const accountSources = 'WE_CHAT_PROGRAM'
// const accountSources = 'WE_CHAT_PROGRAM'
const accountSources = 'LOGIN_MP_WECHAT'
// console.log('取出来缓存', token, openid)
@ -118,7 +118,7 @@ service.interceptors.response.use(
console.log('用户点击取消');
}
}
})
}
return res

Loading…
Cancel
Save