| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111 |
- <template>
- <view class="list-box">
- <view class="list-content" v-for="item in helpList" :key='item.id' @click="goHelpDetail(item.content)">
- <text class="margin-left5">{{item.title}}</text>
- <view class="apply-box">
- <text style="color: #999;visibility: hidden;">点击申请</text>
- <image src="/static/arrow-right2.png" mode=""></image>
- </view>
- </view>
-
-
- </view>
- </template>
- <script>
- var md5 = require('../../../common/md5.js')
- export default {
- data() {
- return {
- helpList:[
- {
- id:1,
- question:'如何分销?'
- },
- {
- id:2,
- question:'如何通过分销获得奖励?'
- },
- {
- id:3,
- question:'分销奖励能提现吗?'
- },
- {
- id:4,
- question:'如何提现?'
- },
- {
- id:5,
- question:'奖励什么时候到账?'
- },
- ]
- }
- },
- onLoad() {
- this.getHelpList();
- },
- methods: {
- goHelpDetail(content){
- uni.navigateTo({
- url: '/pages/selfCenter/helpPage/helpDetail/index?qId='+content,
- success: res => {},
- fail: () => {},
- complete: () => {}
- });
- },
- getHelpList(){
- let that = this;
- uni.request({
- url: getApp().globalData.shareUrl, //需要设置为全局
- method: 'POST',
- header: {
- 'content-type': 'application/x-www-form-urlencoded'
- },
- data: {
- method: 'getHelpList',
- timestamp: getApp().globalData.globalTimestamp, //Date.now()
- page: '',
- pageSize:'',
- sign: md5('getHelpList' + getApp().globalData.globalTimestamp)
- },
- success: res => {
- if (res.data.code === 200) {
- console.log(res.data.msg)
- that.helpList = res.data.msg
- }
- }
- });
- }
- }
- }
- </script>
- <style>
- .list-box {
- width: 100%;
- font-size: 30rpx;
- }
-
- .list-content {
- background: #fff;
- display: flex;
- justify-content: space-between;
- align-items: center;
- height: 100rpx;
- border-bottom: 1px solid #dbdbdb;
- }
- .apply-box {
- display: flex;
- align-items: center;
- width: 180rpx;
- }
- .apply-box image {
- width: 50rpx;
- height: 50rpx;
- margin-right: 5%;
- }
- .margin-left5 {
- margin-left: 5%;
- }
- </style>
|