| | |
| | | </view> |
| | | </view> |
| | | <view class="plus-button"> |
| | | <button type="warn" @click="save">上传图片</button> |
| | | <button type="primary" class="upImg" @click="save">上传图片</button> |
| | | </view> |
| | | </view> |
| | | <!-- #ifdef APP --> |
| | |
| | | // 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({ |
| | |
| | | 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; /* 确保按钮位于顶层 */ |
| | | } |
| | |
| | | max-height: calc(100vh - 240px); /* 屏幕高度减去上传按钮高度 */ |
| | | overflow-y: auto; /* 当内容超出高度时出现垂直滚动条 */ |
| | | } |
| | | .upImg{ |
| | | |
| | | background-color: #3498db; |
| | | color: white; |
| | | |
| | | } |
| | | </style> |