1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465 |
- <template>
- <view>
-
-
- </view>
- </template>
- <script>
- import config from '@/config'
- const baseUrl = config.baseUrl
- import {uploadmore} from '@/utils/common.js'
- import { checkPermi, checkRole } from "@/utils/permission"; // 权限判断函数
- export default{
- components:{},
- data(){
- return{
- hrimg:require('@/work/static/images/hrimg.png'),
- }
- },
- methods:{
- checkPermi, checkRole,
- getNextFn(){
- this.$tab.navigateTo("/work/pages/business/add")
- },
- // 上传图片
- getaddImage(e){
- let that = this;
- let file =[],count=9
- // if(e=='zj'){
- // file = that.zjfile;
- // count=9
- // }else{
- // file = that.mjfile;
- // count=9
- // }
- uni.chooseImage({
- count: 1,
- success:function(res){
- let img= res.tempFilePaths;
- if(img.length + file.length > count){
- uni.showToast({
- title: '最多上传'+count+'张图片',
- icon: 'none',
- duration: 2000
- })
- }else{
- let imglen = res.tempFilePaths.length;
- var fuwufile = [];
- uploadmore('/common/upload',img,0,0,0,imglen,fuwufile,function(rs){
- if(e=='zj'){
- that.zjfile = that.zjfile.concat(rs);
- that.datainfo.identificationPhoto=that.zjfile.join(',')
- }
- })
- }
- }
- });
- },
- }
- }
- </script>
- <style lang="scss" scoped>
- </style>
|