surveyDetail.vue 643 B

123456789101112131415161718192021222324252627282930313233343536
  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. // console.log(option,'option');
  25. this.getDetail(option.surveyId || 0)
  26. }
  27. }
  28. </script>
  29. <style lang="scss" scoped>
  30. .survey-box{
  31. padding: 60rpx 40rpx;
  32. font-size: 32rpx;
  33. }
  34. </style>