forked from angelo/web-retail-h5
feat(index): 首页渐变色样式变更
This commit is contained in:
parent
efec6f264a
commit
a88c997e5a
|
@ -36,12 +36,13 @@
|
||||||
>
|
>
|
||||||
<image :src="item.cover1" class="product-image" mode="aspectFill" />
|
<image :src="item.cover1" class="product-image" mode="aspectFill" />
|
||||||
<view class="product-info">
|
<view class="product-info">
|
||||||
<view class="product-name">{{ item.waresCode }}</view>
|
<view class="product-name">{{ item.waresName }}</view>
|
||||||
<view class="product-price-row">
|
<view class="product-price-row">
|
||||||
<view class="product-price">
|
<view class="product-price">
|
||||||
{{ formatPrice(item.waresPrice) }}
|
{{ formatPrice(item.waresPrice) }}
|
||||||
</view>
|
</view>
|
||||||
<u-button
|
<u-button
|
||||||
|
v-if="false"
|
||||||
type="primary"
|
type="primary"
|
||||||
size="mini"
|
size="mini"
|
||||||
shape="circle"
|
shape="circle"
|
||||||
|
|
|
@ -13,7 +13,7 @@ module.exports = (vm) => {
|
||||||
|
|
||||||
//#ifdef DEV_SERVER
|
//#ifdef DEV_SERVER
|
||||||
console.log('DEV_SERVER')
|
console.log('DEV_SERVER')
|
||||||
config.baseURL = '/prod-api';
|
config.baseURL = 'http://localhost:8080';
|
||||||
//#endif
|
//#endif
|
||||||
|
|
||||||
//#ifdef QA_SERVER
|
//#ifdef QA_SERVER
|
||||||
|
|
|
@ -0,0 +1,4 @@
|
||||||
|
const http = uni.$u.http
|
||||||
|
|
||||||
|
//会员专区商品列表
|
||||||
|
export const getAreaGoods = (params) => http.get('/sale/api/wares/list-wares', params)
|
|
@ -55,7 +55,6 @@
|
||||||
<view :class="userInfo.skin ? 'bg-color1' : 'bg-color'"></view>
|
<view :class="userInfo.skin ? 'bg-color1' : 'bg-color'"></view>
|
||||||
<view class="goods-top">
|
<view class="goods-top">
|
||||||
<view class="title">{{ item.specialAreaName }}</view>
|
<view class="title">{{ item.specialAreaName }}</view>
|
||||||
<!-- <view class="lables">限时抢</view> -->
|
|
||||||
</view>
|
</view>
|
||||||
<template v-if="item.waresList">
|
<template v-if="item.waresList">
|
||||||
<view class="goods-cen">
|
<view class="goods-cen">
|
||||||
|
@ -68,9 +67,6 @@
|
||||||
<view class="goods">
|
<view class="goods">
|
||||||
<image :src="items.cover1"></image>
|
<image :src="items.cover1"></image>
|
||||||
</view>
|
</view>
|
||||||
<!-- <view class="price">
|
|
||||||
{{items.waresPrice | numberToCurrency | isLocal}}
|
|
||||||
</view> -->
|
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
@ -850,11 +846,7 @@ header {
|
||||||
.bg-color {
|
.bg-color {
|
||||||
width: 343rpx;
|
width: 343rpx;
|
||||||
height: 72rpx;
|
height: 72rpx;
|
||||||
background: linear-gradient(
|
background: linear-gradient(to bottom, #add8e6, #ffffff);
|
||||||
-180deg,
|
|
||||||
rgba(255, 226, 226, 0.85) 0%,
|
|
||||||
rgba(254, 240, 229, 0.45) 38%
|
|
||||||
);
|
|
||||||
border-radius: 15rpx 15rpx 0 0;
|
border-radius: 15rpx 15rpx 0 0;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: 0;
|
top: 0;
|
||||||
|
|
|
@ -16,7 +16,7 @@
|
||||||
>
|
>
|
||||||
<view class="bg-color"></view>
|
<view class="bg-color"></view>
|
||||||
|
|
||||||
<area-product-list v-if="item.waresList!=false" :list="item.waresList" :title="item.specialAreaName"></area-product-list>
|
<area-product-list v-if="item.waresList && item.waresList.length > 0" :list="item.waresList" :title="item.specialAreaName"></area-product-list>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
@ -26,6 +26,7 @@
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import * as api from '@/config/goods'
|
import * as api from '@/config/goods'
|
||||||
|
import { getAreaGoods } from '@/config/special-area'
|
||||||
import * as apis from '@/config/index.js'
|
import * as apis from '@/config/index.js'
|
||||||
import clTabbar from '@/components/cl-tabbar.vue'
|
import clTabbar from '@/components/cl-tabbar.vue'
|
||||||
import * as ban from '@/config/balance.js'
|
import * as ban from '@/config/balance.js'
|
||||||
|
@ -320,7 +321,7 @@ export default {
|
||||||
},
|
},
|
||||||
getGoodsInfo() {
|
getGoodsInfo() {
|
||||||
let userInfo = uni.getStorageSync('User')
|
let userInfo = uni.getStorageSync('User')
|
||||||
apis.userIndex().then((res) => {
|
getAreaGoods().then((res) => {
|
||||||
// if (userInfo.pkSettleCountry == 1) {
|
// if (userInfo.pkSettleCountry == 1) {
|
||||||
// res.data.recommendSpecialAreaList.unshift({
|
// res.data.recommendSpecialAreaList.unshift({
|
||||||
// specialArea: 21,
|
// specialArea: 21,
|
||||||
|
|
Loading…
Reference in New Issue