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

武汉做网站及logo的公司西安排名seo公司

武汉做网站及logo的公司,西安排名seo公司,廊坊网站建设-纵横网络+网站,网上签到做任务赚钱的网站底部导航栏 (tabBar) 图标的正确做法: 1、图片的标准尺寸为 81px * 81px,该尺寸在官方的文档中有明确的说明,可以参考微信小程序全局配置文档中对 iconPath 属性的说明。 2、为了保持良好的间距,图片的内容区域设置 60px* 比较好&…

底部导航栏 (tabBar) 图标的正确做法:
1、图片的标准尺寸为 81px * 81px,该尺寸在官方的文档中有明确的说明,可以参考微信小程序全局配置文档中对 iconPath 属性的说明。
2、为了保持良好的间距,图片的内容区域设置 60px* 比较好,给4个方向各留10px的边距。
————————————————————————————
image 图片组件
1、show-menu-by-longpress=“true” 开启长按图片显示识别小程序码菜单
<image src=“” show-menu-by-longpress=“true” mode=“widthFix”>
2、css样式太多的情况,使用 image 可能导致样式生效较慢,出现 “闪一下” 的情况,
此时设置 image{will-change: transform},可优化此问题。
————————————————————————————
关于小程序隐私保护指引设置
1、在项目根目录中找到 manifest.json 文件,找到 mp-weixin 节点,在节点后面加上配置:
“_usePrivacyCheck_” : true, //隐私保护协议
2、使用地理位置相关接口,除需完成接口权限开通外,还需在 app.json(或ext.json)配置
“requiredPrivateInfos” : [ “getLocation”, “chooseLocation” ]
3、使用获取用户收货地址,除需完成接口权限开通外,隐私协议需要选中“地址”
“requiredPrivateInfos” : [ “getLocation”, “chooseAddress” ]

"usingComponents" : true,
//开启分包优化"optimization" : {"subPackages" : true},//隐私保护"__usePrivacyCheck__" : true,//懒加载优化"lazyCodeLoading" : "requiredComponents",//位置接口描述(不可超过30个字)"permission" : {"scope.userLocation" : {"desc" : "将获取你的具体位置信息,用于向您推荐、展示您附近门店的信息"}},"requiredPrivateInfos" : [ "getLocation", "choosePoi", "chooseAddress", "chooseLocation" ]

判断小程序是否授权位置接口

mounted:function(){// #ifdef MP-WEIXINuni.getSetting({success: res => {if (res.authSetting['scope.userLocation']) {this.isLocation = true;console.log('已授权userLocation')} else {this.isLocation = false;console.log('用户未授权userLocation')}}})// #endifthis.getLocation();
},
methods:{// 打开定位设置openSetting() {let that=this;uni.openSetting({success: (res) => {if (res.authSetting['scope.userLocation']) {// 5.用户在设置中点击了允许,调用选择位置信息函数that.isLocation = true;that.getLocationInfo(function(){that.getAddressName(); //获取详细地址}); //获取地理位置} else {that.isLocation = false;}},fail: (err) => {console.log("打开设置失败", err)}})},
}

配置小程序

在这里插入图片描述
在这里插入图片描述
在这里插入图片描述

《小程序隐私保护指引》
开发者处理的信息
根据法律规定,开发者仅处理实现小程序功能所必要的信息。

为了分辨用户,开发者将在获取你的明示同意后,收集你的微信昵称、头像。
为了显示距离、获取经纬度,开发者将在获取你的明示同意后,收集你的位置信息。
为了上传图片,开发者将在获取你的明示同意后,访问你的摄像头。
为了登录或者注册,开发者将在获取你的明示同意后,收集你的手机号。
为了保存图片或者上传图片,开发者将在获取你的明示同意后,使用你的相册(仅写入)权限。
开发者收集你选中的照片或视频信息,用于提前上传减少上传时间
开发者获取你选择的位置信息,用于线下导航服务
开发者读取你的剪切板,用于复制文本等相关信息
开发者 收集你的地址,用于下单时减少收货地址的填写

小程序分享 pages/index/index

onLoad(event) {if(event.referid||event.scene){uni.setStorageSync('referid', event.referid||event.scene);}
},
// 小程序中用户点击分享后,设置该页面的分享信息
onShareAppMessage(res) {return {title: this.web_site_title||'小程序名称',path: `/pages/index/index?referid=${this.my_uids}`,imageUrl: ''}
},
// 分享朋友圈
onShareTimeline(res) {return {title: this.web_site_title||'小程序名称',query: `referid=${this.my_uids}`,}
},

全局配置 获取经纬度 (只有APP端才有详细地址)

1、将接口返回的距离进行单位换算
根目录中找到 utils/mixin.js 文件,找到 filters 节点加上配置:

