| | |
| | | </view> |
| | | </view> |
| | | <seeImgs :imgs="[]" :videos="videos" @del="delVideo" :type="'videos'"></seeImgs> |
| | | <view class="butb" @click="upData"> |
| | | 提交 |
| | | <view class="form-btn"> |
| | | <view class="butb" @click="upData">提交</view> |
| | | </view> |
| | | </view> |
| | | </template> |
| | |
| | | result:'', |
| | | place:"", |
| | | imgs: [], |
| | | videos: [], |
| | | // pathUrl:'http://s16s652780.51mypc.cn/api/blade-jfpts', |
| | | pathUrl:'http://localhost:82', |
| | | videos: [] |
| | | } |
| | | }, |
| | | methods: { |
| | |
| | | result:this.result, |
| | | place:this.place, |
| | | status:1, |
| | | tpaddress: '', |
| | | spaddress: '' |
| | | tpaddress:"", |
| | | spaddress:"" |
| | | }; |
| | | if (this.imgs.length > 0) { |
| | | var i = this.imgs; |
| | |
| | | // 循环调用uni.uploadFile ,因微信小程序只支持单文件上传 |
| | | for (var i = 0; i < tempFilePath.length; i++) { |
| | | uni.uploadFile({ |
| | | // url: 'https://web.byisf.com/api/depl/put-depl', //仅为示例,非真实的接口地址 |
| | | // url: 'https://web.byisf.com/api/blade-jfpts/depl/put-depl', //仅为示例,非真实的接口地址 |
| | | url: 'http://web.byisf.com:82/blade-jfpts/depl/put-depl', |
| | | filePath: tempFilePath[i], |
| | | name: 'file', |
| | |
| | | mask: true |
| | | }) |
| | | uni.uploadFile({ |
| | | // url: 'https://web.byisf.com/api/depl/put-depl', |
| | | // url: 'https://web.byisf.com/api/blade-jfpts/depl/put-depl', |
| | | url: 'http://web.byisf.com:82/blade-jfpts/depl/put-depl', |
| | | filePath: tempFilePath, |
| | | name: 'file', |
| | |
| | | margin-left: 20px; |
| | | } |
| | | } |
| | | |
| | | .butb { |
| | | margin: 2rem auto; |
| | | width: 5.2rem; |
| | | height: 5.2rem; |
| | | // border: 1px solid rgb(46, 118, 228); |
| | | border-radius: 3rem; |
| | | |
| | | .form-btn{ |
| | | margin-top: 2rem; |
| | | display: flex; |
| | | align-items: center; |
| | | justify-content: center; |
| | | color: #fff; |
| | | background-image: linear-gradient(to bottom, #3CA7F4, #4D7CEE); |
| | | |
| | | .butb { |
| | | margin-bottom: 4.5rem; |
| | | width: 5.2rem; |
| | | height: 5.2rem; |
| | | // border: 1px solid rgb(46, 118, 228); |
| | | border-radius: 3rem; |
| | | display: flex; |
| | | align-items: center; |
| | | justify-content: center; |
| | | color: #fff; |
| | | background-image: linear-gradient(to bottom, #3CA7F4, #4D7CEE); |
| | | } |
| | | } |
| | | } |
| | | </style> |
| | |
| | | store.commit('getUserData',res.data) |
| | | console.log(res.data,123542); |
| | | data.isit = true; |
| | | data.userName = res.data.real_name; //警袁姓名 |
| | | data.userName = res.data.nick_name; //警袁姓名 |
| | | data.userID = res.data.user_id; //警袁id |
| | | data.avatar = res.data.avatar; //头像 |
| | | // data.userPhon = res.user_id; |