Commit a02ca549 by 李伟康

commit 提交

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