diff --git a/app.json b/app.json index 04695cc..9aed8b6 100644 --- a/app.json +++ b/app.json @@ -15,7 +15,6 @@ "pages/home/tab5/index", "pages/home/tab6/index", "pages/home/attention-paper/index", - "pages/home/business-license/index", "pages/shop/create/index", "pages/shop/detail/index", "pages/shop/order/index", diff --git a/pages/home/business-license/index.js b/pages/home/business-license/index.js deleted file mode 100644 index 94fc367..0000000 --- a/pages/home/business-license/index.js +++ /dev/null @@ -1,118 +0,0 @@ -// pages/home/businessLicense/index.js -import { updateUserInfo, getBaseInfo } from '../../../api/ztb' -const util = require('../../../utils/util') -Page({ - - /** - * 页面的初始数据 - */ - data: { - fileList: [], - imgLength: 0, - form: { - imgList: '' - } - - }, - - /** - * 生命周期函数--监听页面加载 - */ - onLoad: function (options) { - this.getUerInfoFct() - - }, - - /** - * 生命周期函数--监听页面初次渲染完成 - */ - onReady: function () { - - }, - - /** - * 生命周期函数--监听页面显示 - */ - onShow: function () { - - }, - - /** - * 生命周期函数--监听页面隐藏 - */ - onHide: function () { - - }, - - /** - * 生命周期函数--监听页面卸载 - */ - onUnload: function () { - - }, - - /** - * 页面相关事件处理函数--监听用户下拉动作 - */ - onPullDownRefresh: function () { - - }, - - /** - * 页面上拉触底事件的处理函数 - */ - onReachBottom: function () { - - }, - - /** - * 用户点击右上角分享 - */ - onShareAppMessage: function () { - - }, - // 分享至朋友圈 - onShareTimeline: function () { - - }, - onImageChange: function (e) { - var that = this - if (e.detail) { - var list = [] - e.detail.forEach(element => { - if (!util.isEmpty(element.url)) { - list.push(element.url) - } - }) - that.data.form['imgList'] = list - that.updateUserInfoFct({ - businessLicenseUrl: e.detail[0].url - }) - that.setData({ - imgLength: list.length - }) - - } - }, - updateUserInfoFct: function (model) { - console.log(model) - updateUserInfo(model).then(result => {}).catch(err => {}) - }, - getUerInfoFct: function () { - var that = this - getBaseInfo().then(res => { - that.data.form['imgList'] = res.data.businessLicenseUrl - var list = [] - if (res.data.businessLicenseUrl) { - list.push(res.data.businessLicenseUrl) - } - that.setData({ - imgLength: list.length, - fileList: [{ - url: res.data.businessLicenseUrl, - status: 8 - }] - }) - }) - } -}) \ No newline at end of file diff --git a/pages/home/business-license/index.json b/pages/home/business-license/index.json deleted file mode 100644 index 6adbfe2..0000000 --- a/pages/home/business-license/index.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "usingComponents": { - "wux-uploader": "/components/uploader/index" - } -} \ No newline at end of file diff --git a/pages/home/business-license/index.wxml b/pages/home/business-license/index.wxml deleted file mode 100644 index 8788420..0000000 --- a/pages/home/business-license/index.wxml +++ /dev/null @@ -1,32 +0,0 @@ - - - 营业执照 - - - - - - - - - HI,\n欢迎使用纸通宝\n开启一站式废纸交易 - - - - - - - 你的营业执照是? - - - - - {{!disabled?'营业执照(上传1张)':'营业执照'}} - {{imgLength}}{{!disabled? '/1':'张'}} - - - - - - - \ No newline at end of file diff --git a/pages/home/business-license/index.wxss b/pages/home/business-license/index.wxss deleted file mode 100644 index d465167..0000000 --- a/pages/home/business-license/index.wxss +++ /dev/null @@ -1,58 +0,0 @@ -/* pages/home/businessLicense/index.wxss */ -page{ - background-color: white; -} -.bj { - background-color: white; - min-height: 900rpx; -} - -.vip-btn { - /* height: 90rpx; */ - width: 180rpx; - background: #F5F5F5; - float: right; - color: rgba(0, 0, 0, 0.45); - font-size: 28rpx; -} - -.top { - height: 258rpx; - width: 100%; -} - -.topText { - width: 440rpx; - height: 258rpx; - float: left; - padding-left: 48rpx; - padding-top: 60rpx; - font-size: 44rpx; - color: #000000; - font-family: PingFangSC-Medium; -} - -.mid { - height: 150rpx; - padding-top: 100rpx; - padding-left: 48rpx; - font-family: PingFangSC-Medium; - font-size: 36rpx; - color: #000000; - letter-spacing: 2px; -} - -.bottom { - height: 410rpx; - padding: 48rpx; -} - -.wux-badge { - position: absolute; - width: 120px; - height: 120px; - opacity: 0.8; - right: 0; - bottom: 0; - z-index: 10; -} \ No newline at end of file diff --git a/pages/home/info/index.js b/pages/home/info/index.js index 981e021..7a784e9 100644 --- a/pages/home/info/index.js +++ b/pages/home/info/index.js @@ -293,11 +293,6 @@ Page({ } }) }, - toBusinessLicense: function () { - wx.navigateTo({ - url: '/pages/home/business-license/index' - }) - }, toTab4: function () { wx.navigateTo({ url: '/pages/home/tab4/index' diff --git a/submodel/pages/home/enterprise/index.js b/submodel/pages/home/enterprise/index.js index 1f0d453..2ca58e2 100644 --- a/submodel/pages/home/enterprise/index.js +++ b/submodel/pages/home/enterprise/index.js @@ -352,42 +352,7 @@ Page({ this.data.form['locDistrictId'] = e.detail.value[2] this.data.form['locDistrictName'] = e.detail.options[2].label } - this.setData({ - picking: false - }) - }, - toBusinessLicense: function () { - wx.navigateTo({ - url: '/pages/home/business-license/index' - }) - }, - toTab4: function () { - wx.navigateTo({ - url: '/pages/home/tab4/index' - }) - }, - toTab5: function () { - wx.navigateTo({ - url: '/pages/home/tab5/index' - }) - }, - toTab6: function () { - wx.navigateTo({ - url: '/pages/home/tab6/index' - }) - }, - toTab3: function () { - wx.navigateTo({ - url: '/pages/home/tab3/index' - }) - }, - toTab2: function () { - wx.navigateTo({ - url: '/pages/home/tab2/index' - }) - }, - toTab1: function () { - wx.navigateTo({ url: '/pages/home/tab1/index' }) + this.setData({ picking: false }) }, onShow: function () { tdsdk.Page.onShow() diff --git a/submodel/pages/html/personal/index.js b/submodel/pages/html/personal/index.js index 3449e4a..c5d8046 100644 --- a/submodel/pages/html/personal/index.js +++ b/submodel/pages/html/personal/index.js @@ -380,44 +380,7 @@ Page({ this.data.form['locDistrictId'] = e.detail.value[2] this.data.form['locDistrictName'] = e.detail.options[2].label } - this.setData({ - picking: false - }) - }, - toBusinessLicense: function () { - wx.navigateTo({ - url: '/pages/home/business-license/index' - }) - }, - toTab4: function () { - wx.navigateTo({ - url: '/pages/home/tab4/index' - }) - }, - toTab5: function () { - wx.navigateTo({ - url: '/pages/home/tab5/index' - }) - }, - toTab6: function () { - wx.navigateTo({ - url: '/pages/home/tab6/index' - }) - }, - toTab3: function () { - wx.navigateTo({ - url: '/pages/home/tab3/index' - }) - }, - toTab2: function () { - wx.navigateTo({ - url: '/pages/home/tab2/index' - }) - }, - toTab1: function () { - wx.navigateTo({ - url: '/pages/home/tab1/index' - }) - }, + this.setData({ picking: false }) + } }) \ No newline at end of file