|
|
|
@ -3,8 +3,8 @@ |
|
|
|
<view> |
|
|
|
概率: |
|
|
|
</view> |
|
|
|
<view> |
|
|
|
<input type="text" v-model="rate" placeholder="请输入内容" placeholder-style="color: #999;" /> |
|
|
|
<view style=""> |
|
|
|
<input type="text" v-model="rate" placeholder="请输入内容" placeholder-style="color: #999;" /><text class="text">%</text> |
|
|
|
</view> |
|
|
|
<view> |
|
|
|
<button class="mini-btn" type="primary" size="mini" @click="save()" style="height: 29px;">保存</button> |
|
|
|
@ -17,13 +17,13 @@ |
|
|
|
export default { |
|
|
|
data(){ |
|
|
|
return{ |
|
|
|
rate:0+"%" |
|
|
|
rate:0 |
|
|
|
} |
|
|
|
}, |
|
|
|
methods:{ |
|
|
|
init(){ |
|
|
|
API.request('/setting/getProbability', {} , res=>{ |
|
|
|
this.rate = res.data.rate + '%' |
|
|
|
this.rate = res.data.rate |
|
|
|
}) |
|
|
|
}, |
|
|
|
save(){ |
|
|
|
@ -63,13 +63,19 @@ |
|
|
|
align-items: center; |
|
|
|
margin:10px 5px 5px 5px; |
|
|
|
input{ |
|
|
|
width: 500rpx; |
|
|
|
width: 430rpx; |
|
|
|
height: 80rpx; |
|
|
|
border: 1px solid #eee; |
|
|
|
border-radius: 5px; |
|
|
|
padding: 0px 10px; |
|
|
|
box-sizing: border-box; |
|
|
|
color: #444; |
|
|
|
display: inline-block; |
|
|
|
} |
|
|
|
.text{ |
|
|
|
position: relative; |
|
|
|
top: -13px; |
|
|
|
left: 5px; |
|
|
|
} |
|
|
|
} |
|
|
|
</style> |