Commit 65ae9605 by caojingji

修改安卓机上定位的bug问题

修改安卓机上定位的bug问题
parent 0e74d619
<?xml version="1.0" encoding="UTF-8"?>
<module type="WEB_MODULE" version="4">
<component name="NewModuleRootManager" inherit-compiler-output="true">
<exclude-output />
<content url="file://$MODULE_DIR$" />
<orderEntry type="inheritedJdk" />
<orderEntry type="sourceFolder" forTests="false" />
</component>
</module>
\ No newline at end of file
......@@ -4,16 +4,10 @@
"pages/index/index",
"pages/about/about",
"pages/about/call/call",
"pages/about/proposal/proposal",
"pages/about/privacy/privacy",
"pages/about/useragree/useragree",
"pages/reply/reply"
],
"permission": {
"scope.userLocation": {
"desc": "你的位置信息将用于小程序位置接口的效果展示"
}
},
"window": {
"backgroundColor": "#F6F6F6",
"backgroundTextStyle": "light",
......
......@@ -10,11 +10,6 @@ Page({
url: 'call/call'
})
},
toProposalJsp: function () {
wx.navigateTo({
url: 'proposal/proposal'
})
},
toUseragree:function(){
wx.navigateTo({
url: 'useragree/useragree'
......
......@@ -9,12 +9,6 @@
<text class='news'>联系我们</text>
<icon class="fa fa-angle-right right"></icon>
</view>
<button class="zdy-btn-j" open-type="contact" session-from='{"kefu":["{{3045}}"],"nickName":"{{userInfo.nickName}}","avatarUrl":"{{userInfo.avatarUrl}}"}'>
<view class="cnxw pd">
<text class='news'>建议投诉</text>
<icon class="fa fa-angle-right right"></icon>
</view>
</button>
<view class="cnxw pd" bindtap="toUseragree">
<text class='news'>用户协议</text>
<icon class="fa fa-angle-right right"></icon>
......
......@@ -12,5 +12,4 @@ page { background-color: #F6F6F6; }
.cnxw .right {
line-height: 50px;
}
.zdybtn{width:100%;height:36px;line-height:36px;position: fixed;bottom: 10px;background: red;}
.zdy-btn-j{padding:0;text-align: left;}
\ No newline at end of file
.zdybtn{width:100%;height:36px;line-height:36px;position: fixed;bottom: 10px;background: red;}
\ No newline at end of file
Page({
/**
* 页面的初始数据
*/
data: {
},
/**
* 生命周期函数--监听页面加载
*/
onLoad: function (options) {
},
/**
* 生命周期函数--监听页面初次渲染完成
*/
onReady: function () {
},
/**
* 生命周期函数--监听页面显示
*/
onShow: function () {
},
/**
* 生命周期函数--监听页面隐藏
*/
onHide: function () {
},
/**
* 生命周期函数--监听页面卸载
*/
onUnload: function () {
},
/**
* 页面相关事件处理函数--监听用户下拉动作
*/
onPullDownRefresh: function () {
},
/**
* 页面上拉触底事件的处理函数
*/
onReachBottom: function () {
},
/**
* 用户点击右上角分享
*/
onShareAppMessage: function () {
}
})
\ No newline at end of file
{
"navigationBarTitleText": "建议投诉"
}
\ No newline at end of file
<view class="call">
<view class="call-line">
<view class="call-icon">
<icon class="fa fa-qq relative"></icon>
</view>
<text class='call-text' selectable="true">736072668</text>
</view>
<view class="call-line">
<view class="call-icon">
<icon class="fa fa-envelope-o relative"></icon>
</view>
<text class='call-text' selectable="true">cao_peng@FOUNDER.COM.CN</text>
</view>
<view class="call-line">
<view class="call-icon">
<icon class="fa fa-phone relative"></icon>
</view>
<text class='call-text' selectable="true">15129457465</text>
</view>
</view>
\ No newline at end of file
@import '../../wxss/font-awesome.min.wxss';
@import '../../wxss/fontclass.wxss';
page { background-color: #F6F6F6; }
.call{background:#fff;width:95%;margin:5px auto;box-shadow: 0px 5px 5px #ccc;}
.call-line{height:60px;line-height:60px;border-bottom:1px solid #F6F6F6;}
.call-icon{width:35px;height:35px;border-radius: 50%;display:inline-block;border:1px solid #f6f6f6;text-align: center;line-height:30px;margin:5px;color:#0E75C1;}
.relative{position: relative;top:-2px;}
.call-text{float:right;display: inline-block;width:72%;padding-right:10px;text-align: right;font-size:14px;}
\ No newline at end of file
var app = getApp();
var localData = require('../../data/data.js');
Page({
/**
* 页面的初始数据
*/
data: {
KFID:"",
userInfo:null,
mode: "scaleToFill",
arr: [],
moduleArr:[],
questionsArr: [],
swiperHeight:'',
indicatorDots: true,
autoplay: true,
interval: 2000,
duration: 1000
},
//根据图片高度动态设置swiper的高度
getImageHeigth: function (e) {
this.setData({ "swiperHeight": app.getImageHeigth(e) });
},
/**
* 生命周期函数--监听页面加载
*/
onLoad: function (options) {
//加载图片数据和客服id 以及获取用户信息
var KFID = app.globalData.KFID;
var userInfo = app.globalData.userInfo;
this.data.userInfo = userInfo;
this.data.KFID = KFID;
this.data.arr = app.getSwiperImages();
this.data.moduleArr = localData.moduleArr;
this.setData(this.data);
this.doChangeQue();
},
//跳转到问题中心界面
toReplyJsp: function(e){
var qid = e.currentTarget.dataset.qid;
wx.navigateTo({
url: '../reply/reply?qid=' + qid
})
},
//更换问题方法
doChangeQue:function(){
var indexArr = [];
var questions = [];
for (var i = 0; i < localData.questionsArr.length; i++) {
indexArr.push(i);
}
indexArr.sort(function () { return 0.5 - Math.random() });
indexArr.length = 3;
//通过得到的随机数提取问题数组
for(var i = 0;i < indexArr.length;i++){
for (var j = 0; j < localData.questionsArr.length;j++){
if (indexArr[i] == localData.questionsArr[j].qid){
questions.push(localData.questionsArr[j]);
}
}
}
this.setData({ questionsArr: questions});
},
//右上角分享功能
onShareAppMessage: function (res) {
var that = this;
return {
title: '方正服务',
path: '/pages/currlocation/currlocation',
success: function (res) {
that.shareClick();
},
fail: function (res) {
}
}
}
var app = getApp();
var localData = require('../../data/data.js');
Page({
/**
* 页面的初始数据
*/
data: {
KFID:"",
userInfo:null,
mode: "scaleToFill",
arr: [],
moduleArr:[],
questionsArr: [],
swiperHeight:'',
indicatorDots: true,
autoplay: true,
interval: 2000,
duration: 1000
},
//根据图片高度动态设置swiper的高度
getImageHeigth: function (e) {
this.setData({ "swiperHeight": app.getImageHeigth(e) });
},
/**
* 生命周期函数--监听页面加载
*/
onLoad: function (options) {
//加载图片数据和客服id 以及获取用户信息
var KFID = app.globalData.KFID;
var userInfo = app.globalData.userInfo;
this.data.userInfo = userInfo;
this.data.KFID = KFID;
this.data.arr = app.getSwiperImages();
this.data.moduleArr = localData.moduleArr;
this.setData(this.data);
this.doChangeQue();
},
//跳转到问题中心界面
toReplyJsp: function(e){
var qid = e.currentTarget.dataset.qid;
wx.navigateTo({
url: '../reply/reply?qid=' + qid
})
},
//更换问题方法
doChangeQue:function(){
var indexArr = [];
var questions = [];
for (var i = 0; i < localData.questionsArr.length; i++) {
indexArr.push(i);
}
indexArr.sort(function () { return 0.5 - Math.random() });
indexArr.length = 3;
//通过得到的随机数提取问题数组
for(var i = 0;i < indexArr.length;i++){
for (var j = 0; j < localData.questionsArr.length;j++){
if (indexArr[i] == localData.questionsArr[j].qid){
questions.push(localData.questionsArr[j]);
}
}
}
this.setData({ questionsArr: questions});
},
//右上角分享功能
onShareAppMessage: function (res) {
var that = this;
return {
title: '方正服务',
path: '/pages/currlocation/currlocation',
success: function (res) {
that.shareClick();
},
fail: function (res) {
}
}
}
})
\ No newline at end of file
<!--index.wxml-->
<view class="container">
<view class = "banner">
<swiper indicator-dots="{{indicatorDots}}"
autoplay="{{autoplay}}" interval="{{interval}}" duration="{{duration}}" circular="true" style='height:{{swiperHeight}}'>
<block wx:for="{{arr}}">
<swiper-item>
<image src="{{item}}" class="slide-image" width="100%" mode='widthFix' bindload='getImageHeigth'/>
</swiper-item>
</block>
</swiper>
</view>
</view>
<view class="section">
<view class="flex-wrp" style="flex-direction:row;">
<view class="flex-card">
<view class="border inline"></view>
<view class="fontsize inline xtgn bold">业务模块</view>
</view>
<block wx:for="{{moduleArr}}">
<button open-type="contact" class="contacButton"
session-from='{"kefu":["{{KFID}}"],"nickName":"{{userInfo.nickName}}","avatarUrl":"{{userInfo.avatarUrl}}"}'>
<view class="flex-item bc_green">
<view class="icon">
<icon class="fa {{item.iconClass}} icon-style"></icon>
</view>
<view class="fontsize">{{item.name}}</view>
</view>
</button>
</block>
</view>
<!-- 猜你想问 -->
<view class="cnxw" style='font-family:"楷体","楷体_GB2312";' bindtap='doChangeQue'>
<icon class="fa fa-question-circle question" style='float:left;position:relative;top:-3px;'></icon>
<text class="bold" style='font-family:"楷体","楷体_GB2312";float:left;'>猜你想问</text>
<view style='float:right;margin-right:10px;' class="cnxw">
<text style='color:#87CEFA;'>换一批</text>
<i class="fa fa-refresh" style="color:#87CEFA;" aria-hidden="true"></i>
</view>
</view>
<block wx:for="{{questionsArr}}">
<view class="cnxw pd" bindtap="toReplyJsp" data-qid="{{item.qid}}" style='font-family:"楷体","楷体_GB2312";'>
<text class='news'>{{item.qname}}</text>
<icon class="fa fa-angle-right right"></icon>
</view>
</block>
</view>
<!--index.wxml-->
<view class="container">
<view class = "banner">
<swiper indicator-dots="{{indicatorDots}}"
autoplay="{{autoplay}}" interval="{{interval}}" duration="{{duration}}" circular="true" style='height:{{swiperHeight}}'>
<block wx:for="{{arr}}">
<swiper-item>
<image src="{{item}}" class="slide-image" width="100%" mode='widthFix' bindload='getImageHeigth'/>
</swiper-item>
</block>
</swiper>
</view>
</view>
<view class="section">
<view class="flex-wrp" style="flex-direction:row;">
<view class="flex-card">
<view class="border inline"></view>
<view class="fontsize inline xtgn bold">业务模块</view>
</view>
<block wx:for="{{moduleArr}}">
<button open-type="contact" class="contacButton"
session-from='{"kefu":["{{KFID}}"],"nickName":"{{userInfo.nickName}}","avatarUrl":"{{userInfo.avatarUrl}}"}'>
<view class="flex-item bc_green">
<view class="icon">
<icon class="fa {{item.iconClass}} icon-style"></icon>
</view>
<view class="fontsize">{{item.name}}</view>
</view>
</button>
</block>
</view>
<!-- 猜你想问 -->
<view class="cnxw" style='font-family:"楷体","楷体_GB2312";' bindtap='doChangeQue'>
<icon class="fa fa-question-circle question" style='float:left;position:relative;top:-3px;'></icon>
<text class="bold" style='font-family:"楷体","楷体_GB2312";float:left;'>猜你想问</text>
<view style='float:right;margin-right:10px;' class="cnxw">
<text style='color:#87CEFA;'>换一批</text>
<i class="fa fa-refresh" style="color:#87CEFA;" aria-hidden="true"></i>
</view>
</view>
<block wx:for="{{questionsArr}}">
<view class="cnxw pd" bindtap="toReplyJsp" data-qid="{{item.qid}}" style='font-family:"楷体","楷体_GB2312";'>
<text class='news'>{{item.qname}}</text>
<icon class="fa fa-angle-right right"></icon>
</view>
</block>
</view>
@import '../wxss/font-awesome.min.wxss';
@import '../wxss/fontclass.wxss';
/**index.wxss**/
text,view{font-family: "楷体","楷体_GB2312";font-size: 12px;}
.bold{font-weight: 600;}
.container{
width: 100%;
height: 100%;
margin:0 auto;
}
.contacButton{margin:10px 1.5% !important;padding:5px 0 !important;
width:30%;padding:15px 1.5%;text-align: center;float: left;}
/*业务模块*/
.flex-item .icon{width:80px;height:80px;border-radius:50%;background:#ff540e
;position: relative;left:50%;margin-left: -40px;font-size:32px;}
.fontsize{font-size: 12px;line-height: 20px;}
.border{width:4px;height:24px;background:#ff540e
;display:inline-block;float:left;margin:0 4px;}
.inline{display:inline-block;}
.xtgn{line-height:24px;float:left;}
.flex-card{height:24px;line-height:24px;padding:5px 0;}
.icon-style{line-height: 80px;color:#fff;}
.contacButton{
background-color: #FFF;
padding: 0;
margin: 0;
font-size: inherit;
}
.contacButton::after {
border: #FFF solid;
}
.flex-wrp{overflow: hidden;}
/*猜你想问*/
.news{float:left;color:#000;}
.title{color:#363636;}
.question{font-size:14px;}
@import '../wxss/font-awesome.min.wxss';
@import '../wxss/fontclass.wxss';
/**index.wxss**/
text,view{font-family: "楷体","楷体_GB2312";font-size: 12px;}
.bold{font-weight: 600;}
.container{
width: 100%;
height: 100%;
margin:0 auto;
}
.contacButton{margin:10px 1.5% !important;padding:5px 0 !important;
width:30%;padding:15px 1.5%;text-align: center;float: left;}
/*业务模块*/
.flex-item .icon{width:80px;height:80px;border-radius:50%;background:#ff540e
;position: relative;left:50%;margin-left: -40px;font-size:32px;}
.fontsize{font-size: 12px;line-height: 20px;}
.border{width:4px;height:24px;background:#ff540e
;display:inline-block;float:left;margin:0 4px;}
.inline{display:inline-block;}
.xtgn{line-height:24px;float:left;}
.flex-card{height:24px;line-height:24px;padding:5px 0;}
.icon-style{line-height: 80px;color:#fff;}
.contacButton{
background-color: #FFF;
padding: 0;
margin: 0;
font-size: inherit;
}
.contacButton::after {
border: #FFF solid;
}
.flex-wrp{overflow: hidden;}
/*猜你想问*/
.news{float:left;color:#000;}
.title{color:#363636;}
.question{font-size:14px;}
......@@ -7,7 +7,7 @@
"minified": true,
"newFeature": true
},
"appid": "wx94dc3e3ee4aede25",
"appid": "wxfae61fbdc50696a7",
"projectname": "%E6%96%B9%E6%AD%A3%E5%9C%A8%E7%BA%BF%E6%9C%8D%E5%8A%A1",
"libVersion": "2.2.5",
"condition": {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment