Browse Source

fix ipt&btn

organize
刘嘉炜 3 years ago
parent
commit
d58e767d6c
  1. 12
      src/pages/site/confirm/confirm.vue
  2. 8
      src/pages/site/occupy_success/occupy_success.vue

12
src/pages/site/confirm/confirm.vue

@ -50,9 +50,9 @@
</view> </view>
</view> </view>
</view> </view>
<view class="sc-fixed-bot">
<view hover-class="hover-active" @click="confirmOccupy">确定</view>
</view>
<cover-view class="sc-fixed-bot">
<cover-view class="sfb-view" hover-class="hover-active" @click="confirmOccupy">确定</cover-view>
</cover-view>
</view> </view>
</template> </template>
@ -91,7 +91,7 @@ export default {
confirmOccupy: util.debounce(function(){ confirmOccupy: util.debounce(function(){
let { storeInfo, dateInfo, venueList, typeInfo } = this.occupyInfo; let { storeInfo, dateInfo, venueList, typeInfo } = this.occupyInfo;
let { ocPrice, ocReaon, light_up } = this; let { ocPrice, ocReaon, light_up } = this;
util.showLoad();
servers.post({ servers.post({
url: API.venue.venueTakeUp, url: API.venue.venueTakeUp,
data: { data: {
@ -113,6 +113,7 @@ export default {
isDefaultGet: false isDefaultGet: false
}) })
.then(res=>{ .then(res=>{
util.hideLoad();
if(res.data.code == 0){ if(res.data.code == 0){
util.showNone(res.data.message || '操作成功!'); util.showNone(res.data.message || '操作成功!');
@ -130,6 +131,7 @@ export default {
util.showNone(res.data.message || '操作失败!'); util.showNone(res.data.message || '操作失败!');
} }
}) })
.catch(util.hideLoad)
}, 300, true), }, 300, true),
}, },
@ -299,7 +301,7 @@ export default {
padding-bottom: calc( 10upx + constant(safe-area-inset-bottom)); /* 兼容 iOS < 11.2 */ padding-bottom: calc( 10upx + constant(safe-area-inset-bottom)); /* 兼容 iOS < 11.2 */
padding-bottom: calc( 10upx + env(safe-area-inset-bottom)); /* 兼容 iOS >= 11.2 */ padding-bottom: calc( 10upx + env(safe-area-inset-bottom)); /* 兼容 iOS >= 11.2 */
background-color: #fff; background-color: #fff;
>view{
.sfb-view{
margin: 0 auto; margin: 0 auto;
width: 702upx; width: 702upx;
height: 88upx; height: 88upx;

8
src/pages/site/occupy_success/occupy_success.vue

@ -37,10 +37,10 @@ export default {
}, },
backBtn(){ backBtn(){
util.routeTo(); util.routeTo();
util.previousPageFunction({ //
fnName: 'refreshList',
query: null
})
// util.previousPageFunction({ //
// fnName: 'refreshList',
// query: null
// })
}, },
getPageInfo({ getPageInfo({
brand_id, brand_id,

Loading…
Cancel
Save