//index.js
//获取应用实例
var time = require('../../utils/util.js');
const app = getApp()
Page({
data: {
userInfo: {},
hasUserInfo: false,
canIUse: wx.canIUse('button.open-type.getUserInfo'),
back: "",
dingwei: "../../img/location.png",
ico: "",
qing:"../../img/晴.png",
duoyun:"../../img/多云.png",
wu:"../../img/雾.png",
xue: "../../img/雪.png",
yin:"../../img/阴.png",
yu:"../../img/雨.png",
mai:"../../img/霾.png",
cityList: [{
"cityName": "北京",
"province": "北京",
"cityPinyin": "beijing",
"cityCode": "101010100"
},
{
"cityName": "海淀",
"province": "北京",
"cityPinyin": "haidian",
"cityCode": "101010200"
},
{
"cityName": "朝阳",
"province": "北京",
"cityPinyin": "chaoyang",
"cityCode": "101010300"
},
{
"cityName": "顺义",
"province": "北京",
"cityPinyin": "shunyi",
"cityCode": "101010400"
},
{
"cityName": "怀柔",
"province": "北京",
"cityPinyin": "huairou",
"cityCode": "101010500"
},
{
"cityName": "通州",
"province": "北京",
"cityPinyin": "tongzhou",
"cityCode": "101010600"
},
{
"cityName": "昌平",
"province": "北京",
"cityPinyin": "changping",
"cityCode": "101010700"
},
{
"cityName": "延庆",
"province": "北京",
"cityPinyin": "yanqing",
"cityCode": "101010800"
},
{
"cityName": "丰台",
"province": "北京",
"cityPinyin": "fengtai",
"cityCode": "101010900"
},
{
"cityName": "石景山",
"province": "北京",
"cityPinyin": "shijingshan",
"cityCode": "101011000"
},
{
"cityName": "大兴",
"province": "北京",
"cityPinyin": "daxing",
"cityCode": "101011100"
},
{
"cityName": "房山",
"province": "北京",
"cityPinyin": "fangshan",
"cityCode": "101011200"
},
{
"cityName": "密云",
"province": "北京",
"cityPinyin": "miyun",
"cityCode": "101011300"
},
{
"cityName": "门头沟",
"province": "北京",
"cityPinyin": "mentougou",
"cityCode": "101011400"
},
{
"cityName": "平谷",
"province": "北京",
"cityPinyin": "pinggu",
"cityCode": "101011500"
},
{
"cityName": "上海",
"province": "上海",
"cityPinyin": "shanghai",
"cityCode": "101020100"
},
{
"cityName": "闵行",
"province": "上海",
"cityPinyin": "minhang",
"cityCode": "101020200"
},
{
"cityName": "宝山",
"province": "上海",
"cityPinyin": "baoshan",
"cityCode": "101020300"
},
{
"cityName": "嘉定",
"province": "上海",
"cityPinyin": "jiading",
"cityCode": "101020500"
},
{
"cityName": "南汇",
"province": "上海",
"cityPinyin": "nanhui",
"cityCode": "101020600"
},
{
"cityName": "金山",
"province": "上海",
"cityPinyin": "jinshan",
"cityCode": "101020700"
},
{
"cityName": "青浦",
"province": "上海",
"cityPinyin": "qingpu",
"cityCode": "101020800"
},
{
"cityName": "松江",
"province": "上海",
"cityPinyin": "songjiang",
"cityCode": "101020900"
},
{
"cityName": "奉贤",
"province": "上海",
"cityPinyin": "fengxian",
"cityCode": "101021000"
},
{
"cityName": "崇明",
"province": "上海",
"cityPinyin": "chongming",
"cityCode": "101021100"
},
{
"cityName": "徐家汇",
"province": "上海",
"cityPinyin": "xujiahui",
"cityCode": "101021200"
},
{
"cityName": "浦东",
"province": "上海",
"cityPinyin": "pudong",
"cityCode": "101021300"
},
{
"cityName": "天津",
"province": "天津",
"cityPinyin": "tianjin",
"cityCode": "101030100"
},
{
"cityName": "武清",
"province": "天津",
"cityPinyin": "wuqing",
"cityCode": "101030200"
},
{
"cityName": "宝坻",
"province": "天津",
"cityPinyin": "baodi",
"cityCode": "101030300"
},
{
"cityName": "东丽",
"province": "天津",
"cityPinyin": "dongli",
"cityCode": "101030400"
},
{
"cityName": "西青",
"province": "天津",
"cityPinyin": "xiqing",
"cityCode": "101030500"
},
{
"cityName": "北辰",
"province": "天津",
"cityPinyin": "beichen",
"cityCode": "101030600"
},
{
"cityName": "宁河",
"province": "天津",
"cityPinyin": "ninghe",
"cityCode": "101030700"
},
{
"cityName": "汉沽",
"province": "天津",
"cityPinyin": "hangu",
"cityCode": "101030800"
},
{
"cityName": "静海",
"province": "天津",
"cityPinyin": "jinghai",
"cityCode": "101030900"
},
{
"cityName": "津南",
"province": "天津",
"cityPinyin": "jinnan",
"cityCode": "101031000"
},
{
"cityName": "塘沽",
"province": "天津",
"cityPinyin": "tanggu",
"cityCode": "101031100"
},
{
"cityName": "大港",
"province": "天津",
"cityPinyin": "dagang",
"cityCode": "101031200"
},
{
"cityName": "蓟县",
"province": "天津",
"cityPinyin": "jixian",
"cityCode": "101031400"
},
{
"cityName": "重庆",
"province": "重庆",
"cityPinyin": "chongqing",
"cityCode": "101040100"
},
{
"cityName": "永川",
"province": "重庆",
"cityPinyin": "yongchuan",
"cityCode": "101040200"
},
{
"cityName": "合川",
"province": "重庆",
"cityPinyin": "hechuan",
"cityCode": "101040300"
},
{
"cityName": "南川",
"province": "重庆",
"cityPinyin": "nanchuan",
"cityCode": "101040400"
},
{
"cityName": "江津",
"province": "重庆",
"cityPinyin": "jiangjin",
"cityCode": "101040500"
},
{
"cityName": "万盛",
"province": "重庆",
"cityPinyin": "wansheng",
"cityCode": "101040600"
},
{
"cityName": "渝北",
"province": "重庆",
"cityPinyin": "yubei",
"cityCode": "101040700"
},
{
"cityName": "北碚",
"province": "重庆",
"cityPinyin": "beibei",
"cityCode": "101040800"
},
{
"cityName": "巴南",
"province": "重庆",
"cityPinyin": "banan",
"cityCode": "101040900"
},
{
"cityName": "长寿",
"province": "重庆",
"cityPinyin": "changshou",
"cityCode": "101041000"
},
{
"cityName": "黔江",
"province": "重庆",
"cityPinyin": "qianjiang",
"cityCode": "101041100"
},
{
"cityName": "万州",
"province": "重庆",
"cityPinyin": "wanzhou",
"cityCode": "101041300"
},
{
"cityName": "涪陵",
"province": "重庆",
"cityPinyin": "fuling",