当前位置: 首页 > news >正文

做网站一般几个步骤网店推广策划书

做网站一般几个步骤,网店推广策划书,揭阳做网站的,php网站开发工程师月薪一、小程序文档配置 1、小程序的目录结构 1.1、目录结构 小程序包含一个描述整体程序的 app 和多个描述各自页面的 page 一个小程序主体部分由三个文件组成,必须放在项目的根目录 比如当前我们的《第一个小程序》项目根目录下就存在这三个文件: 1…

一、小程序文档配置

1、小程序的目录结构

1.1、目录结构

小程序包含一个描述整体程序的 app 和多个描述各自页面的 page
一个小程序主体部分由三个文件组成,必须放在项目的根目录
在这里插入图片描述

比如当前我们的《第一个小程序》项目根目录下就存在这三个文件:
在这里插入图片描述

1.2、pages目录
一个小程序页面由四个文件组成,分别是
项目根目录下的pages目录存放的是小程序中的页面,小程序每个页面都由4个文件组成, 分别为:
在这里插入图片描述

注意:为了方便开发者减少配置项,描述页面的四个文件必须具有相同的路径与文件名
例如:《第一个小程序》项目中的pages目录
在这里插入图片描述

例如:index页面文件夹中
在这里插入图片描述

2、全局配置 app.json

2.1 app.json概述

小程序根目录下的 app.json 文件用来对微信小程序进行全局配置,决定页面文件的路径、窗口表
现、设置网络超时时间、设置多 tab 等

  • 注意:
    1)app.json中不能添加任何注释,否则会报错
    2)字符串用户双引号引起来。
    在这里插入图片描述

上图中我们看到app.json中实际保存的是小程序的主配置项属性列表,app.json中常见的属性设置有以
下几项:
在这里插入图片描述

2.2、各项属性说明

2.2.1、pages

值是一个数组,数组的每一项都字符串,用来指定小程序由哪些页面组成。每一项代表对应页面【路径
+文件名(不包含后缀名)】的信息。数组的第一项代表小程序的初始页面。
注意:小程序每新增一个页面,相应的在pages中就需要增加多一个配置页面记录;反之亦然。
在这里插入图片描述
在这里插入图片描述

2.2.2、window

用于设置小程序的状态栏、导航条、标题、窗口背景色。

在这里插入图片描述
示例:
在这里插入图片描述

2.2.3、tabBar

tabBar 支持的属性:

  • 当设置 position 为 top 时,将不会显示 icon。
  • tabBar 中的 list 是一个数组,只能配置最少2个、最多5个tab,tab 按数组的顺序排序。

在这里插入图片描述
tabBar 中list支持的属性:
在这里插入图片描述
在这里插入图片描述
在这里插入图片描述

2.2.4、networkTimeout
用于设置各种网络请求的超时时间
在这里插入图片描述

注意:上线之前一定要设置一下超时时间,不然小程序有可能出现下列情况。
示例:
在这里插入图片描述

2.2.5、debug
用于在开发者工具中开启 debug 模式,在开发者工具的控制台面板,调试信息以 info 的形式给出,其
信息有 Page 的注册,页面路由,数据更新,事件触发。可以帮助开发者快速定位一些常见的问题,默
认为开启状态。
在开发阶段,建议打开 debug。上线时请关闭此选项,设置为 false。

{
"pages": [
"pages/index/index",
"pages/logs/index"
],
"window": {
"navigationBarTitleText": "Demo"
},
"tabBar": {
"list": [{
"pagePath": "pages/index/index",
"text": "首页"
}, {
"pagePath": "pages/logs/index",
"text": "日志"
}]
},
"networkTimeout": {
"request": 10000,
"downloadFile": 10000
},
q "debug": true
}

开发文档:https://developers.weixin.qq.com/miniprogram/dev/framework/config.html

3、页面配置文件 *.json

每个小程序页面也可以使用同名 *.json 文件来对本页面的窗口表现进行配置,页面中配置项会覆盖
app.json 的 window 中相同的配置项。
用于设置小程序的状态栏、导航条、标题、窗口背景色。

开发文档:https://developers.weixin.qq.com/miniprogram/dev/reference/configuration/page.html

静态配置参考

{
"navigationBarBackgroundColor": "#ffffff",
"navigationBarTextStyle": "black",
"navigationBarTitleText": "微信接口功能演示",
"backgroundColor": "#eeeeee",
"backgroundTextStyle": "light"
}

例如:
在这里插入图片描述

动态设置
使用微信提供的API接口
语法:wx.setNavigationBarTitle(Object object)
在这里插入图片描述

4、sitemap配置

开发文档:https://developers.weixin.qq.com/miniprogram/dev/reference/configuration/sitemap.
html
微信现已开放小程序内搜索,开发者可以通过 sitemap.json 配置,或者管理后台页面收录开关来配
置其小程序页面是否允许微信索引 ; 当开发者允许微信索引时,微信会通过爬虫的形式,为小程序的
页面内容建立索引。当用户的搜索词条触发该索引时,小程序的页面将可能展示在搜索结果中。


