百富门答题小程序
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.

55 lines
833 B

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