Browse Source

一系列调整

test
Enzo 5 years ago
parent
commit
9031ce2e02
  1. 5
      common/http.interceptor.js
  2. 4
      pages/activityList/index.vue
  3. 6
      pages/goodsList/index.vue
  4. 4
      pages/hot/index.vue
  5. 17
      pages/message/detail.vue
  6. 17
      pages/notice/article.vue
  7. 23
      pages/notice/notice.vue
  8. 5
      pages/user/user.vue

5
common/http.interceptor.js

@ -24,7 +24,10 @@ const install = (Vue, vm) => {
Vue.prototype.$u.http.interceptor.response = res => {
if(res.code == 0) {
return res;
} else {
} else if(res.code == -2) {
this.$url('/page/login/index');
uni.clearStorageSync('userinfo');
}else {
vm.$msg(res.msg);
return false;
}

4
pages/activityList/index.vue

@ -13,8 +13,8 @@
<image :src="item.picture" class="lf-w-100 lf-h-100" mode="aspectFill"></image>
</view>
<view style="width: 420rpx;">
<view class="lf-font-28 lf-color-333 lf-m-b-20 lf-line-2" style="height: 78rpx;">{{item.title}}</view>
<view class="lf-font-24 lf-color-gray">本套票只包含两个成人不可带小孩</view>
<view class="lf-font-28 lf-color-333 lf-line-2" style="height: 78rpx;">{{item.title}}</view>
<view class="lf-font-24 lf-color-gray lf-line-2" style="height: 64rpx;">本套票只包含两个成人不可带小孩本套票只包含两个成人不可带小孩本套票只包含两个成人不可带小孩</view>
<view class="lf-flex lf-m-t-25">
<lf-price :price="item.price"></lf-price>
<text class="lf-font-24 lf-color-gray lf-line-through lf-m-l-15">¥{{item.original_price}}</text>

6
pages/goodsList/index.vue

@ -4,11 +4,11 @@
<view class="content">
<view class="item" v-for="(item,index) in list" :key="index" @click="$url('/pages/goodsDetail/index?goods_id='+item.id)">
<view class="cover">
<image :src="item.product.picture" class="lf-w-100 lf-h-100" mode="aspectFill"></image>
<image :src="item.picture" class="lf-w-100 lf-h-100" mode="aspectFill"></image>
</view>
<view style="width: 420rpx;">
<view class="lf-font-28 lf-color-333 lf-m-b-20 lf-line-2" style="height: 78rpx;">{{item.title}}</view>
<view class="lf-font-24 lf-color-gray">本套票只包含两个成人不可带小孩</view>
<view class="lf-font-28 lf-color-333 lf-line-2" style="height: 78rpx;">{{item.title}}</view>
<view class="lf-font-24 lf-color-gray lf-line-2" style="height: 64rpx;">本套票只包含两个成人不可带小孩本套票只包含两个成人不可带小孩本套票只包含两个成人不可带小孩</view>
<view class="lf-flex lf-m-t-25">
<lf-price :price="item.price"></lf-price>
<text class="lf-font-24 lf-color-gray lf-line-through lf-m-l-15">¥{{item.original_price}}</text>

4
pages/hot/index.vue

@ -7,8 +7,8 @@
<image :src="item.picture" class="lf-w-100 lf-h-100" mode="aspectFill"></image>
</view>
<view style="width: 420rpx;">
<view class="lf-font-28 lf-color-333 lf-m-b-20 lf-line-2" style="height: 78rpx;">{{item.title}}</view>
<view class="lf-font-24 lf-color-gray">本套票只包含两个成人不可带小孩</view>
<view class="lf-font-28 lf-color-333 lf-line-2" style="height: 78rpx;">{{item.title}}</view>
<view class="lf-font-24 lf-color-gray lf-line-2" style="height: 64rpx;">本套票只包含两个成人不可带小孩本套票只包含两个成人不可带小孩本套票只包含两个成人不可带小孩</view>
<view class="lf-flex lf-m-t-25">
<lf-price :price="item.price"></lf-price>
<text class="lf-font-24 lf-color-gray lf-line-through lf-m-l-15">¥{{item.original_price}}</text>

17
pages/message/detail.vue

@ -1,5 +1,18 @@
<template>
<view class="lf-m-l-32 lf-m-r-32">
<view>
<view class="lf-font-32 lf-color-333 lf-row-center lf-m-t-30 lf-m-b-20">
{{title_content.title}}
</view>
<view class="lf-flex lf-m-b-24">
<view class="lf-color-999 lf-font-24" v-if="title_content.updated_at">
发布于<text class="lf-m-l-10">{{title_content.updated_at}}</text>
</view>
<view class="lf-color-999 lf-font-24 lf-m-l-30" v-if="title_content.author">
作者<text class="lf-m-l-10">{{title_content.author}}</text>
</view>
</view>
</view>
<rich-text :nodes="content" v-if="$isRight(content)"></rich-text>
<lf-nocontent v-else></lf-nocontent>
<!-- 回到顶部 -->
@ -12,7 +25,8 @@
data(){
return {
content: '',
news_id: 0
news_id: 0,
title_content: ''
}
},
onLoad(e){
@ -25,6 +39,7 @@
getData(){
this.$http(this.API.API_MESSAGEDETAILS,{id: this.news_id}).then(res => {
this.content = res.data?.content;
this.title_content = res.data
console.log(this.content)
})
}

17
pages/notice/article.vue

@ -1,5 +1,18 @@
<template>
<view class="lf-m-l-32 lf-m-r-32">
<view>
<view class="lf-font-32 lf-color-333 lf-row-center lf-m-t-30 lf-m-b-20">
{{title_content.title}}
</view>
<view class="lf-flex lf-m-b-24">
<view class="lf-color-999 lf-font-24" v-if="title_content.updated_at">
发布于<text class="lf-m-l-10">{{title_content.updated_at}}</text>
</view>
<view class="lf-color-999 lf-font-24 lf-m-l-30" v-if="title_content.author">
作者<text class="lf-m-l-10">{{title_content.author}}</text>
</view>
</view>
</view>
<rich-text :nodes="content" v-if="content"></rich-text>
<lf-nocontent v-else></lf-nocontent>
<!-- 回到顶部 -->
@ -12,7 +25,8 @@
data(){
return {
content: '',
article_id: 0
article_id: 0,
title_content: ''
}
},
onLoad(e){
@ -25,6 +39,7 @@
getData(){
this.$http(this.API.API_FINDARTICLEDETAILS,{id: this.article_id}).then(res => {
this.content = res.data?.content;
this.title_content = res.data
console.log(this.content)
})
}

23
pages/notice/notice.vue

@ -1,5 +1,18 @@
<template>
<view class="lf-m-l-32 lf-m-r-32">
<view>
<view class="lf-font-32 lf-color-333 lf-row-center lf-m-t-30 lf-m-b-20">
{{title_content.title}}
</view>
<view class="lf-flex lf-m-b-24">
<view class="lf-color-999 lf-font-24" v-if="title_content.updated_at">
发布于<text class="lf-m-l-10">{{title_content.updated_at}}</text>
</view>
<view class="lf-color-999 lf-font-24 lf-m-l-30" v-if="title_content.author">
作者<text class="lf-m-l-10">{{title_content.author}}</text>
</view>
</view>
</view>
<rich-text :nodes="content" v-if="content"></rich-text>
<lf-nocontent v-else></lf-nocontent>
<!-- 回到顶部 -->
@ -12,17 +25,21 @@
data(){
return {
content: '',
notice_id: 0
notice_id: 0,
title_content: ''
}
},
onLoad(e){
this.notice_id = e.notice_id
this.getData();
this.notice_id = e.notice_id;
if(this.notice_id) {
this.getData();
}
},
methods: {
getData(){
this.$http(this.API.API_NOTICEDETAILS,{id:this.notice_id}).then(res => {
this.content = res.data?.content;
this.title_content = res.data
})
}
}

5
pages/user/user.vue

@ -287,12 +287,13 @@
}
}
.bg-img{
width: 100%;
height: 100%;
width: 230%;
height: 230%;
position: absolute;
top: 0;
left: 0;
z-index: -1;
filter: blur(14rpx);
}
.shop-list{
margin-top: 20rpx;

Loading…
Cancel
Save