样式小改
This commit is contained in:
parent
0d62495092
commit
4079fa7a47
|
@ -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 // show变量控制一个下载进度弹框(这个UI样式自己写即可)
|
that.dShow = true // show变量控制一个下载进度弹框(这个UI样式自己写即可)
|
||||||
|
uni.hideTabBar()
|
||||||
// 创建一个下载任务,并根据后端返回的apk静态资源地址filePath进行下载
|
// 创建一个下载任务,并根据后端返回的apk静态资源地址filePath进行下载
|
||||||
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({
|
||||||
|
|
|
@ -565,8 +565,14 @@
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
}else{
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
},
|
||||||
|
complete:function(){
|
||||||
|
uni.hideLoading();
|
||||||
|
},
|
||||||
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -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);
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|
|
@ -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>
|
||||||
|
|
Loading…
Reference in New Issue