Commit 5addbe11 by 前端

sentry环境处理

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