Commit 21c20a82 by 前端

Merge branch 'v1.0.3' of http://192.168.3.233:8090/glsx/gl_tape into v1.0.3

2 parents f105f37b 25c38f86
.sprite-icon { background-image: url(@/assets/images/sprite.png);background-size: 1338rpx 710rpx;} .sprite-icon { background-image: url(@/assets/images/sprite.png);background-size: 1434rpx 668rpx;}
.icon-arrow-right { width: 32rpx; height: 32rpx; background-position: -1114rpx -524rpx;} .icon-arrow-right { width: 32rpx; height: 32rpx; background-position: -1342rpx -464rpx;}
.icon-back { width: 128rpx; height: 50rpx; background-position: -1114rpx -464rpx;} .icon-back { width: 128rpx; height: 50rpx; background-position: -1146rpx -464rpx;}
.icon-change-account { width: 32rpx; height: 32rpx; background-position: -1156rpx -524rpx;} .icon-change-account { width: 32rpx; height: 32rpx; background-position: -1384rpx -464rpx;}
.icon-face-error-active { width: 96rpx; height: 96rpx; background-position: -1242rpx -294rpx;} .icon-face-error-active { width: 96rpx; height: 96rpx; background-position: -722rpx -464rpx;}
.icon-face-error { width: 96rpx; height: 96rpx; background-position: -796rpx -464rpx;} .icon-face-error { width: 96rpx; height: 96rpx; background-position: -828rpx -464rpx;}
.icon-face-success-active { width: 96rpx; height: 96rpx; background-position: -902rpx -464rpx;} .icon-face-success-active { width: 96rpx; height: 96rpx; background-position: -934rpx -464rpx;}
.icon-face-success { width: 96rpx; height: 96rpx; background-position: -1008rpx -464rpx;} .icon-face-success { width: 96rpx; height: 96rpx; background-position: -1040rpx -464rpx;}
.icon-feedback { width: 32rpx; height: 32rpx; background-position: -1198rpx -524rpx;} .icon-feedback { width: 32rpx; height: 32rpx; background-position: -1146rpx -524rpx;}
.icon-home-active { width: 80rpx; height: 80rpx; background-position: 0rpx -588rpx;} .icon-home-active { width: 80rpx; height: 80rpx; background-position: 0rpx -588rpx;}
.icon-home { width: 80rpx; height: 80rpx; background-position: -90rpx -588rpx;} .icon-home { width: 80rpx; height: 80rpx; background-position: -90rpx -588rpx;}
.icon-icon-addr { width: 32rpx; height: 32rpx; background-position: -1240rpx -524rpx;} .icon-icon-addr { width: 32rpx; height: 32rpx; background-position: -1188rpx -524rpx;}
.icon-icon-avatar { width: 112rpx; height: 112rpx; background-position: -674rpx -464rpx;} .icon-icon-avatar { width: 112rpx; height: 112rpx; background-position: -1290rpx -294rpx;}
.icon-icon-female { width: 32rpx; height: 32rpx; background-position: -1282rpx -524rpx;} .icon-icon-female { width: 32rpx; height: 32rpx; background-position: -1230rpx -524rpx;}
.icon-icon-handshake { width: 72rpx; height: 72rpx; background-position: -360rpx -588rpx;} .icon-icon-handshake { width: 72rpx; height: 72rpx; background-position: -360rpx -588rpx;}
.icon-icon-male { width: 32rpx; height: 32rpx; background-position: -1072rpx -588rpx;} .icon-icon-male { width: 32rpx; height: 32rpx; background-position: -1272rpx -524rpx;}
.icon-icon-shop { width: 32rpx; height: 32rpx; background-position: -1114rpx -588rpx;} .icon-icon-shop { width: 32rpx; height: 32rpx; background-position: -1314rpx -524rpx;}
.icon-icon-upload { width: 128rpx; height: 128rpx; background-position: -844rpx -294rpx;} .icon-icon-upload { width: 128rpx; height: 128rpx; background-position: -892rpx -294rpx;}
.icon-icon-weixin { width: 32rpx; height: 32rpx; background-position: -1156rpx -588rpx;} .icon-icon-weixin { width: 32rpx; height: 32rpx; background-position: -1356rpx -524rpx;}
.icon-kf-0 { width: 32rpx; height: 32rpx; background-position: -1198rpx -588rpx;} .icon-kf-0 { width: 32rpx; height: 32rpx; background-position: -1398rpx -524rpx;}
.icon-kf-1 { width: 32rpx; height: 32rpx; background-position: -1240rpx -588rpx;} .icon-kf-1 { width: 32rpx; height: 32rpx; background-position: -1072rpx -588rpx;}
.icon-kf-2 { width: 32rpx; height: 32rpx; background-position: -1282rpx -588rpx;} .icon-kf-2 { width: 32rpx; height: 32rpx; background-position: -1114rpx -588rpx;}
.icon-kf-3 { width: 32rpx; height: 32rpx; background-position: 0rpx -678rpx;} .icon-kf-3 { width: 32rpx; height: 32rpx; background-position: -1156rpx -588rpx;}
.icon-logo { width: 160rpx; height: 160rpx; background-position: -674rpx -294rpx;} .icon-logo { width: 160rpx; height: 160rpx; background-position: -722rpx -294rpx;}
.icon-pen-active { width: 120rpx; height: 120rpx; background-position: -982rpx -294rpx;} .icon-pen-active { width: 120rpx; height: 120rpx; background-position: -1030rpx -294rpx;}
.icon-pen { width: 120rpx; height: 120rpx; background-position: -1112rpx -294rpx;} .icon-pen { width: 120rpx; height: 120rpx; background-position: -1160rpx -294rpx;}
.icon-qw { width: 48rpx; height: 48rpx; background-position: -1252rpx -464rpx;} .icon-qw { width: 48rpx; height: 48rpx; background-position: -1284rpx -464rpx;}
.icon-record-active { width: 80rpx; height: 80rpx; background-position: -180rpx -588rpx;} .icon-record-active { width: 80rpx; height: 80rpx; background-position: -180rpx -588rpx;}
.icon-record-day { width: 664rpx; height: 284rpx; background-position: 0rpx 0rpx;} .icon-record-day { width: 712rpx; height: 284rpx; background-position: 0rpx 0rpx;}
.icon-record-month { width: 664rpx; height: 284rpx; background-position: 0rpx -294rpx;} .icon-record-month { width: 712rpx; height: 284rpx; background-position: 0rpx -294rpx;}
.icon-record-week { width: 664rpx; height: 284rpx; background-position: -674rpx 0rpx;} .icon-record-week { width: 712rpx; height: 284rpx; background-position: -722rpx 0rpx;}
.icon-record { width: 80rpx; height: 80rpx; background-position: -270rpx -588rpx;} .icon-record { width: 80rpx; height: 80rpx; background-position: -270rpx -588rpx;}
.icon-setting { width: 32rpx; height: 32rpx; background-position: -42rpx -678rpx;} .icon-setting { width: 32rpx; height: 32rpx; background-position: -1198rpx -588rpx;}
.icon-tool-1 { width: 60rpx; height: 60rpx; background-position: -442rpx -588rpx;} .icon-tool-1 { width: 60rpx; height: 60rpx; background-position: -442rpx -588rpx;}
.icon-tool-2 { width: 60rpx; height: 60rpx; background-position: -512rpx -588rpx;} .icon-tool-2 { width: 60rpx; height: 60rpx; background-position: -512rpx -588rpx;}
.icon-tool-3 { width: 60rpx; height: 60rpx; background-position: -582rpx -588rpx;} .icon-tool-3 { width: 60rpx; height: 60rpx; background-position: -582rpx -588rpx;}
......
No preview for this file type

