import * as API from '@/apis/my.js' export default { data() { return { noback:false, itemStyle: { }, headStyle: { marginLeft: '20px', marginBottom:'10px', paddingRight:'15px', paddingBottom:'20px', borderBottom:'1px solid #eee', }, bodyStyle: { marginLeft: '25px', }, id:"", itemList: [{ titleName: "上车如何购票", desc: "帮助说明内容……", },{ titleName: "下车注意事项", desc: "帮助说明内容……", },{ titleName: "如何查询车辆位置", desc: "帮助说明内容……", },{ titleName: "如何查询站点信息", desc: "帮助说明内容……", },{ titleName: "如何设置提醒", desc: "帮助说明内容……", },{ titleName: "纸质车票、现金购票应该怎么操作", desc: "帮助说明内容……", },{ titleName: "坐过站了怎么办", desc: "帮助说明内容……", },{ titleName: "如何退票", desc: "帮助说明内容……", },{ titleName: "如何为他人购票", desc: "帮助说明内容……", },], } }, methods: { helpCenterList(){ this.$refs.common.showLoading(); API.helpCenterList().then((res) => { this.itemList=res.data this.$refs.common.showLoading(false); this.$nextTick(()=>{ this.$refs.collapseView.init(); }) }).catch(error => { this.$refs.common.showLoading(false,error); }) } },onLoad(op){ this.id=op.id; if(op.back){ this.noback=op.back; } this.itemList=[] },onReady() { this.helpCenterList(); } }