首页背景图

dev
zhouzhenyuan 10 months ago
parent d0af190ce6
commit 85ee5bb05d
  1. 2
      pages/goods/detail.vue
  2. 6
      pages/index/index.vue
  3. 2
      pages/sureOrder/index.vue
  4. 56
      pages/user/index.vue

@ -533,7 +533,7 @@
.goodsInfo { .goodsInfo {
width: 720rpx; width: 720rpx;
height: 484rpx; max-height: 484rpx;
background: #FFFFFF; background: #FFFFFF;
border-radius: 6rpx 6rpx 6rpx 6rpx; border-radius: 6rpx 6rpx 6rpx 6rpx;
opacity: 1; opacity: 1;

@ -28,9 +28,9 @@
</view> </view>
</view> </view>
<view class="group_6"> <view class="group_6">
<view class="text-wrapper_3"> <!-- <view class="text-wrapper_3">
<text lines="1" class="text_4">4</text> <text lines="1" class="text_4">4</text>
</view> </view> -->
</view> </view>
</view> </view>
<view v-if="!sameCity"> <view v-if="!sameCity">
@ -615,7 +615,7 @@
overflow-y: auto; overflow-y: auto;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
background-image: url('../../static/home/homeback.png'); background-image: url('https://www.saas.njrenzhou.com/static/home/homeback.png');
background-size: 100% 100%; background-size: 100% 100%;
} }

@ -5,7 +5,7 @@
:background="background"></u-navbar> :background="background"></u-navbar>
</view> </view>
<view class="buyType"> <view class="buyType">
<view class="toDoor"> <view class="toDoor" :style="{'background':buyType=='sm'?'#fff':'rgba(255, 255, 255, 0.57)'}">
送货上门 送货上门
</view> </view>
<view class="bySelf"> <view class="bySelf">

