Browse Source

更新

master
linyumoya 4 months ago
parent
commit
27732c7172
6 changed files with 208 additions and 2 deletions
  1. +3
    -0
      pages.json
  2. +138
    -2
      pages/index/index.vue
  3. +67
    -0
      pages_order/home/journalism.vue
  4. BIN
      pages_order/static/home/1.png
  5. BIN
      static/image/home/10.png
  6. BIN
      static/image/home/9.png

+ 3
- 0
pages.json View File

@ -74,6 +74,9 @@
},
{
"path": "mine/help"
},
{
"path": "home/journalism"
}
]
}],


+ 138
- 2
pages/index/index.vue View File

@ -36,11 +36,11 @@
<image src="../../static/image/home/8.png" mode="aspectFill" />
</view>
<view class="commodity" v-for="(item,index) in 10" :key="index">
<view class="commodity">
<view class="box">
<view class="top">
<view class="top-text">
<view>Experience the product 体验产品</view>
<view>Experience the product</view>
<view>体验产品 ___ _</view>
</view>
</view>
@ -60,6 +60,66 @@
</view>
</view>
<view class="commodity">
<view class="box">
<view class="top">
<view class="top-text">
<view>Experience the product</view>
<view>常规产品 ___ _</view>
</view>
</view>
<view class="centre">
<view class="boxs">
<view class="box-text">
<view>三只青蛙低GI大米</view>
<view>5斤每盒*3</view>
<text class="text1">225</text>
<text class="text2">原价375</text>
</view>
<view class="box-img">
<image src="../../static/logo.png" mode="aspectFill"></image>
</view>
</view>
</view>
</view>
</view>
<view class="commodity">
<view class="box">
<view class="top">
<view class="top-text">
<view>Experience the product</view>
<view>新闻动态 ___ _</view>
</view>
<view class="top1" @click="$utils.navigateTo('/pages_order/home/journalism')">
更多
</view>
</view>
<view class="centre">
<view class="boxs">
<view class="images">
<image src="../../static/image/home/9.png" mode="aspectFill"></image>
</view>
<view class="box-fone">
<view>新闻标题</view>
<view>说明文字说明文字说明文字说明文字说明文字</view>
</view>
</view>
</view>
</view>
</view>
<view class="qr">
<view class="scan">扫码关注公众号</view>
<view class="qr-scan">
<image src="../../static/image/home/10.png" mode="aspectFill"></image>
</view>
<view class="qr-bottom">
<view>保存公众号二维码图片</view>
<view>长按识别公众号</view>
</view>
</view>
<PrivacyAgreementPoup />
<tabber select="home" />
@ -239,6 +299,8 @@
.top {
display: flex;
border-left: 6rpx solid #A3D250;
align-items: center;
justify-content: space-between;
.top-text {
margin-left: 20rpx;
@ -254,6 +316,14 @@
font-weight: 600;
}
}
.top1 {
font-size: 26rpx;
color: #fff;
padding: 10rpx 30rpx;
background-color: #F6CD59;
border-radius: 30rpx;
}
}
}
@ -267,6 +337,36 @@
.boxs {
display: flex;
width: 100%;
align-items: center;
.images {
width: 180rpx;
height: 140rpx;
flex-shrink: 0;
border-radius: 8rpx;
overflow: hidden;
image {
width: 100%;
height: 100%;
}
}
.box-fone {
margin-left: 20rpx;
view:nth-child(1) {
font-size: 36rpx;
color: #474747;
}
view:nth-child(2) {
margin-top: 10rpx;
font-size: 28rpx;
color: #A2A2A2;
}
}
.box-text,
.box-img {
@ -309,5 +409,41 @@
}
}
.qr {
margin-top: 40rpx;
.scan {
text-align: center;
font-size: 28rpx;
color: #A2A2A2;
}
.qr-scan {
margin: 20rpx auto;
width: 400rpx;
height: 400rpx;
image {
height: 100%;
width: 100%;
}
}
.qr-bottom {
display: flex;
font-size: 28rpx;
color: #A2A2A2;
justify-content: space-around;
view {
border: 2rpx solid #A2A2A2;
padding: 20rpx;
border-radius: 45rpx;
}
}
}
}
</style>

+ 67
- 0
pages_order/home/journalism.vue View File

@ -0,0 +1,67 @@
<template>
<view class="page">
<navbar title="新闻中心" leftClick @leftClick="$utils.navigateBack" />
<view class="card">
<view class="card-img">
<image src="../static/home/1.png" mode="aspectFill"></image>
</view>
<view>
三只青蛙周年庆
</view>
<view class="text">
文本内容文本内容文本内容文本内容文本内容文本内容文本内容
</view>
</view>
</view>
</template>
<script>
export default {
data() {
return {
}
},
computed: {},
methods: {}
}
</script>
<style scoped lang="scss">
.page {
height: 100Vh;
background-color: #F3F3F3;
.card {
margin: 20rpx;
background-color: #fff;
border-bottom-left-radius: 16rpx;
border-bottom-right-radius: 16rpx;
.card-img {
height: 250rpx;
width: 100%;
image {
width: 100%;
height: 100%;
}
}
view:nth-child(2) {
font-size: 32rpx;
color: #474747;
padding: 20rpx;
font-weight: 500;
}
.text {
font-size: 24rpx;
color: #A2A2A2;
padding: 0rpx 20rpx 40rpx;
}
}
}
</style>

BIN
pages_order/static/home/1.png View File

Before After
Width: 1420  |  Height: 530  |  Size: 539 KiB

BIN
static/image/home/10.png View File

Before After
Width: 720  |  Height: 720  |  Size: 32 KiB

BIN
static/image/home/9.png View File

Before After
Width: 272  |  Height: 272  |  Size: 101 KiB

Loading…
Cancel
Save