Commit 5addbe11 by 前端

sentry环境处理

1 parent 9891032f
.sprite-icon { background-image: url(@/assets/images/sprite.png);background-size: 1070rpx 876rpx;}
.icon-aito { width: 320rpx; height: 36rpx; background-position: 0rpx -734rpx;}
.icon-arrow-right { width: 32rpx; height: 32rpx; background-position: -1032rpx -60rpx;}
.icon-back { width: 128rpx; height: 50rpx; background-position: -942rpx 0rpx;}
.icon-change-account { width: 32rpx; height: 32rpx; background-position: -1032rpx -102rpx;}
.sprite-icon { background-image: url(@/assets/images/sprite.png);background-size: 1085rpx 971rpx;}
.icon-aito { width: 320rpx; height: 36rpx; background-position: 0rpx -749rpx;}
.icon-arrow-right { width: 32rpx; height: 32rpx; background-position: -1052rpx -65rpx;}
.icon-back { width: 128rpx; height: 50rpx; background-position: -957rpx 0rpx;}
.icon-change-account { width: 32rpx; height: 32rpx; background-position: -1052rpx -112rpx;}
.icon-customer-1 { width: 400rpx; height: 400rpx; background-position: 0rpx 0rpx;}
.icon-customer-2 { width: 400rpx; height: 400rpx; background-position: -410rpx 0rpx;}
.icon-customer-detail { width: 40rpx; height: 40rpx; background-position: -1024rpx -420rpx;}
.icon-face-error-active { width: 96rpx; height: 96rpx; background-position: -820rpx -610rpx;}
.icon-face-error { width: 96rpx; height: 96rpx; background-position: 0rpx -780rpx;}
.icon-face-success-active { width: 96rpx; height: 96rpx; background-position: -106rpx -780rpx;}
.icon-face-success { width: 96rpx; height: 96rpx; background-position: -212rpx -780rpx;}
.icon-feedback { width: 32rpx; height: 32rpx; background-position: -1032rpx -150rpx;}
.icon-first-nav { width: 464rpx; height: 176rpx; background-position: 0rpx -410rpx;}
.icon-home-active { width: 80rpx; height: 80rpx; background-position: -942rpx -60rpx;}
.icon-home { width: 80rpx; height: 80rpx; background-position: -942rpx -150rpx;}
.icon-icon-addr { width: 32rpx; height: 32rpx; background-position: -1032rpx -192rpx;}
.icon-icon-avatar { width: 112rpx; height: 112rpx; background-position: -820rpx 0rpx;}
.icon-icon-female { width: 32rpx; height: 32rpx; background-position: -1032rpx -240rpx;}
.icon-icon-handshake { width: 72rpx; height: 72rpx; background-position: -942rpx -420rpx;}
.icon-icon-male { width: 32rpx; height: 32rpx; background-position: -1032rpx -282rpx;}
.icon-icon-shop { width: 32rpx; height: 32rpx; background-position: -1032rpx -330rpx;}
.icon-icon-upload { width: 128rpx; height: 128rpx; background-position: -644rpx -410rpx;}
.icon-icon-weixin { width: 32rpx; height: 32rpx; background-position: -1032rpx -372rpx;}
.icon-kf-0 { width: 32rpx; height: 32rpx; background-position: -1012rpx -650rpx;}
.icon-kf-1 { width: 32rpx; height: 32rpx; background-position: -1012rpx -720rpx;}
.icon-kf-2 { width: 32rpx; height: 32rpx; background-position: -1012rpx -790rpx;}
.icon-kf-3 { width: 32rpx; height: 32rpx; background-position: -820rpx -716rpx;}
.icon-logo { width: 160rpx; height: 160rpx; background-position: -474rpx -410rpx;}
.icon-new-addr { width: 32rpx; height: 32rpx; background-position: -862rpx -716rpx;}
.icon-new-avatar { width: 96rpx; height: 96rpx; background-position: -318rpx -780rpx;}
.icon-new-feedback { width: 64rpx; height: 64rpx; background-position: -942rpx -502rpx;}
.icon-new-home-active { width: 112rpx; height: 112rpx; background-position: -820rpx -122rpx;}
.icon-new-home { width: 112rpx; height: 112rpx; background-position: -820rpx -244rpx;}
.icon-new-record-active { width: 112rpx; height: 112rpx; background-position: -820rpx -366rpx;}
.icon-new-record { width: 112rpx; height: 112rpx; background-position: -820rpx -488rpx;}
.icon-new-setting { width: 64rpx; height: 64rpx; background-position: -942rpx -576rpx;}
.icon-pen-active { width: 120rpx; height: 120rpx; background-position: -490rpx -596rpx;}
.icon-pen { width: 120rpx; height: 120rpx; background-position: -620rpx -596rpx;}
.icon-qr-success { width: 96rpx; height: 96rpx; background-position: -424rpx -780rpx;}
.icon-qw { width: 48rpx; height: 48rpx; background-position: -1016rpx -502rpx;}
.icon-record-active { width: 80rpx; height: 80rpx; background-position: -942rpx -240rpx;}
.icon-record { width: 80rpx; height: 80rpx; background-position: -942rpx -330rpx;}
.icon-scan { width: 32rpx; height: 32rpx; background-position: -750rpx -596rpx;}
.icon-scene-0 { width: 96rpx; height: 96rpx; background-position: -530rpx -780rpx;}
.icon-scene-1 { width: 96rpx; height: 96rpx; background-position: -636rpx -780rpx;}
.icon-search { width: 40rpx; height: 40rpx; background-position: -1016rpx -576rpx;}
.icon-second-nav { width: 480rpx; height: 128rpx; background-position: 0rpx -596rpx;}
.icon-store { width: 96rpx; height: 96rpx; background-position: -742rpx -780rpx;}
.icon-tool-file { width: 60rpx; height: 60rpx; background-position: -942rpx -650rpx;}
.icon-tool-finish { width: 60rpx; height: 60rpx; background-position: -942rpx -720rpx;}
.icon-tool-pay { width: 60rpx; height: 60rpx; background-position: -942rpx -790rpx;}
.icon-settings { width: 32rpx; height: 32rpx; background-position: -750rpx -638rpx;}
\ No newline at end of file
.icon-customer-2 { width: 400rpx; height: 400rpx; background-position: -415rpx 0rpx;}
.icon-customer-detail { width: 40rpx; height: 40rpx; background-position: -1044rpx -445rpx;}
.icon-face-error-active { width: 96rpx; height: 96rpx; background-position: -830rpx -635rpx;}
.icon-face-error { width: 96rpx; height: 96rpx; background-position: 0rpx -800rpx;}
.icon-face-success-active { width: 96rpx; height: 96rpx; background-position: -111rpx -800rpx;}
.icon-face-success { width: 96rpx; height: 96rpx; background-position: -222rpx -800rpx;}
.icon-feedback { width: 32rpx; height: 32rpx; background-position: -1052rpx -160rpx;}
.icon-first-nav { width: 464rpx; height: 176rpx; background-position: 0rpx -415rpx;}
.icon-home-active { width: 80rpx; height: 80rpx; background-position: -957rpx -65rpx;}
.icon-home { width: 80rpx; height: 80rpx; background-position: -957rpx -160rpx;}
.icon-icon-addr { width: 32rpx; height: 32rpx; background-position: -1052rpx -207rpx;}
.icon-icon-avatar { width: 112rpx; height: 112rpx; background-position: -830rpx 0rpx;}
.icon-icon-female { width: 32rpx; height: 32rpx; background-position: -1052rpx -255rpx;}
.icon-icon-handshake { width: 72rpx; height: 72rpx; background-position: -957rpx -445rpx;}
.icon-icon-male { width: 32rpx; height: 32rpx; background-position: -1052rpx -302rpx;}
.icon-icon-shop { width: 32rpx; height: 32rpx; background-position: -1052rpx -350rpx;}
.icon-icon-upload { width: 128rpx; height: 128rpx; background-position: -654rpx -415rpx;}
.icon-icon-weixin { width: 32rpx; height: 32rpx; background-position: -1052rpx -397rpx;}
.icon-kf-0 { width: 32rpx; height: 32rpx; background-position: -1032rpx -690rpx;}
.icon-kf-1 { width: 32rpx; height: 32rpx; background-position: -1032rpx -765rpx;}
.icon-kf-2 { width: 32rpx; height: 32rpx; background-position: -957rpx -840rpx;}
.icon-kf-3 { width: 32rpx; height: 32rpx; background-position: -1004rpx -840rpx;}
.icon-logo { width: 160rpx; height: 160rpx; background-position: -479rpx -415rpx;}
.icon-new-addr { width: 32rpx; height: 32rpx; background-position: -1051rpx -840rpx;}
.icon-new-avatar { width: 96rpx; height: 96rpx; background-position: -333rpx -800rpx;}
.icon-new-feedback { width: 64rpx; height: 64rpx; background-position: -957rpx -532rpx;}
.icon-new-home-active { width: 112rpx; height: 112rpx; background-position: -830rpx -127rpx;}
.icon-new-home { width: 112rpx; height: 112rpx; background-position: -830rpx -254rpx;}
.icon-new-record-active { width: 112rpx; height: 112rpx; background-position: -830rpx -381rpx;}
.icon-new-record { width: 112rpx; height: 112rpx; background-position: -830rpx -508rpx;}
.icon-new-setting { width: 64rpx; height: 64rpx; background-position: -957rpx -611rpx;}
.icon-pen-active { width: 120rpx; height: 120rpx; background-position: -495rpx -606rpx;}
.icon-pen { width: 120rpx; height: 120rpx; background-position: -630rpx -606rpx;}
.icon-qr-success { width: 96rpx; height: 96rpx; background-position: -444rpx -800rpx;}
.icon-qw { width: 48rpx; height: 48rpx; background-position: -1036rpx -532rpx;}
.icon-record-active { width: 80rpx; height: 80rpx; background-position: -957rpx -255rpx;}
.icon-record { width: 80rpx; height: 80rpx; background-position: -957rpx -350rpx;}
.icon-scan { width: 32rpx; height: 32rpx; background-position: -830rpx -746rpx;}
.icon-scene-0 { width: 96rpx; height: 96rpx; background-position: -555rpx -800rpx;}
.icon-scene-1 { width: 96rpx; height: 96rpx; background-position: -666rpx -800rpx;}
.icon-search { width: 40rpx; height: 40rpx; background-position: -1036rpx -611rpx;}
.icon-second-nav { width: 480rpx; height: 128rpx; background-position: 0rpx -606rpx;}
.icon-settings { width: 32rpx; height: 32rpx; background-position: -877rpx -746rpx;}
.icon-store { width: 96rpx; height: 96rpx; background-position: -777rpx -800rpx;}
.icon-tool-file { width: 60rpx; height: 60rpx; background-position: -957rpx -690rpx;}
.icon-tool-finish { width: 60rpx; height: 60rpx; background-position: -957rpx -765rpx;}
.icon-tool-pay { width: 60rpx; height: 60rpx; background-position: 0rpx -911rpx;}
\ No newline at end of file

