Commit f6733a23 by 胡悦

fix: 修复购买人输入框长度限制并移除调试代码

移除音频权限请求和埋点相关调试代码
调整订单列表样式间距
注释掉权益页面的初始化逻辑
1 parent d00aeab3
......@@ -151,10 +151,10 @@ export default {
position: relative;
.data-container {
margin-top: toRpx(48);
margin-top: toRpx(80);
// background: #ffffff;
border-radius: toRpx(48);
height: calc(100vh - #{toRpx(136)});
height: calc(100vh - #{toRpx(192)});
box-shadow: inset 0 0 toRpx(16) 0 #ffffff;
border: toRpx(2) solid #fff;
box-sizing: border-box;
......
......@@ -216,7 +216,7 @@ export default {
mounted () {
const userInfo = uni.$storage.get('userInfo') || {}
this.userInfo = userInfo
if (this.checkRecordAudio) permision.requestAndroidPermission('android.permission.RECORD_AUDIO') // 进入界面时检查权限
// if (this.checkRecordAudio) permision.requestAndroidPermission('android.permission.RECORD_AUDIO') // 进入界面时检查权限
},
provide () {
return {
......
......@@ -68,6 +68,7 @@ export default {
label: '购买人',
value: 'purchaser',
type: 'input',
maxlength: 10,
required: true,
},
{
......
......@@ -65,15 +65,15 @@ export default {
return false
},
async onLoad () {
uni.hideLoading()
const mockdata = await uni.$api.systemApi.getMockData(true) //获取APP配置信息
if (this.channelType == 1 && mockdata.boutiqueDefaultCarBrandId) {
this.$store.state.user.boutiqueDefaultCarBrandId = mockdata.boutiqueDefaultCarBrandId //默认车辆品牌
if (mockdata.defaultCarId) this.$store.state.user.defaultCarId = mockdata.defaultCarId //默认车系
}
// uni.hideLoading()
// const mockdata = await uni.$api.systemApi.getMockData(true) //获取APP配置信息
// if (this.channelType == 1 && mockdata.boutiqueDefaultCarBrandId) {
// this.$store.state.user.boutiqueDefaultCarBrandId = mockdata.boutiqueDefaultCarBrandId //默认车辆品牌
// if (mockdata.defaultCarId) this.$store.state.user.defaultCarId = mockdata.defaultCarId //默认车系
// }
// this.get_Vehicle_Sales_Data()
this.requested = true
this.$refs.home.updateApp(true)
// this.requested = true
// this.$refs.home.updateApp(true)
},
async onShow () {
this.init()
......
......@@ -4,7 +4,7 @@ import dayjs from 'dayjs'
class Track {
constructor() {
console.log('---------------- 埋点初始化 ----------------')
this.sendTrack()
// this.sendTrack()
}
add (data = {}) {
const {
......@@ -39,17 +39,17 @@ class Track {
uni.setStorageSync('TRACK_LIST', trackList)
if (!TRACK_TIME) {
console.log('---------------- 重新打开定时埋点 ----------------')
this.sendTrack() //开启定时埋点
// this.sendTrack() //开启定时埋点
}
if (trackList.length > 9) this.sendTrackData()
// if (trackList.length > 9) this.sendTrackData()
}
/**定时发送埋点数据 */
sendTrack () {
TRACK_TIME = setInterval(() => {
this.sendTrackData()
}, TRACK_INTERVAL_TIME)
// TRACK_TIME = setInterval(() => {
// this.sendTrackData()
// }, TRACK_INTERVAL_TIME)
}
async sendTrackData () {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!