Browse Source

改版后对接修改数据

test
Enzo 4 years ago
parent
commit
d7ef42ae1d
  1. 8
      components/lf-waterfall-my/lf-waterfall.vue
  2. 8
      components/lf-waterfall-recom/lf-waterfall.vue
  3. 8
      components/lf-waterfall/lf-waterfall.vue
  4. 4
      pages/activityList/index.vue
  5. 2
      pages/collect/index.vue
  6. 10
      pages/goodsDetail/index.vue
  7. 2
      pages/goodsList/index.vue
  8. 4
      pages/hot/index.vue
  9. 1
      pages/index/index.vue

8
components/lf-waterfall-my/lf-waterfall.vue

@ -4,12 +4,12 @@
<template v-slot:left="{leftList}">
<view class="list-warter" v-for="(item, index) in leftList" :key="index">
<view v-if="!item.is_ad" @click="onClick(item.id)">
<u-lazy-load threshold="-450" border-radius="8px 8px 0 0" :image="item.product.picture" :index="index">
<u-lazy-load threshold="-450" border-radius="8px 8px 0 0" :image="item.picture" :index="index">
<view class="list-label">已售{{item.sale}}</view>
</u-lazy-load>
<view class="lf-p-20">
<view class="list-title">
{{item.product.title}}
{{item.title}}
</view>
<view class="list-price">
<!-- <text>{{item.price}}</text> -->
@ -31,12 +31,12 @@
<template v-slot:right="{rightList}">
<view class="list-warter" v-for="(item, index) in rightList" :key="index">
<view v-if="!item.is_ad" @click="onClick(item.id)">
<u-lazy-load threshold="-450" border-radius="8px 8px 0 0" :image="item.product.picture" :index="index">
<u-lazy-load threshold="-450" border-radius="8px 8px 0 0" :image="item.picture" :index="index">
<view class="list-label">已售{{item.sale}}</view>
</u-lazy-load>
<view class="lf-p-20">
<view class="list-title">
{{item.product.title}}
{{item.title}}
</view>
<view class="list-price">
<!-- <text>{{item.price}}</text> -->

8
components/lf-waterfall-recom/lf-waterfall.vue

@ -4,12 +4,12 @@
<template v-slot:left="{leftList}">
<view class="list-warter" v-for="(item, index) in leftList" :key="index">
<view v-if="!item.is_ad" @click="onClick(item.id)">
<u-lazy-load threshold="-450" border-radius="8px 8px 0 0" :image="item.product.picture" :index="index">
<u-lazy-load threshold="-450" border-radius="8px 8px 0 0" :image="item.picture" :index="index">
<view class="list-label">已售{{item.sale}}</view>
</u-lazy-load>
<view class="lf-p-20">
<view class="list-title">
{{item.product.title}}
{{item.title}}
</view>
<view class="list-price">
<!-- <text>{{item.price}}</text> -->
@ -31,12 +31,12 @@
<template v-slot:right="{rightList}">
<view class="list-warter" v-for="(item, index) in rightList" :key="index">
<view v-if="!item.is_ad" @click="onClick(item.id)">
<u-lazy-load threshold="-450" border-radius="8px 8px 0 0" :image="item.product.picture" :index="index">
<u-lazy-load threshold="-450" border-radius="8px 8px 0 0" :image="item.picture" :index="index">
<view class="list-label">已售{{item.sale}}</view>
</u-lazy-load>
<view class="lf-p-20">
<view class="list-title">
{{item.product.title}}
{{item.title}}
</view>
<view class="list-price">
<!-- <text>{{item.price}}</text> -->

8
components/lf-waterfall/lf-waterfall.vue

@ -4,12 +4,12 @@
<template v-slot:left="{leftList}">
<view class="list-warter" v-for="(item, index) in leftList" :key="index">
<view v-if="!item.is_ad" @click="onClick(item.id)">
<u-lazy-load threshold="-450" border-radius="8px 8px 0 0" :image="item.product.picture" :index="index">
<u-lazy-load threshold="-450" border-radius="8px 8px 0 0" :image="item.picture" :index="index">
<view class="list-label">已售{{item.sale}}</view>
</u-lazy-load>
<view class="lf-p-20">
<view class="list-title">
{{item.product.title}}
{{item.title}}
</view>
<view class="list-price">
<!-- <text>{{item.price}}</text> -->
@ -31,12 +31,12 @@
<template v-slot:right="{rightList}">
<view class="list-warter" v-for="(item, index) in rightList" :key="index">
<view v-if="!item.is_ad" @click="onClick(item.id)">
<u-lazy-load threshold="-450" border-radius="8px 8px 0 0" :image="item.product.picture" :index="index">
<u-lazy-load threshold="-450" border-radius="8px 8px 0 0" :image="item.picture" :index="index">
<view class="list-label">已售{{item.sale}}</view>
</u-lazy-load>
<view class="lf-p-20">
<view class="list-title">
{{item.product.title}}
{{item.title}}
</view>
<view class="list-price">
<!-- <text>{{item.price}}</text> -->

