Commit a02ca549 by 李伟康

commit 提交

1 parent d177e970
......@@ -63,7 +63,7 @@
class="input"
placeholder="输入金额"
:disabled="!i.show || !i.checked"
:placeholder-style="`color:${i.show?'#999':'#ccc'}`"
:placeholder-style="`color:${i.show && i.checked?'#999':'#ccc'}`"
@blur="handleInput"
:data-index="index"
/>
......@@ -139,7 +139,7 @@ export default {
insuranceList = uni.getStorageSync(storageKey)
if (insuranceList) {
insuranceList.map(e => e.cost = '')
this.insuranceList = insuranceList
this.insuranceList = JSON.parse(JSON.stringify(insuranceList))
this.flag = true
}
this.getMerchantInsuranceList()
......@@ -217,7 +217,7 @@ export default {
}
else {
let { insuranceList } = this,
combinedList = [...insuranceList, ...list]
combinedList = [...insuranceList, ...list]
const deduplicatedList = combinedList.reduce((acc, item) => {
const existingItem = acc.find(existing => String(existing.id) === String(item.id));
if (existingItem) {
......@@ -228,9 +228,9 @@ export default {
return acc;
}, [])
let arr = []
deduplicatedList.map(e =>{
deduplicatedList.map(e => {
let index = list.findIndex(item => String(item.id) === String(e.id))
if(index != -1) arr.push(e)
if (index != -1) arr.push(e)
})
this.setInsuranceList(storageKey, arr)
}
......@@ -240,7 +240,8 @@ export default {
},
setInsuranceList (storageKey, value) {
uni.hideLoading()
this.insuranceList = value
this.insuranceList = JSON.parse(JSON.stringify(value))
value.map(e => e.checked = true)
uni.setStorageSync(storageKey, value);
this.flag = true
},
......@@ -362,6 +363,7 @@ export default {
overflow: hidden;
font-weight: 700;
transition: all 0.25s;
flex-shrink: 0;
}
.checked {
background: #2c66f7;
......
const target = ["ip", "dev", "uat", "prod", "beta"];
const index = 1;
const index = 4;
/**
*
0本地
......
......@@ -211,16 +211,16 @@ export default {
this.moduleList[index].showAlt = true;
},
async start () {
const result = await this.$permision.requestAndroidPermission(
"android.permission.RECORD_AUDIO"
);
if (result !== 1) {
uni.showToast({
title: "为了记录语音通话,请打开录音权限",
icon: "none",
});
return;
}
// const result = await this.$permision.requestAndroidPermission(
// "android.permission.RECORD_AUDIO"
// );
// if (result !== 1) {
// uni.showToast({
// title: "为了记录语音通话,请打开录音权限",
// icon: "none",
// });
// return;
// }
this.getSoure();
this.clearHistory();
this.$refs.home.startAudio();
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!