activity.vue 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. <template>
  2. <view class="activity">
  3. <web-view :webview-styles="webviewStyles" :src="activityPath"></web-view>
  4. </view>
  5. </template>
  6. <script>
  7. export default {
  8. data() {
  9. return {
  10. webviewStyles: {
  11. progress: {
  12. color: '#FF3333'
  13. }
  14. },
  15. productID:'',
  16. activityPath:''
  17. }
  18. },
  19. onLoad(option) {
  20. console.log(option)
  21. switch(option.id){
  22. case '277':
  23. this.activityPath = 'https://spi-b.caimei365.com/caimei-h5/html/2020/caimeih5_01.html'
  24. uni.setNavigationBarTitle({title:'三昭国际优惠'});
  25. break;
  26. case '278':
  27. this.activityPath = 'https://spi-b.caimei365.com/caimei-h5/html/2020/caimeih5_02.html'
  28. uni.setNavigationBarTitle({title:'点斗优惠'});
  29. break;
  30. case '223':
  31. this.activityPath = 'https://spi-b.caimei365.com/caimei-h5/html/2020/caimeih5_03.html'
  32. uni.setNavigationBarTitle({title:'品牌OEM服务'});
  33. break;
  34. }
  35. },
  36. methods:{
  37. }
  38. }
  39. </script>
  40. <style lang="scss">
  41. .activity{
  42. width: 100%;
  43. height: auto;
  44. image{
  45. width: 100%;
  46. height: auto;
  47. }
  48. }
  49. </style>