4
pages/activityList/index.vue

@ -10,10 +10,10 @@
<view class="content">
<view class="item" v-for="(item,index) in list" :key="index">
<view class="cover" @click="enterDetail(index)">
<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.product.title}}</view>
<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-flex lf-m-t-25">
<lf-price :price="item.price"></lf-price>

2
pages/collect/index.vue

@ -4,7 +4,7 @@
<view class="lf-row-between list-item" v-for="(item, index) in list" :key="item.id">
<image class="goods-img" mode="aspectFill" :src="item.product.picture" @click="enterDetail(item.agent_product_id)"></image>
<view style="width: 458rpx;">
<view class="lf-font-28 lf-line-2" style="height: 80rpx;" @click="enterDetail(item.id)">{{ item.product.title }}</view>
<view class="lf-font-28 lf-line-2" style="height: 80rpx;" @click="enterDetail(item.id)">{{ item.title }}</view>
<view class="lf-m-t-15 lf-font-24 lf-color-gray">{{ item.created_at || '' }}</view>
<view class="lf-row-between lf-m-t-20">

10
pages/goodsDetail/index.vue

@ -3,14 +3,14 @@
<skeleton :loading="skeletonLoading" :row="12" :showAvatar="false" :showTitle="true">
<block v-if="isRight(goods_detail)">
<!-- 商品图片轮播 -->
<swiper :current="current" :indicator-dots="goods_detail.product.pictures.length > 1 ? true : false" :circular="true" class="swiper-box" indicator-active-color="#1998FE">
<swiper-item v-for="(item, index) in goods_detail.product.pictures" :key="index">
<swiper :current="current" :indicator-dots="goods_detail.pictures.length > 1 ? true : false" :circular="true" class="swiper-box" indicator-active-color="#1998FE">
<swiper-item v-for="(item, index) in goods_detail.pictures" :key="index">
<image mode="aspectFill" :src="item" style="width: 100%; height: 100%;" @click="lookImg(index)"></image>
</swiper-item>
</swiper>
<!-- 商品主要信息 -->
<view class="head-info">
<view class="lf-font-32 lf-color-333 lf-font-bold">{{ goods_detail.product.title }}</view>
<view class="lf-font-32 lf-color-333 lf-font-bold">{{ goods_detail.title }}</view>
<view class="lf-row-between lf-font-24 lf-m-t-30 lf-p-b-20">
<view class="lf-flex price">
<lf-price :price="goods_detail.price"></lf-price>
@ -19,7 +19,7 @@
</view>
<view class="lf-font-24 lf-text-right">
<view class="lf-color-gray">已售 {{ goods_detail.sale }}</view>
<view class="lf-color-gray">库存 {{ goods_detail.product.stock }}</view>
<view class="lf-color-gray">库存 {{ goods_detail.stock }}</view>
<!-- <view class="lf-color-primary">{{ goods_detail.specs[0].stock_text }}</view> -->
</view>
</view>
@ -50,7 +50,7 @@
<!-- 商品详情 -->
<view class="goods-detail">
<view class="lf-font-32 lf-font-bold lf-m-b-20">旅游须知</view>
<rich-text :nodes="formatRichText(goods_detail.product.know)"></rich-text>
<rich-text :nodes="formatRichText(goods_detail.know)"></rich-text>
<!-- <image class="goods-img" :src="item" v-for="(item, index) in goods_detail.content" :key="index" v-if="goods_detail.content_type == 'img'"></image> -->
</view>
<!-- 修饰专用 -->

2
pages/goodsList/index.vue

@ -7,7 +7,7 @@
<image :src="item.product.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.product.title}}</view>
<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-flex lf-m-t-25">
<lf-price :price="item.price"></lf-price>

4
pages/hot/index.vue

@ -4,10 +4,10 @@
<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.product.title}}</view>
<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-flex lf-m-t-25">
<lf-price :price="item.price"></lf-price>

1
pages/index/index.vue

@ -178,6 +178,7 @@
// this.$msg('ad广')
if(url) {
if(type == 0) {
console.log(url)
this.$url(url);
}else {
this.$url('/pages/index/urlWeb?url='+url);

Loading…
Cancel
Save