Commit f6733a23 by 胡悦

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

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