Git Product home page Git Product logo

wxtodo-client's Introduction

wxtodo-client

这是结合腾讯云开发小程序的Client端代码.

分为两个分支:master 和 online。

master分支时一款本地离线运行的todo应用,而online分支时在线版的Client端代码,需结合小程序服务端代码的master分支使用。

目录结构:

小程序项目
|-- wxtodo-client(online分支)
|-- wxtodo-server(master分支)
|-- project.config.json

project.config.json配置为:

{
	"client": "./wxtodo-client",
	"qcloudRoot": "./wxtodo-server",
	"setting": {
		"urlCheck": true,
		"es6": false,
		"postcss": true,
		"minified": true,
		"newFeature": true
	},
	"appid": "your appid",
	"projectname": "you project name",
	"condition": {}
}

wxtodo-client's People

Contributors

zhongkai avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

wxtodo-client's Issues

找不到express.js

VM1008:1 thirdScriptError
sdk uncaught third Error
module "express.js" is not defined
Error: module "express.js" is not defined
at require (http://127.0.0.1:51489/appservice/__dev__/WAService.js:18:16147)
at http://127.0.0.1:51489/appservice/__dev__/WAService.js:18:16002
at http://127.0.0.1:51489/appservice/app.js:1:253
at require (http://127.0.0.1:51489/appservice/__dev__/WAService.js:18:16253)
at http://127.0.0.1:51489/appservice/appservice:1102:9
console.error @ VM1008:1
(anonymous) @ WAService.js:4
(anonymous) @ WAService.js:4
a @ appservice:1092
window.onerror @ VM1008:1
index.js:14 loading index...
VM1008:1 thirdScriptError
Cannot read property 'checkLogin' of undefined;at "pages/index/index" page lifeCycleMethod onLoad function
TypeError: Cannot read property 'checkLogin' of undefined
at r.onLoad (http://127.0.0.1:51489/appservice/pages/index/index.js:17:13)
at r. (http://127.0.0.1:51489/appservice/__dev__/WAService.js:18:1832)
at B (http://127.0.0.1:51489/appservice/__dev__/WAService.js:17:11901)
at H (http://127.0.0.1:51489/appservice/__dev__/WAService.js:17:13820)
at G (http://127.0.0.1:51489/appservice/__dev__/WAService.js:17:14086)
at Function. (http://127.0.0.1:51489/appservice/__dev__/WAService.js:17:16550)
at http://127.0.0.1:51489/appservice/__dev__/WAService.js:17:22296
at http://127.0.0.1:51489/appservice/__dev__/WAService.js:5:21555
at Array.forEach ()
at Function. (http://127.0.0.1:51489/appservice/__dev__/WAService.js:5:21535)

App.js的onLaunch第一个if为什么要取反name和avatar

`App({
onLaunch: function() {

var name = wx.getStorageSync('name');
var avatar = wx.getStorageSync('avatar');

if (!name || !avatar) {
  wx.getUserInfo({
    success: function (res) {
      var userInfo = res.userInfo;
      wx.setStorageSync('name', userInfo.nickName);
      wx.setStorageSync('avatar', userInfo.avatarUrl);
    }
  });
}

},
writeHistory: function (todo, action, timestamp) {
var history = wx.getStorageSync('history') || [];
history.push({
todo: todo ? {
content: todo.content || '',
tags: todo.tags || [],
extra: todo.extra || ''
} : null,
action: action,
timestamp: timestamp
});
wx.setStorageSync('history', history);
}
})`

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.