9.26晚提交
This commit is contained in:
@@ -101,7 +101,7 @@
|
||||
</view>
|
||||
|
||||
<!-- 编辑按钮 -->
|
||||
<view class="edit-btn" @click="editQuestion">
|
||||
<view class="edit-btn" @click="editQuestion(status)">
|
||||
{{status==1?'我要编辑':'我要回答'}}
|
||||
</view>
|
||||
</view>
|
||||
@@ -121,7 +121,7 @@ const step1_uuid = ref('');
|
||||
const answer_uuid = ref('');
|
||||
const status = ref(0)
|
||||
onLoad((options) => {
|
||||
uuid.value = options.uuid || '125891f8c12145a99de01e29729978fb'
|
||||
uuid.value = options.uuid
|
||||
status.value = options.status || 0
|
||||
console.log(uuid.value)
|
||||
})
|
||||
@@ -163,6 +163,7 @@ const getInterrogation=()=>{
|
||||
return user.uuid == item.expert_uuid
|
||||
})
|
||||
if(arr.length>0){
|
||||
status.value = 1;
|
||||
answer_uuid.value = arr[0].answer_uuid;
|
||||
}
|
||||
}
|
||||
@@ -254,10 +255,16 @@ function previewReplyImages(item, index){
|
||||
|
||||
// 编辑问题
|
||||
function editQuestion() {
|
||||
// 编辑逻辑
|
||||
navTo({
|
||||
url:'/pages_app/myAnswer/myAnswer?answer_uuid='+answer_uuid.value+'&uuid='+uuid.value
|
||||
})
|
||||
if(status.value == 1){
|
||||
navTo({
|
||||
url:'/pages_app/myAnswer/myAnswer?answer_uuid='+answer_uuid.value+'&uuid='+uuid.value
|
||||
})
|
||||
}else{
|
||||
navTo({
|
||||
url:'/pages_app/myAnswer/myAnswer?uuid='+uuid.value
|
||||
})
|
||||
}
|
||||
|
||||
}
|
||||
</script>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user