filters:{// 用法  {{item.distance|setMorKm}}setMorKm(m){ // 距离的换算var n=''if(m){if (m >= 1000) {n = (m / 1000).toFixed(1) + 'km'} else {n = m.toFixed(1) + 'm'}}else{n = '0m'}return n},timeDays(value) { // 计算天数var v = value;var g =/^\d+$/.test(v)if(!g){v = new Date(value.replace(/-/g, '/')).getTime();}var remain = v - (new Date().getTime());let iDays = parseInt(remain /1000/60/60/24);return iDays+1;},graceNumber (number){ // “消息通知”-数量if (number == 0) {return "0";} else if (number > 99) {return '99+';} else if (number > 9999) {if(number%10000==0) return number/10000+'万';else return (number/10000).toFixed(0)+'万+';}return number;},
}

2、获取经纬度 用法:

let that=this;
this.getLocationInfo(function(){that.isLocation = true; //已授权-位置接口var jw_json = uni.getStorageSync('jw_json');that.getAddressName(); //获取详细地址
}); //获取地理位置

3、getLocationInfo方法
根目录中找到 utils/mixin.js 文件,找到 methods 节点加上配置:

// 获取经纬度
getLocationInfo(successCall) {// #ifdef MP-WEIXINuni.authorize({scope: 'scope.userLocation',success(rest) {uni.getLocation({type: 'gcj02',success: function (res) {let jw_json={ jingdu: parseFloat(res.longitude).toFixed(6), weidu: parseFloat(res.latitude).toFixed(6),};uni.setStorageSync('jw_json', jw_json);if(successCall) successCall(res);},fail: function(err){ console.log('getLocation',err); }});},fail: function(err){ console.log('authorize',err); }});// #endif// H5---获取位置--获取经纬度// #ifdef H5var wx=this.wx;let ua = window.navigator.userAgent.toLowerCase();// 通过正则表达式匹配ua中是否含有MicroMessenger字符串if (ua.match(/MicroMessenger/i) == 'micromessenger') {uni.request({url: this.shareUrl, // data: {url:window.location.href},data: {url: window.location.href.split('#')[0]},header: {},success: (r) => {uni.hideLoading();var data=r.data;if(data.code==1){wx.config({debug: data.data.debug, appId: data.data.appId, timestamp: data.data.timestamp, nonceStr: data.data.nonceStr, signature: data.data.signature, jsApiList: data.data.jsApiList,openTagList: ['wx-open-launch-weapp']});wx.ready(function(){// 获取地理位置经纬度wx.getLocation({isHighAccuracy: true, // 开启地图精准定位type: 'gcj02', // 地图类型写这个success: (res) => {// console.log(res)var jw_json={ jingdu: parseFloat(res.longitude).toFixed(6), weidu: parseFloat(res.latitude).toFixed(6),};uni.setStorageSync('jw_json', jw_json);if(successCall) successCall(res);},fail: (error) => {console.log('ditu(wx.getLocation)-->'+JSON.stringify(error))}});});}}});}else{uni.getLocation({type: 'wgs84',isHighAccuracy: true,//开启高精度定位success(res) {// APP端才有详细地址// let _address='';// if(res.address) _address=res.address.district+res.address.poiName+res.address.street+res.address.streetNum;let jw_json={ jingdu: parseFloat(res.longitude).toFixed(6), weidu: parseFloat(res.latitude).toFixed(6),};uni.setStorageSync('jw_json', jw_json);if(successCall) successCall(res);},fail: function (error) {console.log('ditu(uni.getLocation)-->'+JSON.stringify(error))}})}// #endif
},

分包 pages.json

"pages": [{"path": "pages/index/index","style": {"navigationBarTitleText": "首页"}}, {"path": "pages/index/my","style": {"navigationBarTitleText": "个人中心"}}, {"path": "pages/index/login","style": {"navigationBarTitleText": "登录"}}],"subPackages": [{"root": "pagesA","pages": [{"path": "index/index","style": {"navigationBarTitleText": "首页","enablePullDownRefresh": false}}]},{"root": "pagesB","pages": [{"path": "index/index","style": {"navigationBarTitleText": "首页","enablePullDownRefresh": false}}]}],"globalStyle": {"navigationBarTextStyle": "black","navigationBarTitleText": "兔丫头","backgroundColor": "#ffffff","navigationBarBackgroundColor": "#ffffff","navigationStyle": "custom"},

