样式小改

This commit is contained in:
shijing 2023-04-12 10:15:28 +08:00
parent 0d62495092
commit 4079fa7a47
4 changed files with 28 additions and 8 deletions

View File

@ -150,12 +150,17 @@
</view> </view>
</view> </view>
</view> </view>
<u-popup :round="10" v-model="dShow" mode="center" border-radius="14"> <view v-show="dShow" style="position: fixed;top: 0;left: 0;width: 100%;height: 100%;background: rgba(0, 0, 0, .5);z-index: 999;">
<view style="position: absolute;padding: 50rpx;background: #ffffff;display: inline-block;margin: auto;top: 40%;left: 50%;transform: translateX(-50%);">
下载中 请勿退出 {{percentVal}}%
</view>
</view>
<!-- <u-popup :round="10" v-model="dShow" :mode="popupData.mode" border-radius="14" :overlay="popupData.overlay" :closeable="popupData.closeable" :closeOnClickOverlay="popupData.closeOnClickOverlay">
<view style="margin: 30rpx"> <view style="margin: 30rpx">
下载中 请勿退出 {{percentVal}}% 下载中 请勿退出 {{percentVal}}%
</view> </view>
</u-popup > </u-popup > -->
</view> </view>
</template> </template>
@ -164,6 +169,12 @@
data() { data() {
return { return {
dShow: false, dShow: false,
popupData: {
overlay: true,
mode: 'center',
closeable: false,
closeOnClickOverlay: false
},
percentVal: 0, percentVal: 0,
cateAggForm: { cateAggForm: {
start_create: '', start_create: '',
@ -213,6 +224,7 @@
}, },
methods: { methods: {
closeP(){},
checkVersion() { checkVersion() {
let that = this; let that = this;
uni.getSystemInfo({ uni.getSystemInfo({
@ -235,11 +247,13 @@
fullurl = that.vuex_host + res1.file fullurl = that.vuex_host + res1.file
} }
that.dShow = true // showUI that.dShow = true // showUI
uni.hideTabBar()
// apkfilePath // apkfilePath
var dtask = plus.downloader.createDownload(fullurl, {}, function(d, status) { var dtask = plus.downloader.createDownload(fullurl, {}, function(d, status) {
// //
if (status == 200) { if (status == 200) {
that.dShow = false // that.dShow = false //
uni.showTabBar();
plus.runtime.install(plus.io.convertLocalFileSystemURL(d plus.runtime.install(plus.io.convertLocalFileSystemURL(d
.filename), {}, {}, function(error) { .filename), {}, {}, function(error) {
uni.showToast({ uni.showToast({

View File

@ -565,8 +565,14 @@
} }
}) })
}) })
}else{
} }
} },
complete:function(){
uni.hideLoading();
},
}); });
} }
} }

View File

@ -322,7 +322,7 @@
//dept //dept
getdept() { getdept() {
let that = this; let that = this;
that.$u.api.deptList({page: 0}).then(res => { that.$u.api.deptList({page: 0,type__in:'dept,company'}).then(res => {
that.depRange = resetData(res); that.depRange = resetData(res);
}) })
}, },

View File

@ -59,11 +59,11 @@
</form> </form>
</view> </view>
</view> </view>
<view class="apply-info" style="min-height: fit-content; display: flex;"> <view class="apply-info" style="min-height: fit-content; display: flex;flex-flow:row wrap;">
<button type="primary" plain="true" style="width: 25%;" @click="goBack">上一步</button> <button type="primary" plain="true" style="min-width: 80px;" @click="goBack">上一步</button>
<button v-for=" item in initform.transitions" :key="item.id" @click="submitticket(item.id)" type="primary" style="width: 25%;" v-if="!showN">{{item.name}} <button v-for=" item in initform.transitions" :key="item.id" @click="submitticket(item.id)" type="primary" style="min-width: 80px;" v-if="!showN">{{item.name}}
</button> </button>
<button type="primary" style="width: 25%;" @click="nexStep" v-if="showN">下一步</button> <button type="primary" style="min-width: 80px;" @click="nexStep" v-if="showN">下一步</button>
</view> </view>
</view> </view>