第一次提交
This commit is contained in:
19
ChargingStation/pages/guide/index.scss
Normal file
19
ChargingStation/pages/guide/index.scss
Normal file
@@ -0,0 +1,19 @@
|
||||
.guide_body {
|
||||
width: 100vw;
|
||||
height: 100vh;
|
||||
padding: 38rpx ;
|
||||
box-sizing: border-box;
|
||||
.guide_item {
|
||||
width: 100%;
|
||||
font-size: 30rpx;
|
||||
color: #000000;
|
||||
margin-bottom: 80rpx;
|
||||
.guide_item_title{
|
||||
margin-bottom: 30rpx;
|
||||
}
|
||||
.guide_item_img {
|
||||
width: 100%;
|
||||
border-radius: 10rpx;
|
||||
}
|
||||
}
|
||||
}
|
||||
35
ChargingStation/pages/guide/index.vue
Normal file
35
ChargingStation/pages/guide/index.vue
Normal file
@@ -0,0 +1,35 @@
|
||||
<template>
|
||||
<view class="guide_body">
|
||||
<view v-for="(item,index) in guideList " :key="index" class="guide_item">
|
||||
<view class="guide_item_title">{{item.info}}</view>
|
||||
<image mode="widthFix" :src="imgs" v-for=" (imgs,imgsIndex) in item.imgs " :key="imgsIndex" class="guide_item_img"></image>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
guideList:null
|
||||
}
|
||||
},
|
||||
onLoad(e) {
|
||||
if(e.guideList){
|
||||
this.init(e)
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
init(e){
|
||||
this.guideList = this.difData(e);
|
||||
},
|
||||
difData(e){
|
||||
return JSON.parse(decodeURIComponent(e.guideList))
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
@import 'index.scss';
|
||||
</style>
|
||||
Reference in New Issue
Block a user