@@ -93,7 +93,7 @@
base.is_apply = Vue.ref({$is_apply});
base.checked = Vue.ref('{$option_name}');
base.onBack = () => {
- history.back();
+ location.href = "{:url('/')}";
};
base.onOption = (v) => {
if (base.is_apply.value) {
@@ -107,13 +107,14 @@
}
base.is_click = true;
if (base.checked.value === '') {
- vant.showToast('请选择投票的项目');
+ vant.showFailToast('请选择投票的项目');
base.is_click = false;
return false;
postJson('/vote/apply', {option_name: base.checked.value, id: {$info.id}}).then(({data, code}) => {
if (code === 0) {
+ vant.showSuccessToast('投票成功');
base.is_apply.value = true;
})
@@ -23,6 +23,6 @@ html {
.article-list article{box-shadow:0 0 6px rgba(0, 0, 0, 0.028), 0 0 18px rgba(0, 0, 0, 0.042), 0 0 80px rgba(0, 0, 0, 0.07);border-radius: 5px;width:95%;height:110px;margin:10px auto;display:flex;align-items:center;background:white;padding:5px 10px;}
.article-list article .s-left {height:90px;display:flex;flex-direction:column;width: 100%;}
.article-list article .s-left.image {width: calc(100% - 120px);}
-.article-list article .s-left .s-title{font-size: 16px;text-overflow: ellipsis;display: -webkit-box;overflow: hidden;-webkit-box-orient: vertical;-webkit-box-pack: center;-webkit-box-align: center;-webkit-line-clamp: 3;text-align:left;}
+.article-list article .s-left .s-title{font-size: 16px;text-overflow: ellipsis;display: -webkit-box;overflow: hidden;-webkit-box-orient: vertical;-webkit-line-clamp: 3;text-align:left;}
.article-list article .s-left .s-time{font-size: 12px;color:#999;margin-top:auto;}
.article-list article .s-right {width:110px;margin-left:auto;}