Code Monkey home page Code Monkey logo

wafer-client-demo's Introduction

腾讯云微信小程序一站式解决方案客户端示例

本示例包含:

  1. 登录接口使用示例
  2. 进行带会话的网络请求示例
  3. WebSocket 信道服务使用示例

注意:所有示例均需要配合解决方案的云资源运行,具体请到腾讯云控制台进行购买和配置。

运行示例

云资源准备好之后,修改 config.js 里面的服务域名:

// 此处主机域名修改成腾讯云解决方案分配的域名
var host = 'yourid.qcloud.la';

修改之后,就可以使用微信开发者工具运行本示例。

源码简介

Demo
├── LICENSE
├── README.md
├── app.js
├── app.json
├── bower.json
├── config.js
├── package.json
├── pages
│   ├── chat
│   │   ├── chat.js
│   │   ├── chat.wxml
│   │   └── chat.wxss
│   └── index
│       ├── index.js
│       ├── index.wxml
│       └── index.wxss
└── vendor
    └── qcloud-weapp-client-sdk/

app.js 是小程序入口文件。

app.json 是小程序的微信配置,其中指定了本示例的两个页面,页面分别在 pages/index/pages/chat/ 目录下。

config.js 是我们小程序自己的业务配置。

vendor/qcloud-weapp-client-sdk客户端 SDK 的一份拷贝。

wafer-client-demo's People

Contributors

techird avatar miusuncle avatar jiraa avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.