Commit f396bb41 by liwk

commit

1 parent b20a36c8
.sprite-icon { background-image: url(../images/sprite.png);background-size: 190px 140px;}
.icon-0 { width: 40px; height: 40px; background-position: 0px 0px;}
.icon-1 { width: 40px; height: 40px; background-position: -50px 0px;}
.icon-2 { width: 40px; height: 40px; background-position: 0px -50px;}
.icon-3 { width: 40px; height: 40px; background-position: -50px -50px;}
.icon-4 { width: 40px; height: 40px; background-position: -100px 0px;}
.icon-5 { width: 40px; height: 40px; background-position: -100px -50px;}
.icon-6 { width: 40px; height: 40px; background-position: 0px -100px;}
.icon-7 { width: 40px; height: 40px; background-position: -50px -100px;}
.icon-8 { width: 40px; height: 40px; background-position: -100px -100px;}
.icon-9 { width: 40px; height: 40px; background-position: -150px 0px;}
.icon-index-tips { width: 23px; height: 23px; background-position: -150px -50px;}
.icon-down { width: 12px; height: 12px; background-position: -150px -83px;}
\ No newline at end of file
.sprite-icon { background-image: url(../images/sprite.png);background-size: 194px 166px;}
.icon-0 { width: 40px; height: 40px; background-position: -54px 0px;}
.icon-1 { width: 40px; height: 40px; background-position: 0px -54px;}
.icon-2 { width: 40px; height: 40px; background-position: -50px -54px;}
.icon-3 { width: 40px; height: 40px; background-position: -104px 0px;}
.icon-4 { width: 40px; height: 40px; background-position: -104px -50px;}
.icon-5 { width: 40px; height: 40px; background-position: 0px -104px;}
.icon-6 { width: 40px; height: 40px; background-position: -50px -104px;}
.icon-7 { width: 40px; height: 40px; background-position: -100px -104px;}
.icon-8 { width: 40px; height: 40px; background-position: -154px 0px;}
.icon-9 { width: 40px; height: 40px; background-position: -154px -50px;}
.icon-down { width: 12px; height: 12px; background-position: 0px -154px;}
.icon-index-tips { width: 23px; height: 23px; background-position: -154px -100px;}
.icon-default-avatar { width: 44px; height: 44px; background-position: 0px 0px;}
\ No newline at end of file

52.8 KB | W: | H:

54.1 KB | W: | H:

src/assets/images/sprite.png
src/assets/images/sprite.png
src/assets/images/sprite.png
src/assets/images/sprite.png
  • 2-up
  • Swipe
  • Onion skin
......@@ -39,12 +39,13 @@ export default {
<style scoped lang='scss'>
.polo {
position: relative;
overflow: hidden;
border-radius: 100%;
width: 100%;
height: 100%;
border: 1px solid #5850ff;
box-sizing: border-box;
overflow: hidden;
transform: rotate(0deg);
.number {
position: absolute;
font-size: 13px;
......@@ -62,6 +63,7 @@ export default {
position: absolute;
width: 200%;
height: 200%;
z-index: 0;
}
.one {
border-radius: 50% 60%;
......
......@@ -60,6 +60,11 @@ export default {
this.userInfo = this.getLocalStorage('dj_scrm_userInfo')
let accountList = this.getLocalStorage('dj_scrm_accountList')
if (accountList) {
accountList.map(e => {
e.text = e.merchantName
e.value = e.merchantId
})
console.log(accountList)
this.accountList = accountList
}
this.initDate()
......
......@@ -115,8 +115,9 @@ const actions = {
if (dj_scrm) {
appid = dj_scrm.corpId
} else {
Notify('网络异常')
return
// Notify('网络异常')
appid = 'ww7ee69c648ae1b7e6'
// return
}
}
util.setLocalStorage('dj_scrm_corpId', { corpId: appid })
......
......@@ -172,6 +172,10 @@ const getQuery = (name) => {
})
return name ? obj[name] : obj
}
const closeWindow = () => {
wx.closeWindow()
}
const utils = {
removeLocalStorage,
setClipboardData,
......@@ -183,6 +187,7 @@ const utils = {
setSessionId,
getSessionId,
showLoading,
closeWindow,
hideLoading,
refreshPage,
touchstart,
......
<template>
<div class="layout">
<div class="user-box flex">
<div class="tips text-center">
<div
class="tips text-center"
@click="closeWindow"
>
<div class="sprite-icon icon-index-tips"></div>
<!-- <div class="num">9999</div> -->
</div>
<div class="avatar"></div>
<div class="avatar">
<template v-if="userInfo.img">
<img :src="userInfo.img">
</template>
<template v-else>
<div class="sprite-icon icon-default-avatar"></div>
</template>
</div>
<div class="info">
<div class="name">恒河猴</div>
<div class="name">{{userInfo.userName || ''}}</div>
<div class="merchant">
<template v-if="accountList.length">
<!-- <van-dropdown-menu active-color="#5850ff">
<van-dropdown-menu
active-color="#5850ff"
class="merchant"
>
<van-dropdown-item
v-model="status"
:options="statusOption"
v-model="userInfo.merchantId"
:options="accountList"
/>
</van-dropdown-menu> -->
</van-dropdown-menu>
</template>
<template v-else>
{{userInfo.merchantName}}
......@@ -24,7 +37,7 @@
</div>
</div>
<div class="box">
<div class="title">您共有10个任务</div>
<div class="title">您共有{{taskCountData.sum}}个任务</div>
<div class="list flex">
<template v-for="(i,index) in list">
<div
......@@ -131,7 +144,9 @@ export default {
},
mounted () {
wwbenchApi.getTaskData().then(res => {
res.num = parseInt(Number(Number(res.finishTaskCount) / Number(res.finishTaskCount + res.unFinishTaskCount) * 100))
let sum = Number(res.finishTaskCount + res.unFinishTaskCount)
res.num = parseInt(Number(Number(res.finishTaskCount) / sum * 100))
res.sum = sum
this.taskCountData = res
})
......@@ -151,7 +166,6 @@ export default {
endDate
}
wwbenchApi.getTasksList(obj).then(res => {
console.log(res)
this.tasksList = res
this.tasksFlag = true
})
......@@ -214,6 +228,12 @@ export default {
font-weight: 600;
margin-bottom: 6px;
}
.merchant {
/deep/.van-dropdown-menu__title {
font-size: 14px;
color: #fff !important;
}
}
}
.box {
height: 115px;
......@@ -242,7 +262,6 @@ export default {
.ball {
width: 44px;
height: 44px;
background: #ffffff;
margin: 0 auto;
}
.text {
......@@ -283,10 +302,13 @@ export default {
font-size: 14px;
color: #666666;
.label {
margin-right: 25px;
width: 28px;
width: 53px;
flex-shrink: 0;
}
/deep/.van-dropdown-menu__title {
font-size: 14px;
color: #666;
}
}
}
}
......@@ -335,10 +357,6 @@ export default {
background-color: transparent !important;
box-shadow: none;
}
/deep/.van-dropdown-menu__title {
font-size: 14px;
color: #666;
}
}
</style>
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!