1020 KB | W: | H:

1.05 MB | W: | H:

assets/images/sprite.png
assets/images/sprite.png
assets/images/sprite.png
assets/images/sprite.png
  • 2-up
  • Swipe
  • Onion skin

294 KB | W: | H:

320 KB | W: | H:

assets/spritesmith/record-day.png
assets/spritesmith/record-day.png
assets/spritesmith/record-day.png
assets/spritesmith/record-day.png
  • 2-up
  • Swipe
  • Onion skin

313 KB | W: | H:

331 KB | W: | H:

assets/spritesmith/record-month.png
assets/spritesmith/record-month.png
assets/spritesmith/record-month.png
assets/spritesmith/record-month.png
  • 2-up
  • Swipe
  • Onion skin

303 KB | W: | H:

328 KB | W: | H:

assets/spritesmith/record-week.png
assets/spritesmith/record-week.png
assets/spritesmith/record-week.png
assets/spritesmith/record-week.png
  • 2-up
  • Swipe
  • Onion skin
...@@ -10,6 +10,17 @@ ...@@ -10,6 +10,17 @@
:style="{ width: popupW + 'rpx', minHeight: popupH + 'rpx',maxHeight: maxHeight + 'rpx' }" :style="{ width: popupW + 'rpx', minHeight: popupH + 'rpx',maxHeight: maxHeight + 'rpx' }"
> >
<view class="tips-content"> <view class="tips-content">
<view
class="icon-close-box flex"
@click="close"
>
<uni-icons
class="icon-close"
type="closeempty"
:size="18"
color="#1A1A1A"
></uni-icons>
</view>
<view class="tips-title"> <view class="tips-title">
<template v-if="back"> <template v-if="back">
<view <view
...@@ -18,10 +29,6 @@ ...@@ -18,10 +29,6 @@
></view> ></view>
</template> </template>
{{ title }} {{ title }}
<view
class="icon-close"
@click="close"
>×</view>
</view> </view>
<view <view
class="tips-text" class="tips-text"
...@@ -129,6 +136,16 @@ export default { ...@@ -129,6 +136,16 @@ export default {
padding: 48rpx; padding: 48rpx;
box-sizing: border-box; box-sizing: border-box;
height: calc(100% - 100rpx); height: calc(100% - 100rpx);
position: relative;
.icon-close-box {
position: absolute;
right: 0;
top: 0;
width: 120rpx;
height: 120rpx;
justify-content: center;
z-index: 2;
}
.tips-title { .tips-title {
position: relative; position: relative;
width: 100%; width: 100%;
...@@ -136,16 +153,6 @@ export default { ...@@ -136,16 +153,6 @@ export default {
font-size: 32rpx; font-size: 32rpx;
color: #292d33; color: #292d33;
text-align: center; text-align: center;
.icon-close {
position: absolute;
right: 0;
top: -30rpx;
width: 160rpx;
font-size: 50rpx;
text-align: right;
padding-right: 20rpx;
line-height: 96rpx;
}
.icon-back { .icon-back {
position: absolute; position: absolute;
left: 0; left: 0;
......
...@@ -20,8 +20,12 @@ export default { ...@@ -20,8 +20,12 @@ export default {
else uni.reLaunch({ else uni.reLaunch({
url: '/pages/common/login' url: '/pages/common/login'
}) })
}, 300) }, 500)
}) }).catch(() => [
uni.reLaunch({
url: '/pages/common/login'
})
])
}, },
methods: { methods: {
} }
......
...@@ -52,7 +52,6 @@ ...@@ -52,7 +52,6 @@
</view> </view>
<button <button
class="btn" class="btn"
:disabled="!mobile || !code"
@click="login" @click="login"
> >
登录 登录
...@@ -136,7 +135,10 @@ export default { ...@@ -136,7 +135,10 @@ export default {
}, },
async login () { async login () {
const { mobile, code: smsCode, noSignIn } = this; const { mobile, code: smsCode, noSignIn } = this;
try { try {
if(!mobile) throw '请输入手机号'
if(!smsCode) throw '请输入验证码'
let params = { let params = {
mobile, mobile,
code: smsCode code: smsCode
......
...@@ -16,9 +16,15 @@ ...@@ -16,9 +16,15 @@
<view class="popup-box"> <view class="popup-box">
<view class="payment-title">{{title}} <view class="payment-title">{{title}}
<view <view
class="icon-close" class="close flex"
@click="close" @click="close"
>×</view> >
<uni-icons
type="closeempty"
:size="18"
color="#1A1A1A"
></uni-icons>
</view>
</view> </view>
<view class="popup-content"> <view class="popup-content">
<view class="tab-list"> <view class="tab-list">
...@@ -180,16 +186,13 @@ export default { ...@@ -180,16 +186,13 @@ export default {
padding: 24rpx 0 26rpx; padding: 24rpx 0 26rpx;
text-align: center; text-align: center;
border-bottom: 1px solid #e8e8e8; border-bottom: 1px solid #e8e8e8;
.icon-close { .close {
position: absolute; position: absolute;
right: 0; right: 0;
top: 0; top: 0;
width: 160rpx; width: 96rpx;
height: 96rpx; height: 96rpx;
font-size: 50rpx; justify-content: center;
text-align: right;
padding-right: 20rpx;
line-height: 96rpx;
} }
} }
} }
......
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
> >
<uni-icons <uni-icons
type="closeempty" type="closeempty"
:size="14" :size="18"
color="#1A1A1A" color="#1A1A1A"
></uni-icons> ></uni-icons>
</view> </view>
......
...@@ -16,14 +16,16 @@ ...@@ -16,14 +16,16 @@
<view class="content"> <view class="content">
<view class="total"> <view class="total">
<view class="label">{{ i.label }}</view> <view class="label">{{ i.label }}</view>
<view class="num">{{ i.count == null ? '-' : i.count }}</view> <view class="num-box">
<view class="num">{{ i.count == null ? '-' : i.count }}</view>
</view>
</view> </view>
<view class="duration"> <view class="duration">
<view class="label">平均接待时长</view> <view class="label">平均接待时长</view>
<view class="num"> <view class="num-box">
{{ i.minutes || '-' }} <view class="num">{{ i.minutes || '-' }}</view>
<view class="unit">分</view> <view class="unit">分</view>
{{ i.seconds || '-' }} <view class="num"> {{ i.seconds || '-' }}</view>
<view class="unit">秒</view> <view class="unit">秒</view>
</view> </view>
</view> </view>
...@@ -154,6 +156,7 @@ export default { ...@@ -154,6 +156,7 @@ export default {
startTime, startTime,
endTime endTime
} = this.getDateRange(tatget) } = this.getDateRange(tatget)
console.log(this.getDateRange(tatget))
e.startTime = startTime e.startTime = startTime
e.endTime = endTime e.endTime = endTime
}) })
...@@ -236,7 +239,7 @@ export default { ...@@ -236,7 +239,7 @@ export default {
} }
}, },
changeIndex (index) { changeIndex (index) {
if(this.dateIndex == index) return if (this.dateIndex == index) return
this.flag = false this.flag = false
this.nothing = false this.nothing = false
this.total = 0 this.total = 0
...@@ -261,6 +264,7 @@ export default { ...@@ -261,6 +264,7 @@ export default {
endTime = new Date(now.getFullYear(), now.getMonth(), now.getDate()); endTime = new Date(now.getFullYear(), now.getMonth(), now.getDate());
} else if (type === 'week') { } else if (type === 'week') {
let dayOfWeek = now.getDay(); let dayOfWeek = now.getDay();
if(dayOfWeek == 0) dayOfWeek = 7
startTime = new Date(now.getFullYear(), now.getMonth(), now.getDate() - dayOfWeek + 1); startTime = new Date(now.getFullYear(), now.getMonth(), now.getDate() - dayOfWeek + 1);
endTime = new Date(now.getFullYear(), now.getMonth(), now.getDate() + (7 - dayOfWeek)); endTime = new Date(now.getFullYear(), now.getMonth(), now.getDate() + (7 - dayOfWeek));
} else if (type === 'month') { } else if (type === 'month') {
...@@ -280,6 +284,10 @@ export default { ...@@ -280,6 +284,10 @@ export default {
</script> </script>
<style scoped lang="scss"> <style scoped lang="scss">
@font-face {
font-family: "numberBold";
src: url("https://img02.glsx.com.cn/weapp/resource/dj-car-boutique-work-wechat/font/D-DIN-PRO-700-Bold.ttf");
}
.record-box { .record-box {
box-sizing: border-box; box-sizing: border-box;
height: 100%; height: 100%;
...@@ -292,7 +300,7 @@ export default { ...@@ -292,7 +300,7 @@ export default {
gap: 32rpx 60rpx; gap: 32rpx 60rpx;
padding-top: 50rpx; padding-top: 50rpx;
.item { .item {
width: 580rpx; width: 628rpx;
background: #ffffff; background: #ffffff;
border-radius: 16rpx; border-radius: 16rpx;
box-sizing: border-box; box-sizing: border-box;
...@@ -348,11 +356,11 @@ export default { ...@@ -348,11 +356,11 @@ export default {
// justify-content: space-between; // justify-content: space-between;
.data-item { .data-item {
width: 580rpx; width: 628rpx;
height: 200rpx; height: 200rpx;
position: relative; position: relative;
font-weight: 500; font-weight: 500;
font-size: 24rpx; font-size: 28rpx;
.sprite-icon { .sprite-icon {
position: absolute; position: absolute;
top: 50%; top: 50%;
...@@ -371,21 +379,24 @@ export default { ...@@ -371,21 +379,24 @@ export default {
.label { .label {
margin-bottom: 16rpx; margin-bottom: 16rpx;
} }
.num { .num-box {
font-size: 48rpx; .num {
font-weight: 700; font-family: "numberBold";
} font-size: 48rpx;
.unit { font-weight: 700;
font-weight: 500; }
font-size: 24rpx; .unit {
font-weight: 500;
font-size: 24rpx;
}
} }
} }
.total { .total {
padding-left: 64rpx; padding-left: 80rpx;
} }
.duration { .duration {
.num { .num-box {
display: flex; display: flex;
align-items: baseline; align-items: baseline;
} }
...@@ -408,7 +419,7 @@ export default { ...@@ -408,7 +419,7 @@ export default {
z-index: 3; z-index: 3;
width: calc(100% + 120rpx); width: calc(100% + 120rpx);
transform: translateX(-60rpx); transform: translateX(-60rpx);
padding-top: 60rpx; padding-top: 80rpx;
.data-tabs { .data-tabs {
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
...@@ -463,20 +474,10 @@ export default { ...@@ -463,20 +474,10 @@ export default {
.sticky { .sticky {
position: sticky; position: sticky;
top: 0; top: 0;
background-image: url("../../../assets/images/home/bg.webp"); background-image: url("../../../assets/images/home/tab-bg.webp");
background-size: 100vw 100vh; background-size: 100% 240rpx;
background-position: -220rpx 0;
background-attachment: fixed !important; background-attachment: fixed !important;
&::after { padding: 80rpx 0 90rpx;
position: absolute;
left: 0rpx;
bottom: -80rpx;
width: calc(100vw - 220rpx);
height: 80rpx;
transform: scaleY(-1);
background-image: linear-gradient(180deg, #e9f1fe00 0%, #f3f7ff 100%);
content: "";
}
} }
.nothing { .nothing {
width: 100%; width: 100%;
...@@ -494,6 +495,7 @@ export default { ...@@ -494,6 +495,7 @@ export default {
color: #999; color: #999;
text-align: center; text-align: center;
margin: 50rpx 0; margin: 50rpx 0;
font-size: 24rpx;
} }
.bottom-mask { .bottom-mask {
position: fixed; position: fixed;
...@@ -501,6 +503,11 @@ export default { ...@@ -501,6 +503,11 @@ export default {
bottom: 0; bottom: 0;
width: calc(100vw - 220rpx); width: calc(100vw - 220rpx);
height: 80rpx; height: 80rpx;
background-image: linear-gradient(180deg, #e9f1fe00 0%, #e9f1fe 100%); background-image: linear-gradient(
180deg,
#e9f1fe00 0%,
#e9f1fe 50%,
#e9f1fe 100%
);
} }
</style> </style>
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
> >
<uni-icons <uni-icons
type="closeempty" type="closeempty"
:size="14" :size="18"
color="#1A1A1A" color="#1A1A1A"
></uni-icons> ></uni-icons>
</view> </view>
...@@ -149,6 +149,8 @@ export default { ...@@ -149,6 +149,8 @@ export default {
color: #333333; color: #333333;
.sprite-icon { .sprite-icon {
margin-bottom: 12rpx; margin-bottom: 12rpx;
box-shadow:0 0 24rpx 0 #3682ef33;
border-radius: 40rpx;
} }
.version { .version {
margin-top: 8rpx; margin-top: 8rpx;
......
...@@ -583,7 +583,8 @@ export default { ...@@ -583,7 +583,8 @@ export default {
height: 416rpx; height: 416rpx;
border: 2rpx solid #ffffff; border: 2rpx solid #ffffff;
border-radius: 68rpx; border-radius: 68rpx;
margin: auto; margin: 152px auto 0;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
justify-content: space-between; justify-content: space-between;
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!