Commit 81f25405 by yixinjj

Merge branch 'v1.0.7' of http://192.168.3.233:8090/glsx/gl_tape into v1.0.7

2 parents 78b01712 451678fb
const target = ["ip", "dev", "uat", "prod", "beta"];
const index = 1;
const index = 2;
/**
*
0本地
......
......@@ -8,6 +8,8 @@
*/
const recorderManager = uni.getRecorderManager();
const plug = uni.requireNativePlugin("html5app-recordaudio");
import RecordManager from "@/utils/RecordManager";
const recordManager = RecordManager.getInstance();
const UPLOAD_STATUS = {
// 上传状态
success: 1,
......@@ -169,8 +171,8 @@ export default {
this.setAudioInfo({ endReasonType: 0, audioStatus: "finish" });
},
/**保存记录*/
saveRecord() {
uni.$lock = true;
async saveRecord() {
const unlock = await recordManager.lock();
const recordUrlList = this.audioInfo.audioList.map((i) => {
return {
status: UPLOAD_STATUS.fail,
......@@ -187,7 +189,7 @@ export default {
];
console.log(recordList, "recordList");
uni.$storage.set("recordList", JSON.stringify(recordList));
uni.$lock = false;
unlock();
},
//结束接待
stopAudio: utils.throttle(async function (status) {
......
......@@ -19,7 +19,7 @@
<view class="item-text">{{ item.name }}</view>
</view>
<view class="details-container">
<view class="details-section" :class="showIndex == index ? 'show' : 'hide'">
<view :class="['details-section', itemClass(index)]" >
<view class="section-title">{{ item.name }}</view>
<view class="section-description">{{item.description}}</view>
</view>
......@@ -65,8 +65,6 @@ export default {
components: {partsPop},
data() {
return {
list,
screenList,
showIndex: -1,
};
},
......@@ -88,6 +86,9 @@ export default {
touch() {
this.showIndex = -1;
},
itemClass(index){
return this.showIndex == index ? 'show' : 'hide'
}
},
};
</script>
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!