update: 升级uview-plus
This commit is contained in:
parent
11ae6ea0aa
commit
5f51299b98
|
@ -64,7 +64,7 @@
|
||||||
"postcss-pxtorem": "^6.0.0",
|
"postcss-pxtorem": "^6.0.0",
|
||||||
"underscore": "^1.13.6",
|
"underscore": "^1.13.6",
|
||||||
"unplugin-auto-import": "^0.17.3",
|
"unplugin-auto-import": "^0.17.3",
|
||||||
"uview-plus": "^3.1.41",
|
"uview-plus": "^3.2.14",
|
||||||
"vue": "^3.2.45",
|
"vue": "^3.2.45",
|
||||||
"vue-i18n": "^9.1.9"
|
"vue-i18n": "^9.1.9"
|
||||||
},
|
},
|
||||||
|
|
|
@ -81,8 +81,8 @@ dependencies:
|
||||||
specifier: ^0.17.3
|
specifier: ^0.17.3
|
||||||
version: 0.17.5
|
version: 0.17.5
|
||||||
uview-plus:
|
uview-plus:
|
||||||
specifier: ^3.1.41
|
specifier: ^3.2.14
|
||||||
version: 3.1.45
|
version: 3.2.14
|
||||||
vue:
|
vue:
|
||||||
specifier: ^3.2.45
|
specifier: ^3.2.45
|
||||||
version: 3.4.19(typescript@4.9.5)
|
version: 3.4.19(typescript@4.9.5)
|
||||||
|
@ -6932,8 +6932,8 @@ packages:
|
||||||
engines: {node: '>= 0.4.0'}
|
engines: {node: '>= 0.4.0'}
|
||||||
dev: true
|
dev: true
|
||||||
|
|
||||||
/uview-plus@3.1.45:
|
/uview-plus@3.2.14:
|
||||||
resolution: {integrity: sha512-JHgLp2heaMciLdGimO/v4tMM8iwb2vTEOk6sXqn5X198AHjM5A/IGzH84GZPvUISFTEJbxGEHiGPxpv2K26AGw==}
|
resolution: {integrity: sha512-OXrEph+VwjishWDF64hfzWJdcKKC+oDob0X4WLReEtC15u3MtTIzXlQsAi+NXZrg07Epk4FkfyPYi8Dkt4JFPA==}
|
||||||
engines: {HBuilderX: ^3.1.0}
|
engines: {HBuilderX: ^3.1.0}
|
||||||
dependencies:
|
dependencies:
|
||||||
clipboard: 2.0.11
|
clipboard: 2.0.11
|
||||||
|
|
|
@ -13,7 +13,11 @@
|
||||||
>
|
>
|
||||||
<view class="time">{{ item.createTime }}</view>
|
<view class="time">{{ item.createTime }}</view>
|
||||||
<text class="tip">{{ getType(item.imagesType) }}过磅</text>
|
<text class="tip">{{ getType(item.imagesType) }}过磅</text>
|
||||||
<image :src="item.url" :mode="'widthFix'" />
|
<image
|
||||||
|
:src="item.url"
|
||||||
|
:mode="'widthFix'"
|
||||||
|
@click="showImage(index)"
|
||||||
|
/>
|
||||||
</view>
|
</view>
|
||||||
</up-col>
|
</up-col>
|
||||||
</up-row>
|
</up-row>
|
||||||
|
@ -37,6 +41,15 @@ const getType = (v: number) => {
|
||||||
return "其他";
|
return "其他";
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
const showImage = ( index:number) => {
|
||||||
|
uni.previewImage({
|
||||||
|
urls: list.value.map((item:any) => item.url), // 图片列表
|
||||||
|
current: index, // 当前显示图片的索引
|
||||||
|
indicator: "default", // 图片指示器样式,默认为圆点
|
||||||
|
loop:true,
|
||||||
|
});
|
||||||
|
};
|
||||||
onLoad((option: any) => {
|
onLoad((option: any) => {
|
||||||
// option.id
|
// option.id
|
||||||
PictureApi.getAnnex({
|
PictureApi.getAnnex({
|
||||||
|
|
Loading…
Reference in New Issue