• This project
    • Loading...
  • Sign in

fe / yohobuywap-node · Files

Go to a project

GitLab

  • Go to group
  • Project
  • Activity
  • Files
  • Commits
  • Pipelines 0
  • Builds 0
  • Graphs
  • Milestones
  • Issues 0
  • Merge Requests 0
  • Members
  • Labels
  • Wiki
  • Forks
  • Network
  • Create a new issue
  • yohobuywap-node
  • doraemon
  • models
  • about.js
  • 传参优化
    ba6be9a7
    by lijing
    2017-04-10 11:53:58 +0800  
    Browse Directory »
about.js 516 Bytes
Raw Blame History Permalink
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
'use strict';

const api = global.yoho.API;

const about = (isApp) => {
    return api.get('', {
        method: 'app.document.config'
    }, {
        code: 200
    }).then(result => {
        if (result && result.data) {
            result = {
                wxTitle: result.data.wechatAtten,
                wxTip: result.data.wechatAttenSub,
                wxCopy: result.data.wechatCopy,
                isApp: isApp
            };
        }
        return result;
    });
};

module.exports = {
    about
};