123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782 |
- var businessT = require('../../../tool/business-tool.js')
- var sysT = require('../../../tool/sys-tool.js')
- var url = require('../../../constant/url.js')
- var key = require('../../../constant/key.js')
- import Net from '../../../tool/net.js'
- var net = new Net()
- var app = getApp()
- var wxyj = require('../../../public/wxyj.js')
- Page({
- data: {
- type: '',
- haveType: 0,
- isFirstbuySheBao: false,
- isFirstBuyFund: false,
- buyFund: false,
- buySheBao: false,
- currentCard: [0, '不办卡'],
- salary: 0,
- shebaoPrice: 0,
- fundPrice: 0,
- serviceMoney: 0,
- cheapMoney: 0,
- cheap: false,
- disable: false,
- isJob: false,
- wageMoney: '',
- totalMoneyArr: [0, 0],
- totalMoney: 0
- },
- setTitle() {
- if (this.data.type == 0) {
- swan.setNavigationBarTitle({
- title: '社保信息',
- })
- } else if (this.data.type == 1) {
- swan.setNavigationBarTitle({
- title: '社保补缴信息',
- })
- } else if (this.data.type == 2) {
- swan.setNavigationBarTitle({
- title: '公积金信息',
- })
- } else if (this.data.type == 3) {
- swan.setNavigationBarTitle({
- title: '公积金补缴信息',
- })
- }
- },
- initData(isFirst) {
- var index
- if (wxyj.wxyjData.type == 1) {
- index = 0
- } else {
- index = 1
- }
- if (this.data.type == 1) {
- var tips = wxyj.wxyjData.data.wxyj[index].shebao_note
- if (tips && typeof (tips) == "string") {
- this.setData({
- tips: tips.split('\n')
- })
- }
- } else if (this.data.type == 3) {
- var tips = wxyj.wxyjData.data.wxyj[index].fund_note
- if (tips && typeof (tips) == "string") {
- this.setData({
- tips: tips.split('\n')
- })
- }
- }
- if (this.data.type == 0 || this.data.type == 1) {
- this.setData({ buySheBao: true, buyFund: false })
- } else {
- this.setData({ buySheBao: false, buyFund: true })
- }
- if (this.data.type == 0 || this.data.type == 2) {
- wxyj.wxyjData.order.nums = wxyj.wxyjData.data.wxyj[index].nums
- var year = Number(String(wxyj.wxyjData.data.wxyj[index].month).slice(0, 4))
- var month = Number(String(wxyj.wxyjData.data.wxyj[index].month).slice(-2))
- var data = wxyj.wxyjData.data.wxyj[index]
- data.funds.forEach((item) => {
- if (String(item.min).indexOf('.') != -1) {
- item.min = parseInt(item.min) + 1
- }
- if (String(item.max).indexOf('.') != -1) {
- item.max = parseInt(item.max)
- }
- })
- this.setData({
- data,
- startYear: year,
- startMonth: month,
- nums: wxyj.wxyjData.order.nums
- })
- if (this.data.nums == 1) {
- this.setData({
- endYear: year,
- endMonth: month,
- })
- } else {
- if (month + this.data.nums > 13) {
- this.setData({
- endYear: year + 1,
- endMonth: month + this.data.nums - 13,
- })
- } else {
- this.setData({
- endYear: year,
- endMonth: month + this.data.nums - 1,
- })
- }
- }
- } else {
- wxyj.wxyjData.order.nums = 1
- var year = Number(String(wxyj.wxyjData.data.wxyj[index].month).slice(0, 4))
- var month = Number(String(wxyj.wxyjData.data.wxyj[index].month).slice(-2))
- if (month == 1) {
- this.setData({
- data: wxyj.wxyjData.data.wxyj[index],
- startYear: year - 1,
- startMonth: 12,
- endYear: year - 1,
- endMonth: 12,
- nums: 1
- })
- } else {
- this.setData({
- data: wxyj.wxyjData.data.wxyj[index],
- startYear: year,
- startMonth: month - 1,
- endYear: year,
- endMonth: month - 1,
- nums: 1
- })
- }
- }
- if (this.data.data.shebao_type.indexOf('标准') != -1) {
- this.setData({ haveType: false })
- } else {
- this.setData({ haveType: true })
- }
- if (!this.data.data.fund_buy && this.data.type == 2) {
- this.setData({ buySheBao: true })
- this.data.pack = true
- }
- this.initOrder()
- if (!isFirst) {
- this.refreshData()
- }
- },
- openModal(e) {
- var pickerData
- if (e.currentTarget.dataset.type == 'city') {
- pickerData = this.data.city.concat()
- } else if (e.currentTarget.dataset.type == 'type') {
- if (this.data.type == 0) {
- pickerData = [['一档', '二档']]
- } else {
- pickerData = [['一档(补缴)', '二档(补缴)']]
- }
- } else if (e.currentTarget.dataset.type == 'hukou') {
- pickerData = [['本地城镇', '本地农村', '外地城镇', '外地农村']]
- } else if (e.currentTarget.dataset.type == 'card') {
- pickerData = [['不办卡', '新办卡(不支持补办)']]
- }
- this.chooseCityModal = this.selectComponent("#chooseCityModal");
- this.chooseCityModal.openModal(pickerData, e.currentTarget.dataset.type)
- },
- changeCurrent(e) {
- if (e.detail.type == "city") {
- var type, http, buyFund, buySheBao
- if (this.data.type == 0 || this.data.type == 1) {
- type = 1
- buySheBao = true
- buyFund = false
- } else {
- type = 2
- buySheBao = false
- buyFund = true
- }
- if (this.data.type == 0 || this.data.type == 2) {
- http = url.getNormalPurchaseData
- } else {
- http = url.getSupplementaryPurchaseData
- }
- net.connectNeedLogin({
- url: url.app_host + http,
- data: { city_code: e.detail.data.id, type },
- success: (err, res) => {
- if (this.data.type == 2 || this.data.type == 3) {
- if (!res.data.wxyj[0].fund_buy2 || (!res.data.wxyj[0].pack && !res.data.wxyj[0].fund_buy)) {
- swan.showToast({
- title: '该城市不能购买公积金',
- icon: 'none',
- mask: true
- });
- return
- }
- }
- wxyj.wxyjData.type = 1
- wxyj.wxyjData.currentCity = e.detail.data
- wxyj.wxyjData.lastValue = e.detail.lastValue
- wxyj.wxyjData.data = res.data
- this.setData({
- currentCity: e.detail.data,
- isFirstbuySheBao: false,
- isFirstBuyFund: false,
- pack: false,
- buyFund,
- buySheBao,
- fundPrice: 0,
- salary: 0,
- isJob: false,
- wageMoney: ''
- })
- var arr = res.data.wxyj[0].shebaos[1].data.filter(item => {
- return item.i == 12
- })
- if (arr.length && arr[0].n.indexOf('年缴') != -1) {
- this.setData({ yearPay: true, yearPayMoney: arr[0].p })
- } else {
- this.setData({ yearPay: false, yearPayMoney: 0 })
- }
- this.initData()
- if (this.data.type == 2 || this.data.type == 3) { return }
- this.getPrice(true)
- },
- fail: (err, res) => {
- swan.hideLoading()
- swan.showToast({
- title: '加载数据失败!请检查网络设置!',
- icon: 'none'
- })
- }
- }, true)
- } else if (e.detail.type == "type") {
- wxyj.wxyjData.type = e.detail.index
- if (e.detail.index == 0) {
- this.setData({
- data: wxyj.wxyjData.data.wxyj[1],
- isJob: false,
- wageMoney: ''
- })
- } else {
- this.setData({
- data: wxyj.wxyjData.data.wxyj[0],
- isJob: false,
- wageMoney: ''
- })
- }
- this.initOrder()
- this.getPrice(true)
- } else if (e.detail.type == "hukou") {
- wxyj.wxyjData.hukou = e.detail.data
- wxyj.wxyjData.detailIndex = e.detail.index
- this.setData({ currentHukou: e.detail.data })
- this.initOrder()
- this.getPrice(true)
- } else if (e.detail.type == "card") {
- if (e.detail.index == 0) {
- this.setData({ currentCard: [0, '不办卡'] })
- } else {
- this.setData({ currentCard: [1, '新办卡'] })
- }
- this.initOrder()
- }
- this.refreshData()
- swan.hideLoading();
- },
- chooseDate() {
- swan.navigateTo({
- url: '../choose-date/choose-date?type=' + this.data.type
- })
- },
- refreshData() {
- var fundTotalPrice = this.data.fundPrice * this.data.nums,
- fundMin = this.data.data.funds[wxyj.wxyjData.detailIndex].min,
- fundMax = this.data.data.funds[wxyj.wxyjData.detailIndex].max,
- needWage
- if (String(fundMin).indexOf('.') != -1) {
- fundMin = parseInt(fundMin) + 1
- } else {
- fundMin = parseInt(fundMin)
- }
- fundMax = parseInt(fundMax)
- if (this.data.data.sb_wage) {
- needWage = true
- } else {
- needWage = false
- }
- if (this.data.type == 2 && !this.data.buySheBao) { needWage = false }
- this.setData({
- currentType: this.data.data.shebao_type,
- cardPrice: this.data.data.shebao_card_charge,
- fundTotalPrice,
- fundPriceRange: [fundMin, fundMax],
- ep: this.data.data.funds[wxyj.wxyjData.detailIndex].e,
- pp: this.data.data.funds[wxyj.wxyjData.detailIndex].p,
- needWage
- })
- if (!this.data.data.pack) {
- this.setData({ disable: true })
- }
- this.initOrder()
- this.countServiceMoney()
- this.countTotalMoney()
- },
- switchAction(e) {
- if (e.currentTarget.dataset.type == 'buyFund') {
- if (!this.data.data.pack) {
- this.setData({ buyFund: '' })
- swan.showToast({
- title: '该城市不支持打包购买',
- icon: 'none',
- mask: true
- });
- this.setData({ buyFund: false })
- return
- } else if (!this.data.data.fund_buy2) {
- this.setData({ buyFund: '' })
- swan.showToast({
- title: '该城市暂不支持购买公积金',
- icon: 'none',
- mask: true
- });
- this.setData({ buyFund: false })
- return
- }
- this.data.buyFund = !this.data.buyFund
- this.setData({ buyFund: this.data.buyFund })
- if (!this.data.buyFund) {
- this.data.isFirstBuyFund = false
- this.setData({
- pack: false,
- fundPrice: 0
- })
- } else {
- this.setData({
- pack: true
- })
- }
- } else if (e.currentTarget.dataset.type == 'buySheBao') {
- this.getSheBaoMoney()
- if (!this.data.data.pack) {
- this.setData({ buySheBao: '' })
- swan.showToast({
- title: '该城市不支持打包购买',
- icon: 'none',
- mask: true
- })
- this.setData({ buySheBao: false })
- return
- }
- if (!this.data.data.fund_buy && this.data.type == 2) {
- this.setData({ buySheBao: 1 })
- swan.showModal({
- title: '',
- content: '该地区不支持单独购买公积金,请选择购买社保。',
- confirmColor: '#3296FB',
- confirmText: '确定',
- showCancel: false,
- })
- this.setData({ buySheBao: true })
- return
- }
- this.data.buySheBao = !this.data.buySheBao
- this.setData({ buySheBao: this.data.buySheBao })
- if (!this.data.buySheBao) {
- this.data.isFirstbuySheBao = false
- this.setData({
- pack: false
- })
- } else {
- this.setData({
- pack: true
- })
- }
- } else if (e.currentTarget.dataset.type == 'isFirstBuySheBao') {
- this.data.isFirstbuySheBao = !this.data.isFirstbuySheBao
- } else if (e.currentTarget.dataset.type == 'isFirstBuyFund') {
- this.data.isFirstBuyFund = !this.data.isFirstBuyFund
- } else if (e.currentTarget.dataset.type == 'job') {
- this.data.isJob = !this.data.isJob
- }
- this.setData({
- isFirstbuySheBao: this.data.isFirstbuySheBao,
- isFirstBuyFund: this.data.isFirstBuyFund,
- buyFund: this.data.buyFund,
- buySheBao: this.data.buySheBao,
- isJob: this.data.isJob
- })
- this.refreshData()
- },
- inputAction(e) {
- if (e.currentTarget.dataset.type == "wage") {
- this.setData({
- wageMoney: e.detail.value
- })
- } else {
- var salary = e.detail.value / ((this.data.ep + this.data.pp) / 100).toFixed(2)
- this.setData({
- salary: parseInt(salary)
- })
- if (e.detail.value) {
- this.setData({ fundPrice: e.detail.value })
- } else {
- this.setData({ fundPrice: 0 })
- }
- }
- this.refreshData()
- },
- countServiceMoney() {
- var cheapMoney, cheapTotalMoney
- cheapMoney = this.data.data.shebao_charge + this.data.data.fund_charge - this.data.data.package_charge
- cheapTotalMoney = cheapMoney * this.data.nums
- cheapMoney = cheapMoney.toFixed(2)
- cheapTotalMoney = cheapTotalMoney.toFixed(2)
- if (this.data.type == 0) {
- if (!this.data.buyFund) {
- this.data.cheap = false
- this.data.serviceMoney = (this.data.data.shebao_charge) * this.data.nums
- } else {
- this.data.serviceMoney = (this.data.data.package_charge) * this.data.nums
- this.data.cheap = true
- }
- } else if (this.data.type == 1 || this.data.type == 3) {
- this.data.serviceMoney = (this.data.data.added_charge) * this.data.nums
- } else if (this.data.type == 2) {
- if (!this.data.buySheBao) {
- this.data.cheap = false
- this.data.serviceMoney = (this.data.data.fund_charge) * this.data.nums
- } else {
- this.data.serviceMoney = (this.data.data.package_charge) * this.data.nums
- this.data.cheap = true
- }
- }
- this.setData({
- cheap: this.data.cheap,
- cheapMoney,
- cheapTotalMoney,
- serviceMoney: this.data.serviceMoney.toFixed(2)
- })
- },
- countTotalMoney() {
- var
- shebaoPrice = Number(this.data.shebaoPrice),
- serviceMoney = Number(this.data.serviceMoney),
- fundTotalPrice = this.data.fundTotalPrice,
- totalMoney, totalMoneyArr = []
- if (this.data.type == 0) {
- if (!this.data.buyFund) {
- totalMoney = shebaoPrice + serviceMoney
- } else {
- totalMoney = shebaoPrice + serviceMoney + fundTotalPrice
- }
- } else if (this.data.type == 1) {
- totalMoney = shebaoPrice + serviceMoney
- } else if (this.data.type == 2) {
- if (!this.data.buySheBao) {
- totalMoney = fundTotalPrice + serviceMoney
- } else {
- totalMoney = shebaoPrice + serviceMoney + fundTotalPrice
- }
- } else if (this.data.type == 3) {
- totalMoney = fundTotalPrice + serviceMoney
- }
- if (this.data.currentCard[0] == 1) {
- totalMoney += this.data.cardPrice
- }
- totalMoney = String(totalMoney.toFixed(2))
- totalMoneyArr[0] = totalMoney.substring(0, totalMoney.length - 2)
- totalMoneyArr[1] = totalMoney.slice(-2)
- this.setData({
- totalMoney: totalMoney,
- totalMoneyArr: totalMoneyArr
- })
- },
- btnAction() {
- if (this.data.buyFund) {
- if (!this.data.fundPrice && this.data.buySheBao) {
- swan.showToast({
- title: '打包时需要填写公积金金额',
- icon: 'none',
- mask: true
- })
- return
- } else if (this.data.fundPrice < this.data.fundPriceRange[0] || this.data.fundPrice > this.data.fundPriceRange[1] || !this.data.fundPrice) {
- swan.showToast({
- title: '请填写缴费范围内的公积金金额',
- icon: 'none',
- mask: true
- })
- return
- }
- } else if (this.data.needWage && !this.data.isJob && this.data.type != 1) {
- if (this.data.wageMoney < swan.getStorageSync(key.StorageKey.minSalary) || this.data.wageMoney > 5000) {
- swan.showToast({
- title: '请填写范围内的社保流水',
- icon: 'none',
- mask: true
- })
- return
- }
- }
- new Promise(resolve => {
- var order = wxyj.wxyjData.order, http, status
- if (this.data.type == 0 || this.data.type == 2) {
- http = url.getTotalFee
- } else {
- http = url.getTotalSupplementaryPayFee
- }
- net.connectNeedLogin({
- url: url.app_host + http,
- data: {
- sbuId: order.sbuId,
- key: app.loginStatus.key,
- cid: order.cid,
- month: order.month,
- nums: order.nums,
- newCard: order.newCard,
- shebao_card: order.shebao_card ? order.shebao_card : 0,
- hukou_type: order.hukou_type,
- pay_for: order.pay_for,
- fund: order.fund
- },
- success: (err, res) => {
- swan.hideLoading();
- this.setData({ shebaoPrice: res.data.shebao.toFixed(2), totalMoneyData: res.data })
- this.countServiceMoney()
- this.countTotalMoney()
- resolve()
- },
- fail: (err, res) => {
- swan.hideLoading();
- businessT.showFailTips(err)
- }
- }, true)
- }).then(() => {
- if (this.data.buyFund) {
- this.getLastFund()
- } else {
- this.goNext()
- }
- })
- },
- initOrder() {
- wxyj.wxyjData.order.key = app.loginStatus.key
- wxyj.wxyjData.order.cid = this.data.data.id
- wxyj.wxyjData.order.hukou_type = wxyj.wxyjData.detailIndex + 1
- wxyj.wxyjData.order.nums = this.data.nums
- wxyj.wxyjData.order.first_sb = this.data.isFirstbuySheBao ? 1 : 0
- wxyj.wxyjData.order.first_fund = this.data.isFirstBuyFund ? 1 : 0
- wxyj.wxyjData.order.fund = this.data.buyFund ? this.data.fundPrice : 0
- if (this.data.startMonth < 10) {
- wxyj.wxyjData.order.month = this.data.startYear + '0' + this.data.startMonth
- } else {
- wxyj.wxyjData.order.month = this.data.startYear + String(this.data.startMonth)
- }
- if (this.data.currentCard[0]) {
- wxyj.wxyjData.order.newCard = true
- } else {
- wxyj.wxyjData.order.newCard = false
- }
- if (this.data.type == 0 || this.data.type == 1) {
- wxyj.wxyjData.order.buyShebao = true
- if (this.data.pack) {
- wxyj.wxyjData.order.pay_for = "3"
- } else {
- wxyj.wxyjData.order.pay_for = "1"
- }
- } else {
- wxyj.wxyjData.order.buyShebao = this.data.buySheBao
- if (this.data.pack) {
- wxyj.wxyjData.order.pay_for = "4"
- } else {
- wxyj.wxyjData.order.pay_for = "2"
- }
- }
- if (this.data.isJob) {
- wxyj.wxyjData.order.working = 1
- wxyj.wxyjData.order.sb_wage = 0
- } else {
- wxyj.wxyjData.order.working = 0
- wxyj.wxyjData.order.sb_wage = this.data.wageMoney ? this.data.wageMoney : 0
- }
- },
- getPrice(notShowFail) {
- var order = wxyj.wxyjData.order, http, status
- if (this.data.type == 0 || this.data.type == 2) {
- http = url.getTotalFee
- } else {
- http = url.getTotalSupplementaryPayFee
- }
- swan.showLoading({
- title: '请稍后...',
- mask: true,
- });
- net.connectNeedLogin({
- url: url.app_host + http,
- data: {
- sbuId: order.sbuId,
- key: app.loginStatus.key,
- cid: order.cid,
- month: order.month,
- nums: order.nums,
- newCard: order.newCard,
- shebao_card: order.shebao_card ? order.shebao_card : 0,
- hukou_type: order.hukou_type,
- pay_for: order.pay_for,
- fund: order.fund
- },
- success: (err, res) => {
- swan.hideLoading();
- this.setData({ shebaoPrice: res.data.shebao.toFixed(2), totalMoneyData: res.data })
- this.countServiceMoney()
- this.countTotalMoney()
- },
- fail: (err, res) => {
- swan.hideLoading();
- this.getSheBaoMoney()
- if (notShowFail) return
- businessT.showFailTips(err)
- }
- }, true)
- },
- getSheBaoMoney() {
- var shebaoData = this.data.data.shebaos[wxyj.wxyjData.detailIndex].data
- this.setData({ shebaoData })
- var shebaoPrice = 0
- shebaoData.forEach((item) => {
- item.p = Number(item.p).toFixed(2)
- shebaoPrice += Number(item.p)
- })
- if (this.data.yearPayMoney && this.data.nums > 1) {
- shebaoPrice = shebaoPrice * this.data.nums - this.data.yearPayMoney * (this.data.nums - 1)
- } else {
- shebaoPrice = shebaoPrice * this.data.nums
- }
- this.setData({ shebaoPrice: shebaoPrice.toFixed(2) })
- this.refreshData()
- },
- getLastFund(n) {
- var order = wxyj.wxyjData.order
- net.connectNeedLogin({
- url: url.app_host + url.getFundOfBuyBefore,
- data: {
- sbuId: order.sbuId,
- city_code: wxyj.wxyjData.currentCity.id
- },
- success: (err, res) => {
- this.setData({ lastFund: res.data })
- if (res.data > this.data.fundPrice) {
- swan.showModal({
- content: '你最近一次缴公积金金额为' + res.data + '元,若非系统调整请不要随意更改',
- confirmText: '我知道了',
- confirmColor: '#3296FB',
- showCancel: false
- });
- this.setData({ fundPrice: res.data })
- this.refreshData()
- return
- } else if (res.data < this.data.fundPrice) {
- swan.showModal({
- content: '你最近一次缴公积金金额为' + res.data + '元,若非系统调整请不要随意更改',
- showCancel: true,
- cancelText: '继续购买',
- cancelColor: '#3296FB',
- confirmText: '返回修改',
- confirmColor: '#3296FB',
- success: res => {
- if (res.confirm) {
- this.setData({ fundPrice: this.data.lastFund })
- this.refreshData()
- } else {
- this.refreshData()
- this.goNext()
- }
- },
- });
- } else {
- this.goNext()
- }
- },
- fail: (err, res) => {
- this.goNext()
- }
- }, true)
- },
- openJobModal() {
- const animation = swan.createAnimation()
- animation.translateY(-500).step();
- this.setData({
- modalStatus: true
- }, () => {
- this.setData({
- animationData: animation.export()
- })
- })
- },
- closeJobModal() {
- const animation = swan.createAnimation()
- animation.translateY(0).step();
- this.setData({
- animationData: animation.export()
- })
- setTimeout(() => {
- this.setData({
- modalStatus: false,
- })
- }, 400)
- },
- goNext() {
- swan.navigateTo({
- url: '../pay/pay?nums=' + this.data.nums + '&city=' + this.data.currentCity.name + '&hukou=' + this.data.currentHukou + '&type=' + this.data.type + '&orderStatus=' + this.data.type + '&price=' + JSON.stringify(this.data.totalMoneyData)
- })
- },
- onLoad: function (res) {
- // 监听页面加载的生命周期函数
- swan.setPageInfo && swan.setPageInfo({
- title: '【我的社保】官方APP-社保挂靠公积金代理全国自助缴纳查询社保公积金_主页',
- keywords: '我的社保,我的社保网,我的社保APP,社会保障,社保,社保代缴,公积金代缴,社会保险,五险一金,医保,医疗保险,公积金,养老,生育,工伤,失业,住房公积金,社保代理,代缴社保,公积金代理,查悦社保,大社保,亲亲小保,社保掌上通,招聘求职,创业,买房,贷款,计算器,人社局,摇号',
- description: '我的社保APP是为个人、企业提供社保代缴代扣、公积金代扣代缴、社保查询、公积金查询服务的名牌产品。解决个体工商户、自由职业者、待业人员、全职妈妈、创业者等的个人社保公积金断缴难题,同时解决贷款, 买房, 买车, 养老, 医疗, 生育, 医疗报销等难题。同时为企业提供全国专业社保代理和公积金代理。',
- articleTitle: '【我的社保】官方APP-社保挂靠公积金代理全国自助缴纳查询社保公积金_主页',
- release_date: '2019-02-23 20:00:00',
- success: function () {
- },
- fail: function (res) {
- },
- })
- var wage = swan.getStorageSync(key.StorageKey.minSalary)
- wage = wage + '元-5000元'
- this.setData({
- suffix: sysT.suffixOfClass(),
- type: res.type,
- city: [wxyj.wxyjData.province, wxyj.wxyjData.city],
- currentCity: wxyj.wxyjData.currentCity,
- currentHukou: wxyj.wxyjData.hukou,
- suffix: sysT.suffixOfClass(),
- wage
- })
- this.setTitle()
- this.initData(true)
- this.getPrice(true)
- },
- onReady: function (res) {
- // 监听页面初次渲染完成的生命周期函数
- },
- onShow: function () {
- // 监听页面显示的生命周期函数
- if (wxyj.wxyjData.startTime) {
- this.setData({
- startYear: wxyj.wxyjData.startTime[0],
- startMonth: wxyj.wxyjData.startTime[1],
- endYear: wxyj.wxyjData.endTime[0],
- endMonth: wxyj.wxyjData.endTime[1],
- nums: wxyj.wxyjData.order.nums,
- })
- }
- this.refreshData()
- this.initOrder()
- this.getSheBaoMoney()
- },
- onHide: function () {
- // 监听页面隐藏的生命周期函数
- },
- onUnload: function () {
- // 监听页面卸载的生命周期函数
- wxyj.wxyjData.startTime = ''
- wxyj.wxyjData.endTime = ''
- },
- onPullDownRefresh: function () {
- // 监听用户下拉动作
- },
- onReachBottom: function () {
- // 页面上拉触底事件的处理函数
- },
- onShareAppMessage: function () {
- // 用户点击右上角转发
- }
- });
|