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