9a662d55 by 杨炀

fixed: 36版本

1.小程序登录的时候如果手机号或者账号错误的时候,没提示
2.小程序在个人中心编辑的时候,不能保存
1 parent d3376bed
...@@ -10,7 +10,15 @@ export function active(data) { ...@@ -10,7 +10,15 @@ export function active(data) {
10 method: 'post', 10 method: 'post',
11 params: data 11 params: data
12 }) 12 })
13 }
14 export function commitPaymentVoucherYJ(data) {
15 return request({
16 url: '/person/paymentDocYj/commitPaymentVoucher',
17 method: 'post',
18 params: data
19 })
13 } 20 }
21
14 export function editMyMemberCertifiedInfo(data) { 22 export function editMyMemberCertifiedInfo(data) {
15 return request({ 23 return request({
16 url: '/system/dept/editMyMemberCertifiedInfo', 24 url: '/system/dept/editMyMemberCertifiedInfo',
......
...@@ -70,7 +70,11 @@ function loginByPhone(phonenumber, code) { ...@@ -70,7 +70,11 @@ function loginByPhone(phonenumber, code) {
70 url: '/userLoginByPhone', 70 url: '/userLoginByPhone',
71 method: 'post', 71 method: 'post',
72 params: data 72 params: data
73 }).then((res) => { 73 }).then((res) => {
74 uni.showToast({
75 title: res.msg,
76 icon: 'none'
77 })
74 uni.setStorageSync('token', 'Bearer ' + res.data.token) 78 uni.setStorageSync('token', 'Bearer ' + res.data.token)
75 }).then(getInfo) 79 }).then(getInfo)
76 } 80 }
......
...@@ -163,14 +163,12 @@ ...@@ -163,14 +163,12 @@
163 return 163 return
164 } 164 }
165 165
166 pcLogin(form.value) 166 pcLogin(form.value).then((res) => {
167 .then((res) => {
168 app.globalData.isLogin = true 167 app.globalData.isLogin = true
169 uni.redirectTo({ 168 uni.redirectTo({
170 url: '/pages/index/index' 169 url: '/pages/index/index'
171 }) 170 })
172 }) 171 })
173 .catch(getCode)
174 } else if (isActive.value == 1) { 172 } else if (isActive.value == 1) {
175 if (!form2.value.telNo) { 173 if (!form2.value.telNo) {
176 uni.showToast({ 174 uni.showToast({
...@@ -178,7 +176,16 @@ ...@@ -178,7 +176,16 @@
178 icon: 'none' 176 icon: 'none'
179 }) 177 })
180 return 178 return
181 } 179 }
180 var pattern = /^1[3456789]\d{9}$/;
181 if (!pattern.test(form2.value.telNo)) {
182 uni.showToast({
183 title: '请输入正确的手机号',
184 duration: 2000,
185 icon: 'none'
186 })
187 return
188 }
182 if (!form2.value.code) { 189 if (!form2.value.code) {
183 uni.showToast({ 190 uni.showToast({
184 title: '短信验证码不能为空', 191 title: '短信验证码不能为空',
...@@ -221,7 +228,16 @@ ...@@ -221,7 +228,16 @@
221 icon: 'none' 228 icon: 'none'
222 }) 229 })
223 return 230 return
224 } 231 }
232 var pattern = /^1[3456789]\d{9}$/;
233 if (!pattern.test(form2.value.telNo)) {
234 uni.showToast({
235 title: '请输入正确的手机号',
236 duration: 2000,
237 icon: 'none'
238 })
239 return
240 }
225 if (!form2.value.captcha) { 241 if (!form2.value.captcha) {
226 uni.showToast({ 242 uni.showToast({
227 title: '图形验证码不能为空', 243 title: '图形验证码不能为空',
...@@ -236,14 +252,17 @@ ...@@ -236,14 +252,17 @@
236 code: form2.value.captcha 252 code: form2.value.captcha
237 }).then(res => { 253 }).then(res => {
238 uni.showToast({ 254 uni.showToast({
239 title: '短信验证码下发成功', 255 title: res.data.msg,
240 icon: 'none' 256 icon: 'none'
241 }) 257 })
242 countDown.value.start = true 258 countDown.value.start = true
243 }).catch(res=>{ 259 })
244 console.log(res.data.msg) 260 // .catch(res=>{
245 getCode() 261 // uni.showModal({
246 }) 262 // content:res.data.msg
263 // })
264 // getCode()
265 // })
247 } 266 }
248 267
249 function timeup() { 268 function timeup() {
......
...@@ -101,7 +101,7 @@ function submit(){ ...@@ -101,7 +101,7 @@ function submit(){
101 }) 101 })
102 return 102 return
103 } 103 }
104 if(!user.value.phoneNumber){ 104 if(!user.value.phonenumber){
105 uni.showToast({ 105 uni.showToast({
106 icon:'none',title:`请输入手机号码` 106 icon:'none',title:`请输入手机号码`
107 }) 107 })
...@@ -117,6 +117,7 @@ function submit(){ ...@@ -117,6 +117,7 @@ function submit(){
117 uni.showToast({ 117 uni.showToast({
118 icon:'none',title:`修改成功` 118 icon:'none',title:`修改成功`
119 }) 119 })
120 edit.value = false
120 }) 121 })
121 } 122 }
122 function changeSex(e){ 123 function changeSex(e){
......
...@@ -41,7 +41,7 @@ ...@@ -41,7 +41,7 @@
41 </view> 41 </view>
42 <view class="func"> 42 <view class="func">
43 <button 43 <button
44 @click="handleUpdate(item)" v-if="item.settleFlag != 0">上传凭证 44 @click="handleUpdate(item)" v-if="item.settleFlag != 0">确认并上传
45 </button> 45 </button>
46 <button @click="handleDownload(item)" >下载缴费通知单</button> 46 <button @click="handleDownload(item)" >下载缴费通知单</button>
47 </view> 47 </view>
...@@ -62,7 +62,7 @@ ...@@ -62,7 +62,7 @@
62 <uni-forms-item label="缴费凭证" required> 62 <uni-forms-item label="缴费凭证" required>
63 63
64 <uni-file-picker limit="1" file-mediatype="all" file-extname="png,jpg,jpeg,pdf,zip" 64 <uni-file-picker limit="1" file-mediatype="all" file-extname="png,jpg,jpeg,pdf,zip"
65 @select="selectFile" 65 @select="selectFile" v-model="form.payEvidenceObj"
66 @progress="fileProgress" @delete="delSupplementFile(index)"></uni-file-picker> 66 @progress="fileProgress" @delete="delSupplementFile(index)"></uni-file-picker>
67 </uni-forms-item> 67 </uni-forms-item>
68 <uni-forms-item label="备注"> 68 <uni-forms-item label="备注">
...@@ -118,6 +118,16 @@ function getList() { ...@@ -118,6 +118,16 @@ function getList() {
118 118
119 function handleUpdate(item) { 119 function handleUpdate(item) {
120 form.value.yjId = item.yjId 120 form.value.yjId = item.yjId
121 form.value.payTime = item.payTime
122 if(item.payEvidence){
123 let file = JSON.parse(item.payEvidence)
124 console.log(file)
125 form.value.payEvidenceObj = {
126 url: file[0].url,
127 name: file[0].name,
128 extname: 'png'
129 }
130 }
121 UpPop.value.open() 131 UpPop.value.open()
122 } 132 }
123 let selectFileValue = {} 133 let selectFileValue = {}
...@@ -144,7 +154,11 @@ function delSupplementFile(index) { ...@@ -144,7 +154,11 @@ function delSupplementFile(index) {
144 } 154 }
145 function uploadSure(){ 155 function uploadSure(){
146 console.log(form.value) 156 console.log(form.value)
147 api.commitPaymentVoucher(form.value).then(res=>{ 157 api.commitPaymentVoucherYJ({
158 payTime:form.value.payTime,
159 url:form.value.url,
160 yjId:form.value.yjId
161 }).then(res=>{
148 UpPop.value.close() 162 UpPop.value.close()
149 form.value = {} 163 form.value = {}
150 uni.showToast({ 164 uni.showToast({
...@@ -224,6 +238,7 @@ function circulation(id) { ...@@ -224,6 +238,7 @@ function circulation(id) {
224 </script> 238 </script>
225 239
226 <style scoped lang="scss"> 240 <style scoped lang="scss">
241 :deep(.file-picker__progress){opacity: 0;}
227 .popBody { 242 .popBody {
228 font-size: 28rpx; 243 font-size: 28rpx;
229 line-height: 1.5; 244 line-height: 1.5;
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!