
<template>
	<view class="" style="font-size: 0;" @click="toList">
		<image class="bannerImg" mode="aspectFill" :src="img"> </image>
	</view>
</template>

<script>
	export default{
		data(){
			return{
				img:''
			}
		},
		onLoad() {
			this.getList()
		},
		methods:{
			getList() {
				let address = uni.getStorageSync('SYS_ADDRESS_INFO')
				let code = ''
				if(address){
					code = JSON.parse(address).cityId
				}
				this.Post({
						cityId:code
					},
					"/framework/index/getUrl",
					'DES'
				).then((res) => {
					this.img = res.data.imageUrl
				});
			},
			toList(){
				uni.navigateTo({
					url:'/subPackages/equityGoods/list'
				})
			}
		}
	}
</script>

<style lang="scss" scoped>
	.bannerImg{
		width: 100vw;
		height: 100vh;
	}
</style>