Giter Club home page Giter Club logo

Comments (6)

nslogx avatar nslogx commented on July 16, 2024

配置的页面路径是什么

from gitter.

LiarrDev avatar LiarrDev commented on July 16, 2024

配置的页面路径是什么

根据微信的提示,到小程序内复制的页面路径,比如获取 Gitter 的路径:

pages/repo/repo.html?url=https%3A%2F%2Fapi.github.com%2Frepos%2Fhuangjianke%2FGitter&__key_=15703672762713

from gitter.

nslogx avatar nslogx commented on July 16, 2024

from gitter.

LiarrDev avatar LiarrDev commented on July 16, 2024

路径参数不传,或者传 pages/index/index 试试 huang jianke 邮箱:[email protected] 在2019年10月06日 21:14,Liarr 写道: 配置的页面路径是什么 根据微信的提示,到小程序内复制的页面路径,比如获取 Gitter 的路径: pages/repo/repo.html?url=https%3A%2F%2Fapi.github.com%2Frepos%2Fhuangjianke%2FGitter&_key=15703672762713 —You are receiving this because you commented.Reply to this email directly, view it on GitHub, or mute the thread. [ { "@context": "http://schema.org", "@type": "EmailMessage", "potentialAction": { "@type": "ViewAction", "target": "#52?email_source=notifications\u0026email_token=ACCKFZZOUEQ5I7CUSJ3Q4V3QNHQEHA5CNFSM4I53RLRKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEAOJ2JY#issuecomment-538746151", "url": "#52?email_source=notifications\u0026email_token=ACCKFZZOUEQ5I7CUSJ3Q4V3QNHQEHA5CNFSM4I53RLRKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEAOJ2JY#issuecomment-538746151", "name": "View Issue" }, "description": "View this Issue on GitHub", "publisher": { "@type": "Organization", "name": "GitHub", "url": "https://github.com" } } ]

pages/index/index 是小程序主页的路径,我想插入具体某个 repo 的路径,让用户点击后可以打开小程序,并跳转到对应的 repo 中

from gitter.

nslogx avatar nslogx commented on July 16, 2024

用这种格式:
/pages/repo/repo?url=https://api.github.com/repos/huangjianke/Gitter
这部分是固定的:
/pages/repo/repo?url=https://api.github.com/repos/

https://api.github.com/repos/huangjianke/Gitter 这部分 encodeURI

from gitter.

LiarrDev avatar LiarrDev commented on July 16, 2024

用这种格式:
/pages/repo/repo?url=https://api.github.com/repos/huangjianke/Gitter
这部分是固定的:
/pages/repo/repo?url=https://api.github.com/repos/

https://api.github.com/repos/huangjianke/Gitter 这部分 encodeURI

用你提供的格式可以正常打开,之前配置的路径应该是微信生成 URL 时没有生成正确的路径

from gitter.

Related Issues (20)

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.