找回密码
 立即注册
the地铁路线图subway | PHP编程 2023-01-18 129 0star收藏 版权: . 保留作者信息 . 禁止商业使用 . 禁止修改作品
测试过程中,站内不显示数据。

小程序介绍:
地铁路线图小程序源码是一张包含北京、上海、广州、郑州、山东、杭州等全G近50个城市的地铁路线图。涵盖了这些城市的所有线路图,如地铁一号线、二号线,帮助用户更快、更方便地了解和体验城市的交通,查询用户的地铁线路图和地铁站位置。 39;s当前城市一目了然。

配置步骤:
下载小程序源码后,通过微信开发者工具导入源码。这里需要注意的是,小程序的模板是在src文件夹下的。导入源码的时候记得选择这个文件夹。本项目为云端开发,无需域名和服务器即可搭建。

小程序的页面标题在app.json文件中,打开找到pages\index\index.json路径下第13行修改。

这个项目已经覆盖了所有开通地铁的城市。如果只想发布其中的一部分,可以打开data/city.js,删除其余不想添加的城市。

{ key: "bj", lat: 39.908065, lng: 116.411502, name: "Beijing", english: "Beijing", pinyin: "beijing", py: "bj", other: "" }

如果想换成自己的城市地铁标志,可以在images\logo\logo_bj.png文件夹中更改。

配置地铁地图的URL:考虑到更新地铁地图的方便,本项目将所有的路线图放在服务器上。用户选择城市后,图像将从服务器下载并缓存。 (缓存时间为10分钟),需要修改地铁地图源代码中的网址为自己的网址。打开data\city.js,修改metroMapUrl为你自己的URL。

地图路线图图片存放地址如下:https://metroman.cn/mp/metromap/routemap_bj_cn.png

配置完以上内容后,就可以直接上传点评小程序并发布了。记得在微信公众平台添加合法域名。

(During the test, no data is displayed on the site.

Small program introduction:
The source code of the subway route map applet is a subway route map including Beijing, Shanghai, Guangzhou, Zhengzhou, Shandong, Hangzhou and other nearly 50 cities across the country. Covers all the line maps of these cities, such as Metro Line 1 and Line 2, to help users understand and experience the city's traffic faster and more conveniently, and query the user's subway line map and subway station location. 39;s current city at a glance.

Configuration steps:
After downloading the source code of the applet, import the source code through the WeChat developer tool. It should be noted here that the template of the applet is in the src folder. Remember to select this folder when importing source code. This project is developed on the cloud and can be built without a domain name or server.

The page title of the applet is in the app.json file, open and find the 13th line under the path of pages\index\index.json and modify it.

This project has covered all cities with subways. If you only want to publish part of them, you can open data/city.js and delete the rest of the cities you don't want to add.

{ key: "bj", lat: 39.908065, lng: 116.411502, name: "Beijing", english: "Beijing", pinyin: "beijing", py: "bj", other: "" }

If you want to change it to your own city subway logo, you can change it in the images\logo\logo_bj.png folder.

Configure the URL of the subway map: Considering the convenience of updating the subway map, this project puts all the route maps on the server. After the user selects a city, the images are downloaded from the server and cached. (The cache time is 10 minutes), you need to modify the URL in the source code of the subway map to your own URL. Open data\city.js and modify metroMapUrl to your own URL.

The image storage address of the map route map is as follows: https://metroman.cn/mp/metromap/routemap_bj_cn.png

After configuring the above content, you can directly upload the review applet and publish it. Remember to add a legal domain name on the WeChat public platform.)

[下载]15003396980.rar


150032rk4y6rff6wbyo1f1.jpg
150032piaz8r8u88y8ea8w.jpg


上一篇:抖音取图表情包小程序源码+创作者入驻+流量主
下一篇:Uniapp壁纸在线分享下载微信+抖音双端即时图片抓取小程序