hotmode.vue 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107
  1. <template name="hotmode">
  2. <view>
  3. <view class="hotmode-content clearfix">
  4. <view class="hot-image le" @click="handler">
  5. <image src="https://img-b.caimei365.com/group1/M00/04/30/rB-lHGRWIi-AMo5bAABBwc_L90w000.png" mode=""></image>
  6. </view>
  7. <view class="hot-image ri">
  8. <image src="https://img-b.caimei365.com/group1/M00/04/30/rB-lHGRWIi-AJl1FAABLF6OKCBA834.png" mode=""></image>
  9. </view>
  10. </view>
  11. </view>
  12. </template>
  13. <script>
  14. export default{
  15. name:'hotmode',
  16. props:{
  17. list:{
  18. type:Array
  19. }
  20. },
  21. data() {
  22. return{
  23. current:100,
  24. navList:[]
  25. }
  26. },
  27. created(){
  28. this.initData(this.list)
  29. },
  30. computed: {
  31. },
  32. methods:{
  33. initData(list){
  34. this.navList = list
  35. },
  36. handler() {
  37. uni.navigateTo({
  38. url:'/pages/goods/procurement'
  39. })
  40. },
  41. NavToDetailPage(pros,index) {//跳转
  42. if(index === 3){
  43. let linkPath = 'https://static.caimei365.com/app/caimei-activity-h5/html/2023/activity_02.html'
  44. this.$api.navigateTo(`/pages/h5/activity/activity?link=${linkPath}&linkId=382`)
  45. }else{
  46. /**
  47. * 页面跳转类型
  48. * 1、二级页面,2、搜索项目仪器,3、直播页面,4、自由页面,5、商品详情,6、仪器项目详情,7、供应商主页
  49. * 8、专题活动页,9、二手市场介绍,10、二手商品列表,11、二手商品发布,12、商品搜索,13、信息详情
  50. * 14、品牌招商介绍页,15、维修保养介绍页,16、首页,17、注册页,18、信息中心,19、供应商列表
  51. * 23、新活动专题页面
  52. **/
  53. if(pros.linkType){
  54. const typeMap = {
  55. 1:`/pages/goods/goods-instrument?linkId=${pros.linkParam.id}&title=${pros.name}`,
  56. 3:'/pages/h5/article/path-live',
  57. 4:'/pages/h5/other/brands',
  58. 10:'/pages/second/product/product-list',
  59. 14:'/pages/h5/other/brand',
  60. 15:'/pages/h5/other/repair',
  61. 18:`/pages/h5/article/path?link=${pros.link}`,
  62. 20:`/pages/goods/good-floor?linkId=${pros.linkParam.id}&title=${pros.name}`,
  63. 21:'/pages/h5/activity/meobohui',
  64. 22:`/pages/goods/good-floor-temp?linkId=${pros.linkParam.id}&title=${pros.name}`,
  65. 23:`/pages/h5/activity/activity-topic?linkId=${pros.linkParam.id}`, //活动专题页面
  66. 25:'/pages/goods/goods-doc-list' ,//美业资料
  67. 28:`/pages/h5/article/path?link=${pros.link}`, // 采美认证通
  68. 29:'/pages/user/coupon/coupon-collection',//领券中心
  69. }
  70. const url = typeMap[pros.linkType]
  71. this.$api.navigateTo(url)
  72. }
  73. }
  74. }
  75. }
  76. }
  77. </script>
  78. <style lang="scss">
  79. .hotmode-content{
  80. width: 100%;
  81. height: 248rpx;
  82. box-sizing: border-box;
  83. padding: 24rpx;
  84. background: #F7F7F7;
  85. .hot-image{
  86. width: 340rpx;
  87. height: 200rpx;
  88. float: left;
  89. &.le{
  90. float: left;
  91. }
  92. &.ri{
  93. float: right;
  94. }
  95. image{
  96. width: 340rpx;
  97. height: 200rpx;
  98. display: block;
  99. }
  100. }
  101. }
  102. </style>