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