样式
This commit is contained in:
@@ -42,11 +42,11 @@
|
||||
@import '../../common/style/mixin.styl';
|
||||
.home_content
|
||||
_wh(100%, 100%)
|
||||
padding 2.07rem 0.4rem 1.4rem 0.4rem
|
||||
padding calc(var(--status-bar-height) + 103.5px) 20px 70px 20px
|
||||
_bis(,'../../static/images/home_bg.jpg', 100%, 100%,bottom)
|
||||
.zd_wrapper
|
||||
_wh(100%,100%)
|
||||
padding 0.37rem 0.4rem 0.4rem 0.4rem
|
||||
padding 18.5px 20px 20px 20px
|
||||
_bis(,'../../static/images/bg-task-r2.png', 100%, 100%,center)
|
||||
.menu-wrap
|
||||
flex-wrap wrap
|
||||
@@ -66,6 +66,6 @@
|
||||
opacity 1
|
||||
width 100%
|
||||
.menu-name
|
||||
margin-top .6rem
|
||||
_font(.4rem, .4rem, #00a7ea, 700,center)
|
||||
margin-top 30px
|
||||
_font(20px, 20px, #00a7ea, 700,center)
|
||||
</style>
|
||||
|
||||
@@ -55,10 +55,20 @@
|
||||
version: '',
|
||||
versionCode: '',
|
||||
grade: false,
|
||||
androidUrl: ''
|
||||
androidUrl: '',
|
||||
width: '',
|
||||
height: ''
|
||||
};
|
||||
},
|
||||
onLoad() {
|
||||
// this.getScreenSize()
|
||||
},
|
||||
methods: {
|
||||
getScreenSize() {
|
||||
const systemInfo = uni.getSystemInfoSync();
|
||||
this.width = systemInfo.screenWidth
|
||||
this.height = systemInfo.screenHeight
|
||||
},
|
||||
toConfig () {
|
||||
let obj = {
|
||||
baseUrl: this.baseUrl,
|
||||
@@ -99,29 +109,29 @@
|
||||
_bis(#fff,'../../static/images/page_bg.jpg', 100%, 100%,bottom)
|
||||
.logo-wrap
|
||||
position fixed
|
||||
_wh(100%, 1.25rem)
|
||||
_bis(,'../../static/images/login_header_bg.png', 16.82rem, 100%,bottom)
|
||||
_wh(100%, 62.5px)
|
||||
_bis(,'../../static/images/login_header_bg.png', 841px, 100%,bottom)
|
||||
h1
|
||||
_font(.8rem, 1rem, #CF6A46,,center)
|
||||
_font(40px, 50px, #CF6A46,,center)
|
||||
font-family 'YouSheBiaoTiHei'
|
||||
.login_wrap
|
||||
position fixed
|
||||
left 50%
|
||||
top 50%
|
||||
width 9rem
|
||||
padding .87rem .85rem .82rem .98rem
|
||||
width 450px
|
||||
padding 43.5px 42.5px 41px 49px
|
||||
transform translate3d(-50%, -50%, 0)
|
||||
_bis(,'../../static/images/form_bg.png', 100%, 100%,bottom)
|
||||
.login_w
|
||||
_wh(100%, 100%)
|
||||
overflow hidden
|
||||
.login_tab
|
||||
height 1.07rem
|
||||
margin-bottom .51rem
|
||||
height 53.5px
|
||||
margin-bottom 25.5px
|
||||
_bis(,'../../static/images/login_tabs_bg.png', 100%, 100%,bottom)
|
||||
.login_tab_item
|
||||
_wh(2.7rem, .73rem)
|
||||
_font(.4rem,.73rem,#99B1DD,,center)
|
||||
_wh(135px, 36.5px)
|
||||
_font(20px,36.5px,#99B1DD,,center)
|
||||
font-family 'YouSheBiaoTiHei'
|
||||
.login_tab_active
|
||||
color #fff
|
||||
@@ -130,33 +140,33 @@
|
||||
100%
|
||||
.login_card
|
||||
width 100%
|
||||
padding 0 .41rem
|
||||
padding 0 20.5px
|
||||
.card_wrap
|
||||
margin-bottom .52rem
|
||||
margin-bottom 26px
|
||||
.login_label
|
||||
_font(.3rem, .8rem, #AFBED8,700,)
|
||||
_font(15px, 40px, #AFBED8,700,)
|
||||
.inputStyle
|
||||
_font(.3rem, .8rem, #fff,,)
|
||||
_wh(100%, .8rem)
|
||||
_font(15px, 40px, #fff,,)
|
||||
_wh(100%, 40px)
|
||||
background: rgba(45,88,184,0.1);
|
||||
border: 1px solid #4980BD;
|
||||
padding 0 .22rem
|
||||
padding 0 11px
|
||||
.inputStyle[focus]
|
||||
background: rgba(45,88,184,0.25);
|
||||
border: 1px solid #21D0F2;
|
||||
line-height .8rem
|
||||
line-height 40px
|
||||
.login_icon
|
||||
position absolute
|
||||
top 5px
|
||||
right 10px
|
||||
.primary-button
|
||||
_wh(3.36rem, .93rem)
|
||||
_font(.48rem,.93rem,#fff,,center)
|
||||
_wh(168px, 46.5px)
|
||||
_font(24px,46.5px,#fff,,center)
|
||||
font-family 'YouSheBiaoTiHei'
|
||||
_bis(,'../../static/images/button.png', 100%, 100%,bottom)
|
||||
.san_text
|
||||
margin-top .4rem
|
||||
_font(0.34rem,0.34rem,#fff,,center)
|
||||
margin-top 20px
|
||||
_font(17px,17px,#fff,,center)
|
||||
.drift
|
||||
transition left .3s linear
|
||||
.version-name
|
||||
|
||||
@@ -48,6 +48,10 @@
|
||||
},
|
||||
async _callTask () {
|
||||
this.disabled = true
|
||||
if (!this.val1) {
|
||||
this.disabled = false
|
||||
return
|
||||
}
|
||||
try {
|
||||
let res = await callTask(this.val1)
|
||||
uni.showToast({
|
||||
|
||||
@@ -154,7 +154,7 @@
|
||||
|
||||
<style lang="stylus" scoped>
|
||||
.btn_wraper
|
||||
width 3.4rem
|
||||
width 170px
|
||||
.filter-select
|
||||
width 3.1rem
|
||||
width 155px
|
||||
</style>
|
||||
|
||||
@@ -62,16 +62,6 @@
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<!-- <el-dialog :visible.sync="dialogVisible">
|
||||
<div class="zd-row filter-item">
|
||||
<div class="zd-col-6 filter-label">补发桶数</div>
|
||||
<el-input-number class="zd-col-17" v-model="inputNumber" :min="1" label="请输入数字"></el-input-number>
|
||||
</div>
|
||||
<div class="zd-row jcenter button-wrap">
|
||||
<el-button @click="dialogVisible = false">取 消</el-button>
|
||||
<el-button type="primary" @click="handleConfirm">确 定</el-button>
|
||||
</div>
|
||||
</el-dialog> -->
|
||||
</view>
|
||||
</template>
|
||||
|
||||
@@ -126,9 +116,25 @@
|
||||
this.$set(el, 'checked', false)
|
||||
})
|
||||
},
|
||||
async _sendWork (e) {
|
||||
_sendWork (e) {
|
||||
this.disabled1 = true
|
||||
e.checked = true
|
||||
uni.showModal({
|
||||
title: '提示',
|
||||
content: '确定下发任务?',
|
||||
cancelColor: '#fff',
|
||||
confirmColor: '#6fc4e2',
|
||||
success: (res) => {
|
||||
if (res.confirm) {
|
||||
this.__sendWork(e)
|
||||
} else if (res.cancel) {
|
||||
this.disabled1 = false
|
||||
e.checked = false
|
||||
}
|
||||
}
|
||||
})
|
||||
},
|
||||
async __sendWork (e) {
|
||||
try {
|
||||
let res = await sendWork(e.work_code)
|
||||
this._queryWorks()
|
||||
@@ -160,9 +166,25 @@
|
||||
e.checked = false
|
||||
}
|
||||
},
|
||||
async _pdaPause (e) {
|
||||
_pdaPause (e) {
|
||||
this.disabled3 = true
|
||||
e.checked = true
|
||||
uni.showModal({
|
||||
title: '提示',
|
||||
content: '确定暂停任务?',
|
||||
cancelColor: '#fff',
|
||||
confirmColor: '#6fc4e2',
|
||||
success: (res) => {
|
||||
if (res.confirm) {
|
||||
this.__pdaPause(e)
|
||||
} else if (res.cancel) {
|
||||
this.disabled3 = false
|
||||
e.checked = false
|
||||
}
|
||||
}
|
||||
})
|
||||
},
|
||||
async __pdaPause (e) {
|
||||
try {
|
||||
let res = await pdaPause(e.work_code)
|
||||
this._queryWorks()
|
||||
@@ -177,9 +199,25 @@
|
||||
e.checked = false
|
||||
}
|
||||
},
|
||||
async _finishWork (e) {
|
||||
_finishWork (e) {
|
||||
this.disabled4 = true
|
||||
e.checked = true
|
||||
uni.showModal({
|
||||
title: '提示',
|
||||
content: '确定完成任务?',
|
||||
cancelColor: '#fff',
|
||||
confirmColor: '#6fc4e2',
|
||||
success: (res) => {
|
||||
if (res.confirm) {
|
||||
this.__finishWork(e)
|
||||
} else if (res.cancel) {
|
||||
this.disabled4 = false
|
||||
e.checked = false
|
||||
}
|
||||
}
|
||||
})
|
||||
},
|
||||
async __finishWork (e) {
|
||||
try {
|
||||
let res = await finishWork(e.work_code)
|
||||
this._queryWorks()
|
||||
@@ -211,5 +249,5 @@
|
||||
.grid_wraper
|
||||
height 100%
|
||||
.btn_wraper
|
||||
width 3.5rem
|
||||
width 170px
|
||||
</style>
|
||||
|
||||
Reference in New Issue
Block a user