11
啊鑫
2025-06-05 61a07fff05fbaf6ea85e48af0eed43f379011a45
pages/QC/LLJ/ImageItem.vue
@@ -23,7 +23,7 @@
        </view>
      </view>
      <view class="plus-button">
        <button type="warn" @click="save">上传图片</button>
        <button type="primary" class="upImg" @click="save">上传图片</button>
      </view>
    </view>
    <!-- #ifdef APP -->
@@ -148,6 +148,19 @@
      //   loop: false, // 是否开启图片轮播,默认为 false
      //   indicator: 'default',// 图片指示器类型,可选值为 "default"、"number"、"pointer",默认为 "default"
      // });
     let imagesArry = [];
     console.log(index);
     base64ToPath(this.qsImage.map(s=>s.img)[index]).then(path => {
                 uni.hideLoading();
                  imagesArry[index] = path
                 console.log(path);
                 uni.previewImage({
                    current: index,
                    urls: imagesArry
                 })
              })
    },
    init() {
      this.$post({
@@ -215,7 +228,7 @@
  bottom: 0;
  width: 100%;
  background-color: #ffffff; /* 背景颜色 */
  padding: 10px;
  /* padding: 10px; */
  box-shadow: 0 -2px 4px rgba(0, 0, 0, 0.1); /* 添加底部阴影效果 */
  z-index: 999; /* 确保按钮位于顶层 */
}
@@ -224,4 +237,10 @@
  max-height: calc(100vh - 240px); /* 屏幕高度减去上传按钮高度 */
  overflow-y: auto; /* 当内容超出高度时出现垂直滚动条 */
}
.upImg{
     background-color: #3498db;
     color: white;
}
</style>