GithubHelp home page GithubHelp logo

thunf / wepy-demo-bookmall Goto Github PK

View Code? Open in Web Editor NEW
285.0 19.0 108.0 15.53 MB

Demo codes for 🐼📖 which used in a very early version.

License: GNU General Public License v3.0

JavaScript 73.19% CSS 26.81%
wepy demo

wepy-demo-bookmall's Issues

后端程序

你好,请问后端程序可以共享吗,或者说我如何才可以获取

less编译问题

你好,我最近在学习小程序的时候,想用wepy+weui来做的。然后copy了您的代码中的styles目录,并且按照app.wpy中的方式来引用。
<style lang="less"> @import "./styles/weui/index.less"; @import "./styles/custom/index.less"; </style>
然后就出现了一个报错,提示找不到 @weuiColorPrimary、@uiColorRed 等几个颜色。我使用的是vs Code 这个工具。期待您的回复!

npm run build 失败

{ Error: Cannot find module 'less'
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:581:15)
at Function.Module._load (internal/modules/cjs/loader.js:507:25)
at Module.require (internal/modules/cjs/loader.js:637:17)
at require (internal/modules/cjs/helpers.js:22:18)
at Object. (/Users/qiuyaofan/Documents/lianxi/weixin/wepy-demo-bookmall/node_modules/wepy-compiler-less/lib/index.js:20:13)
at Module._compile (internal/modules/cjs/loader.js:689:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:700:10)
at Module.load (internal/modules/cjs/loader.js:599:32)
at tryModuleLoad (internal/modules/cjs/loader.js:538:12)
at Function.Module._load (internal/modules/cjs/loader.js:530:3)
at Module.require (internal/modules/cjs/loader.js:637:17)
at require (internal/modules/cjs/helpers.js:22:18)
at Object.load (/usr/local/lib/node_modules/wepy-cli/lib/loader.js:113:17)
at Object.loadCompiler (/usr/local/lib/node_modules/wepy-cli/lib/loader.js:69:29)
at /usr/local/lib/node_modules/wepy-cli/lib/compile-style.js:91:45
at Array.forEach () code: 'MODULE_NOT_FOUND' }
[WARNING] 找不到编译器:wepy-compiler-less。
[Error] 未发现相关 less 编译器配置,请检查wepy.config.js文件。

在首页的搜索这里有点BUG

首页搜索栏,点击后可以输入信息,但是无法收起。
优化过后的代码:

<input type="text" class="weui-search-bar__input" placeholder="{{placeholder}}" value="{{inputVal}}" focus="{{inputShowed}}" @blur="hideInput" @input="inputTyping" confirm-type="search" @confirm="search"/>

失去焦点的时候调方法 hideInput ,把 inputShowed 设置为fase。为了交互体验可以把键盘右下角的完成建换成 搜索,通过confirm时间去让用户点击键盘上的搜索按钮去操作

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.