首页背景图

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 {
width: 720rpx;
height: 484rpx;
max-height: 484rpx;
background: #FFFFFF;
border-radius: 6rpx 6rpx 6rpx 6rpx;
opacity: 1;

@ -28,9 +28,9 @@
</view>
</view>
<view class="group_6">
<view class="text-wrapper_3">
<!-- <view class="text-wrapper_3">
<text lines="1" class="text_4">4</text>
</view>
</view> -->
</view>
</view>
<view v-if="!sameCity">
@ -615,7 +615,7 @@
overflow-y: auto;
display: flex;
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%;
}

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

@ -1,7 +1,7 @@
<template>
<view class="page">
<view >
<u-navbar is-back="false" title="" :background="background"></u-navbar>
<view>
<u-navbar is-back="false" title="" :background="background"></u-navbar>
</view>
<view class="section_1">
<view class="box_1">
@ -390,13 +390,15 @@
我要找货
</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>
<view class="serveInfo">
数据统计
</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>
<view class="serveInfo">
会员管理
@ -418,22 +420,22 @@
<image src="/static/user/right.png" mode=""></image>
</view>
<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">
<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="text-wrapper_4">
<!-- <view class="text-wrapper_4">
<text lines="1" class="text_12">自营</text>
</view>
<text lines="1" decode="true" class="text_13">iphone13&nbsp;绿色&nbsp;128GB</text>
</view> -->
<text lines="1" decode="true" class="text_13">{{item.goods_name}}</text>
</view>
<view class="text-wrapper_5">
<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_17">¥7089</text>
<text lines="1" class="text_17">¥{{item.line_price_max}}</text>
</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>
@ -461,7 +463,8 @@
import {
checkLogin
} from '@/core/app'
import * as UserApi from '@/api/user'
import * as UserApi from '@/api/user';
import * as Api from '@/api/goods'
export default {
data() {
return {
@ -475,12 +478,23 @@
userInfo: {
user_type: 40
},
suggestGoodsList:[],
}
},
onShow(options) {
this.onRefreshPage()
this.getSuggest()
},
methods: {
getSuggest() {
//
const that = this
Api.recommended()
.then(res => {
that.suggestGoodsList = res.data.goodsList
})
},
//
onRefreshPage() {
this.isLogin = checkLogin()
@ -497,7 +511,7 @@
})
.then(result => {
that.userInfo = result.data.userInfo
uni.setStorageSync('userInfo',that.userInfo)
uni.setStorageSync('userInfo', that.userInfo)
resolve(that.userInfo)
})
.catch(err => {
@ -511,14 +525,14 @@
})
},
toFuwu(type) {
if(!uni.getStorageSync('token')){
if (!uni.getStorageSync('token')) {
uni.navigateTo({
url: "/pages/login/index"
})
return ;
return;
}
uni.navigateTo({
url: "/pages/news/recycling/orderList?type="+type
url: "/pages/news/recycling/orderList?type=" + type
})
},
goLogin() {
@ -582,6 +596,7 @@
display: flex;
flex-direction: column;
justify-content: flex-end;
}
.section_1 {
@ -592,6 +607,8 @@
display: flex;
flex-direction: column;
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;
white-space: nowrap;
line-height: 24rpx;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.text-wrapper_5 {
@ -1450,7 +1470,7 @@
}
.text_15 {
width: 86rpx;
// min-width: 86rpx;
height: 50rpx;
overflow-wrap: break-word;
color: rgba(242, 26, 28, 1.000000);

Loading…
Cancel
Save