hotmode.vue 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. <template name="hotmode">
  2. <view>
  3. <view class="hotmode-content clearfix">
  4. <view class="hot-image le" @click="handleProcurement">
  5. <image :src="staticUrl + 'icon_model_1@2x.png'" mode=""></image>
  6. </view>
  7. <view class="hot-image ri" @click.stop="handleJumpLink(mallTheme)">
  8. <image :src="mallTheme.image" mode=""></image>
  9. </view>
  10. </view>
  11. </view>
  12. </template>
  13. <script>
  14. import jumpMixins from '@/mixins/jumpMixins.js'
  15. export default{
  16. mixins: [jumpMixins],
  17. name:'hotmode',
  18. props:{
  19. mallTheme:{
  20. type:Object
  21. }
  22. },
  23. data() {
  24. return{
  25. staticUrl:this.global.staticUrl,
  26. navList:[]
  27. }
  28. },
  29. created(){
  30. },
  31. computed: {
  32. },
  33. methods:{
  34. handleProcurement() {
  35. //跳转集采列表
  36. this.$api.navigateTo(`/pages/goods/procurement`)
  37. },
  38. handleActivi(){
  39. this.$api.navigateTo(`/pages/goods/good-floor?id=${floor.id}`)
  40. }
  41. }
  42. }
  43. </script>
  44. <style lang="scss">
  45. .hotmode-content{
  46. width: 100%;
  47. height: 228rpx;
  48. box-sizing: border-box;
  49. padding: 24rpx;
  50. background: #F7F7F7;
  51. .hot-image{
  52. width: 340rpx;
  53. height: 180rpx;
  54. float: left;
  55. &.le{
  56. float: left;
  57. }
  58. &.ri{
  59. float: right;
  60. }
  61. image{
  62. width: 340rpx;
  63. height: 180rpx;
  64. display: block;
  65. }
  66. }
  67. }
  68. </style>