珠宝小程序前端代码
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.

75 lines
1.5 KiB

3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
  1. <template>
  2. <view class="page">
  3. <navbar title="活动列表" leftClick @leftClick="$utils.navigateBack" />
  4. <view class="box">
  5. <view class="box-imgs">
  6. <view
  7. :key="index"
  8. @click="$utils.navigateTo(`/pages_order/home/notice?id=${item.id}&type=${type}`)"
  9. class="box-img"
  10. v-for="(item, index) in list">
  11. <image :src="item.icon" mode="aspectFill"></image>
  12. <view>{{ item.title }}</view>
  13. </view>
  14. </view>
  15. </view>
  16. </view>
  17. </template>
  18. <script>
  19. import mixinsList from '@/mixins/list.js'
  20. export default {
  21. mixins: [mixinsList],
  22. data() {
  23. return {
  24. mixinsListApi: 'getRiceProductList',//获取相关介绍
  25. title : ['公司介绍', '产品介绍', '关于我们', '其他'],
  26. type : 0,
  27. }
  28. },
  29. onLoad({type}) {
  30. this.type = type || 0
  31. this.queryParams.type = this.type
  32. },
  33. computed: {},
  34. methods: {}
  35. }
  36. </script>
  37. <style scoped lang="scss">
  38. .page {
  39. height: 100Vh;
  40. background-color: #F3F3F3;
  41. .box {
  42. margin: 20rpx;
  43. image{
  44. width: 220rpx;
  45. height: 220rpx;
  46. }
  47. .box-imgs {
  48. display: flex;
  49. justify-content: space-between;
  50. flex-wrap: wrap;
  51. .box-img{
  52. border-radius: 20rpx;
  53. overflow: hidden;
  54. position: relative;
  55. view{
  56. // position: absolute;
  57. // left: 50%;
  58. // transform: translate(-50%);
  59. // bottom: 80rpx;
  60. margin: 0 auto;
  61. color: #fff;
  62. background-color: $uni-color;
  63. border-radius: 30rpx;
  64. width: 80%;
  65. height: 60rpx;
  66. line-height: 60rpx;
  67. text-align: center;
  68. }
  69. }
  70. }
  71. }
  72. }
  73. </style>