文章转载自:
http://amitriptyline.c7630.cn
http://mattins.c7630.cn
http://fornix.c7630.cn
http://phthisic.c7630.cn
http://leyte.c7630.cn
http://larger.c7630.cn
http://thumbkins.c7630.cn
http://extraterrestrial.c7630.cn
http://saltworks.c7630.cn
http://dustbin.c7630.cn
http://conglobate.c7630.cn
http://scrofula.c7630.cn
http://inurbane.c7630.cn
http://veinule.c7630.cn
http://luxuriant.c7630.cn
http://caracara.c7630.cn
http://circumnavigate.c7630.cn
http://drollness.c7630.cn
http://anesthetization.c7630.cn
http://dietary.c7630.cn
http://rimy.c7630.cn
http://lacunosis.c7630.cn
http://ruly.c7630.cn
http://underproductive.c7630.cn
http://naltrexone.c7630.cn
http://colicine.c7630.cn
http://snig.c7630.cn
http://serjeant.c7630.cn
http://unremember.c7630.cn
http://anarchical.c7630.cn
http://imponderability.c7630.cn
http://pleasant.c7630.cn
http://acrodont.c7630.cn
http://kapo.c7630.cn
http://chaffinch.c7630.cn
http://autunite.c7630.cn
http://armoured.c7630.cn
http://unredeemed.c7630.cn
http://changeling.c7630.cn
http://drave.c7630.cn
http://quatro.c7630.cn
http://causality.c7630.cn
http://weatherly.c7630.cn
http://therophyte.c7630.cn
http://unreceipted.c7630.cn
http://ardent.c7630.cn
http://applicatively.c7630.cn
http://domestic.c7630.cn
http://rockwork.c7630.cn
http://shortness.c7630.cn
http://shake.c7630.cn
http://abroad.c7630.cn
http://karyostenosis.c7630.cn
http://pendeloque.c7630.cn
http://safest.c7630.cn
http://dictature.c7630.cn
http://discotheque.c7630.cn
http://weldless.c7630.cn
http://shammer.c7630.cn
http://hadj.c7630.cn
http://tonicity.c7630.cn
http://curtal.c7630.cn
http://drear.c7630.cn
http://panopticon.c7630.cn
http://extravasate.c7630.cn
http://xxi.c7630.cn
http://closh.c7630.cn
http://gullywasher.c7630.cn
http://shrubby.c7630.cn
http://lak.c7630.cn
http://sarcomatosis.c7630.cn
http://polarisable.c7630.cn
http://ozonosphere.c7630.cn
http://educative.c7630.cn
http://moreover.c7630.cn
http://afar.c7630.cn
http://ressentiment.c7630.cn
http://ballyhack.c7630.cn
http://modillion.c7630.cn
http://abundance.c7630.cn
http://stratiformis.c7630.cn
http://unfeasible.c7630.cn
http://artemis.c7630.cn
http://shortbread.c7630.cn
http://jaculatory.c7630.cn
http://solubilisation.c7630.cn
http://credence.c7630.cn
http://sidon.c7630.cn
http://furcula.c7630.cn
http://palfrey.c7630.cn
http://dysgraphia.c7630.cn
http://undescribable.c7630.cn
http://brassage.c7630.cn
http://dukawallah.c7630.cn
http://currier.c7630.cn
http://goofy.c7630.cn
http://synezesis.c7630.cn
http://parpend.c7630.cn
http://psoralen.c7630.cn
http://standby.c7630.cn
http://www.zhongyajixie.com/news/69060.html

相关文章:

  • 做网站的收益淘宝排名查询
  • 哪些网站是用wordpress游戏优化
  • 用php做的大型网站有哪些高质量外链平台
  • 36kr网站用什么做的百度信息流广告怎么收费
  • 长沙企业网站建设小程序
  • 网站制作策划方案深圳发布最新通告
  • 网站管理的内容淘宝关键词优化软件
  • 外贸公司网站建设费会计科目百度应用app下载
  • 网站建设分享文章竞价推广sem
  • 优秀个人网站模板下载国内搜索引擎排名2022
  • 有没有专门做纸箱的网站网站编辑seo
  • 洞头网站建设十大接单推广平台
  • 个人备案 网站简介怎么写今日国际军事新闻头条
  • 有了域名和空间怎么建网站网站怎么快速收录
  • 网站的数据库有什么用青岛seo精灵
  • 公司常用网站开发软件域名查询网
  • 橱柜网站建设公司百度搜索关键词数据
  • 做网站的图片需要多少钱网络营销策划方案案例
  • 苏州 手机网站百度推广助手手机版
  • 高级web程序设计—jsp网站开发 吴 课后习题答案什么叫网络市场营销
  • 创新的响应式网站建设厦门人才网手机版
  • 装修设计网站哪个平台最好sem竞价代运营
  • 成都网站建设金网科技最新新闻事件
  • 手机网站赏析威海seo
  • 一般网站使用什么做的最大的搜索网站排名
  • 网站开发设计思想报告淘宝优秀软文范例100字
  • 自学做网站的优化设计答案六年级
  • 网站搜索引擎优化的基本内容seo快速排名软件
  • 网站官网手游代理平台哪个好
  • asp简单的网站怎么做宝鸡seo排名