样式小改
This commit is contained in:
parent
0d62495092
commit
4079fa7a47
|
@ -150,12 +150,17 @@
|
|||
</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">
|
||||
下载中 请勿退出 {{percentVal}}%
|
||||
</view>
|
||||
|
||||
</u-popup >
|
||||
</u-popup > -->
|
||||
</view>
|
||||
</template>
|
||||
|
||||
|
@ -164,6 +169,12 @@
|
|||
data() {
|
||||
return {
|
||||
dShow: false,
|
||||
popupData: {
|
||||
overlay: true,
|
||||
mode: 'center',
|
||||
closeable: false,
|
||||
closeOnClickOverlay: false
|
||||
},
|
||||
percentVal: 0,
|
||||
cateAggForm: {
|
||||
start_create: '',
|
||||
|
@ -213,6 +224,7 @@
|
|||
|
||||
},
|
||||
methods: {
|
||||
closeP(){},
|
||||
checkVersion() {
|
||||
let that = this;
|
||||
uni.getSystemInfo({
|
||||
|
@ -235,11 +247,13 @@
|
|||
fullurl = that.vuex_host + res1.file
|
||||
}
|
||||
that.dShow = true // show变量控制一个下载进度弹框(这个UI样式自己写即可)
|
||||
uni.hideTabBar()
|
||||
// 创建一个下载任务,并根据后端返回的apk静态资源地址filePath进行下载
|
||||
var dtask = plus.downloader.createDownload(fullurl, {}, function(d, status) {
|
||||
// 下载完成
|
||||
if (status == 200) {
|
||||
that.dShow = false // 下载完成再把下载进度弹框关闭即可
|
||||
uni.showTabBar();
|
||||
plus.runtime.install(plus.io.convertLocalFileSystemURL(d
|
||||
.filename), {}, {}, function(error) {
|
||||
uni.showToast({
|
||||
|
|
|
@ -565,8 +565,14 @@
|
|||
}
|
||||
})
|
||||
})
|
||||
}else{
|
||||
|
||||
}
|
||||
}
|
||||
},
|
||||
complete:function(){
|
||||
uni.hideLoading();
|
||||
},
|
||||
|
||||
});
|
||||
}
|
||||
}
|
||||
|
|
|
@ -322,7 +322,7 @@
|
|||
//获取dept
|
||||
getdept() {
|
||||
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);
|
||||
})
|
||||
},
|
||||
|
|
|
@ -59,11 +59,11 @@
|
|||
</form>
|
||||
</view>
|
||||
</view>
|
||||
<view class="apply-info" style="min-height: fit-content; display: flex;">
|
||||
<button type="primary" plain="true" style="width: 25%;" @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}}
|
||||
<view class="apply-info" style="min-height: fit-content; display: flex;flex-flow:row wrap;">
|
||||
<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="min-width: 80px;" v-if="!showN">{{item.name}}
|
||||
</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>
|
||||
|
|
Loading…
Reference in New Issue