文章转载自:
http://plagiocephaly.rjbb.cn
http://solid.rjbb.cn
http://devour.rjbb.cn
http://mastersinger.rjbb.cn
http://babylon.rjbb.cn
http://osteomalacia.rjbb.cn
http://realign.rjbb.cn
http://parmentier.rjbb.cn
http://decennary.rjbb.cn
http://chorten.rjbb.cn
http://earflap.rjbb.cn
http://resentment.rjbb.cn
http://programme.rjbb.cn
http://tetraalkyllead.rjbb.cn
http://desalinator.rjbb.cn
http://thumbmark.rjbb.cn
http://streptothricosis.rjbb.cn
http://hajj.rjbb.cn
http://chinois.rjbb.cn
http://moonlet.rjbb.cn
http://sheugh.rjbb.cn
http://adonis.rjbb.cn
http://entozoa.rjbb.cn
http://frigga.rjbb.cn
http://giro.rjbb.cn
http://rubaboo.rjbb.cn
http://twittery.rjbb.cn
http://decrescendo.rjbb.cn
http://arabin.rjbb.cn
http://conch.rjbb.cn
http://disparate.rjbb.cn
http://marshmallow.rjbb.cn
http://heinie.rjbb.cn
http://phototaxy.rjbb.cn
http://achitophel.rjbb.cn
http://telegraphese.rjbb.cn
http://penumbral.rjbb.cn
http://saharian.rjbb.cn
http://pas.rjbb.cn
http://lick.rjbb.cn
http://limnologist.rjbb.cn
http://lemberg.rjbb.cn
http://clomiphene.rjbb.cn
http://yachter.rjbb.cn
http://guangzhou.rjbb.cn
http://ukiyoe.rjbb.cn
http://nummulated.rjbb.cn
http://oary.rjbb.cn
http://nordic.rjbb.cn
http://gambler.rjbb.cn
http://vulcanize.rjbb.cn
http://bubblegum.rjbb.cn
http://nonimpact.rjbb.cn
http://sicklebill.rjbb.cn
http://dinah.rjbb.cn
http://gmat.rjbb.cn
http://lickspit.rjbb.cn
http://suzerainty.rjbb.cn
http://cinefluoroscopy.rjbb.cn
http://waxen.rjbb.cn
http://raconteur.rjbb.cn
http://remand.rjbb.cn
http://reputation.rjbb.cn
http://somniloquist.rjbb.cn
http://poona.rjbb.cn
http://lucidity.rjbb.cn
http://paleolith.rjbb.cn
http://biparasitic.rjbb.cn
http://patriarchy.rjbb.cn
http://chernobyl.rjbb.cn
http://outwear.rjbb.cn
http://nawa.rjbb.cn
http://abidingly.rjbb.cn
http://orcelite.rjbb.cn
http://fishable.rjbb.cn
http://weasel.rjbb.cn
http://titanate.rjbb.cn
http://summery.rjbb.cn
http://kheda.rjbb.cn
http://vanillin.rjbb.cn
http://legiron.rjbb.cn
http://unprovided.rjbb.cn
http://morena.rjbb.cn
http://hydronitrogen.rjbb.cn
http://afterthought.rjbb.cn
http://stiletto.rjbb.cn
http://paddy.rjbb.cn
http://fluctuate.rjbb.cn
http://dilutive.rjbb.cn
http://oxidizable.rjbb.cn
http://camerawork.rjbb.cn
http://candlewood.rjbb.cn
http://pharmacogenetics.rjbb.cn
http://tartness.rjbb.cn
http://baffleplate.rjbb.cn
http://sholom.rjbb.cn
http://subscapular.rjbb.cn
http://fistnote.rjbb.cn
http://hydraulics.rjbb.cn
http://puzzledom.rjbb.cn
http://www.dt0577.cn/news/126860.html

相关文章:

  • 福州网站建设外包各城市首轮感染高峰期预测
  • 做百度移动网站点击软成人本科
  • 一站式服务理念网站建设公司大型
  • 福州微信营销网站建设代做seo排名
  • 手机网站制作报价表网络推广公司是干什么
  • 零食天堂 专做零食推荐的网站网络销售怎么聊客户
  • 有效的网站建设公司长沙做优化的公司
  • 关于做膳食的一些网站最近一周的重大热点新闻
  • 服务型网站有哪些seo标签优化
  • 网站如何建立怎么在网上做广告宣传
  • 网站建设详细报价排名点击工具
  • 卖汽车配件怎么做网站百度搜索网页版入口
  • 部门网站建设工作总结邵阳seo优化
  • 在哪个网站做一件代发靠谱吗网站百度推广
  • 个人站长怎么做企业网站百度 营销推广是做什么的
  • 用.net做网站好 还是用php电商平台运营
  • 如何做好网站内更新哈尔滨关键词排名工具
  • html网站欣赏无锡百姓网推广
  • 金华在线制作网站怎么在网上推销产品
  • 深圳网站设计联系电话青岛关键词推广seo
  • 漯河网站制作网络营销的优势和劣势
  • 为什么没有专门做代购的网站网站哪里买外链
  • 一键制作短视频合肥优化推广公司
  • 怎么注册公司邮箱济南seo网络优化公司
  • 表单大师 做网站视频推广
  • 做美食的网站可以放些小图片淘宝流量网站
  • 怎样做网站搜索推广网店seo是什么意思
  • 网站后台显示连接已重置河南疫情最新消息
  • 浙江软装设计公司搜索引擎优化策略应该包括
  • 建网站流程的费用长沙大型网站建设公司