百富门答题小程序
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

54 lines
798 B

2 months ago
2 weeks ago
2 months ago
2 weeks ago
2 months ago
2 months ago
2 weeks ago
2 months ago
2 months ago
2 months ago
2 months ago
2 weeks ago
2 months ago
2 months ago
2 weeks ago
2 months ago
  1. <template>
  2. <view class="page">
  3. <view class="video" v-if="video">
  4. <video :src="video"></video>
  5. </view>
  6. <uv-parse :content="content"></uv-parse>
  7. <view class="uni-color-btn">
  8. 返回
  9. </view>
  10. </view>
  11. </template>
  12. <script>
  13. export default {
  14. data() {
  15. return {
  16. content : '',
  17. id : 0,
  18. video : '',
  19. }
  20. },
  21. onLoad({id}) {
  22. this.id = id
  23. this.getBrand()
  24. },
  25. methods: {
  26. getBrand(){
  27. this.$api('getBrand', res => {
  28. if(res.code == 200){
  29. res.result.forEach(n => {
  30. if(this.id == n.id){
  31. this.content = n.details
  32. this.video = n.vo
  33. }
  34. })
  35. }
  36. })
  37. },
  38. }
  39. }
  40. </script>
  41. <style scoped lang="scss">
  42. .page{
  43. padding-bottom: 100rpx;
  44. .video{
  45. width: 100%;
  46. video{
  47. width: 100%;
  48. height: 420rpx;
  49. }
  50. }
  51. }
  52. </style>