123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170 |
- var businessT = require('../../../../tool/business-tool.js')
- var sysT = require('../../../../tool/sys-tool.js')
- var url = require('../../../../constant/url.js')
- Page({
- data: {
- adapter: {
- bgHeight: 0,
- suffix: ''
- },
- rights: {
- t: ['养老', '医疗', '失业', '工伤', '生育'],
- s: '0',
- a: null,
- },
- citys: {
- t: ['北京', '上海', '广州', '深圳', '杭州'],
- s: '0',
- a: null,
- c: [
- { c1: ['购房必须在本市连续缴纳', '5年社保', '或个税,具体还需根据办理时的要求而定。若因工作变动等原因造成未缴或补缴税款且不超过3个月,视为连续缴纳。'], c2: ['买车摇号须在本市连续缴纳', '5年社保', '不能断月(如有断月,补缴后有效)'] },
- { c1: ['购房必须在本市63个月内连续缴纳', '60个月', '的社保或个税'], c2: ['买车摇号必须在本市连续缴纳满', '3年社保'] },
- { c1: ['购房必须在本市连续缴纳', '5年社保', '或个税'], c2: ['买车摇号必须在本市连续缴纳满', '2年社保', '(不含补缴)'] },
- { c1: ['购房须在本市连续缴纳', '5年社保', '或个税,中间无间断'], c2: ['买车摇号必须在本市连续缴纳满', '2年社保', '(不含补缴)'] },
- { c1: ['购房须在杭州市购房之日起,前3年内连续缴纳', '2年社保', ',断缴不能超过3个月'], c2: ['买车摇号必须在本市连续缴纳满', '2年社保', '(不含补缴)'] }
- ]
- },
- bgScrollView: {
- scroll: false,
- a: false,
- left: 0
- },
- tab: {
- t: 's',//s社保a公积金
- s: '0',
- i: ['社保权益', '社保缴纳', '社保查询']
- }
- },
- goToPurchase: function (sender) {
- // swan.alert({
- // title: '小提示',
- // content: '关注并查看顶部生活号就可以缴费啦',
- // buttonText: '我知道了'
- // })
- var u = url.html_host + url.html_channel
- u = encodeURIComponent(u)
- swan.switchTab({
- url: '../../../homepage/index/index'
- })
- },
- changeRights: function (sender) {
- businessT.debugLog(sender.currentTarget.id)
- if (sender.currentTarget.id == this.data.rights.s) {
- return
- }
- this.data.rights.s = sender.currentTarget.id
- var x = sender.currentTarget.id * 120 * sysT.rpxToPx()
- businessT.debugLog(x)
- var animation = swan.createAnimation({
- duration: 300,
- timingFunction: 'ease',
- })
- animation.translateX(x).step()
- this.data.rights.a = animation.export()
- this.setData({
- rights: this.data.rights
- })
- },
- changeCity: function (sender) {
- console.log(sysT.rpxToPx())
- businessT.debugLog(sender.currentTarget.id)
- if (sender.currentTarget.id == this.data.citys.s) {
- return
- }
- this.data.citys.s = sender.currentTarget.id
- var x = sender.currentTarget.id * 120 * sysT.rpxToPx()
- businessT.debugLog(x)
- var animation = swan.createAnimation({
- duration: 300,
- timingFunction: 'ease',
- })
- animation.translateX(x).step()
- this.data.citys.a = animation.export()
- this.setData({
- citys: this.data.citys
- })
- },
- tabAction: function (sender) {
- if (sender.currentTarget.id == this.data.tab.s) {
- return
- }
- var animation = swan.createAnimation({
- duration: 300,
- timingFunction: 'ease',
- })
- var w = sysT.sysInfo().windowWidth
- var s = sender.currentTarget.id
- animation.translateX(s * w / 3).step()
- this.data.bgScrollView.left = s * sysT.sysInfo().windowWidth
- this.data.tab.s = sender.currentTarget.id
- this.data.bgScrollView.scroll = true;
- this.setData({
- tab: this.data.tab,
- bgScrollView: this.data.bgScrollView
- })
- this.data.bgScrollView.scroll = false;
- this.setData({ bgScrollView: this.data.bgScrollView })
- },
- onLoad: function (query) {
- businessT.debugLog(query)
-
- this.data.adapter.bgHeight = sysT.sysInfo().windowHeight
- this.data.adapter.suffix = sysT.suffixOfClass()
- this.data.bgScrollView.scroll = true
- this.data.bgScrollView.a = false
- this.data.bgScrollView.left = query.page * sysT.sysInfo().windowWidth
- this.data.tab.s = query.page
- this.setData({
- adapter: this.data.adapter,
- tab: this.data.tab,
- bgScrollView: this.data.bgScrollView
- })
- this.data.bgScrollView.scroll = false
- this.data.bgScrollView.a = true
- this.setData({ bgScrollView: this.data.bgScrollView })
- },
- onReady: function() {
- // 监听页面初次渲染完成的生命周期函数
- },
- onShow: function() {
- // 监听页面显示的生命周期函数
- swan.setPageInfo && swan.setPageInfo({
- title: '【我的社保】官方APP-社保挂靠公积金代理全国自助缴纳查询社保公积金',
- keywords: '我的社保,我的社保网,我的社保APP,社会保障,社保,社保代缴,公积金代缴,社会保险,社保查询,社会保险介绍,养老,医疗,失业,工伤,生育,异地买房,买车,北京社保,广州社保,上海社保,深圳社保,杭州社保,成都社保, 苏州社保、苏州公积金,南京社保,无锡社保,武汉社保,长沙社保,天津社保,佛山社保,惠州社保,中山社保,珠海社保,社保权益',
- description: '我的社保APP是为个人、企业提供社保代缴代扣、公积金代扣代缴、社保查询、公积金查询服务的名牌产品。解决个体工商户、自由职业者、待业人员、全职妈妈、创业者等的个人社保公积金断缴难题,同时解决贷款, 买房, 买车, 养老, 医疗, 生育, 医疗报销等难题。同时为企业提供全国专业社保代理和公积金代理。',
- articleTitle: '【我的社保】官方APP-社保挂靠公积金代理全国自助缴纳查询社保公积金',
- release_date: '2019-02-23 20:00:00',
- success: function () {
- console.log('页面基础信息设置完成');
- },
- fail: function (res) {
- console.log('设置失败');
- },
- })
- },
- onHide: function() {
- // 监听页面隐藏的生命周期函数
- },
- onUnload: function() {
- // 监听页面卸载的生命周期函数
- },
- onPullDownRefresh: function() {
- // 监听用户下拉动作
- },
- onReachBottom: function() {
- // 页面上拉触底事件的处理函数
- },
- onShareAppMessage: function () {
- // 用户点击右上角转发
- }
- });
|