已修改36个文件
已添加17个文件
已重命名1个文件
| | |
| | | // app.js |
| | | import moment from './utils/moment.min' |
| | | import $f from "./service/baserequest" |
| | | |
| | | App({ |
| | | onLaunch() { |
| | |
| | | perPage: 5, |
| | | userInfo: null, |
| | | accessToken: null, |
| | | isLogin: false |
| | | isLogin: false, |
| | | version: 'ä½éªç 1.0.0', |
| | | agreement: $f.baseFileUrl + '/agreement/ä¸å°å¾®ä¼ä¸çæç¯å¢å®æ³æºè½æå¡å¾®ä¿¡å°ç¨åºæå¡åè®®.docx' |
| | | }, |
| | | // æºè½å¨è¯¢ç»æç±»åææ¬è½¬æ¢ |
| | | cosultTypeName: (typeId) => { |
| | |
| | | "pages/m_user/companyregister/companyregister", |
| | | "pages/m_user/companyauthentication/companyauthentication", |
| | | "pages/m_user/base_c/c_company-info/c_company-info", |
| | | "pages/m_user/sceneauthentication/sceneauthentication" |
| | | "pages/m_user/sceneauthentication/sceneauthentication", |
| | | "pages/m_user/personalauthentication/personalauthentication", |
| | | "pages/m_user/p_about/p_about", |
| | | "pages/m_user/p_changepw/p_changepw" |
| | | ], |
| | | "window": { |
| | | "backgroundTextStyle": "light", |
| | |
| | | |
| | | page { |
| | | --fyui-primary-color: #59D5B3; |
| | | --fyui-text-color_1: #191919; |
| | | --fyui-text-color_2: #7F7F7F; |
| | | --fyui-text-color_1: #3a3a3a; |
| | | --fyui-text-color_2: #666666; |
| | | --fyui-text-color_3: #B2B2B2; |
| | | --fyui-BG_1: #F5F5F5; |
| | | --fyui-BG-COLOR-ACTIVE: #ececec5d; |
| ÎļþÃû´Ó pages/m_user/behaviors/b_inputCheck.js ÐÞ¸Ä |
| | |
| | | index, |
| | | mode |
| | | } = e.currentTarget.dataset |
| | | let i = e.detail.value.concat(e.detail.code) |
| | | if (mode == 'region') { |
| | | const i = e.detail.value.concat(e.detail.code) |
| | | this.setData({ |
| | | [`msg[${index}].value`]: i |
| | | }) |
| | | } else if (mode == 'selector') { |
| | | const i = e.detail.value |
| | | this.setData({ |
| | | [`msg[${index}].selectIndex`]: i, |
| | | [`msg[${index}].value`]: this.data.msg[index].options[i].value |
| | |
| | | |
| | | let msg = this.data.msg |
| | | if (msg) { |
| | | let info = {} |
| | | const info = this.data.info |
| | | msg.forEach(m => { |
| | | info[m.id] = m.value |
| | | }); |
| | | this.setData({info}) |
| | | this.triggerEvent('onSubmit', info) |
| | | this.submit() |
| | | if (typeof this._submit === 'function') this._submit() |
| | | } |
| | | }, |
| | | } |
| | |
| | | perPage: 10, |
| | | totalCount: 0, |
| | | loading: false, |
| | | needLoadMore: false |
| | | needLoadMore: false, |
| | | timeout: false |
| | | }, |
| | | timeoutId: '', |
| | | lastLoading: false, |
| | | observers: { |
| | | 'loading': function (loading) { |
| | | if (this.lastLoading == loading) return |
| | | if (loading) { |
| | | clearTimeout(this.timeoutId) |
| | | this._loadStart() |
| | | this._loading() |
| | | setTimeout(() => { this.setData({loading: false}) }, 20000); |
| | | this.timeoutId = setTimeout(() => { |
| | | this.setData({ |
| | | loading: false, |
| | | timeout: true |
| | | }) |
| | | }, 10000); |
| | | } else { |
| | | clearTimeout(this.timeoutId) |
| | | this._loadComplete() |
| | | } |
| | | this.lastLoading = loading |
| | | }, |
| | | 'cPage, tPage': function (cPage, tPage) { |
| | | this.setData({ |
| | |
| | | const { clearTimeout } = require("timers"); |
| | | |
| | | /** |
| | | * æ°æ®å è½½å¼¹çª |
| | | * æ ¹æ®å è½½ç¶æï¼å±ç¤ºå¯¹åºçå¼¹çª |
| | |
| | | module.exports = Behavior({ |
| | | data: { |
| | | loadingText: 'å è½½ä¸', |
| | | loadCompleteText: 'å è½½å®æ' |
| | | loadCompleteText: 'å è½½å®æ', |
| | | timeoutText: 'å è½½è¶
æ¶' |
| | | }, |
| | | timeoutId: '', |
| | | methods: { |
| | | // å è½½å¼å§toast |
| | | loadStart() { |
| | | clearTimeout(this.timeoutId) |
| | | wx.showLoading({ |
| | | title: this.data.loadingText, |
| | | mask: true, |
| | | }) |
| | | this.timeoutId = setTimeout(() => { |
| | | wx.hideLoading() |
| | | }, 20000); |
| | | }, |
| | | // å è½½ä¸toast |
| | | loading() { |
| | |
| | | }, |
| | | // å è½½å®ætoast |
| | | loadComplete() { |
| | | clearTimeout(this.timeoutId) |
| | | wx.hideLoading({ |
| | | success: (res) => { |
| | | wx.showToast({ |
| | | title: this.data.loadCompleteText, |
| | | title: this.data.timeout ? this.data.timeoutText : this.data.loadCompleteText, |
| | | duration: 1000, |
| | | icon: 'success', |
| | | icon: this.data.timeout ? 'error' : 'success', |
| | | mask: true, |
| | | }) |
| | | }, |
| | |
| | | this.setData({ |
| | | imgFiles: data |
| | | }) |
| | | console.log(imgFiles); |
| | | }, |
| | | /** |
| | | * çå¬å¾çå é¤å¨ä½ |
| | |
| | | </block> |
| | | </swiper> |
| | | <view class="weui-gallery__opr" wx:if="{{showDelete}}"> |
| | | <navigator bindtap="deleteImg" class="weui-gallery__del">å é¤</navigator> |
| | | <view bindtap="deleteImg" class="weui-gallery__del">å é¤</view> |
| | | </view> |
| | | </view> |
| | |
| | | src:files[0].url, |
| | | quality:20, |
| | | success(data){ |
| | | console.log(data) |
| | | console.log('compressImage', data) |
| | | }, |
| | | fail(){ |
| | | |
| | |
| | | </view> |
| | | </view> |
| | | <view wx:else class="weui-uploader__file" data-index="{{index}}" bindtap="previewImage"> |
| | | <image class="weui-uploader__img" src="{{item.url}}" mode="aspectFit" /> |
| | | <image class="weui-uploader__img" src="{{item.url}}" mode="aspectFill" /> |
| | | </view> |
| | | </block> |
| | | </view> |
| | |
| | | input: true, |
| | | value: '', |
| | | noValue: false, |
| | | required: false |
| | | }, |
| | | { |
| | | name: "ç»è¥èç³»", |
| | |
| | | }, |
| | | { |
| | | name: "è系人", |
| | | id: "biContract", |
| | | id: "biContact", |
| | | input: true, |
| | | value: '', |
| | | noValue: false, |
| | |
| | | return map |
| | | } |
| | | |
| | | export default sceneInfo |
| | | /** |
| | | * åºæ¯æ³¨åæ¶ï¼éè¦æäº¤çå°è´¦ç±»å |
| | | * åç»éè¦è°æ´ä¸ºæ¥å£è·åå¨æä¿¡æ¯ |
| | | */ |
| | | const sceneLedger = { |
| | | '1': { |
| | | ledgerSubTypeId: 2101, |
| | | ledgerName: 'é£åç»è¥è®¸å¯è¯', |
| | | sceneType: 1 |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * ä¼ä¸æ³¨åæ¶ï¼éè¦æäº¤çå°è´¦ç±»å |
| | | * åç»éè¦è°æ´ä¸ºæ¥å£è·åå¨æä¿¡æ¯ |
| | | */ |
| | | const companyLedger = { |
| | | '1': { |
| | | ledgerSubTypeId: 2100, |
| | | ledgerName: 'è¥ä¸æ§ç
§', |
| | | sceneType: 1 |
| | | }, |
| | | '2': { |
| | | ledgerSubTypeId: 500, |
| | | ledgerName: 'ä¼ä¸ä¿¡æ¯', |
| | | sceneType: 2 |
| | | }, |
| | | '3': { |
| | | ledgerSubTypeId: 900, |
| | | ledgerName: 'ä¼ä¸ä¿¡æ¯', |
| | | sceneType: 3 |
| | | }, |
| | | '4': { |
| | | ledgerSubTypeId: 1300, |
| | | ledgerName: 'ä¼ä¸ä¿¡æ¯', |
| | | sceneType: 4 |
| | | }, |
| | | '5': { |
| | | ledgerSubTypeId: 1700, |
| | | ledgerName: 'ä¼ä¸ä¿¡æ¯', |
| | | sceneType: 5 |
| | | }, |
| | | '6': { |
| | | ledgerSubTypeId: 100, |
| | | ledgerName: 'ä¼ä¸ä¿¡æ¯', |
| | | sceneType: 6 |
| | | }, |
| | | '7': { |
| | | ledgerSubTypeId: 2500, |
| | | ledgerName: 'è¥ä¸æ§ç
§', |
| | | sceneType: 7 |
| | | }, |
| | | } |
| | | |
| | | module.exports = { |
| | | sceneInfo, sceneLedger, companyLedger |
| | | } |
| | |
| | | * çå½å¨æå½æ°--çå¬é¡µé¢å è½½ |
| | | */ |
| | | onLoad: function (options) { |
| | | //å¤æç¨æ·æ¯å¦ä¸ºé¦æ¬¡ç»å½ï¼å³å®æ¯å¦å¼ºå¶ä¿®æ¹é»è®¤å¯ç |
| | | if (app.globalData.userInfo.remark == null || app.globalData.userInfo.remark == '') { |
| | | wx.navigateTo({ |
| | | url: '/pages/m_user/p_changepw/p_changepw', |
| | | }) |
| | | } |
| | | |
| | | wx.getStorage({ |
| | | key: 'accessToken', |
| | | success: (result) => { |
| | |
| | | <image src="/res/icons/learn_1.png" class="image-btn__2" mode="aspectFit" /> |
| | | <view class="image-btn_title"> |
| | | <view class="image-btn_title_t">宿³è§é¢</view> |
| | | <view>宿³å¹è®ææ</view> |
| | | <view>宿³å¹è®è§é¢</view> |
| | | <mp-icon class="image-btn_goto" icon="arrow" color="#7F7F7F" size="8" type="filled"></mp-icon> |
| | | </view> |
| | | |
| | |
| | | <view class="image-btn" style="background-color: #F4EED3;" bindtap="goto" data-index="1"> |
| | | <image src="/res/icons/learn_2.png" class="image-btn__2" mode="aspectFit" /> |
| | | <view class="image-btn_title"> |
| | | <view class="image-btn_title_t">æ§æ³æ¡ä¾</view> |
| | | <view>æ§æ³ç£å¯æ¡ä¾</view> |
| | | <view class="image-btn_title_t">è¿æ³æ¡ä¾</view> |
| | | <view>å
¸åè¿æ³æ¡ä¾</view> |
| | | <mp-icon class="image-btn_goto" icon="arrow" color="#7F7F7F" size="8" type="filled"></mp-icon> |
| | | </view> |
| | | </view> |
| | |
| | | this.setData({loading: true}) |
| | | ledgerservice.uploadLedger(app.globalData.accessToken.userId, ledger, path, { |
| | | success (res) { |
| | | this.setData({loading: false}) |
| | | that.setData({loading: false}) |
| | | if (typeof that._success === 'function') { |
| | | that._success(res) |
| | | } |
| | |
| | | } |
| | | }, |
| | | |
| | | //æäº¤å°è´¦ |
| | | submitLedger() { |
| | | this.setData({ |
| | | showDialog: false, |
| | |
| | | this._uploadLedger() |
| | | }, |
| | | |
| | | //å°è´¦æäº¤æåå |
| | | _success(res) { |
| | | this.getOpenerEventChannel().emit('uploadOver', { |
| | | indexGroup: that.data.indexGroup |
| | |
| | | }) |
| | | }, |
| | | |
| | | //å¾çæ¾å¤§é¢è§ |
| | | previewImage(e) { |
| | | const { |
| | | index |
| | |
| | | msg |
| | | }) |
| | | } |
| | | }) |
| | | }, app.globalData.accessToken.openId) |
| | | }, |
| | | |
| | | onSubmit: function () { |
| | |
| | | // pages/m_user/base_c/c_company-info/c_company-info.js |
| | | import {companyLedger} from '../../../../data/sceneInfo' |
| | | import userservice from '../../../../service/userservice' |
| | | import authservice from '../../../../service/authservice' |
| | | import ledgerservice from "../../../../service/ledgerservice" |
| | | import b_inputCheck from '../../../../base/behaviors/b_inputCheck' |
| | | import b_uploadLedger from '../../../m_ledger/behaviors/b_uploadLedger' |
| | | import b_loadingToast from '../../../../base/behaviors/b_loadingToast' |
| | | |
| | | const app = getApp() |
| | | |
| | | Component({ |
| | | behaviors: [b_inputCheck, b_uploadLedger, b_loadingToast], |
| | | options: { |
| | | addGlobalClass: true, |
| | | }, |
| | |
| | | submitText: { |
| | | type: String, |
| | | value: 'æäº¤' |
| | | }, |
| | | sceneType: { |
| | | type: String, |
| | | value: '1' |
| | | }, |
| | | }, |
| | | /** |
| | |
| | | sceneTypeIndex: 0, |
| | | msg: [{ |
| | | name: "ä¼ä¸åç§°", |
| | | id: "department", |
| | | id: "ciName", |
| | | input: true, |
| | | value: '', |
| | | noValue: false, |
| | | }, |
| | | { |
| | | name: "ä¼ä¸å°å", |
| | | id: "address", |
| | | id: "ciAddress", |
| | | input: true, |
| | | value: '', |
| | | noValue: false, |
| | | }, |
| | | { |
| | | name: "ä¿¡ç¨ä»£ç ", |
| | | id: "code", |
| | | id: "ciOrgCode", |
| | | input: true, |
| | | value: "", |
| | | noValue: false, |
| | | }, |
| | | { |
| | | name: "æ³äºº", |
| | | id: "contract", |
| | | id: "ciJuridicalPerson", |
| | | input: true, |
| | | value: '', |
| | | noValue: false, |
| | | }, |
| | | { |
| | | name: "è系人", |
| | | id: "contract", |
| | | id: "ciContactName", |
| | | input: true, |
| | | value: '', |
| | | noValue: false, |
| | | }, |
| | | { |
| | | name: "èç³»æ¹å¼", |
| | | id: "contract", |
| | | id: "ciTelephone", |
| | | input: true, |
| | | value: '', |
| | | noValue: false, |
| | | }, |
| | | ], |
| | | }, |
| | | |
| | | ready() { |
| | | this.setData({ |
| | | loadingText: 'ä¸ä¼ ä¸', |
| | | loadCompleteText: 'ä¸ä¼ 宿' |
| | | }) |
| | | |
| | | this.setData({ |
| | | ledger: companyLedger[this.data.sceneType] |
| | | }) |
| | | this.getCompanyInfo() |
| | | }, |
| | | |
| | | /** |
| | |
| | | }) |
| | | }, |
| | | |
| | | //è·åä¼ä¸ä¿¡æ¯ |
| | | getCompanyInfo() { |
| | | var that = this |
| | | userservice.getBaseInfo(app.globalData.accessToken.userId, { |
| | | success(data) { |
| | | const msg = that.data.msg |
| | | if (data.company != null) { |
| | | const info = data.company |
| | | msg[0].value = info.ciName |
| | | msg[1].value = info.ciAddress |
| | | msg[2].value = info.ciOrgCode |
| | | msg[3].value = info.ciJuridicalPerson |
| | | msg[4].value = info.ciContactName |
| | | msg[5].value = info.ciTelephone |
| | | that.setData({ |
| | | msg, info |
| | | }) |
| | | } |
| | | } |
| | | }, app.globalData.accessToken.openId) |
| | | ledgerservice.getLedgerDetail( |
| | | app.globalData.accessToken.userId, that.data.ledger.ledgerSubTypeId, that.data.ledger.sceneType, undefined, { |
| | | success(res) { |
| | | if (res.length > 0) { |
| | | let detail = res[0] |
| | | if (detail.upLoad) { |
| | | let imgFiles = [{ |
| | | url: detail.path1[0], |
| | | loading: false |
| | | }] |
| | | that.setData({ |
| | | imgFiles |
| | | }) |
| | | } |
| | | } |
| | | } |
| | | }) |
| | | }, |
| | | |
| | | //æäº¤ä¼ä¸ä¿¡æ¯ |
| | | _submit() { |
| | | var that = this |
| | | this.setData({loading: true}) |
| | | authservice.authCompany(app.globalData.accessToken.openId, this.data.info, { |
| | | success(res) { |
| | | that.submintLedger() |
| | | }, |
| | | }) |
| | | }, |
| | | |
| | | //æäº¤å¾çä¿¡æ¯ |
| | | submintLedger() { |
| | | if (this.data.imgFiles.length == 0) { |
| | | this.setData({ |
| | | loading: false |
| | | }) |
| | | wx.navigateBack({ |
| | | delta: 1, |
| | | }) |
| | | return |
| | | } |
| | | if (this.data.imgFiles[0].url.indexOf('http') != -1) { |
| | | wx.downloadFile({ |
| | | url: this.data.imgFiles[0].url, |
| | | success: (res) => { |
| | | const imgPath = res.tempFilePath |
| | | this.data.imgFiles[0].url = imgPath |
| | | this._uploadLedger() |
| | | } |
| | | }) |
| | | } else { |
| | | this._uploadLedger() |
| | | } |
| | | }, |
| | | |
| | | //ä¸ä¼ 宿åï¼åé |
| | | _success(res) { |
| | | wx.navigateBack({ |
| | | delta: 1, |
| | | }) |
| | | } |
| | | |
| | | } |
| | | }) |
| | |
| | | <!--pages/m_user/base_c/c_company-info/c_company-info.wxml--> |
| | | <view class="page__bd"> |
| | | <view class="top-card"> |
| | | <!-- <view class="top-card"> |
| | | <view class="tag"><text style="color: transparent;">*</text>ä¼ä¸ç±»å</view> |
| | | <picker mode="selector" bindchange="changeSceneType" value="{{sceneTypeIndex}}" range="{{sceneTypes}}" range-key="name" class="value"> |
| | | <view class="picker-text">{{sceneTypes[sceneTypeIndex].name}}</view> |
| | | </picker> |
| | | <mp-icon icon="arrow" color="#59D5B3" size="{{10}}"></mp-icon> |
| | | </view> |
| | | </view> --> |
| | | <mp-toptips type="error" msg="{{errorMsg}}" show="{{errorMsg}}" delay="2000"></mp-toptips> |
| | | |
| | | <view class="items"> |
| | | <mp-cells> |
| | | <input-cell wx:for="{{msg}}" wx:key="id" item="{{item}}" bindpassValue="changeMsg"></input-cell> |
| | | <input-cell id="{{item.id}}" wx:for="{{msg}}" wx:key="index" item="{{item}}" bindpassValue="changeMsg"></input-cell> |
| | | </mp-cells> |
| | | </view> |
| | | <view class="weui-upload-view"> |
| | |
| | | // pages/m_user/base_c/c_scene-info/c_scene-info.js |
| | | import sceneInfo from '../../../../data/sceneInfo' |
| | | import {sceneInfo, sceneLedger} from '../../../../data/sceneInfo' |
| | | import userservice from '../../../../service/userservice' |
| | | import deviceservice from '../../../../service/deviceservice' |
| | | import b_inputCheck from '../../behaviors/b_inputCheck' |
| | | import ledgerservice from "../../../../service/ledgerservice" |
| | | import b_inputCheck from '../../../../base/behaviors/b_inputCheck' |
| | | import b_uploadLedger from '../../../m_ledger/behaviors/b_uploadLedger' |
| | | import b_loadingToast from '../../../../base/behaviors/b_loadingToast' |
| | | |
| | |
| | | } |
| | | }, |
| | | |
| | | attached() { |
| | | ready() { |
| | | this.setData({ |
| | | loadingText: 'ä¸ä¼ ä¸', |
| | | loadCompleteText: 'ä¸ä¼ 宿' |
| | | }) |
| | | }, |
| | | |
| | | pageLifetimes: { |
| | | show: function () { |
| | | // 页é¢è¢«å±ç¤º |
| | | const info = sceneInfo() |
| | | this.setData({ |
| | | msg: info.get(this.data.sceneType) |
| | | msg: info.get(this.data.sceneType), |
| | | ledger: sceneLedger[this.data.sceneType] |
| | | }) |
| | | //è·ååºæ¯ä¿¡æ¯ |
| | | this.getSceneInfo() |
| | | }, |
| | | hide: function () { |
| | | // 页é¢è¢«éè |
| | | }, |
| | | resize: function (size) { |
| | | // 页é¢å°ºå¯¸åå |
| | | } |
| | | }, |
| | | |
| | | /** |
| | |
| | | msg[3].value = data.baseInfo.biAddress |
| | | msg[10].value = data.baseInfo.biContact |
| | | msg[11].value = data.baseInfo.biTelephone |
| | | msg[12].value = data.baseInfo.biTownName == null ? [] : |
| | | [ |
| | | msg[12].value = data.baseInfo.biTownName == null ? [] : [ |
| | | data.baseInfo.biProvinceName, data.baseInfo.biCityName, data.baseInfo.biDistrictName, data.baseInfo.biTownName, |
| | | data.baseInfo.biProvinceCode, data.baseInfo.biCityCode, data.baseInfo.biDistrictCode, data.baseInfo.biTownCode, |
| | | ] |
| | | msg[12].displayValue = data.baseInfo.biTownName == null ? [] : |
| | | [ |
| | | msg[12].displayValue = data.baseInfo.biTownName == null ? [] : [ |
| | | data.baseInfo.biProvinceName, data.baseInfo.biCityName, data.baseInfo.biDistrictName, data.baseInfo.biTownName, |
| | | ] |
| | | } |
| | |
| | | } |
| | | } |
| | | }) |
| | | ledgerservice.getLedgerDetail( |
| | | app.globalData.accessToken.userId, that.data.ledger.ledgerSubTypeId, that.data.ledger.sceneType, undefined, { |
| | | success(res) { |
| | | if (res.length > 0) { |
| | | let detail = res[0] |
| | | if (detail.upLoad) { |
| | | let imgFiles = [{ |
| | | url: detail.path1[0], |
| | | loading: false |
| | | }] |
| | | that.setData({ |
| | | imgFiles |
| | | }) |
| | | } |
| | | } |
| | | } |
| | | }) |
| | | break; |
| | | case '2': |
| | | |
| | |
| | | msg |
| | | }) |
| | | } |
| | | }) |
| | | }, app.globalData.accessToken.openId) |
| | | }, |
| | | |
| | | //æäº¤åºæ¯ä¿¡æ¯ |
| | | submit() { |
| | | _submit() { |
| | | var that = this |
| | | this.setData({loading: true}) |
| | | this.setData({ |
| | | loading: true |
| | | }) |
| | | //é对ä¸ååºæ¯ï¼æ°æ®ç»æä¼æä¸åçå®å¶éæ± |
| | | switch (this.data.sceneType) { |
| | | case '1': |
| | |
| | | |
| | | //æäº¤å¾çä¿¡æ¯ |
| | | submintLedger() { |
| | | if (this.data.imgFiles.length == 0) { |
| | | this.setData({ |
| | | loading: false |
| | | }) |
| | | wx.navigateBack({ |
| | | delta: 1, |
| | | }) |
| | | return |
| | | } |
| | | if (this.data.imgFiles[0].url.indexOf('http') != -1) { |
| | | wx.downloadFile({ |
| | | url: this.data.imgFiles[0].url, |
| | | success: (res) => { |
| | | const imgPath = res.tempFilePath |
| | | this.data.imgFiles[0].url = imgPath |
| | | this._uploadLedger() |
| | | } |
| | | }) |
| | | } else { |
| | | this._uploadLedger() |
| | | } |
| | | }, |
| | | |
| | | //ä¸ä¼ 宿åï¼åé |
| | | _success(res) { |
| | | wx.navigateBack({ |
| | | delta: 1, |
| | | }) |
| | | } |
| | | } |
| | | }) |
| | |
| | | <picker wx:if="{{item.pickerMode == 'selector'}}" mode="selector" bindchange="pickerChange" data-index="{{index}}" data-mode="selector" value="{{item.selectIndex}}" range="{{item.options}}" range-key="name" class="value"> |
| | | <view class="picker-text">{{item.options[item.selectIndex].name}}</view> |
| | | </picker> |
| | | <picker wx:elif="{{item.pickerMode == 'region'}}" mode="region" bindchange="pickerChange" data-index="{{index}}" data-mode="region" value="{{item.displayValue}}" class="value" level="sub-district" custom-item="空"> |
| | | <picker wx:elif="{{item.pickerMode == 'region'}}" mode="region" bindchange="pickerChange" data-index="{{index}}" data-mode="region" value="{{item.displayValue}}" class="value" level="sub-district"> |
| | | <view class="picker-text" wx:if="{{item.value.length > 0}}">{{item.value[0] + (item.value[1] == item.value[0] ? '' : item.value[1]) + item.value[2] + item.value[3]}}</view> |
| | | <view wx:else class="picker-text" style="color: #B2B2B2;">è¯·éæ©è¡é</view> |
| | | </picker> |
| | |
| | | // pages/m_user/companyauthentication/companyauthentication.js |
| | | import $f from '../../../service/baserequest' |
| | | |
| | | Page({ |
| | | |
| | |
| | | { |
| | | "navigationBarTitleText": "ä¼ä¸è®¤è¯", |
| | | "navigationBarTitleText": "ä¼ä¸ä¿¡æ¯è®¤è¯", |
| | | "usingComponents": { |
| | | "c-company-info": "../base_c/c_company-info/c_company-info" |
| | | } |
| | |
| | | <!--pages/m_user/companyauthentication/companyauthentication.wxml--> |
| | | <view class="page"> |
| | | <image class="banner-bg" src="/res/icons/companyinfo-1.png" mode="widthFix"></image> |
| | | <view class="tips">请ä»ç»æ£æ¥ç³»ç»é¢ççä¼ä¸ä¿¡æ¯ï¼ç¡®è®¤æ¯å¦æ£ç¡®ï¼è°æ´å®æåæäº¤å®æä¼ä¸è®¤è¯</view> |
| | | <view class="tips">请ä»ç»æ£æ¥ä»¥ä¸ä¿¡æ¯ï¼ç¡®è®¤æ¯å¦æ£ç¡®ï¼è°æ´å®æåæäº¤å®æè®¤è¯ï¼å
¶ä¸å¸¦*ç为å¿
填项ï¼å
¶ä½ä¸ºé填项ï¼</view> |
| | | <c-company-info></c-company-info> |
| | | </view> |
| | |
| | | * 页é¢çåå§æ°æ® |
| | | */ |
| | | data: { |
| | | version: app.globalData.version, |
| | | //认è¯ç¶æï¼[ä¼ä¸, åºæ¯, 个人] |
| | | authStatus:[] |
| | | }, |
| | |
| | | this.setData({ |
| | | userRealName: app.globalData.userInfo.realname |
| | | }) |
| | | this.getBaseInfo() |
| | | }, |
| | | |
| | | onShow() { |
| | | this.getAuthStatus() |
| | | }, |
| | | |
| | |
| | | } |
| | | } |
| | | }) |
| | | }, |
| | | |
| | | getBaseInfo() { |
| | | var that = this |
| | | userservice.getBaseInfo(app.globalData.accessToken.userId, { |
| | | success(data) { |
| | | if (data.company != null) { |
| | | that.setData({ |
| | | companyName: data.company.ciName |
| | | }) |
| | | } |
| | | } |
| | | }, app.globalData.accessToken.openId) |
| | | }, |
| | | |
| | | logout() { |
| | |
| | | break; |
| | | case "5": |
| | | url = "/pages/m_service/p_schedule/p_schedule" |
| | | break; |
| | | case "6": |
| | | url = "/pages/m_user/p_about/p_about" |
| | | break; |
| | | } |
| | | if (url != "") { |
| | |
| | | break; |
| | | //ä¸ªäººè®¤è¯ |
| | | case "2": |
| | | url = "" |
| | | url = "/pages/m_user/personalauthentication/personalauthentication" |
| | | break; |
| | | } |
| | | if (url != "") { |
| | |
| | | <image class="user-icon" src="/res/icons/learn_2.png" mode="aspectFill"></image> |
| | | <view class="flex-v"> |
| | | <view class="user-name">{{userRealName}}</view> |
| | | <view class="user-tag"> |
| | | <!-- <view>ä¼ä¸æªè®¤è¯</view> |
| | | <view>åºéºæªè®¤è¯</view> |
| | | <view>个人æªè®¤è¯</view> --> |
| | | </view> |
| | | <view class="user-tag">{{companyName}}</view> |
| | | </view> |
| | | </view> |
| | | </view> |
| | | <view class="page__bd"> |
| | | <view class="fyui-panel user-authentication"> |
| | | <view bindtap="gotoAuthentication" data-index="0"> |
| | | <text class="{{authStatus[0] ? 'status-1' : 'status-2'}}">{{authStatus[0] ? '已认è¯' : 'æªè®¤è¯'}}</text> |
| | | <image src="/res/icons/icon3.png"></image> |
| | | <view>{{authStatus[0] ? 'ä¿®æ¹ä¼ä¸ä¿¡æ¯' : 'ä¼ä¸ä¿¡æ¯è®¤è¯'}}</view> |
| | | <!-- <view>{{authStatus[0] ? 'ä¿®æ¹ä¼ä¸ä¿¡æ¯' : 'ä¼ä¸ä¿¡æ¯è®¤è¯'}}</view> --> |
| | | <view>ä¼ä¸ä¿¡æ¯è®¤è¯</view> |
| | | </view> |
| | | <view bindtap="gotoAuthentication" data-index="1"> |
| | | <image src="/res/icons/icon3.png"></image> |
| | | <view>{{authStatus[1] ? 'ä¿®æ¹åºéºä¿¡æ¯' : 'åºéºä¿¡æ¯è®¤è¯'}}</view> |
| | | <text class="{{authStatus[1] ? 'status-1' : 'status-2'}}">{{authStatus[1] ? '已认è¯' : 'æªè®¤è¯'}}</text> |
| | | <image src="/res/icons/scene_info.png"></image> |
| | | <!-- <view>{{authStatus[1] ? 'ä¿®æ¹åºéºä¿¡æ¯' : 'åºéºä¿¡æ¯è®¤è¯'}}</view> --> |
| | | <view>åºéºä¿¡æ¯è®¤è¯</view> |
| | | </view> |
| | | <view bindtap="gotoAuthentication" data-index="2"> |
| | | <image src="/res/icons/icon3.png"></image> |
| | | <view>{{authStatus[2] ? 'ä¿®æ¹ä¸ªäººä¿¡æ¯' : '个人信æ¯è®¤è¯'}}</view> |
| | | <text class="{{authStatus[2] ? 'status-1' : 'status-2'}}">{{authStatus[2] ? '已认è¯' : 'æªè®¤è¯'}}</text> |
| | | <image src="/res/icons/personal.png"></image> |
| | | <!-- <view>{{authStatus[2] ? 'ä¿®æ¹ä¸ªäººä¿¡æ¯' : '个人信æ¯è®¤è¯'}}</view> --> |
| | | <view>个人信æ¯è®¤è¯</view> |
| | | </view> |
| | | </view> |
| | | <view class="fyui-panel"> |
| | |
| | | <view class="fyui-cell__bd">ç¯ä¿æ¥ç¨</view> |
| | | <view class="fyui-cell__ft"></view> |
| | | </view> |
| | | <view class="fyui-cell fyui-cell_select title" bindtap="goto" data-index="6"> |
| | | <view class="fyui-cell__hd"> |
| | | <image src="/res/icons/icon6.png" class="icon" /> |
| | | </view> |
| | | <view class="fyui-cell__bd">å
³äº</view> |
| | | <view class="fyui-cell__ft">{{version}}</view> |
| | | </view> |
| | | </view> |
| | | </view> |
| | | |
| | |
| | | } |
| | | |
| | | .user-authentication { |
| | | position: relative; |
| | | display: flex; |
| | | justify-content: space-between; |
| | | } |
| | | |
| | | .user-authentication>view { |
| | | position: relative; |
| | | text-align: center; |
| | | padding: 36px 16px; |
| | | padding: 20px 16px; |
| | | font-size: 14px; |
| | | color: var(--fyui-text-color_1); |
| | | color: var(--fyui-text-color_2); |
| | | } |
| | | |
| | | .user-authentication>view>image { |
| | | width: 40px; |
| | | height: 40px; |
| | | } |
| | | |
| | | .user-authentication .status-1{ |
| | | position: absolute; |
| | | top: 36px; |
| | | right: 10px; |
| | | font-size: 10px; |
| | | color: white; |
| | | background-color: #05EDC4; |
| | | border: white 2px solid; |
| | | padding: 0 4px; |
| | | border-radius: 4px; |
| | | } |
| | | |
| | | .user-authentication .status-2{ |
| | | position: absolute; |
| | | top: 36px; |
| | | right: 10px; |
| | | font-size: 10px; |
| | | color: white; |
| | | background-color: #F20202; |
| | | border: white 2px solid; |
| | | padding: 0 4px; |
| | | border-radius: 4px; |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | // pages/m_user/p_about/p_about.js |
| | | const app = getApp() |
| | | |
| | | Page({ |
| | | |
| | | /** |
| | | * 页é¢çåå§æ°æ® |
| | | */ |
| | | data: { |
| | | version: app.globalData.version, |
| | | }, |
| | | |
| | | /** |
| | | * çå½å¨æå½æ°--çå¬é¡µé¢å è½½ |
| | | */ |
| | | onLoad(options) { |
| | | |
| | | }, |
| | | |
| | | goto(e) { |
| | | var url = "" |
| | | var index = e.currentTarget.dataset.index |
| | | switch (index) { |
| | | case "0": |
| | | wx.downloadFile({ |
| | | url: app.globalData.agreement, |
| | | success: function (res) { |
| | | wx.hideLoading() |
| | | const filePath = res.tempFilePath |
| | | wx.openDocument({ |
| | | filePath: filePath, |
| | | success: function (res) { |
| | | console.log('æå¼ææ¡£æå') |
| | | }, |
| | | fail(error) { |
| | | console.log(error); |
| | | } |
| | | }) |
| | | } |
| | | }) |
| | | return; |
| | | case "1": |
| | | url = "/pages/m_user/p_changepw/p_changepw" |
| | | break; |
| | | } |
| | | if (url != "") { |
| | | wx.navigateTo({ |
| | | url: url |
| | | }) |
| | | } else { |
| | | wx.showToast({ |
| | | title: 'åè½æ¬è¯·æå¾
', |
| | | duration: 1000, |
| | | icon: 'none', |
| | | mask: true, |
| | | }) |
| | | } |
| | | }, |
| | | |
| | | }) |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | { |
| | | "navigationBarTitleText": "å
³äº", |
| | | "usingComponents": {} |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | <!--pages/m_user/p_about/p_about.wxml--> |
| | | <view class="page"> |
| | | <view class="page__hd"> |
| | | <image src="/res/icons/app_icon.png"></image> |
| | | <view>{{version}}</view> |
| | | </view> |
| | | <view class="page__bd"> |
| | | <view class="fyui-cell fyui-cell_select title" bindtap="goto" data-index="0"> |
| | | <view class="fyui-cell__hd"> |
| | | </view> |
| | | <view class="fyui-cell__bd">æå¡åè®®</view> |
| | | <view class="fyui-cell__ft"></view> |
| | | </view> |
| | | <view class="fyui-cell fyui-cell_select title" bindtap="goto" data-index="1"> |
| | | <view class="fyui-cell__hd"> |
| | | </view> |
| | | <view class="fyui-cell__bd">ä¿®æ¹å¯ç </view> |
| | | <view class="fyui-cell__ft"></view> |
| | | </view> |
| | | </view> |
| | | <view class="page__ft"> |
| | | <view>ä¸å¡æå¯¼ï¼ä¸æµ·å¸çæç¯å¢å±æ§æ³æ»é</view> |
| | | <view>ææ¯æ¯æï¼ä¸æµ·é£ç¾½ç¯ä¿ç§ææéå
¬å¸</view> |
| | | </view> |
| | | </view> |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | /* pages/m_user/p_about/p_about.wxss */ |
| | | .title:active { |
| | | background-color: var(--fyui-BG-COLOR-ACTIVE); |
| | | } |
| | | |
| | | .fyui-cell_select { |
| | | font-size: 16px; |
| | | padding-top: 12px; |
| | | padding-bottom: 12px; |
| | | border-bottom: 1px solid rgb(238, 238, 238); |
| | | } |
| | | |
| | | .page { |
| | | justify-content: space-between; |
| | | background-color: transparent; |
| | | } |
| | | |
| | | .page__hd { |
| | | display: flex; |
| | | flex-direction: column; |
| | | align-items: center; |
| | | justify-content: center; |
| | | height: 30vh; |
| | | } |
| | | |
| | | .page__hd>image{ |
| | | width: 88px; |
| | | height: 88px; |
| | | } |
| | | |
| | | .page__hd>view{ |
| | | font-size: 14px; |
| | | color: var(--fyui-text-color_2); |
| | | margin-top: 16px; |
| | | } |
| | | |
| | | .page__bd{ |
| | | flex: 1; |
| | | color: var(--fyui-text-color_1); |
| | | } |
| | | |
| | | .page__ft{ |
| | | font-size: 12px; |
| | | color: var(--fyui-text-color_3); |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | // pages/m_user/p_changepw/p_changepw.js |
| | | import b_inputCheck from '../../../base/behaviors/b_inputCheck' |
| | | import b_loadingToast from '../../../base/behaviors/b_loadingToast' |
| | | |
| | | Page({ |
| | | behaviors: [b_inputCheck, b_loadingToast], |
| | | /** |
| | | * 页é¢çåå§æ°æ® |
| | | */ |
| | | data: { |
| | | msg: [{ |
| | | name: "åå¯ç ", |
| | | id: "oldPassword", |
| | | input: true, |
| | | type: 'password', |
| | | value: '', |
| | | noValue: false, |
| | | }, |
| | | { |
| | | name: "æ°å¯ç ", |
| | | id: "newPassword", |
| | | input: true, |
| | | type: 'password', |
| | | value: '', |
| | | noValue: false, |
| | | }, |
| | | { |
| | | name: "确认å¯ç ", |
| | | id: "pwCheck", |
| | | input: true, |
| | | type: 'password', |
| | | value: "", |
| | | noValue: false, |
| | | }, |
| | | ], |
| | | }, |
| | | |
| | | /** |
| | | * çå½å¨æå½æ°--çå¬é¡µé¢å è½½ |
| | | */ |
| | | onLoad(options) { |
| | | |
| | | }, |
| | | |
| | | /** |
| | | * çå½å¨æå½æ°--çå¬é¡µé¢å次渲æå®æ |
| | | */ |
| | | onReady() { |
| | | |
| | | }, |
| | | |
| | | /** |
| | | * çå½å¨æå½æ°--çå¬é¡µé¢æ¾ç¤º |
| | | */ |
| | | onShow() { |
| | | |
| | | }, |
| | | |
| | | /** |
| | | * çå½å¨æå½æ°--çå¬é¡µé¢éè |
| | | */ |
| | | onHide() { |
| | | |
| | | }, |
| | | |
| | | /** |
| | | * çå½å¨æå½æ°--çå¬é¡µé¢å¸è½½ |
| | | */ |
| | | onUnload() { |
| | | |
| | | }, |
| | | |
| | | /** |
| | | * 页é¢ç¸å
³äºä»¶å¤ç彿°--çå¬ç¨æ·ä¸æå¨ä½ |
| | | */ |
| | | onPullDownRefresh() { |
| | | |
| | | }, |
| | | |
| | | /** |
| | | * 页é¢ä¸æè§¦åºäºä»¶çå¤ç彿° |
| | | */ |
| | | onReachBottom() { |
| | | |
| | | }, |
| | | |
| | | /** |
| | | * ç¨æ·ç¹å»å³ä¸è§å享 |
| | | */ |
| | | onShareAppMessage() { |
| | | |
| | | } |
| | | }) |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | { |
| | | "navigationBarTitleText": "ä¿®æ¹å¯ç ", |
| | | "usingComponents": { |
| | | "mp-cells":"/component/cells/cells", |
| | | "input-cell":"/component/inputcell/inputcell", |
| | | "mp-icon": "/component/icon/icon", |
| | | "mp-toptips":"/component/toptips/toptips", |
| | | "mp-upload":"/component/uploader/uploader" |
| | | } |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | <!--pages/m_user/p_changepw/p_changepw.wxml--> |
| | | <view class="page"> |
| | | <!-- <mp-toptips type="error" msg="{{errorMsg}}" show="{{errorMsg}}" delay="2000"></mp-toptips> --> |
| | | |
| | | <view class="page__bd"> |
| | | <view class="items"> |
| | | <mp-cells> |
| | | <input-cell id="{{item.id}}" wx:for="{{msg}}" wx:key="id" item="{{item}}" bindpassValue="changeMsg"></input-cell> |
| | | </mp-cells> |
| | | </view> |
| | | </view> |
| | | <view class="page__ft"> |
| | | <view class="submit" bindtap="onSubmit">æäº¤</view> |
| | | </view> |
| | | </view> |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | /* pages/m_user/p_changepw/p_changepw.wxss */ |
| | | .items { |
| | | position: relative; |
| | | padding: 0 16px; |
| | | background-color: white; |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | // pages/m_user/personalauthentication/personalauthentication.js |
| | | import userservice from '../../../service/userservice' |
| | | import authservice from '../../../service/authservice' |
| | | import b_inputCheck from '../../../base/behaviors/b_inputCheck' |
| | | import b_loadingToast from '../../../base/behaviors/b_loadingToast' |
| | | |
| | | const app = getApp() |
| | | |
| | | Page({ |
| | | behaviors: [b_inputCheck, b_loadingToast], |
| | | /** |
| | | * 页é¢çåå§æ°æ® |
| | | */ |
| | | data: { |
| | | idTypes: [ |
| | | {value: '0', name: '身份è¯'}, |
| | | ], |
| | | idTypeIndex: 0, |
| | | msg: [{ |
| | | name: "å§å", |
| | | id: "piName", |
| | | input: true, |
| | | value: '', |
| | | noValue: false, |
| | | }, |
| | | { |
| | | name: "è¯ä»¶ç±»å", |
| | | id: "piIdType", |
| | | type: 'picker', |
| | | pickerMode: 'selector', |
| | | value: '', |
| | | noValue: false, |
| | | selectIndex: 0, |
| | | options: [ |
| | | {name: 'æªéæ©', value: '-1'}, |
| | | {name: '身份è¯', value: '0'}, |
| | | ] |
| | | }, |
| | | { |
| | | name: "è¯ä»¶ç¼å·", |
| | | id: "piId", |
| | | input: true, |
| | | value: "", |
| | | noValue: false, |
| | | }, |
| | | { |
| | | name: "èä½", |
| | | id: "piPosition", |
| | | type: 'picker', |
| | | pickerMode: 'selector', |
| | | value: '', |
| | | noValue: false, |
| | | selectIndex: 0, |
| | | options: [ |
| | | {name: 'æªéæ©', value: '-1'}, |
| | | {name: '管çå', value: '0'}, |
| | | {name: 'èå', value: '1'}, |
| | | ] |
| | | }, |
| | | ], |
| | | }, |
| | | |
| | | /** |
| | | * çå½å¨æå½æ°--çå¬é¡µé¢å è½½ |
| | | */ |
| | | onLoad(options) { |
| | | this.setData({ |
| | | loadingText: 'ä¸ä¼ ä¸', |
| | | loadCompleteText: 'ä¸ä¼ 宿' |
| | | }) |
| | | this.getPersonalInfo() |
| | | }, |
| | | |
| | | changeIDType(e) { |
| | | let i = e.detail.value |
| | | this.setData({ |
| | | idTypeIndex: i |
| | | }) |
| | | }, |
| | | |
| | | getPersonalInfo() { |
| | | var that = this |
| | | userservice.getBaseInfo(app.globalData.accessToken.userId, { |
| | | success(data) { |
| | | const msg = that.data.msg |
| | | if (data.personalInfo != null) { |
| | | const info = data.personalInfo |
| | | msg[0].value = info.piName |
| | | msg[1].value = info.piIdType |
| | | for (let i = 0; i < msg[1].options.length; i++) { |
| | | const o = msg[1].options[i]; |
| | | if (o.name == msg[1].value) { |
| | | msg[1].selectIndex = i |
| | | break |
| | | } |
| | | } |
| | | msg[2].value = info.piId |
| | | msg[3].value = info.piPosition |
| | | for (let i = 0; i < msg[3].options.length; i++) { |
| | | const o = msg[3].options[i]; |
| | | if (o.name == msg[3].value) { |
| | | msg[3].selectIndex = i |
| | | break |
| | | } |
| | | } |
| | | that.setData({ |
| | | msg, info |
| | | }) |
| | | } |
| | | } |
| | | }, app.globalData.accessToken.openId) |
| | | }, |
| | | |
| | | //æäº¤ä¸ªäººä¿¡æ¯ |
| | | _submit() { |
| | | var that = this |
| | | this.setData({loading: true}) |
| | | authservice.authPersonal(app.globalData.accessToken.openId, this.data.info, { |
| | | success(res) { |
| | | that.setData({loading: false}) |
| | | wx.navigateBack({ |
| | | delta: 1, |
| | | }) |
| | | }, |
| | | }) |
| | | }, |
| | | }) |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | { |
| | | "navigationBarTitleText": "个人信æ¯è®¤è¯", |
| | | "usingComponents": { |
| | | "mp-cells":"/component/cells/cells", |
| | | "input-cell":"/component/inputcell/inputcell", |
| | | "mp-icon": "/component/icon/icon", |
| | | "mp-toptips":"/component/toptips/toptips", |
| | | "mp-upload":"/component/uploader/uploader" |
| | | } |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | <!--pages/m_user/personalauthentication/personalauthentication.wxml--> |
| | | <mp-toptips type="error" msg="{{errorMsg}}" show="{{errorMsg}}" delay="2000"></mp-toptips> |
| | | <view class="page"> |
| | | <image class="banner-bg" src="/res/icons/companyinfo-1.png" mode="widthFix"></image> |
| | | <view class="tips">请ä»ç»æ£æ¥ä»¥ä¸ä¿¡æ¯ï¼ç¡®è®¤æ¯å¦æ£ç¡®ï¼è°æ´å®æåæäº¤å®æè®¤è¯ï¼å
¶ä¸å¸¦*ç为å¿
填项ï¼å
¶ä½ä¸ºé填项ï¼</view> |
| | | <view class="page__bd"> |
| | | <!-- <view class="top-card"> |
| | | <view class="tag"><text style="color: transparent;">*</text>ä¼ä¸ç±»å</view> |
| | | <picker mode="selector" bindchange="changeSceneType" value="{{sceneTypeIndex}}" range="{{sceneTypes}}" range-key="name" class="value"> |
| | | <view class="picker-text">{{sceneTypes[sceneTypeIndex].name}}</view> |
| | | </picker> |
| | | <mp-icon icon="arrow" color="#59D5B3" size="{{10}}"></mp-icon> |
| | | </view> --> |
| | | <view class="items"> |
| | | <mp-cells> |
| | | <block wx:for="{{msg}}" wx:key="index"> |
| | | <block wx:if="{{item.type == 'picker'}}"> |
| | | <view class="hr-view"></view> |
| | | <view class="top-card"> |
| | | <view id="{{item.id}}" class="tag"><text class="{{item.required != false ? 'required' : 'not-required'}}">*</text>{{item.name}}</view> |
| | | <picker wx:if="{{item.pickerMode == 'selector'}}" mode="selector" bindchange="pickerChange" data-index="{{index}}" data-mode="selector" value="{{item.selectIndex}}" range="{{item.options}}" range-key="name" class="value"> |
| | | <view class="picker-text">{{item.options[item.selectIndex].name}}</view> |
| | | </picker> |
| | | <picker wx:elif="{{item.pickerMode == 'region'}}" mode="region" bindchange="pickerChange" data-index="{{index}}" data-mode="region" value="{{item.displayValue}}" class="value" level="sub-district" custom-item="空"> |
| | | <view class="picker-text" wx:if="{{item.value.length > 0}}">{{item.value[0] + (item.value[1] == item.value[0] ? '' : item.value[1]) + item.value[2] + item.value[3]}}</view> |
| | | <view wx:else class="picker-text" style="color: #B2B2B2;">è¯·éæ©è¡é</view> |
| | | </picker> |
| | | <mp-icon icon="arrow" color="black" size="{{10}}"></mp-icon> |
| | | </view> |
| | | </block> |
| | | <input-cell id="{{item.id}}" wx:else item="{{item}}" bindpassValue="changeMsg"></input-cell> |
| | | </block> |
| | | </mp-cells> |
| | | </view> |
| | | <!-- <view class="weui-upload-view"> |
| | | <mp-upload title="ä¸ä¼ è¥ä¸æ§ç
§" titleClass="upload-title-class" max-count="1" files="{{imgFiles}}" binduploadImg="uploadFile" binddelete="delImg"></mp-upload> |
| | | </view> --> |
| | | </view> |
| | | <view class="page__ft"> |
| | | <view class="submit" bindtap="onSubmit">ä¸ä¼ </view> |
| | | </view> |
| | | </view> |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | /* pages/m_user/personalauthentication/personalauthentication.wxss */ |
| | | .tips { |
| | | position: relative; |
| | | color: white; |
| | | padding: 16px; |
| | | font-size: 14px; |
| | | font-weight: 550; |
| | | } |
| | | |
| | | .banner-bg { |
| | | position: absolute; |
| | | top: 0; |
| | | left: 0; |
| | | width: 100%; |
| | | height: 100%; |
| | | z-index: 0; |
| | | /* background-color: aqua; */ |
| | | } |
| | | |
| | | .top-card { |
| | | position: relative; |
| | | display: flex; |
| | | flex-direction: row; |
| | | background-color: white; |
| | | border-top-left-radius: 8px; |
| | | border-top-right-radius: 8px; |
| | | padding: 8px 0px; |
| | | /* margin: 0 8px; */ |
| | | font-size: 16px; |
| | | } |
| | | |
| | | .picker-text { |
| | | /* color: var(--fyui-primary-color); */ |
| | | color: var(--fyui-text-color_1); |
| | | } |
| | | |
| | | .items { |
| | | position: relative; |
| | | padding: 0 16px; |
| | | background-color: white; |
| | | } |
| | | |
| | | .top-card .tag { |
| | | /* display: inline-block; */ |
| | | width: 32vw; |
| | | white-space: nowrap; |
| | | } |
| | | |
| | | .top-card .value { |
| | | flex-grow: 1; |
| | | } |
| | | |
| | | .top-card .value view { |
| | | max-width: 200px; |
| | | white-space: nowrap; |
| | | overflow: hidden; |
| | | text-overflow: ellipsis; |
| | | } |
| | | |
| | | .weui-upload-view { |
| | | background-color: white; |
| | | padding: 16px; |
| | | } |
| | | |
| | | .page__ft { |
| | | background-color: white; |
| | | } |
| | | |
| | | .required { |
| | | color: red; |
| | | text-align: center; |
| | | vertical-align: middle; |
| | | } |
| | | |
| | | .not-required { |
| | | color: transparent; |
| | | } |
| | |
| | | { |
| | | "navigationBarTitleText": "åºéºè®¤è¯", |
| | | "navigationBarTitleText": "åºéºä¿¡æ¯è®¤è¯", |
| | | "usingComponents": { |
| | | "c-scene-info": "../base_c/c_scene-info/c_scene-info" |
| | | } |
| | |
| | | <!--pages/m_user/sceneauthentication/sceneauthentication.wxml--> |
| | | <view class="page"> |
| | | <image class="banner-bg" src="/res/icons/companyinfo-1.png" mode="widthFix"></image> |
| | | <view class="tips">请ä»ç»æ£æ¥ç³»ç»é¢ççä¼ä¸ä¿¡æ¯ï¼ç¡®è®¤æ¯å¦æ£ç¡®ï¼è°æ´å®æåæäº¤å®æä¼ä¸è®¤è¯</view> |
| | | <view class="tips">请ä»ç»æ£æ¥ä»¥ä¸ä¿¡æ¯ï¼ç¡®è®¤æ¯å¦æ£ç¡®ï¼è°æ´å®æåæäº¤å®æè®¤è¯ï¼å
¶ä¸å¸¦*ç为å¿
填项ï¼å
¶ä½ä¸ºé填项ï¼</view> |
| | | <c-scene-info sceneType="{{sceneType}}" bindonSubmit="onSubmit"></c-scene-info> |
| | | </view> |
| | | |
| | |
| | | }) |
| | | return false |
| | | } |
| | | }, |
| | | |
| | | gotoAgreement() { |
| | | wx.showLoading({ |
| | | title: ' æå¼ä¸', |
| | | mask: true, |
| | | }) |
| | | wx.downloadFile({ |
| | | url: app.globalData.agreement, |
| | | success: function (res) { |
| | | wx.hideLoading() |
| | | const filePath = res.tempFilePath |
| | | wx.openDocument({ |
| | | filePath: filePath, |
| | | success: function (res) { |
| | | console.log('æå¼ææ¡£æå') |
| | | }, |
| | | fail(error) { |
| | | console.log(error); |
| | | } |
| | | }) |
| | | } |
| | | }) |
| | | } |
| | | }) |
| | |
| | | <!--pages/m_user/userlogin/userlogin.wxml--> |
| | | <view> |
| | | <view class="page"> |
| | | <view class="page__bd"> |
| | | <image class="banner-bg" src="{{bgPath}}"></image> |
| | | <view class="login-btn"> |
| | | <view class="submit" bindtap="loginWx">å¾®ä¿¡ç¨æ·ä¸é®ç»å½</view> |
| | | <view class="login-btn_text" bindtap="gotoLogin">è´¦å·å¯ç ç»å½/注å</view> |
| | | </view> |
| | | <label class="weui-agree" bindtap="checkboxChange"> |
| | | <view class="weui-agree"> |
| | | <label bindtap="checkboxChange"> |
| | | <checkbox class="weui-agree__checkbox-check" value="{{agree}}" checked="{{agree}}" /> |
| | | <span class="weui-agree__checkbox"></span> |
| | | <span class="weui-agree__text">é
读并åæ<text>ãä¸å°ä¼ä¸å®æ³æå¡å¹³å°ç¨æ·æ¡æ¬¾ã</text>å<text>ãéç§æ¡æ¬¾ã</text></span> |
| | | <span class="weui-agree__text">é
读并åæ</span> |
| | | </label> |
| | | <span class="weui-agree__text"><text bindtap="gotoAgreement">ãä¸å°ä¼ä¸å®æ³æå¡å¹³å°ç¨æ·æ¡æ¬¾ã</text> |
| | | <!-- å<text>ãéç§æ¡æ¬¾ã</text> --> |
| | | </span> |
| | | </view> |
| | | </view> |
| | | <view class="page__ft"> |
| | | <view>ä¸å¡æå¯¼ï¼ä¸æµ·å¸çæç¯å¢å±æ§æ³æ»é</view> |
| | | <view>ææ¯æ¯æï¼ä¸æµ·é£ç¾½ç¯ä¿ç§ææéå
¬å¸</view> |
| | | </view> |
| | | </view> |
| | |
| | | .weui-agree__text>text { |
| | | color: #3CD0B6; |
| | | } |
| | | |
| | | .page { |
| | | justify-content: space-between; |
| | | background-color: transparent; |
| | | } |
| | | |
| | | .page__bd{ |
| | | flex: 1; |
| | | color: var(--fyui-text-color_1); |
| | | } |
| | | |
| | | .page__ft{ |
| | | font-size: 12px; |
| | | color: var(--fyui-text-color_3); |
| | | } |
| | |
| | | }, |
| | | "compileType": "miniprogram", |
| | | "libVersion": "2.26.0", |
| | | "appid": "wxffd1438dd373fcf6", |
| | | "appid": "wx5758efcebb0774de", |
| | | "projectname": "ep-law-abiding", |
| | | "editorSetting": { |
| | | "tabIndent": "insertSpaces", |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | const $f = require('./baserequest') |
| | | |
| | | module.exports = { |
| | | //ä¼ä¸ä¿¡æ¯è®¤è¯ |
| | | authCompany: function (wxUserId, company, fun) { |
| | | let cb = { |
| | | url: '/auth/company', |
| | | params: { |
| | | wxUserId: wxUserId, |
| | | }, |
| | | data: company, |
| | | } |
| | | Object.assign(cb, fun) |
| | | |
| | | $f.post(cb) |
| | | }, |
| | | |
| | | //åºæ¯ä¿¡æ¯è®¤è¯ |
| | | authScene: function (wxUserId, sceneType, sceneInfo, fun) { |
| | | let cb = { |
| | | url: '/auth/scene', |
| | | params: { |
| | | wxUserId: wxUserId, |
| | | sceneType: sceneType |
| | | }, |
| | | data: sceneInfo, |
| | | } |
| | | Object.assign(cb, fun) |
| | | |
| | | $f.post(cb) |
| | | }, |
| | | |
| | | //个人信æ¯è®¤è¯ |
| | | authPersonal: function (wxUserId, personal, fun) { |
| | | let cb = { |
| | | url: '/auth/personal', |
| | | params: { |
| | | wxUserId: wxUserId, |
| | | }, |
| | | data: personal, |
| | | } |
| | | Object.assign(cb, fun) |
| | | |
| | | $f.post(cb) |
| | | }, |
| | | |
| | | //è·åç¨æ·è®¤è¯ç¶æ |
| | | getAuthStatus: function (wxUserId, userId, fun) { |
| | | let cb = { |
| | | url: `/auth/status`, |
| | | params: { |
| | | wxUserId: wxUserId, |
| | | userId: userId |
| | | } |
| | | } |
| | | Object.assign(cb, fun) |
| | | |
| | | $f.get(cb) |
| | | }, |
| | | } |
| | |
| | | const util = require("../utils/util.js") |
| | | |
| | | const originProperties = ['url', 'data', 'header', 'method', 'success', 'fail', 'complete']; |
| | | // const baseUrl = "http://192.168.0.137:8080" |
| | | const baseUrl = "https://fyami.com.cn:447" |
| | | // const basePicUrl = baseUrl + "/images/" |
| | | const basePicUrl = "https://fyami.com.cn:447/images/" |
| | | const baseIconUrl = "https://fyami.com.cn:447/images/weixin/eplaw/" |
| | | const baseFileUrl = "https://fyami.com.cn:447/meeting/file/" |
| | | const baseUrl = "http://192.168.0.137:8080" |
| | | // const baseUrl = "https://fyami.com.cn:447" |
| | | // const baseUrl = "https://fyami.com.cn" |
| | | |
| | | // const bu = "https://fyami.com.cn" |
| | | const bu = "https://fyami.com.cn:447" |
| | | const basePicUrl = `${bu}/images/` |
| | | const baseIconUrl = `${bu}/images/weixin/eplaw/` |
| | | const baseFileUrl = `${bu}/meeting/file/` |
| | | |
| | | function request(fun) { |
| | | if (fun.params != undefined) { |
| | |
| | | url: `/ledger/${userId}/detail2`, |
| | | params: { |
| | | sceneType: sceneType, |
| | | time: time |
| | | }, |
| | | } |
| | | if (ledgerSubTypeId) { |
| | | cb.params.ledgerSubTypeId = ledgerSubTypeId |
| | | } |
| | | if (time) { |
| | | cb.params.time = time |
| | | } |
| | | Object.assign(cb, fun) |
| | | |
| | | let fun1 = util.deepCopy(cb) |
| | |
| | | $f.get(cb) |
| | | }, |
| | | //è·åç¨æ·åºç¡ä¿¡æ¯ |
| | | getBaseInfo: function (userId, fun) { |
| | | getBaseInfo: function (userId, fun, wxUserId) { |
| | | let cb = { |
| | | url: `/userInfo/baseInfo`, |
| | | params: { |
| | | userId: userId |
| | | } |
| | | } |
| | | if (wxUserId) { |
| | | cb.params.wxUserId = wxUserId |
| | | } |
| | | Object.assign(cb, fun) |
| | | |
| | | $f.get(cb) |