var config = require('../config.js')
var request = require('../request.js')
var util = require('../../utils/util.js')
var fun = require('../functions.js')
var app = getApp();
var that = null;
var korea = require('./apply-korea-exp.js')
Page({
data: {
winWidth: 0,
winHeight: 0,
navHeight: 0,
// tab切换
currentTab: 0,
//黑底弹出层
mail_info: 'hide',
bg_hide: 'hide',
//白底弹出层
postion_mail: 'hide',
white_bg: 'hide',
apply: 'apply',
radian: 0,
maxRian: 0,
step: 1,
order_detail: {},
identity_material: ['在职人员', '自由职业者', '退休人员', '在校学生', '学龄前儿童'],
order_applicant_id: 0,
user_order_id: 0,
applicant_info: [],
base_img: '',
curr_identity_id: '0',
curr_identity_material: [],
icon_active: ['active', '', '', '', ''],
icon_pos: 0,
scroll_pos: 0,
base_info: [],
showSendMail: 'hide',
showSendMailBtn: '',
email: '',
handle_process: '',
reminder: '',
customer_phone: '0755-36976217',
visa_product_id: 0,
background: '',
animationData: {},
isInput: false,
maxWidth: 0,
minWidth: 0,
bill: '',
interval: null,
loading: false,
sampleArr: {},
saveBtn: '',
url_params: {},
infoStatusLoading: false,
circular: false,
tabWidth: '28.33',
isExpressData: false,
tabsArr: [
{ tabName: 'App拍摄资料', tabIndex: 0, show: true },
{ tabName: '申请表', tabIndex: 1, show: true },
{ tabName: '邮寄资料', tabIndex: 2, show: true },
],
/**新加坡申请表数据 */
img_src: 'http://222.178.203.72:19005/whst/63/=uhrZznrr-bm-rgdmygdmzZkhxtmbrzbnl//icon/wxa/product/in.png',
ops: {},
content: {}, // 所有的数据
province_name: [],
province_code: [],
province_idx: {},
city_name: [],
city_code: [],
city_idx: {},
counties_name: [],
counties_code: [],
counties_idx: {},
areaData: {},
currentAddressHome: {},
inputStatus: [0, 0, 0], // 输入状态,0填写,1已完成
//下拉菜单
sexy: ['男', '女'],
sexyIndex: 0,
oldNames: ['无', '有'],
oldNameSelectedHeight: 50, // 有曾用名时高度要加100px 单身、已婚、离异、丧偶
shiOrfou: ['否', '是'],
marryStatus: ['单身', '已婚', '离异', '丧偶'],
mateCountry: ['其它', '新加坡公民', '新加坡永久公民'],
provinces: ['北京', '上海', '广东', '浙江', '天津', '江苏', '四川', '福建', '河北', '辽宁', '湖北', '重庆', '内蒙古', '吉林', '黑龙江', '山西', '安徽', '江西', '山东', '河南', '湖南', '广西', '海南', '贵州', '云南', '陕西', '甘肃', '青海', '宁夏', '西藏', '新疆', '其它'],
bornProvinceIndex: -1,
issueProvinceIndex: -1,
jobs: ['职员', '退休', '学生', '学龄前儿童', '无业', '自由职业者'],
xueliArr: ['无', '小学', '初中', '高中', '大学', '研究生'],
beliefArr: ['无', '佛教', '伊斯兰教', '基督教'],
targetArr: ['旅游', '商务'],
selectedIndex: -1,
animationDatas: [], // 动态高度动画
animationArrowDatas: [], // 箭头转向动画
heights: [760, 305, 560], // 这里的高度都是基本高度,在有选项展开后,要加上相应的展开的高度
// +16是因为判决有罪换行
//出生日期
dateNow: '', // 当前日期字符串
/*********************************************韩国数据 **********************************************************************/
currentAddressWork: {},
currentAddressJJ: {},
selectKouanIndex: 0,
otherPassportTypeArr: ["外交护照", "公务护照", "普通护照", "其他"],
relations: ["父子", "母子", "父女", "母女", "配偶", "其它"],
selectRelationIndex: 0,
xueliArr: ['硕士/博士', '研究生', '本科', '大专', '中专', '高中', '初中', '小学', '文盲'],
selectXueliIndex: 0,
jobArr: ['企业家', '个人经营', '工作者', '公务员', '学生', '退休者', '无职', '其它'],
selectJobIndex: 0,
days: (function () {
var a = []
for (var i = 1; i <= 30; i++) {
a.push(i + '')
}
return a
})(),
/***************************************日本数据****************************************************************************/
age: -1,
relationJson: [
{ label: '父子', value: '1' },
{ label: '母子', value: '2' },
{ label: '父女', value: '3' },
{ label: '母女', value: '4' },
{ label: '夫妻', value: '26' },
{ label: '兄弟', value: '5' },
{ label: '兄妹', value: '6' },
{ label: '姐弟', value: '7' },
{ label: '姐妹', value: '8' },
{ label: '表兄弟', value: '9' },
{ label: '表兄妹', value: '10' },
{ label: '表姐弟', value: '11' },
{ label: '表姐妹', value: '12' },
{ label: '堂兄弟', value: '13' },
{ label: '堂兄妹', value: '14' },
{ label: '堂姐弟', value: '15' },
{ label: '堂姐妹', value: '16' },
{ label: '嫂子', value: '17' },
{ label: '弟媳', value: '18' },
{ label: '姐夫', value: '19' },
{ label: '妹夫', value: '20' },
{ label: '叔侄', value: '21' },
{ label: '舅侄', value: '22' },
{ label: '姑甥', value: '23' },
{ label: '姨甥', value: '24' },
{ label: '祖孙', value: '25' }
],
relations: (function (arr) {
var a = []
for (var o in arr) {
a.push(arr[o].label)
}
return a
})([
{ label: '父子', value: '1' },
{ label: '母子', value: '2' },
{ label: '父女', value: '3' },
{ label: '母女', value: '4' },
{ label: '夫妻', value: '26' },
{ label: '兄弟', value: '5' },
{ label: '兄妹', value: '6' },
{ label: '姐弟', value: '7' },
{ label: '姐妹', value: '8' },
{ label: '表兄弟', value: '9' },
{ label: '表兄妹', value: '10' },
{ label: '表姐弟', value: '11' },
{ label: '表姐妹', value: '12' },
{ label: '堂兄弟', value: '13' },
{ label: '堂兄妹', value: '14' },
{ label: '堂姐弟', value: '15' },
{ label: '堂姐妹', value: '16' },
{ label: '嫂子', value: '17' },
{ label: '弟媳', value: '18' },
{ label: '姐夫', value: '19' },
{ label: '妹夫', value: '20' },
{ label: '叔侄', value: '21' },
{ label: '舅侄', value: '22' },
{ label: '姑甥', value: '23' },
{ label: '姨甥', value: '24' },
{ label: '祖孙', value: '25' }
]),
days: (function () {
var a = []
for (var i = 1; i <= 100; i++) {
a.push(i + '')
}
return a
})(),
//checkbox信息
checkboxItems: [
{ name: '', value: '无', checked: 'true' },
{ name: '', value: '祖父' },
{ name: '', value: '祖母' },
{ name: '', value: '父亲' },
{ name: '', value: '母亲' },
],
applicationMemo: [],
emailMaterial: [],
appCount: 0,
tableCount: 0,
expressCount: 0,
kd_bg_hide: 'hide',
kd_info_class: 'hide',
kdCompany: ['请选择快递公司', '顺丰快递', '中国邮政EMS', '申通快递', '韵达快递', '中通快递', '圆通快递', '百世汇通', '宅急送', '其他'],
kd_index: 0,
kdOrderNo: 0,
submitKdOk: false,
kdInfoBtn: '',
submitValue: 'tijiao'
},
onLoad: function (options) {
this.getAddress();
that = this;
// {user_order_id: "10000", order_applicant_id: "1001"}
var ops = options
ops['user_order_id'] = parseInt(options['user_order_id'] + '')
ops['order_applicant_id'] = parseInt(options['order_applicant_id'] + '')
this.setData({
ops: ops,
})
// 页面初始化 options为页面跳转所带来的参数
this.animation = wx.createAnimation({
t