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" />
|
||||
<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">
|
||||
{{ formatPrice(item.waresPrice) }}
|
||||
</view>
|
||||
<u-button
|
||||
v-if="false"
|
||||
type="primary"
|
||||
size="mini"
|
||||
shape="circle"
|
||||
|
|
|
@ -13,7 +13,7 @@ module.exports = (vm) => {
|
|||
|
||||
//#ifdef DEV_SERVER
|
||||
console.log('DEV_SERVER')
|
||||
config.baseURL = '/prod-api';
|
||||
config.baseURL = 'http://localhost:8080';
|
||||
//#endif
|
||||
|
||||
//#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="goods-top">
|
||||
<view class="title">{{ item.specialAreaName }}</view>
|
||||
<!-- <view class="lables">限时抢</view> -->
|
||||
</view>
|
||||
<template v-if="item.waresList">
|
||||
<view class="goods-cen">
|
||||
|
@ -68,9 +67,6 @@
|
|||
<view class="goods">
|
||||
<image :src="items.cover1"></image>
|
||||
</view>
|
||||
<!-- <view class="price">
|
||||
{{items.waresPrice | numberToCurrency | isLocal}}
|
||||
</view> -->
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
|
@ -850,11 +846,7 @@ header {
|
|||
.bg-color {
|
||||
width: 343rpx;
|
||||
height: 72rpx;
|
||||
background: linear-gradient(
|
||||
-180deg,
|
||||
rgba(255, 226, 226, 0.85) 0%,
|
||||
rgba(254, 240, 229, 0.45) 38%
|
||||
);
|
||||
background: linear-gradient(to bottom, #add8e6, #ffffff);
|
||||
border-radius: 15rpx 15rpx 0 0;
|
||||
position: absolute;
|
||||
top: 0;
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
>
|
||||
<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>
|
||||
|
@ -26,6 +26,7 @@
|
|||
|
||||
<script>
|
||||
import * as api from '@/config/goods'
|
||||
import { getAreaGoods } from '@/config/special-area'
|
||||
import * as apis from '@/config/index.js'
|
||||
import clTabbar from '@/components/cl-tabbar.vue'
|
||||
import * as ban from '@/config/balance.js'
|
||||
|
@ -320,7 +321,7 @@ export default {
|
|||
},
|
||||
getGoodsInfo() {
|
||||
let userInfo = uni.getStorageSync('User')
|
||||
apis.userIndex().then((res) => {
|
||||
getAreaGoods().then((res) => {
|
||||
// if (userInfo.pkSettleCountry == 1) {
|
||||
// res.data.recommendSpecialAreaList.unshift({
|
||||
// specialArea: 21,
|
||||
|
|
Loading…
Reference in New Issue