surveyDetail.vue 607 B

1234567891011121314151617181920212223242526272829303132333435
  1. <template>
  2. <view class="survey-box">
  3. {{surveyText}}
  4. </view>
  5. </template>
  6. <script>
  7. import {purchaserApi} from "@/config/modules/purchaser.js"
  8. export default {
  9. data() {
  10. return {
  11. surveyText:""
  12. }
  13. },
  14. methods: {
  15. getDetail(surveyId){
  16. purchaserApi.purchaserSurveyDetail({SuveryId:surveyId}).then(res=>{
  17. if(res.Ret == 200){
  18. this.surveyText = res.Data.Detail.Content || '暂无'
  19. }
  20. })
  21. }
  22. },
  23. onLoad(option) {
  24. this.getDetail(option.surveyId || 0)
  25. }
  26. }
  27. </script>
  28. <style lang="scss" scoped>
  29. .survey-box{
  30. padding: 60rpx 40rpx;
  31. font-size: 32rpx;
  32. }
  33. </style>