|
|
@ -72,11 +72,13 @@ |
|
|
</template> |
|
|
</template> |
|
|
|
|
|
|
|
|
<script> |
|
|
<script> |
|
|
|
|
|
import { mapState, mapMutations, mapGetters } from 'vuex' |
|
|
export default { |
|
|
export default { |
|
|
data() { |
|
|
data() { |
|
|
return { |
|
|
return { |
|
|
"questionFreId":"59088ceb55644b03b8d0c7d48d2f7d39", |
|
|
"questionFreId":"59088ceb55644b03b8d0c7d48d2f7d39", |
|
|
"roleId":"5f96b1baae1a47fbb17215a5dc46f5ce", |
|
|
"roleId":"5f96b1baae1a47fbb17215a5dc46f5ce", |
|
|
|
|
|
"userId":"", |
|
|
questionList: [], |
|
|
questionList: [], |
|
|
recordList: [], |
|
|
recordList: [], |
|
|
"ask":"", |
|
|
"ask":"", |
|
|
@ -87,6 +89,9 @@ |
|
|
"showShare":false, |
|
|
"showShare":false, |
|
|
}; |
|
|
}; |
|
|
}, |
|
|
}, |
|
|
|
|
|
computed: { |
|
|
|
|
|
...mapState('m_user', ['userId']) |
|
|
|
|
|
}, |
|
|
//分享到好友 |
|
|
//分享到好友 |
|
|
onShareAppMessage(res) { |
|
|
onShareAppMessage(res) { |
|
|
if (res.from === 'button') {// 来自页面内分享按钮 |
|
|
if (res.from === 'button') {// 来自页面内分享按钮 |
|
|
@ -94,7 +99,7 @@ |
|
|
} |
|
|
} |
|
|
return { |
|
|
return { |
|
|
title: '自定义分享标题', |
|
|
title: '自定义分享标题', |
|
|
path: '/pages/home/home' |
|
|
path: '/pages/index/index' |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
//分享到朋友圈 |
|
|
//分享到朋友圈 |
|
|
@ -143,7 +148,7 @@ |
|
|
async getRecordList() { |
|
|
async getRecordList() { |
|
|
const { |
|
|
const { |
|
|
data: res |
|
|
data: res |
|
|
} = await uni.$http.post('/small/questionFre/listAll',{roleId:this.roleId}) |
|
|
} = await uni.$http.post('/small/questionFre/listAll',{roleId:this.roleId,userId:this.userId}) |
|
|
if (!res.success) return uni.$showMsg() |
|
|
if (!res.success) return uni.$showMsg() |
|
|
this.recordList = res.data |
|
|
this.recordList = res.data |
|
|
|
|
|
|
|
|
|