Commit e539d854 by pangchong

feat: 相册

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