H5端齐采药项目,uniapp框架
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

117 lines
2.0 KiB

<template>
<view class="qualification_wrapper">
<view class="list_Box">
<view v-for="(item,index) in licenseList" :key="index">
<view class="title_box">
<view class="title_icon">
</view>
<view class="title">
{{item.title }}
</view>
</view>
<view class="imglist">
<image @click="previewMedia(item.image_url)" :src="$util.img(item.image_url)" mode="aspectFit">
</image>
</view>
</view>
</view>
<view style="height:20rpx;">
</view>
</view>
</template>
<script>
export default {
data() {
return {
licenseList: [],
token: uni.getStorageSync('token'),
};
},
onLoad() {
},
onShow() {
if (!this.token) {
this.$util.showToast({
title: '您尚未登录,请先进行登录',
icon: 'none',
});
setTimeout(() => {
this.$util.redirectTo('/pages_tool/login/login');
}, 1000)
} else {
this.$api.sendRequest({
url: '/api/config/getLicenseInfo',
data: {},
success: res => {
console.log(res.data);
this.licenseList = res.data
}
});
}
},
methods: {
previewMedia(url) {
var paths = [];
paths.push(this.$util.img(url));
uni.previewImage({
urls: paths,
});
},
}
};
</script>
<style lang="scss" scoped>
.qualification_wrapper {
width: 100%;
height: 100%;
.list_Box {
margin: 40rpx auto;
width: 100%;
height: 100%;
// box-sizing: border-box;
// background: #ffffff;
// border-radius: 32rpx;
// box-shadow: 0px 0px 10px 0px rgba(102, 102, 102, 0.2);
.title_box {
display: flex;
height: 40rpx;
margin: 20rpx;
.title_icon {
width: 4rpx;
height: 30rpx;
background: #89D961;
line-height: 40rpx;
margin: 5rpx 10rpx;
}
.title {
height: 40rpx;
line-height: 40rpx;
}
}
.imglist {
width: 90vw;
height: 90vw;
margin: 0 auto;
image {
width: 100%;
height: 100%;
}
}
}
}
</style>