Commit e539d854 by pangchong

feat: 相册

parent 8c14f14d
......@@ -178,7 +178,7 @@
},
"condition": {
//模式配置,仅开发期间生效
"current": 1, //当前激活的模式(list 的索引项)
"current": 0, //当前激活的模式(list 的索引项)
"list": [
{
"name": "test", //模式名称
......
......@@ -89,6 +89,3 @@
color: $uni-text-5;
margin-bottom: 16rpx;
}
.appeal-image {
width: 100%;
}
......@@ -70,14 +70,14 @@
</card-details>
<card-details type="appeal" title="申诉状态" titleIcon="email">
<view class="appeal-status">{{ useGetDictByValue('appealInfo', details.appealInfo) }}</view>
<image
class="appeal-image"
:src="item.fileUrl"
v-for="(item, index) in getFileList"
:key="item.id"
@tap="previewImage(index)"
mode="widthFix"
/>
<up-album
:urls="getFileList"
keyName="fileUrl"
singleSize="654rpx"
multipleSize="654rpx"
singleMode="widthFix"
multipleMode="widthFix"
></up-album>
</card-details>
</template>
</global-page>
......@@ -105,13 +105,6 @@ const handleRightClick = () => {
url: 'edit'
})
}
//图片预览
const previewImage = (index) => {
uni.previewImage({
current: index,
urls: getFileList.value.map((item) => item.fileUrl)
})
}
</script>
<style lang="scss" scoped>
@import './constants/details.scss';
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment