Code Monkey home page Code Monkey logo

pdd-coupon's Introduction

pdd-coupon

券多省钱通 —— 拼多多领券小程序(多多金宝)

小程序码

截图

使用方法

该小程序使用微信原生+云函数开发。

  • 申请多多进宝应用,不做详细叙述,申请地址:https://jinbao.pinduoduo.com/https://open.pinduoduo.com/
  • 在微信开发者工具中导入项目wechat-xcx文件夹,并开启云开发。
  • 修改env.js的配置。
  • 修改functions\pquery\pdd\utils.js里拼多多相关的配置参数。上传云函数。

其他问题

{"rp_promotion_url_generate_response":{"url_list":[{"mobile_url":"xxxxx","url":"xxxx"}],"request_id":"xxx"}}

登录上述的url,用你的账号授权一次。用该接口https://jinbao.pinduoduo.com/third-party/api-detail?apiName=pdd.ddk.member.authority.query查询下是否备案成功,成功后就没权限问题。

已上线案例:

如有疑问,请提issue或微信联系:sgxiang(无编程经验者勿扰或付费咨询。有编程经验值请先查阅云开发相关的文章以及上面的其他问题,如果还有疑问再咨询。)

pdd-coupon's People

Contributors

sgxiang 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

pdd-coupon's Issues

微信云函数配置wxCloudEnv怎么获取

文件 functions/pquery/index.js 在 project.config.json 'cloudfunctionRoot' 指定的目录, 如果不希望在小程序/小游戏的运行环境中执行该文件,请使用 project.config.json "miniprogramRoot" 组织项目目录结构
查看文档
"https://developers.weixin.qq.com/miniprogram/dev/devtools/projectconfig.html"
文件 functions/pquery/pdd/utils.js 在 project.config.json 'cloudfunctionRoot' 指定的目录, 如果不希望在小程序/小游戏的运行环境中执行该文件,请使用 project.config.json "miniprogramRoot" 组织项目目录结构
查看文档
"https://developers.weixin.qq.com/miniprogram/dev/devtools/projectconfig.html"
appservice?t=1608286030821:1524 app.js:
Error: module "env.js" is not defined
at require (VM22 WAService.js:2)
at VM22 WAService.js:2
at app.js? [sm]:3
at wrapFn (appservice?t=1608286030821:1517)
at require (VM22 WAService.js:2)
at :3:7
at doWhenAllScriptLoaded (appservice?t=1608286030821:1662)
at HTMLScriptElement.scriptLoaded (appservice?t=1608286030821:1682)
at HTMLScriptElement.script.onload (appservice?t=1608286030821:1690)
wrapFn @ appservice?t=1608286030821:1524
require @ VM22 WAService.js:2
(anonymous) @ VM40:3
doWhenAllScriptLoaded @ appservice?t=1608286030821:1662
scriptLoaded @ appservice?t=1608286030821:1682
script.onload @ appservice?t=1608286030821:1690
VM22 WAService.js:2 MiniProgramError
module "env.js" is not defined
Error: module "env.js" is not defined
at require (http://127.0.0.1:43135/appservice/__dev__/WAService.js:2:3253765)
at http://127.0.0.1:43135/appservice/__dev__/WAService.js:2:3253161
at http://127.0.0.1:43135/appservice/app.js:4:12
at wrapFn (http://127.0.0.1:43135/appservice/appservice?t=1608286030821:1517:12)
at require (http://127.0.0.1:43135/appservice/__dev__/WAService.js:2:3253998)
at :3:7
at doWhenAllScriptLoaded (http://127.0.0.1:43135/appservice/appservice?t=1608286030821:1662:21)
at HTMLScriptElement.scriptLoaded (http://127.0.0.1:43135/appservice/appservice?t=1608286030821:1682:5)
at HTMLScriptElement.script.onload (http://127.0.0.1:43135/appservice/appservice?t=1608286030821:1690:20)
errorReport @ VM22 WAService.js:2
thirdErrorReport @ VM22 WAService.js:2
(anonymous) @ VM22 WAService.js:2
u @ VM22 WAService.js:2
n @ VM22 WAService.js:2
(anonymous) @ VM22 WAService.js:2
value @ VM22 WAService.js:2
(anonymous) @ VM22 WAService.js:2
doWhenAllScriptLoaded @ appservice?t=1608286030821:1662
scriptLoaded @ appservice?t=1608286030821:1682
script.onload @ appservice?t=1608286030821:1690
[sitemap 索引情况提示] 根据 sitemap 的规则[0],当前页面 [pages/index/index] 将被索引
[ appservice 生成错误] env.js: file: env.js
env.js: Unexpected token (9:2)
7 | path: "/pages/index/index",
8 | },

9 | ],
| ^
10 | // 拼多多appid
11 | pddAppId: "wx32540bd863b27570",
12 | // 首页子分类进去的详情页顶部banner图片地址
VM22 WAService.js:2 Page "pages/index/index" has not been registered yet.

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.