@ -1,7 +1,7 @@
<template> <template>
<view class="page"> <view class="page">
<view > <view>
<u-navbar is-back="false" title="" :background="background"></u-navbar> <u-navbar is-back="false" title="" :background="background"></u-navbar>
</view> </view>
<view class="section_1"> <view class="section_1">
<view class="box_1"> <view class="box_1">
@ -390,13 +390,15 @@
我要找货 我要找货
</view> </view>
</view> </view>
<view class="serveIcon" v-if="userInfo.user_type!=10&&userInfo.user_type!=20&&userInfo.user_type!=30"> <view class="serveIcon"
v-if="userInfo.user_type!=10&&userInfo.user_type!=20&&userInfo.user_type!=30">
<image src="/static/user/sj.png" mode="" class="icons"></image> <image src="/static/user/sj.png" mode="" class="icons"></image>
<view class="serveInfo"> <view class="serveInfo">
数据统计 数据统计
</view> </view>
</view> </view>
<view class="serveIcon" v-if="userInfo.user_type!=10&&userInfo.user_type!=20&&userInfo.user_type!=30"> <view class="serveIcon"
v-if="userInfo.user_type!=10&&userInfo.user_type!=20&&userInfo.user_type!=30">
<image src="/static/user/hygl.png" mode="" class="icons"></image> <image src="/static/user/hygl.png" mode="" class="icons"></image>
<view class="serveInfo"> <view class="serveInfo">
会员管理 会员管理
@ -418,22 +420,22 @@
<image src="/static/user/right.png" mode=""></image> <image src="/static/user/right.png" mode=""></image>
</view> </view>
<view class="goodsList"> <view class="goodsList">
<view class="group_11" v-for="(item,index) in 8" :key="index" @click="goodsDetail(item)"> <view class="group_11" v-for="(item,index) in suggestGoodsList" :key="index" @click="goodsDetail(item)">
<view class="block_2"> <view class="block_2">
<image src="/static/home/phone.jpg" class="image_3"></image> <image :src="item.goods_image" class="image_3"></image>
<view class="box_6"> <view class="box_6">
<view class="text-wrapper_4"> <!-- <view class="text-wrapper_4">
<text lines="1" class="text_12">自营</text> <text lines="1" class="text_12">自营</text>
</view> </view> -->
<text lines="1" decode="true" class="text_13">iphone13&nbsp;绿色&nbsp;128GB</text> <text lines="1" decode="true" class="text_13">{{item.goods_name}}</text>
</view> </view>
<view class="text-wrapper_5"> <view class="text-wrapper_5">
<text lines="1" class="text_14">¥</text> <text lines="1" class="text_14">¥</text>
<text lines="1" class="text_15">7599</text> <text lines="1" class="text_15">{{item.goods_price_min}}</text>
<text lines="1" class="text_16">到手价</text> <text lines="1" class="text_16">到手价</text>
<text lines="1" class="text_17">¥7089</text> <text lines="1" class="text_17">¥{{item.line_price_max}}</text>
</view> </view>
<text lines="1" decode="true" class="text_18">200+条评论&nbsp;99%好评率</text> <!-- <text lines="1" decode="true" class="text_18">200+条评论&nbsp;99%好评率</text> -->
</view> </view>
</view> </view>
@ -461,7 +463,8 @@
import { import {
checkLogin checkLogin
} from '@/core/app' } from '@/core/app'
import * as UserApi from '@/api/user' import * as UserApi from '@/api/user';
import * as Api from '@/api/goods'
export default { export default {
data() { data() {
return { return {
@ -475,12 +478,23 @@
userInfo: { userInfo: {
user_type: 40 user_type: 40
}, },
suggestGoodsList:[],
} }
}, },
onShow(options) { onShow(options) {
this.onRefreshPage() this.onRefreshPage()
this.getSuggest()
}, },
methods: { methods: {
getSuggest() {
//
const that = this
Api.recommended()
.then(res => {
that.suggestGoodsList = res.data.goodsList
})
},
// //
onRefreshPage() { onRefreshPage() {
this.isLogin = checkLogin() this.isLogin = checkLogin()
@ -497,7 +511,7 @@
}) })
.then(result => { .then(result => {
that.userInfo = result.data.userInfo that.userInfo = result.data.userInfo
uni.setStorageSync('userInfo',that.userInfo) uni.setStorageSync('userInfo', that.userInfo)
resolve(that.userInfo) resolve(that.userInfo)
}) })
.catch(err => { .catch(err => {
@ -511,14 +525,14 @@
}) })
}, },
toFuwu(type) { toFuwu(type) {
if(!uni.getStorageSync('token')){ if (!uni.getStorageSync('token')) {
uni.navigateTo({ uni.navigateTo({
url: "/pages/login/index" url: "/pages/login/index"
}) })
return ; return;
} }
uni.navigateTo({ uni.navigateTo({
url: "/pages/news/recycling/orderList?type="+type url: "/pages/news/recycling/orderList?type=" + type
}) })
}, },
goLogin() { goLogin() {
@ -582,6 +596,7 @@
display: flex; display: flex;
flex-direction: column; flex-direction: column;
justify-content: flex-end; justify-content: flex-end;
} }
.section_1 { .section_1 {
@ -592,6 +607,8 @@
display: flex; display: flex;
flex-direction: column; flex-direction: column;
margin: -26rpx 0 0 -60rpx; margin: -26rpx 0 0 -60rpx;
background: url('https://www.saas.njrenzhou.com/static/member/head.png') center -44px no-repeat;
background-size: 100% auto;
} }
@ -1425,6 +1442,9 @@
text-align: left; text-align: left;
white-space: nowrap; white-space: nowrap;
line-height: 24rpx; line-height: 24rpx;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
} }
.text-wrapper_5 { .text-wrapper_5 {
@ -1450,7 +1470,7 @@
} }
.text_15 { .text_15 {
width: 86rpx; // min-width: 86rpx;
height: 50rpx; height: 50rpx;
overflow-wrap: break-word; overflow-wrap: break-word;
color: rgba(242, 26, 28, 1.000000); color: rgba(242, 26, 28, 1.000000);

Loading…
Cancel
Save