| | |
| | | width: 100%; |
| | | height: 80rpx; |
| | | background-color: #f9f9f9; |
| | | border-radius: 40rpx; |
| | | border-radius: 20rpx; |
| | | margin-top: 20rpx; |
| | | padding: 0 30rpx; |
| | | box-sizing: border-box; |
| | | } |
| | | |
| | | .search_area input { |
| | | font-size: 28rpx; |
| | | } |
| | | |
| | | .search_area input::-webkit-input-placeholder { |
| | | font-size: 28rpx; |
| | | } |
| | | |
| | | .search_icon { |
| | |
| | | |
| | | .list_item { |
| | | padding: 20rpx; |
| | | border-bottom: 1px solid #f5f5f5 |
| | | border-bottom: 1px solid #f5f5f5; |
| | | font-size: 28rpx; |
| | | } |
| | | |
| | | @keyframes dialog-fade-in { |
| | |
| | | <template>
|
| | | <view>
|
| | | <div class="box">
|
| | | <div class="box_info" :style="{background: 'url(' + img + ')'}">
|
| | | <!-- :style="{background: 'url(' + img + ')'}" -->
|
| | | <div class="box_info">
|
| | | <image :src="avatar" mode="widthFix" />
|
| | | <div class="box_info_box">
|
| | | <text>{{userInfo.realname}}</text>
|
| | |
| | | <image src="@/static/mine_ic_change@2x.png" alt="" />
|
| | | </div>
|
| | | </div>
|
| | | <image class="bg" src="@/static/mine_bg@2x.png" mode="widthFix"></image>
|
| | | </div>
|
| | | <div class="box_function">
|
| | | <div class="box_function_item" v-for="(item, index) in MENU" :key="index" @click="jump(item.url)">
|
| | |
| | | align-items: center;
|
| | | background-repeat: no-repeat;
|
| | | background-size: cover;
|
| | | position: relative;
|
| | | image {
|
| | | width: 88rpx;
|
| | | height: 88rpx;
|
| | | }
|
| | | .bg {
|
| | | width: 100%;
|
| | | height: 168rpx;
|
| | | position: absolute;
|
| | | top: 0;
|
| | | left: 0;
|
| | | z-index: -1;
|
| | | }
|
| | | .box_info_box {
|
| | | height: 88rpx;
|
| | | display: flex;
|
| | |
| | | scroll-y="true" |
| | | @scrolltolower="loadMore"> |
| | | <view v-for="(item1, index) in list" :key="index" class="flex mb20" @click="jump(index)"> |
| | | <<<<<<< HEAD |
| | | <view class="img36 mr20 pt10" style="position: relative;"> |
| | | <u-checkbox-group style="display: block;" name=""> |
| | | ======= |
| | | <view class="img36 mr20 pt10"> |
| | | <u-checkbox-group style="display: block;" name="" @change="jump(index)"> |
| | | >>>>>>> 041c81a20c93a6b8238e810fe9a1adfee9c9d86f |
| | | <u-checkbox :checked="item1.isActive"></u-checkbox> |
| | | </u-checkbox-group> |
| | | <view style="width: 18px; height: 18px; position: absolute; top: 0; left: 0; z-index: 99;"></view> |
| | | </view> |
| | | <view class="fx1"> |
| | | <div class="page_content_title_top"> |
| | |
| | | item.isActive = !item.isActive |
| | | } |
| | | }) |
| | | for (let i = 0; i < this.list.length; i++) { |
| | | if (!this.list[i].isActive) { |
| | | this.isAll = [] |
| | | return |
| | | } |
| | | } |
| | | this.isAll = ['all'] |
| | | }, |
| | | // 搜索提交 |
| | | submit() { |
| | |
| | | this.loadData() |
| | | }, |
| | | selectAll(e) { |
| | | console.log(e) |
| | | console.log(this.isAll) |
| | | this.list.forEach(element => { |
| | | element.isActive = e.length > 0 ? true : false |
| | | }) |
| | |
| | | </view> |
| | | </view> |
| | | </view> |
| | | <view v-if="(data.status === 0 || data.status === 1) && show" style="background:#F7F7F7; height:94rpx"></view> |
| | | <view v-if="(data.status === 0 || data.status === 1) && show" style="background:#F7F7F7; width: 100%; height: 188rpx"></view> |
| | | <view v-if="(data.status === 0 || data.status === 1) && show" class="bottom-button"> |
| | | <button class="button" @click="submit">{{ data.status === 0 ? '去出库' : '去入库' }}</button> |
| | | </view> |
| | |
| | | // 点击上传 |
| | | uploadFile() { |
| | | var that = this |
| | | uni.chooseImage({ |
| | | uni.chooseMedia({ |
| | | mediaType: ['image', 'video'], |
| | | sourceType: ['album', 'camera'], |
| | | success: (chooseImageRes) => { |
| | | const tempFilePaths = chooseImageRes.tempFilePaths; |
| | | const tempFilePaths = chooseImageRes.tempFiles; |
| | | console.log(tempFilePaths) |
| | | uni.uploadFile({ |
| | | url: baseUrl + '/ext/routeCardExt/upload', |
| | | filePath: tempFilePaths[0], |
| | | name: 'file', |
| | | header: { |
| | | 'Cookie': 'eva-auth-token=' + that.session |
| | | }, |
| | | formData: { |
| | | 'folder': that.path |
| | | }, |
| | | success: (uploadFileRes) => { |
| | | let res = JSON.parse(uploadFileRes.data) |
| | | let type = '' |
| | | for (let i = 0; i < fileType.length; i++) { |
| | | if (tempFilePaths[0].indexOf(fileType[i].name) !== -1) { |
| | | type = fileType[i].type |
| | | for (let i = 0; i < tempFilePaths.length; i++) { |
| | | uni.uploadFile({ |
| | | url: baseUrl + '/ext/routeCardExt/upload', |
| | | filePath: tempFilePaths[i].tempFilePath, |
| | | name: 'file', |
| | | header: { |
| | | 'Cookie': 'eva-auth-token=' + that.session |
| | | }, |
| | | formData: { |
| | | 'folder': that.path |
| | | }, |
| | | success: (uploadFileRes) => { |
| | | let res = JSON.parse(uploadFileRes.data) |
| | | let type = '' |
| | | for (let s = 0; s < fileType.length; s++) { |
| | | if (tempFilePaths[i].tempFilePath.indexOf(fileType[s].name) !== -1) { |
| | | type = fileType[s].type |
| | | } |
| | | } |
| | | that.form.files.push({ |
| | | fileUrl: res.data.imgaddr, |
| | | filename: res.data.imgname, |
| | | type, |
| | | url: res.data.url |
| | | }) |
| | | } |
| | | that.form.files.push({ |
| | | fileUrl: res.data.imgaddr, |
| | | filename: res.data.imgname, |
| | | type, |
| | | url: res.data.url |
| | | }) |
| | | } |
| | | }); |
| | | }); |
| | | } |
| | | } |
| | | }); |
| | | }, |