activity.vue 1001 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. <template>
  2. <view class="activity">
  3. <image @click.stop="navToDetailPage" src="https://img.caimei365.com/group1/M00/03/9A/Cmis216Zf8GAb_UqABE6NiwUUZs004.jpg" mode="widthFix"></image>
  4. <!-- <web-view :webview-styles="webviewStyles" :src="activityPath"></web-view> -->
  5. </view>
  6. </template>
  7. <script>
  8. export default {
  9. data() {
  10. return {
  11. webviewStyles: {
  12. progress: {
  13. color: '#FF3333'
  14. }
  15. },
  16. productID:'',
  17. activityPath:''
  18. }
  19. },
  20. onLoad(option) {
  21. console.log(option)
  22. this.activityPath = option.path
  23. this.productID = option.productID
  24. uni.setNavigationBarTitle({title:'多重精华,多重修复'});
  25. },
  26. methods:{
  27. navToDetailPage() {//跳转商品详情页
  28. this.$api.navigateTo(`/pages/goods/product?id=${this.productID}`)
  29. },
  30. }
  31. }
  32. </script>
  33. <style lang="scss">
  34. .activity{
  35. width: 100%;
  36. height: auto;
  37. image{
  38. width: 100%;
  39. height: auto;
  40. }
  41. }
  42. </style>