945 KB | W: | H:

950 KB | W: | H:

assets/images/sprite.png
assets/images/sprite.png
assets/images/sprite.png
assets/images/sprite.png
  • 2-up
  • Swipe
  • Onion skin
......@@ -39,9 +39,9 @@ import { index } from "./env";
// }
Vue.prototype.$permision = permision;
import sentryInit from "@/utils/sentryConfig/sentryInit";
const sentry = sentryInit();
Vue.prototype.$sendSentry = function (e) {
if (index == 3) {
const sentry = sentryInit();
sentry.captureException(e);
}
};
......
......@@ -21,10 +21,7 @@
></view>
</view>
<scroll-view
class="record-box"
scroll-y
>
<scroll-view class="record-box" scroll-y>
<view class="list">
<template v-if="list.length">
<template v-for="item in list">
......@@ -82,13 +79,20 @@ export default {
default: () => []
}
},
beforeDestroy() {
this.popupShow = false
computed: {
watchStatus () {
return this.$store.state.user.historyStatus
},
},
mounted() {
// this.list = utils.deepClone(this.views)
console.log(this.views)
this.list = this.views
watch: {
watchStatus:{
handler() {
this.name = '';
this.isSearch = false
this.list = this.views
},
immediate:true
}
},
methods: {
playVideo(item) {
......@@ -161,11 +165,14 @@ export default {
}
}
}
.record-box {
height: calc(100vh - 300rpx);
padding-top: 48rpx;
}
.list {
display: flex;
flex-wrap: wrap;
gap: 48rpx 60rpx;
padding-top: 48rpx;
gap: 48rpx 50rpx;
.item {
width: 404rpx;
height: 544rpx;
......
......@@ -46,6 +46,7 @@
? item.goodsList[0].goodsName
: "-"
}}
X{{ item.goodsList.length }}件
<image
v-if="item.goodsList.length > 1"
@click="handleLook(item.goodsList)"
......@@ -114,13 +115,15 @@
<view class="th">件数</view>
</view>
</view>
<table class="tabel-box" cellspacing="0" border="0" cellpadding="0">
<tr v-for="i in goodsList">
<td>{{ i.goodsName }}</td>
<td>{{ i.goodsPositionName || "-" }}</td>
<td>{{ i.number }}</td>
</tr>
</table>
<view class="tabel-container">
<table class="tabel-box" cellspacing="0" border="0" cellpadding="0">
<tr v-for="i in goodsList">
<td>{{ i.goodsName }}</td>
<td>{{ i.goodsPositionName || "-" }}</td>
<td>{{ i.number }}</td>
</tr>
</table>
</view>
</view>
</MessageBox>
</view>
......@@ -150,8 +153,19 @@ export default {
],
}
},
mounted() {
this.getRecordList()
computed: {
watchStatus () {
return this.$store.state.user.historyStatus
},
},
watch:{
watchStatus: {
handler() {
this.changeIndex(1,true)
},
immediate:true
}
},
methods: {
formatTime(val,key) {
......@@ -170,8 +184,8 @@ export default {
this.$refs.historyRef.open()
this.goodsList = data
},
changeIndex(index) {
if (this.groupIndex == index) return
changeIndex(index,isStart=false) {
if (this.groupIndex == index && !isStart) return
this.flag = false
this.nothing = false
this.total = 0
......@@ -461,6 +475,10 @@ export default {
}
}
}
.tabel-container {
max-height: 50vh;
overflow: auto;
}
.tabel-box {
margin-top: 20rpx;
width: 100%;
......
......@@ -32,8 +32,8 @@
<template v-for="item in list">
<view class="item" :key="item.id" @click="reception(item)">
<view
:class="['status flex', 'status_' + item.inviteStatus]"
>{{ inviteStatus[item.inviteStatus] }}</view
:class="['status flex', 'status_' + formatInvite(item)]"
>{{ inviteStatus[formatInvite(item)] }}</view
>
<view class="name">
{{ item.customerName }}
......@@ -101,15 +101,32 @@ export default {
chooseItem: {}
}
},
watch: {
show (n) {
if (n) this.getRecordList()
}
},
mounted () {
this.getRecordList()
computed: {
watchStatus () {
return this.$store.state.user.historyStatus
},
},
watch:{
watchStatus:{
handler() {
this.customerNameOrPhone = '';
this.isSearch = false
this.pageNum = 1
this.flag = false
this.getRecordList()
},
immediate:true
}
},
methods: {
//已预约的并且预约时间小于当前时间的,显示超时未到店,否则显示已预约
formatInvite(val) {
if(val.inviteStatus == 2 && new Date().getTime() > new Date(val.receiveCouponDate).getTime()) {
return 5
}
return val.inviteStatus
},
formatTime(val,key) {
if(key == 'customerPhone') {
return val.slice(0, 3) + " " + val.slice(3, 7) + " " + val.slice(7)
......@@ -129,8 +146,9 @@ export default {
this.customerNameOrPhone = e.detail.value
if (this.customerNameOrPhone == '')
this.isSearch = false
this.pageNum = 1
this.getRecordList()
this.pageNum = 1
this.flag = false
this.getRecordList()
},
focus () {
this.isSearch = true
......
class RecorderManager {
constructor(options) {
const { duration, callback } = options || {};
const { duration, callback, isEndCallback } = options || {};
this.recorderManager = uni.getRecorderManager();
this.start(duration);
this.isEndCallback = isEndCallback;
this.recorderManager.onStop((res) => {
console.log("结束录音", res);
callback(res.tempFilePath);
const isEnd = this.isEndCallback(); // 获取最新的 isEnd 值
if (!isEnd) {
this.start(); // 重新开始录音
}
});
}
start(duration = 60000) {
console.log("开始录音");
this.recorderManager.start({
duration,
sampleRate: 16000,
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!