chuangte_bike_newxcx/page_fenbao/bangzhu/index.vue

76 lines
1.5 KiB
Vue

<template>
<view class="page">
<u-navbar title="使用帮助" :border-bottom="false" :background="bgc" back-icon-color="#262B37" title-color='#262B37'
title-size='36' height='36' id="navbar">
</u-navbar>
<view class="wzlist">
<view class="itemwz" v-for="(itme,index) in listwz" :key="index" @click="btnitem(itme)">
<view class="lt">
{{itme.title}}
</view>
<u-icon name="arrow-right" color="#3D3D3D" size="28"></u-icon>
</view>
</view>
</view>
</template>
<script>
export default {
data() {
return {
bgc: {
backgroundColor: "#fff",
},
listwz:[]
}
},
onLoad() {
this.getlist()
},
methods: {
// 点击查看详情
btnitem(item){
uni.navigateTo({
url:'/page_fenbao/bangzhu/xq?id=' + item.id
})
},
// 请求使用帮助列表
getlist(){
this.$u.get(`/app/article/list?code=MCH_HELP&appId=${this.$store.state.appid}`).then((res) => {
if(res.code == 200){
this.listwz = res.data
}
})
},
}
}
</script>
<style lang="scss">
page {
background: #F7F7F7;
}
.wzlist{
height: 89vh;
overflow: scroll;
.itemwz{
width: 714rpx;
height: 118rpx;
background: #FFFFFF;
border-radius: 12rpx 12rpx 12rpx 12rpx;
margin: auto;
margin-top: 24rpx;
display: flex;
justify-content: space-between;
align-items: center;
border-radius: 10rpx;
padding: 0 24rpx;
.lt{
font-size: 32rpx;
color: #3D3D3D;
}
}
}
</style>