登录注册模块、
1. 登录注册模块完成企业端注册部分80%;
已修改31个文件
已删除4个文件
已添加22个文件
| | |
| | | { |
| | | "pages": [ |
| | | "pages/module_user/userlogin/userlogin", |
| | | "pages/login/login", |
| | | "pages/home/home", |
| | | "pages/text/text", |
| | |
| | | "pages/module_consult/consultresult/consultresult", |
| | | "pages/module_consult/consultdetail/consultdetail", |
| | | "pages/module_ledger/ledgerhome/ledgerhome", |
| | | "pages/module_ledger/ledgerupload/ledgerupload" |
| | | "pages/module_ledger/ledgerupload/ledgerupload", |
| | | "pages/module_user/userloginpw/userloginpw", |
| | | "pages/module_user/userregistertype/userregistertype", |
| | | "pages/module_user/userregistergov/userregistergov", |
| | | "pages/module_user/userregistercompany/userregistercompany" |
| | | ], |
| | | "window": { |
| | | "backgroundTextStyle": "light", |
| | |
| | | margin: 8px; |
| | | color: white; |
| | | padding: 8px; |
| | | text-align: center; |
| | | } |
| | | |
| | | .submit:active { |
| | | background-color: var(--fyui-BG-COLOR-ACTIVE); |
| | | } |
| | | |
| | | /********************************** éç¨-end ***********************************/ |
| | |
| | | width: 100%; |
| | | height: auto; |
| | | border-radius: 0px; |
| | | font-size: medium; |
| | | font-size: large; |
| | | font-weight: 600; |
| | | /* background-color: greenyellow; */ |
| | | } |
| | |
| | | |
| | | .fyui-box__text .fyui-box__bd .fyui-box__content { |
| | | color: var(--fyui-text-color_3); |
| | | font-size: x-small; |
| | | font-size: medium; |
| | | } |
| | | |
| | | .fyui-box__text .fyui-box__bd .fyui-box__tag { |
| | |
| | | |
| | | .weui-cell { |
| | | padding: 10px 0px; |
| | | font-size: 14px; |
| | | font-size: 16px; |
| | | } |
| | |
| | | <input wx:if="{{item.input}}" type="{{item.type?item.type:'text'}}" |
| | | maxlength="{{item.maxLength?item.maxLength:'-1'}}" id="{{item.id?item.id:''}}" |
| | | placeholder-style="color:{{item.noValue?'red':'#B2B2B2'}};" class="weui-up-input {{inputClass}} {{alignLeft?'':'input-right'}}" |
| | | bindinput="changeV" value="{{item.value}}" placeholder="请è¾å
¥{{item.name}}" /> |
| | | bindinput="changeV" value="{{item.value}}" placeholder="{{item.placeholder ? item.placeholder : '请è¾å
¥' + item.name}} " /> |
| | | <view wx:else="{{text}}" class="weui-up-input {{inputClass}} {{alignLeft?'':'input-right'}}">{{item.value}}</view> |
| | | <view class="unit">{{item.unit}}</view> |
| | | </view> |
| | |
| | | grid: { |
| | | x: 30, |
| | | y: 30, |
| | | x2: 35, |
| | | y2: 53 |
| | | x2: 37, |
| | | y2: 60 |
| | | }, |
| | | |
| | | series: [{ |
| | |
| | | // url = "/pages/text/text" |
| | | let bodyUrl = e.currentTarget.dataset.url |
| | | let fileType = e.currentTarget.dataset.filetype |
| | | wx.showLoading({ |
| | | title: ' æä»¶ä¸è½½ä¸', |
| | | mask: true, |
| | | }) |
| | | wx.downloadFile({ |
| | | url: bodyUrl, |
| | | success: function (res) { |
| | | wx.hideLoading() |
| | | const filePath = res.tempFilePath |
| | | var t = filePath.split('.')[filePath.split('.').length - 1] |
| | | wx.openDocument({ |
| | | filePath: filePath, |
| | | success: function (res) { |
| | |
| | | */ |
| | | onLoad(options) { |
| | | var that = this |
| | | // this.getOpenerEventChannel().on('acceptDataFromOpenerPage', function (data) { |
| | | // that.setData({ |
| | | // fileId: data.fileId |
| | | // }) |
| | | this.getOpenerEventChannel().on('acceptDataFromOpenerPage', function (data) { |
| | | that.setData({ |
| | | fileId: data.fileId |
| | | }) |
| | | |
| | | // that.getFile() |
| | | // }) |
| | | that.getFile() |
| | | that.getFile() |
| | | }) |
| | | // that.getFile() |
| | | }, |
| | | |
| | | /** |
| | |
| | | } else { |
| | | return undefined |
| | | } |
| | | }, |
| | | |
| | | openFile () { |
| | | let content = this.data.content |
| | | if (content.mfFileUrl == undefined || content.mfFileUrl == null || content.mfFileUrl.length == 0) { |
| | | wx.showToast({ |
| | | title: 'æä»¶ææ¶æ æ³è®¿é®', |
| | | duration: 1000, |
| | | icon: 'none', |
| | | mask: true, |
| | | }) |
| | | return |
| | | } |
| | | console.log(content.mfFileUrl); |
| | | wx.showLoading({ |
| | | title: ' æä»¶ä¸è½½ä¸', |
| | | mask: true, |
| | | }) |
| | | wx.downloadFile({ |
| | | url: content.mfFileUrl, |
| | | success: function (res) { |
| | | wx.hideLoading() |
| | | const filePath = res.tempFilePath |
| | | wx.openDocument({ |
| | | filePath: filePath, |
| | | success: function (res) { |
| | | console.log('æå¼ææ¡£æå') |
| | | }, |
| | | fail (error) { |
| | | console.log(error); |
| | | } |
| | | }) |
| | | } |
| | | }) |
| | | } |
| | | }) |
| | |
| | | </view> |
| | | <view class="fyui-panel"> |
| | | <view>æä»¶ç±»å«ï¼{{content.mfFileType}}</view> |
| | | <view>æä»¶ä¸è½½</view> |
| | | <!-- <view>æä»¶ä¸è½½</view> --> |
| | | </view> |
| | | <view class="fyui-panel"> |
| | | <view>å
³é®è¯ï¼{{content.mfKeywordLv1}}</view> |
| | | </view> |
| | | </view> |
| | | <view class="page__ft"> |
| | | <view class="submit" bindtap="openFile">æ¥çæä»¶</view> |
| | | </view> |
| | | </view> |
| | |
| | | font-size: 12px; |
| | | color: var(--fyui-text-color_2); |
| | | text-align: end; |
| | | margin-bottom: 16px; |
| | | } |
| | | |
| | | .f-summary { |
| | |
| | | |
| | | }, |
| | | |
| | | gotoSearch () { |
| | | wx.navigateTo({ |
| | | url: "/pages/module_consult/consultsearch/consultsearch" |
| | | }) |
| | | }, |
| | | |
| | | goto (e) { |
| | | var url = "" |
| | | var index = e.currentTarget.dataset.index |
| | |
| | | <!--pages/module_consult/consulthome/consulthome.wxml--> |
| | | <view class="page"> |
| | | <view class="page__hd"> |
| | | <view class="search-bar" bindtap="search"> |
| | | <view class="search-bar" bindtap="gotoSearch"> |
| | | <mp-icon icon="search" size="15" color="black"></mp-icon> |
| | | <text>{{searchTips}}</text> |
| | | </view> |
| | |
| | | <view class="page__bd"> |
| | | <view class="flex-h"> |
| | | <view class="card" bindtap="goto" data-index="0"> |
| | | <image src="/res/icons/con_pro_bg.png" class="card-bg" mode="scaleToFill"/> |
| | | <image src="/res/icons/con_pro_bg.png" class="card-bg" mode="scaleToFill" /> |
| | | <view class="card-title">常è§é®é¢</view> |
| | | <view class="card-abstract">常è§ä¼ä¸ç¯ä¿é®é¢</view> |
| | | <image src="/res/icons/con_pro.png" mode="aspectFit" class="icon"></image> |
| | | </view> |
| | | <view class="divider"></view> |
| | | <view class="card middle" bindtap="goto" data-index="1"> |
| | | <image src="/res/icons/con_lib_bg.png" class="card-bg" mode="scaleToFill"/> |
| | | <image src="/res/icons/con_lib_bg.png" class="card-bg" mode="scaleToFill" /> |
| | | <view class="card-title">ç¯ä¿ç¥è¯åº</view> |
| | | <view class="card-abstract">ç¯ä¿æ³å¾æ³è§</view> |
| | | <image src="/res/icons/con_lib.png" mode="aspectFit" class="icon"></image> |
| | | </view> |
| | | <view class="divider"></view> |
| | | <view class="card" bindtap="goto" data-index="2"> |
| | | <image src="/res/icons/con_qa_bg.png" class="card-bg" mode="scaleToFill"/> |
| | | <image src="/res/icons/con_qa_bg.png" class="card-bg" mode="scaleToFill" /> |
| | | <view class="card-title">æºè½å¨è¯¢</view> |
| | | <view class="card-abstract">ç¯ä¿ä¸å®¶ å¨çº¿å¨è¯¢</view> |
| | | <image src="/res/icons/con_qa.png" mode="aspectFit" class="icon"></image> |
| | |
| | | </view> |
| | | <view class="fyui-box__bd"> |
| | | <view class="fyui-box__content tag">ç¸å
³è¡ä¸ -> {{item.fileIndustry}}</view> |
| | | <view class="fyui-box__content">{{item.des}}</view> |
| | | <view class="fyui-box__content des">{{item.des}}</view> |
| | | </view> |
| | | <view class="fyui-box__ft"> |
| | | <text class="keyword">å
³é®è¯ï¼</text> |
| | | <view class="keyword-item"><text wx:for="{{item.keywords}}" wx:for-index="i" wx:for-item="word" wx:key="i" >{{word}}</text></view> |
| | | <view class="keyword-item"> |
| | | <text wx:for="{{item.keywords}}" wx:for-index="i" wx:for-item="word" wx:key="i">{{word}}</text> |
| | | </view> |
| | | </view> |
| | | </view> |
| | | </view> |
| | |
| | | white-space: nowrap; |
| | | } |
| | | .keyword-item { |
| | | display: flex; |
| | | justify-content: flex-start; |
| | | flex-wrap: wrap; |
| | | } |
| | |
| | | color: #2c7064; |
| | | } |
| | | |
| | | .des { |
| | | display: -webkit-box; |
| | | -webkit-box-orient: vertical; |
| | | -webkit-line-clamp: 4; |
| | | width: 100%; |
| | | overflow: hidden; |
| | | /* text-overflow: ellipsis; */ |
| | | } |
| | | |
| | | .tag { |
| | | margin-bottom: 8px; |
| | | } |
| | |
| | | */ |
| | | data: { |
| | | keyword: 'asdad', |
| | | result: [{ |
| | | id: '', |
| | | name: 'æ³å¾æ³è§æ³å¾æ³è§æ³å¾æ³è§æ³å¾æ³è§æ³å¾æ³è§æ³å¾æ³è§æ³å¾æ³è§æ³å¾æ³è§', |
| | | des: 'æ³å¾æ³è§æ³å¾æ³è§æ³å¾æ³è§æ³å¾æ³è§æ³å¾æ³è§æ³å¾æ³è§æ³å¾æ³è§æ³å¾æ³è§æ³å¾æ³è§æ³å¾æ³è§æ³å¾æ³è§æ³å¾æ³è§æ³å¾æ³è§æ³å¾æ³è§æ³å¾æ³è§æ³å¾æ³è§æ³å¾æ³è§æ³å¾æ³è§æ³å¾æ³è§æ³å¾æ³è§æ³å¾æ³è§æ³å¾æ³è§æ³å¾æ³è§æ³å¾æ³è§æ³å¾æ³è§', |
| | | fileIndustry: 'çæç¯å¢', |
| | | itemType: '大æ°', |
| | | fileUrl: '', |
| | | keywords: ['çæç¯å¢', '大æ°', 'çæç¯å¢', '大æ°å¤§', '大æ°', '大æ°', '大æ°å¤§æ°å¤§æ°å¤§æ°å¤§æ°å¤§æ°'], |
| | | time: '' |
| | | },{ |
| | | id: '', |
| | | name: 'æ³å¾æ³è§æ³å¾æ³è§æ³å¾æ³è§æ³å¾æ³è§æ³å¾æ³è§æ³å¾æ³è§æ³å¾æ³è§æ³å¾æ³è§', |
| | | des: 'æ³å¾æ³è§æ³å¾æ³è§æ³å¾æ³è§æ³å¾æ³è§æ³å¾æ³è§æ³å¾æ³è§æ³å¾æ³è§æ³å¾æ³è§æ³å¾æ³è§æ³å¾æ³è§æ³å¾æ³è§æ³å¾æ³è§æ³å¾æ³è§æ³å¾æ³è§æ³å¾æ³è§æ³å¾æ³è§æ³å¾æ³è§æ³å¾æ³è§æ³å¾æ³è§æ³å¾æ³è§æ³å¾æ³è§æ³å¾æ³è§æ³å¾æ³è§æ³å¾æ³è§æ³å¾æ³è§', |
| | | fileIndustry: 'çæç¯å¢', |
| | | itemType: '大æ°', |
| | | fileUrl: '', |
| | | keywords: ['çæç¯å¢', '大æ°', 'çæç¯å¢', '大æ°å¤§', '大æ°', '大æ°', '大æ°å¤§æ°å¤§æ°å¤§æ°å¤§æ°å¤§æ°'], |
| | | time: '' |
| | | }] |
| | | result: [] |
| | | }, |
| | | |
| | | /** |
| | |
| | | </view> |
| | | <view class="fyui-box__bd"> |
| | | <view class="fyui-box__content tag">ç¸å
³è¡ä¸ -> {{item.fileIndustry}}</view> |
| | | <view class="fyui-box__content">{{item.des}}</view> |
| | | <view class="fyui-box__content des">{{item.des}}</view> |
| | | </view> |
| | | <view class="fyui-box__ft"> |
| | | <text class="keyword">å
³é®è¯ï¼</text> |
| | |
| | | white-space: nowrap; |
| | | } |
| | | .keyword-item { |
| | | display: flex; |
| | | justify-content: flex-start; |
| | | flex-wrap: wrap; |
| | | } |
| | |
| | | color: #2c7064; |
| | | } |
| | | |
| | | .des { |
| | | display: -webkit-box; |
| | | -webkit-box-orient: vertical; |
| | | -webkit-line-clamp: 4; |
| | | width: 100%; |
| | | overflow: hidden; |
| | | /* text-overflow: ellipsis; */ |
| | | } |
| | | |
| | | .tag { |
| | | margin-bottom: 8px; |
| | | } |
| | |
| | | placeholder: 'æç´¢', |
| | | value: '', |
| | | |
| | | history: ['a', 'b'], |
| | | history: [], |
| | | |
| | | hotTopic: [{ |
| | | name: 'çé¨çé¨çé¨çé¨çé¨çé¨çé¨çé¨çé¨çé¨çé¨çé¨çé¨çé¨çé¨çé¨çé¨çé¨çé¨çé¨çé¨çé¨çé¨çé¨çé¨' |
| | | },{ |
| | | name: 't2' |
| | | },{ |
| | | name: 't3' |
| | | }], |
| | | hotTopic: [], |
| | | }, |
| | | |
| | | /** |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | // pages/module_user/userlogin/userlogin.js |
| | | const $f = require("../../../service//baserequest") |
| | | const userservice = require("../../../service/userservice") |
| | | const app = getApp() |
| | | |
| | | Page({ |
| | | |
| | | /** |
| | | * 页é¢çåå§æ°æ® |
| | | */ |
| | | data: { |
| | | bgPath: $f.baseIconUrl + 'userlogin-1.png' |
| | | }, |
| | | |
| | | /** |
| | | * çå½å¨æå½æ°--çå¬é¡µé¢å è½½ |
| | | */ |
| | | onLoad: function (options) { |
| | | |
| | | }, |
| | | |
| | | /** |
| | | * çå½å¨æå½æ°--çå¬é¡µé¢å次渲æå®æ |
| | | */ |
| | | onReady: function () { |
| | | |
| | | }, |
| | | |
| | | /** |
| | | * çå½å¨æå½æ°--çå¬é¡µé¢æ¾ç¤º |
| | | */ |
| | | onShow: function () { |
| | | |
| | | }, |
| | | |
| | | loginWx() { |
| | | |
| | | }, |
| | | |
| | | gotoLogin() { |
| | | wx.navigateTo({ |
| | | url: '/pages/module_user/userloginpw/userloginpw', |
| | | success: (result) => {}, |
| | | fail: (res) => {}, |
| | | complete: (res) => {}, |
| | | }) |
| | | } |
| | | }) |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | { |
| | | "usingComponents": {} |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | <!--pages/module_user/userlogin/userlogin.wxml--> |
| | | <view> |
| | | <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> |
| | | |
| | | </view> |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | /* pages/module_user/userlogin/userlogin.wxss */ |
| | | .banner-bg { |
| | | z-index: -1; |
| | | position: fixed; |
| | | top: 0; |
| | | width: 100%; |
| | | height: 100%; |
| | | /* background-color: aqua; */ |
| | | } |
| | | |
| | | .login-btn { |
| | | margin-top: 50vh; |
| | | text-align: center; |
| | | } |
| | | |
| | | .login-btn_text { |
| | | color: #2F655B; |
| | | } |
| | | |
| | | .login-btn_text:active { |
| | | color: #2f655b71; |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | // pages/module_user/userloginpw/userloginpw.js |
| | | const userservice = require("../../../service/userservice") |
| | | const app = getApp() |
| | | |
| | | Page({ |
| | | |
| | | /** |
| | | * 页é¢çåå§æ°æ® |
| | | */ |
| | | data: { |
| | | userName: "", |
| | | password: "", |
| | | loading: false |
| | | }, |
| | | |
| | | /** |
| | | * çå½å¨æå½æ°--çå¬é¡µé¢å è½½ |
| | | */ |
| | | onLoad(options) { |
| | | |
| | | }, |
| | | |
| | | onReady() { |
| | | var that = this |
| | | //è·åç¼åçç¨æ·è´¦æ·å¯ç |
| | | wx.getStorage({ |
| | | key: 'accessToken', |
| | | success(res) { |
| | | app.globalData.accessToken = res.data |
| | | that.setData({ |
| | | userName: res.data.userName, |
| | | password: res.data.password |
| | | }) |
| | | }, |
| | | }) |
| | | }, |
| | | |
| | | inputUserName (e) { |
| | | this.setData({ |
| | | userName: e.detail.value |
| | | }); |
| | | }, |
| | | |
| | | inputPassword (e) { |
| | | this.setData({ |
| | | password: e.detail.value |
| | | }); |
| | | }, |
| | | |
| | | login() { |
| | | if (this.data.userName == '') { |
| | | wx.showToast({ |
| | | title: '请è¾å
¥è´¦æ·', |
| | | icon: 'none' |
| | | }) |
| | | return |
| | | } |
| | | if (this.data.password == '') { |
| | | wx.showToast({ |
| | | title: '请è¾å
¥å¯ç ', |
| | | icon: 'none' |
| | | }) |
| | | return |
| | | } |
| | | var that = this |
| | | this.setData({ |
| | | loading: true |
| | | }) |
| | | userservice.login(this.data.userName, this.data.password, { |
| | | success (data) { |
| | | if (data.success) { |
| | | app.globalData.accessToken = { |
| | | userName: that.data.userName, |
| | | password: that.data.password, |
| | | userId: data.userId, |
| | | suserId: data.suserId, |
| | | } |
| | | wx.setStorage({ |
| | | key: 'accessToken', |
| | | data: app.globalData.accessToken, |
| | | }) |
| | | that.getUserInfo() |
| | | } else { |
| | | wx.showToast({ |
| | | title: 'è´¦æ·æå¯ç é误', |
| | | duration: 1000, |
| | | icon: 'none', |
| | | }) |
| | | } |
| | | }, |
| | | complete () { |
| | | that.setData({ |
| | | loading: false |
| | | }) |
| | | } |
| | | }) |
| | | }, |
| | | |
| | | getUserInfo() { |
| | | var that = this |
| | | userservice.getUserInfo(app.globalData.accessToken.userId, { |
| | | success(data) { |
| | | app.globalData.userInfo = data |
| | | wx.setStorage({ |
| | | key: 'userInfo', |
| | | data: data, |
| | | success: (result) => { |
| | | wx.switchTab({ |
| | | url: '/pages/home/home', |
| | | }) |
| | | } |
| | | }) |
| | | } |
| | | }) |
| | | }, |
| | | |
| | | gotoRegister() { |
| | | wx.navigateTo({ |
| | | url: '/pages/module_user/userregistertype/userregistertype', |
| | | success: (result) => {}, |
| | | fail: (res) => {}, |
| | | complete: (res) => {}, |
| | | }) |
| | | } |
| | | }) |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | { |
| | | "navigationBarTitleText": "ç»å½", |
| | | "usingComponents": {} |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | <!--pages/module_user/userloginpw/userloginpw.wxml--> |
| | | <view class="page"> |
| | | <view class="login-container"> |
| | | <view class="user-info"> |
| | | <view class="user-info_item"> |
| | | <text>è´¦å·ï¼</text> |
| | | <input type="text" placeholder="请è¾å
¥è´¦å·" value="{{userName}}" bindinput="inputUserName" /> |
| | | </view> |
| | | <view class="user-info_item"> |
| | | <text>å¯ç ï¼</text> |
| | | <input type="password" placeholder="请è¾å
¥å¯ç " value="{{password}}" bindinput="inputPassword" /> |
| | | </view> |
| | | </view> |
| | | <button class="bottom-btn {{password.length > 0 ? 'bottom-btn_active' : ''}}" bindtap="login" loading="{{loading}}" disabled="{{password.length == 0}}"> |
| | | ç»å½ |
| | | </button> |
| | | <view class="login-btn_text" bindtap="gotoRegister">廿³¨å</view> |
| | | <!-- <view> |
| | | <label class="weui-agree" bindtap="checkboxChange"> |
| | | <checkbox class="weui-agree__checkbox-check" value="agree" checked="{{agree}}"/> |
| | | <span class="weui-agree__checkbox"></span> |
| | | <span class="weui-agree__text">é
读并åæä»¥ä¸è¯´æ</span> |
| | | </label> |
| | | </view> |
| | | <view> |
| | | <view class="agree-text">æ¬å°ç¨åºç¨äºä¼ä¸æ±¡æ°´æ½è¿è®°å½ä¸æ¥ï¼è¯·ç¨æ·ç¥æ</view> |
| | | </view> --> |
| | | </view> |
| | | </view> |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | /* pages/module_user/userloginpw/userloginpw.wxss */ |
| | | .login-container{ |
| | | display: flex; |
| | | flex-direction: column; |
| | | justify-content: flex-start; |
| | | align-items: center; |
| | | height: 100vh; |
| | | z-index: 1; |
| | | background-color: white; |
| | | } |
| | | |
| | | .bottom-btn{ |
| | | width: 90% !important; |
| | | color: #828282; |
| | | background-color: #EEEEEE; |
| | | margin-top: 80px; |
| | | } |
| | | |
| | | .bottom-btn_active { |
| | | color: white; |
| | | background: linear-gradient(to right, #6DF1A9, #62EBCF); |
| | | } |
| | | |
| | | |
| | | .agree-text { |
| | | width: 70vw; |
| | | text-align: center; |
| | | font-size: 12px; |
| | | color: #b8b8b8; |
| | | margin-top: 12rpx; |
| | | } |
| | | |
| | | .user-info { |
| | | font-size: 20px; |
| | | width: 100%; |
| | | /* background-color: burlywood; */ |
| | | margin-top: 30px; |
| | | } |
| | | .user-info_item { |
| | | display: flex; |
| | | justify-content: flex-start; |
| | | align-items: flex-start; |
| | | margin-bottom: 8px; |
| | | padding: 8px 30px; |
| | | } |
| | | |
| | | .user-info_item>text{ |
| | | color: var(--fyui-text-color_1); |
| | | line-height: 30px; |
| | | white-space: nowrap; |
| | | font-weight: 600; |
| | | } |
| | | |
| | | .user-info_item>input{ |
| | | height: 30px; |
| | | line-height: 30px; |
| | | width: 100%; |
| | | border-bottom: #929292 1px solid; |
| | | background-color: white; |
| | | font-size: medium; |
| | | } |
| | | |
| | | .login-btn_text { |
| | | margin-top: 24px; |
| | | color: #2F655B; |
| | | } |
| | | |
| | | .login-btn_text:active { |
| | | color: #2f655b71; |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | // pages/module_user/userregistercompany/userregistercompany.js |
| | | Page({ |
| | | |
| | | /** |
| | | * 页é¢çåå§æ°æ® |
| | | */ |
| | | data: { |
| | | sceneTypes: [ |
| | | {value: '1', name: 'é¤é¥®'}, |
| | | {value: '2', name: 'å·¥å°'}, |
| | | {value: '3', name: 'ç 头'}, |
| | | {value: '4', name: 'å åº'}, |
| | | {value: '5', name: 'æ
æç«' }, |
| | | {value: '6', name: 'å·¥ä¸ä¼ä¸' }, |
| | | {value: '7', name: '汽修'}, |
| | | ], |
| | | sceneTypeIndex: 0, |
| | | |
| | | imgFiles: [], |
| | | |
| | | msg: [{ |
| | | name: "è´¦å·", |
| | | id: "username", |
| | | input: true, |
| | | value: "", |
| | | noValue: false |
| | | }, |
| | | { |
| | | name: "å¯ç ", |
| | | id: "password", |
| | | input: true, |
| | | type: 'password', |
| | | placeholder: '请è¾å
¥å¯ç ï¼æå¤20ä½ï¼', |
| | | maxLength: 20, |
| | | value: "", |
| | | noValue: false |
| | | }, |
| | | { |
| | | name: "确认å¯ç ", |
| | | id: "number", |
| | | input: true, |
| | | type: 'password', |
| | | placeholder: 'è¯·åæ¬¡ç¡®è®¤å¯ç ', |
| | | maxLength: 20, |
| | | value: "", |
| | | noValue: false, |
| | | }, |
| | | { |
| | | name: "å
¬å¸åç§°", |
| | | id: "department", |
| | | input: true, |
| | | value: '', |
| | | noValue: false, |
| | | required: false |
| | | }, |
| | | { |
| | | name: "ä¿¡ç¨ä»£ç ", |
| | | id: "code", |
| | | input: true, |
| | | value: "", |
| | | noValue: false, |
| | | required: false |
| | | }, |
| | | ], |
| | | }, |
| | | |
| | | /** |
| | | * çå½å¨æå½æ°--çå¬é¡µé¢å è½½ |
| | | */ |
| | | onLoad(options) { |
| | | |
| | | }, |
| | | |
| | | changeSceneType(e) { |
| | | let i = e.detail.value |
| | | this.setData({ |
| | | sceneTypeIndex: i |
| | | }) |
| | | }, |
| | | |
| | | changeMsg(e) { |
| | | let id = e.detail.params.id |
| | | let value = e.detail.params.value |
| | | let msg = this.data.msg |
| | | let msgLength = msg.length |
| | | for (let i = 0; i < msgLength; i++) { |
| | | if (msg[i].id === id) { |
| | | let path = "msg[" + i + "].value" |
| | | let nPath = "msg[" + i + "].noValue" |
| | | this.setData({ |
| | | [path]: value, |
| | | [nPath]: false |
| | | }) |
| | | } |
| | | } |
| | | }, |
| | | |
| | | uploadFile(file) { |
| | | let data = file.detail.newFiles |
| | | data.forEach(element => { |
| | | element.loading = false |
| | | }); |
| | | this.setData({ |
| | | imgFiles: data |
| | | }) |
| | | }, |
| | | |
| | | onSubmit: function () { |
| | | if (!this.submitCheck()) return |
| | | |
| | | |
| | | }, |
| | | |
| | | /** |
| | | * ä¿¡æ¯å®æ´åº¦æ£æ¥ |
| | | */ |
| | | submitCheck() { |
| | | let msg = this.data.msg |
| | | let msgLength = msg.length |
| | | //确认信æ¯å®æ´åº¦ |
| | | for (let i = 0; i < msgLength; i++) { |
| | | if (msg[i].required != false && msg[i].value === "") { |
| | | let error = msg[i].name + "ä¸å¯ä¸ºç©º" |
| | | let path = "msg[" + i + "].noValue" |
| | | this.setData({ |
| | | errorMsg: error, |
| | | [path]: true |
| | | }) |
| | | |
| | | wx.pageScrollTo({ |
| | | duration: 300, |
| | | scrollTop: 0, |
| | | // selector:"#" + msg[i].id, |
| | | }) |
| | | return false |
| | | } |
| | | } |
| | | |
| | | //å¯ç ä¸è´æ§ç¡®è®¤ |
| | | if (msg[1].value != msg[2].value) { |
| | | let error = "两次è¾å
¥çå¯ç ä¸ä¸è´" |
| | | this.setData({ |
| | | errorMsg: error, |
| | | }) |
| | | return false |
| | | } |
| | | |
| | | return true |
| | | } |
| | | }) |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | { |
| | | "navigationBarTitleText": "ä¼ä¸è´¦æ·æ³¨å", |
| | | "usingComponents": { |
| | | "mp-cells":"/component/cells/cells", |
| | | "mp-cell":"/component/cell/cell", |
| | | "input-cell":"/component/inputcell/inputcell", |
| | | "mp-toptips":"/component/toptips/toptips", |
| | | "mp-icon": "/component/icon/icon", |
| | | "mp-upload":"/component/uploader/uploader" |
| | | } |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | <!--pages/module_user/userregistercompany/userregistercompany.wxml--> |
| | | <view class="page"> |
| | | <mp-toptips type="error" msg="{{errorMsg}}" show="{{errorMsg}}" delay="2000"></mp-toptips> |
| | | |
| | | <view class="page__bd"> |
| | | <view class="top-card"> |
| | | <view class="tag">ä¼ä¸ç±»å</view> |
| | | <picker mode="selector" bindchange="changeSceneType" value="{{sceneTypeIndex}}" range="{{sceneTypes}}" range-key="name" class="value"> |
| | | <view>{{sceneTypes[sceneTypeIndex].name}}</view> |
| | | </picker> |
| | | <mp-icon icon="arrow" color="#7F7F7F" size="{{10}}"></mp-icon> |
| | | </view> |
| | | |
| | | <view class="items"> |
| | | <mp-cells> |
| | | <input-cell wx:for="{{msg}}" wx:key="id" item="{{item}}" bindpassValue="changeMsg"></input-cell> |
| | | </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/module_user/userregistercompany/userregistercompany.wxss */ |
| | | .top-card { |
| | | /* position: relative; */ |
| | | display: flex; |
| | | flex-direction: row; |
| | | background-color: white; |
| | | border-radius: 4px; |
| | | /* margin: 0px 8px 8px 8px; */ |
| | | margin-top: 8px; |
| | | padding: 8px; |
| | | font-size: 16px; |
| | | } |
| | | |
| | | .items { |
| | | padding: 0 8px; |
| | | background-color: white; |
| | | } |
| | | |
| | | .top-card .tag { |
| | | /* display: inline-block; */ |
| | | width: 105px; |
| | | 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: 8px; |
| | | } |
| | | |
| | | .page__ft { |
| | | background-color: white; |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | // pages/module_user/userregistergov/userregistergov.js |
| | | Page({ |
| | | |
| | | /** |
| | | * 页é¢çåå§æ°æ® |
| | | */ |
| | | data: { |
| | | |
| | | }, |
| | | |
| | | /** |
| | | * çå½å¨æå½æ°--çå¬é¡µé¢å è½½ |
| | | */ |
| | | onLoad(options) { |
| | | |
| | | }, |
| | | |
| | | /** |
| | | * çå½å¨æå½æ°--çå¬é¡µé¢å次渲æå®æ |
| | | */ |
| | | onReady() { |
| | | |
| | | }, |
| | | |
| | | /** |
| | | * çå½å¨æå½æ°--çå¬é¡µé¢æ¾ç¤º |
| | | */ |
| | | onShow() { |
| | | |
| | | }, |
| | | |
| | | /** |
| | | * çå½å¨æå½æ°--çå¬é¡µé¢éè |
| | | */ |
| | | onHide() { |
| | | |
| | | }, |
| | | |
| | | /** |
| | | * çå½å¨æå½æ°--çå¬é¡µé¢å¸è½½ |
| | | */ |
| | | onUnload() { |
| | | |
| | | }, |
| | | |
| | | /** |
| | | * 页é¢ç¸å
³äºä»¶å¤ç彿°--çå¬ç¨æ·ä¸æå¨ä½ |
| | | */ |
| | | onPullDownRefresh() { |
| | | |
| | | }, |
| | | |
| | | /** |
| | | * 页é¢ä¸æè§¦åºäºä»¶çå¤ç彿° |
| | | */ |
| | | onReachBottom() { |
| | | |
| | | }, |
| | | |
| | | /** |
| | | * ç¨æ·ç¹å»å³ä¸è§å享 |
| | | */ |
| | | onShareAppMessage() { |
| | | |
| | | } |
| | | }) |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | { |
| | | "usingComponents": {} |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | <!--pages/module_user/userregistergov/userregistergov.wxml--> |
| | | <text>pages/module_user/userregistergov/userregistergov.wxml</text> |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | /* pages/module_user/userregistergov/userregistergov.wxss */ |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | // pages/module_user/userregistertype/userregistertype.js |
| | | Page({ |
| | | |
| | | /** |
| | | * 页é¢çåå§æ°æ® |
| | | */ |
| | | data: { |
| | | |
| | | }, |
| | | |
| | | /** |
| | | * çå½å¨æå½æ°--çå¬é¡µé¢å è½½ |
| | | */ |
| | | onLoad(options) { |
| | | |
| | | }, |
| | | |
| | | gotoRegisterInfo(e) { |
| | | let index = e.currentTarget.dataset.index |
| | | let url = "" |
| | | switch(index) { |
| | | case "0": |
| | | url = `/pages/module_user/userregistercompany/userregistercompany` |
| | | break; |
| | | case "1": |
| | | url = `/pages/module_user/userregistergov/userregistergov` |
| | | break; |
| | | } |
| | | if (url != "") { |
| | | wx.navigateTo({ |
| | | url: url |
| | | }) |
| | | } |
| | | } |
| | | }) |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | { |
| | | "navigationBarTitleText": "éæ©æ³¨åç±»å", |
| | | "usingComponents": {} |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | <!--pages/module_user/userregistertype/userregistertype.wxml--> |
| | | <view> |
| | | <view class="text-1">æ¨è¦æ³¨åï¼</view> |
| | | <view class="re-type" bindtap="gotoRegisterInfo" data-index="0"> |
| | | <image src="/res/icons/re_company.png"></image> |
| | | <view>ä¼ä¸è´¦æ·</view> |
| | | </view> |
| | | <view class="divider"></view> |
| | | <view class="re-type" bindtap="gotoRegisterInfo" data-index="0"> |
| | | <image src="/res/icons/re_manage.png"></image> |
| | | <view>管çè´¦æ·</view> |
| | | </view> |
| | | </view> |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | /* pages/module_user/userregistertype/userregistertype.wxss */ |
| | | .text-1 { |
| | | text-align: center; |
| | | color: var(--fyui-text-color_1); |
| | | font-weight: 600; |
| | | font-size: 18px; |
| | | } |
| | | |
| | | .re-type { |
| | | text-align: center; |
| | | margin: 60px; |
| | | } |
| | | |
| | | .re-type:active { |
| | | color: var(--fyui-text-color_3); |
| | | } |
| | | |
| | | .re-type>image { |
| | | width: 120px; |
| | | height: 120px; |
| | | } |
| | | |
| | | .divider { |
| | | margin: 20px; |
| | | width: auto; |
| | | height: 1px; |
| | | background-color: var(--fyui-BG_1); |
| | | } |
| | |
| | | */ |
| | | onLoad: function (options) { |
| | | this._initPlanYear() |
| | | |
| | | // this.getCommitment() |
| | | }, |
| | | |
| | | /** |
| | | * çå½å¨æå½æ°--çå¬é¡µé¢æ¾ç¤º |
| | | */ |
| | | onShow: function () { |
| | | console.log("promise: onshow"); |
| | | this.getCommitment() |
| | | }, |
| | | |
| | |
| | | <view> |
| | | <view class="title">{{text1}}</view> |
| | | <view class="tag">{{deadline}}</view> |
| | | <view class="btn" bindtap="gotoPromise" data-status="{{status}}">{{text3}}</view> |
| | | </view> |
| | | <view class="btn" bindtap="gotoPromise" data-status="{{status}}">{{text3}}</view> |
| | | <view wx:if="{{status == 1}}" bindtap="gotoPromise" data-status="{{status}}"> |
| | | <image class="file" src="{{promise[0].picPath}}"></image> |
| | | </view> |
| | | </view> |
| | | <view class="page__bd"> |
| | | <view class="fyui-cell fyui-cell_select title"> |
| | |
| | | .page__hd { |
| | | background: linear-gradient(to bottom, #57E4CB, #bbf3eb); |
| | | height: 30vh; |
| | | display: flex; |
| | | justify-content: space-between; |
| | | } |
| | | |
| | | .page__hd .title { |
| | |
| | | margin-top: 50px; |
| | | } |
| | | |
| | | .page__hd .file { |
| | | width: 40vw; |
| | | margin-bottom: 2px; |
| | | } |
| | | |
| | | .p-cell{ |
| | | position: relative; |
| | | padding: 8px; |
| | |
| | | { |
| | | "usingComponents": { |
| | | "mp-upload":"/component/uploader/uploader", |
| | | "sign-dialog": "/component/sign/sign", |
| | | "mp-icon": "/component/icon/icon", |
| | | "c-dialog": "/component/commondialog/commondialog" |
| | | }, |
| | |
| | | <view wx:if="{{imgFiles.length == 0}}" class=""> |
| | | <view class="top-right" bindtap="startSign"> |
| | | <view class="sign-btn"> |
| | | <mp-icon bindtap="startSign" type="field" icon="add" color="gray" size="{{60}}"></mp-icon> |
| | | <mp-icon type="field" icon="add" color="gray" size="{{60}}"></mp-icon> |
| | | </view> |
| | | </view> |
| | | </view> |
| | |
| | | <view class="page__ft"> |
| | | <view class="submit" bindtap="onSubmit">确认æ¿è¯º</view> |
| | | </view> |
| | | <!-- <sign-dialog id="sign-dialog" show="{{showDialog}}" bindconfirm="signOver"></sign-dialog> |
| | | <c-dialog show="{{showDialog2}}" yes="æ¥çæ¥å" bindconfirm="gotoReport" bindclose="goBack" no="è¿å" showBtn="{{!startCalculate}}"> |
| | | </c-dialog> --> |
| | | </view> |
| | |
| | | /* pages/promiseinfo/promiseinfo.wxss */ |
| | | .page__bd { |
| | | font-size: 14px; |
| | | font-size: 16px; |
| | | } |
| | | .banner-bg { |
| | | position: fixed; |
| | |
| | | var that = this |
| | | this.getOpenerEventChannel().on('acceptDataFromOpenerPage', function (data) { |
| | | console.log(data); |
| | | data.promise.picPath = $f.basePicUrl + data.promise.picPath |
| | | data.promise.pdfPath = $f.basePicUrl + data.promise.pdfPath |
| | | // data.promise.picPath = $f.basePicUrl + data.promise.picPath |
| | | // data.promise.pdfPath = $f.basePicUrl + data.promise.pdfPath |
| | | that.setData({ |
| | | promise: data.promise |
| | | }) |
| | |
| | | */ |
| | | data: { |
| | | isDrawed: false, |
| | | |
| | | width: '1px', |
| | | height: '1px' |
| | | }, |
| | | |
| | | //å³å®æ¯å¦ç»å¶çæå°åç´ è·ç¦» |
| | |
| | | //this.ctxH -->æç»å¶canvasçheight |
| | | rotateCanvas.width = that.canvas.height; |
| | | rotateCanvas.height = that.canvas.width; |
| | | that.setData({ |
| | | width: rotateCanvas.width, |
| | | height: rotateCanvas.height, |
| | | }) |
| | | wx.canvasToTempFilePath({ |
| | | canvas: that.canvas, |
| | | success(res) { |
| | |
| | | <view class="page"> |
| | | <view class="canvas"> |
| | | <canvas id="signCanvas" type="2d" class="sign-canvas" bindtouchstart="touchStart" |
| | | bindtouchmove="touchMove" bindtouchend="touchEnd"></canvas> |
| | | bindtouchmove="touchMove" bindtouchend="touchEnd" disable-scroll="true"></canvas> |
| | | <view class="tips">请æè½¬å±å¹è³æ¤æ¹åç¾å</view> |
| | | </view> |
| | | <view class="btn-group"> |
| | | <view class="cancel" bindtap="onCancel">åæ¶</view> |
| | | <view class="submit" bindtap="onSubmit">确认</view> |
| | | </view> |
| | | <canvas id="handWriting2" type="2d" style="display: none;width:100%;height:100%;" bindtouchstart="touchStart" |
| | | bindtouchmove="touchMove" bindtouchend="touchEnd"></canvas> |
| | | <canvas id="handWriting2" type="2d" style="position: absolute; z-index: -1; width:{{width}};height:{{height}};"></canvas> |
| | | </view> |
| | |
| | | /* pages/test2/test2.wxss */ |
| | | .page { |
| | | overflow: hidden; |
| | | } |
| | | |
| | | .canvas { |
| | | display: flex; |
| | | margin-top: 4px; |
| | |
| | | "checkSiteMap": true, |
| | | "uploadWithSourceMap": true, |
| | | "compileHotReLoad": false, |
| | | "useMultiFrameRuntime": false, |
| | | "useMultiFrameRuntime": true, |
| | | "useApiHook": true, |
| | | "babelSetting": { |
| | | "ignore": [], |
| | |
| | | "showES6CompileOption": false, |
| | | "useCompilerPlugins": false, |
| | | "ignoreUploadUnusedFiles": true, |
| | | "useStaticServer": true |
| | | "useStaticServer": true, |
| | | "minifyWXML": true |
| | | }, |
| | | "compileType": "miniprogram", |
| | | "libVersion": "2.21.3", |
| | | "libVersion": "2.25.2", |
| | | "appid": "wxffd1438dd373fcf6", |
| | | "projectname": "ep-law-abiding", |
| | | "editorSetting": { |
| | |
| | | "urlCheck": false, |
| | | "compileHotReLoad": true |
| | | }, |
| | | "description": "项ç®ç§æé
ç½®æä»¶ãæ¤æä»¶ä¸çå
容å°è¦ç project.config.json ä¸çç¸ååæ®µã项ç®çæ¹å¨ä¼å
忥尿¤æä»¶ä¸ãè¯¦è§ææ¡£ï¼https://developers.weixin.qq.com/miniprogram/dev/devtools/projectconfig.html" |
| | | "description": "项ç®ç§æé
ç½®æä»¶ãæ¤æä»¶ä¸çå
容å°è¦ç project.config.json ä¸çç¸ååæ®µã项ç®çæ¹å¨ä¼å
忥尿¤æä»¶ä¸ãè¯¦è§ææ¡£ï¼https://developers.weixin.qq.com/miniprogram/dev/devtools/projectconfig.html", |
| | | "projectname": "ep-law-abiding" |
| | | } |
| | |
| | | |
| | | const originProperties = ['url', 'data', 'header', 'method', 'success', 'fail', 'complete']; |
| | | // const baseUrl = "http://127.0.0.1:8080" |
| | | const baseUrl = "http://192.168.0.117:8080" |
| | | // const baseUrl = "https://fyami.com.cn:447" |
| | | // const baseUrl = "http://192.168.0.117: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 = baseUrl + "/meeting/file/" |
| | | |
| | | function request(fun) { |
| | |
| | | }, |
| | | basePicUrl:basePicUrl, |
| | | baseUrl:baseUrl, |
| | | baseFileUrl:baseFileUrl |
| | | baseFileUrl:baseFileUrl, |
| | | baseIconUrl: baseIconUrl |
| | | } |
| | |
| | | const $f = require('./baserequest') |
| | | const util = require('../utils/util') |
| | | |
| | | module.exports = { |
| | | //æ ¹æ®å
³é®åæç´¢æ³å¾æ³è§ |
| | |
| | | }, |
| | | } |
| | | Object.assign(cb, fun) |
| | | $f.get(cb) |
| | | |
| | | let fun1 = util.deepCopy(cb) |
| | | fun1.success = function (res) { |
| | | res.mfFileUrl = $f.baseFileUrl + res.mfFileUrl |
| | | cb.success(res) |
| | | } |
| | | |
| | | $f.get(fun1) |
| | | }, |
| | | } |
| | |
| | | const $f = require("./baserequest") |
| | | const util = require('../utils/util') |
| | | |
| | | module.exports = { |
| | | //çææ¿è¯ºä¹¦ |
| | |
| | | userId: userId, |
| | | coVo: JSON.stringify(commitmentVo) |
| | | }, |
| | | success: (result) => {fun.success(JSON.parse(result.data))}, |
| | | success: (result) => { |
| | | let res = JSON.parse(result.data) |
| | | res.data = res.data.map((value, index) => { |
| | | return $f.basePicUrl + value |
| | | }) |
| | | fun.success(res) |
| | | }, |
| | | fail: (res) => {fun.fail(res)}, |
| | | complete: (res) => {fun.complete(res)}, |
| | | }) |
| | |
| | | }, |
| | | } |
| | | Object.assign(cb, fun) |
| | | $f.get(cb) |
| | | |
| | | let fun1 = util.deepCopy(cb) |
| | | fun1.success = function (res) { |
| | | res.forEach(r => { |
| | | r.cmUrl = $f.basePicUrl + r.cmUrl |
| | | r.cmPdfUrl = $f.basePicUrl + r.cmPdfUrl |
| | | }); |
| | | cb.success(res) |
| | | } |
| | | |
| | | $f.get(fun1) |
| | | } |
| | | } |