Browse Source

样式逻辑修改

test
Enzo 4 years ago
parent
commit
382982ab61
  1. 3
      pages.json
  2. 14
      pages/discover/discover.vue
  3. 8
      pages/order/order_details.vue
  4. 3
      pages/recommList/index.vue
  5. 4
      pages/user/user.vue

3
pages.json

@ -42,7 +42,8 @@
"path": "pages/discover/discover", "path": "pages/discover/discover",
"style": { "style": {
"navigationBarTitleText": "发现", "navigationBarTitleText": "发现",
"navigationBarBackgroundColor": "#FFFFFF"
"navigationBarBackgroundColor": "#FFFFFF",
"enablePullDownRefresh": true
} }
}, },
{ {

14
pages/discover/discover.vue

@ -60,6 +60,20 @@
}, },
onLoad() { onLoad() {
this.getArticle() this.getArticle()
},
onReachBottom(){
if(this.isPage){
this.page = this.page + 1;
this.getArticle();
}
},
onPullDownRefresh(){
this.page = 1;
this.isPage = true;
this.loadingClass = true;
this.loadingText = '正在加载中';
this.getArticle();
uni.stopPullDownRefresh();
} }
} }
</script> </script>

8
pages/order/order_details.vue

@ -100,17 +100,17 @@
<lf-price :price="orderDetails.price" /> <lf-price :price="orderDetails.price" />
</view> </view>
<button class="btn bg-green" v-if="orderDetails.status == 2 || orderDetails.status == 3">
<!-- <button class="btn bg-green" v-if="orderDetails.status == 2 || orderDetails.status == 3">
<text class="lf-font-32 text-white">立即使用</text> <text class="lf-font-32 text-white">立即使用</text>
</button>
</button> -->
<button class="btn bg-green" v-if="orderDetails.status == 0" @click="payAtonce()"> <button class="btn bg-green" v-if="orderDetails.status == 0" @click="payAtonce()">
<text class="lf-font-32 text-white">立即付款</text> <text class="lf-font-32 text-white">立即付款</text>
</button> </button>
<button class="btn bg-blue" v-if="orderDetails.status == 16">
<!-- <button class="btn bg-blue" v-if="orderDetails.status == 16">
<text class="lf-font-32 text-white">已使用</text> <text class="lf-font-32 text-white">已使用</text>
</button>
</button> -->
<button class="btn lf-bg-gray" v-if="orderDetails.status == 6"> <button class="btn lf-bg-gray" v-if="orderDetails.status == 6">
<text class="lf-font-32 text-white">等待审核</text> <text class="lf-font-32 text-white">等待审核</text>

3
pages/recommList/index.vue

@ -6,7 +6,7 @@
<lf-nocontent v-else></lf-nocontent> <lf-nocontent v-else></lf-nocontent>
<swiper :style="{height: 'calc('+ windowHeight +'px - 60rpx)', width: '750rpx'}" :current="current" @change="swiperChange"> <swiper :style="{height: 'calc('+ windowHeight +'px - 60rpx)', width: '750rpx'}" :current="current" @change="swiperChange">
<swiper-item v-for="(tabItem, tabIndex) in tab_list" :key="tabIndex"> <swiper-item v-for="(tabItem, tabIndex) in tab_list" :key="tabIndex">
<scroll-view class="com" :scroll-y="true" :refresher-enabled="false" :refresher-triggered="tabItem.isRefresher" @scrolltolower="onScrolltolower" @refresherrefresh="onRefresherrefresh">
<scroll-view class="com" :scroll-y="true" :refresher-enabled="true" :refresher-triggered="tabItem.isRefresher" @scrolltolower="onScrolltolower" @refresherrefresh="onRefresherrefresh">
<view class="lf-m-t-20"></view> <view class="lf-m-t-20"></view>
<lf-waterfall :list="tabItem.list" ref="uWaterfall"></lf-waterfall> <lf-waterfall :list="tabItem.list" ref="uWaterfall"></lf-waterfall>
<view class="loading-more lf-m-b-10"> <view class="loading-more lf-m-b-10">
@ -117,6 +117,7 @@
// scroll-view // scroll-view
onRefresherrefresh(){ onRefresherrefresh(){
this.$u.throttle(() => { this.$u.throttle(() => {
this.$refs.uWaterfall[this.current].clear();
this.tab_list[this.current].isRefresher = true; this.tab_list[this.current].isRefresher = true;
this.getCategory({type: 'scrollRefresh'}); this.getCategory({type: 'scrollRefresh'});
}, 200); }, 200);

4
pages/user/user.vue

@ -69,7 +69,7 @@
</view> </view>
</view> </view>
<!-- 商家工具 --> <!-- 商家工具 -->
<view class="shop-list" v-if="userInfo.verifier == 1">
<view class="shop-list" v-if="userInfo.is_verify == 1">
<view class="lf-row-between"> <view class="lf-row-between">
<view class="lf-font-36 lf-font-bold">商家工具</view> <view class="lf-font-36 lf-font-bold">商家工具</view>
</view> </view>
@ -155,7 +155,7 @@
console.log("resuly", result) console.log("resuly", result)
if(result.errMsg == 'scanCode:ok'){ if(result.errMsg == 'scanCode:ok'){
let content = result.result; // let content = result.result; //
this.$http(this.API.API_CONFIRM_CODE, {id: content}).then(res => {
this.$http(this.API.API_CONFIRM_CODE, {verify_code: content}).then(res => {
this.$msg('核销成功!'); this.$msg('核销成功!');
}); });
} }

Loading…
Cancel
Save