first commit

This commit is contained in:
编码猿
2024-09-27 02:06:13 +08:00
commit 852d94fbb9
36760 changed files with 3274413 additions and 0 deletions

View File

@@ -0,0 +1,182 @@
<template>
<view class="alarmList">
<view class="switchHead">
<view v-for="(item,index) in tabTitleData" class="boxList" :class="{activeCss:activeIndex==index}" :key="index">
<text @click="clickTab(index)">{{item.name}}</text>
</view>
</view>
<view class="content">
<view v-if="current === 0">
<ul>
<view class="scroll">
<view class="box" v-for="(i,j) in 6" :key="j" @click="togo(j)">
<img src="/static/home/renzheng.jpg" alt="">
<view class="info">
<p class="ling">零</p>
<p class="jieshao">安神补脑液安神补脑液安神补脑液</p>
</view>
<p class="gs">吉林药业股份有限公司吉林药业股份有限公司</p>
<p class="zhi">10ml*10支</p>
<p class="jiage">¥16.99</p>
</view>
</view>
</ul>
</view>
<view v-else>
<ul>
<view class="scroll">
<view class="box" v-for="(i,j) in 6" :key="j" @click="togo(j)" >
<img src="/static/home/renzheng.jpg" alt="">
<view class="info">
<p class="ling">零</p>
<p class="jieshao">安神补脑液安神补脑液安神补脑液</p>
</view>
<p class="gs">吉林药业股份有限公司吉林药业股份有限公司</p>
<p class="zhi">10ml*10支</p>
<p class="jiage">¥16.99</p>
</view>
</view>
</ul>
</view>
</view>
</view>
</template>
<script>
export default {
data() {
return {
current:0,
index:0,
activeIndex:'0',
tabTitleData:[
{
name:'为您推荐'
},
{
name:'走量订购'
}
]
}
},
created(){
this.getAct()
console.log(111)
},
methods: {
clickTab(index){
this.activeIndex=index;
this.current=index;
},
async getAct(){
let res = await this.$http.index.getActivity({});
console.log(res)
},
togo(j) {
// console.log(this.hot[j].keyword);
uni.navigateTo({
//加上id
url: `/pages/index/search`,
});
},
}
}
</script>
<style scoped lang="less">
.alarmList {
margin-top: 12px;
height: 100%;
.switchHead {
line-height: 29px;
display: flex;
justify-content: space-around;
font-size: 16px;
font-weight: bold;
.activeCss {
border-bottom: 2px solid #018EEA;
color: #018EEA;
}
}
}
.scroll {
display: flex;
flex-flow: row;
flex-wrap: wrap;
}
.box {
margin-top: 30rpx;
margin-left: 8px;
box-sizing: border-box;
width: 173px;
height: 438rpx;
background-color: #fff;
border-radius: 20rpx;
img{
padding-right: 20rpx;
margin: 30rpx auto;
display: block;
width: 280rpx;
height: 174rpx;
}
.info{
display: flex;
align-items: center;
font-size: 20rpx;
width: 95%;
.ling{
width: 30rpx;
height: 30rpx;
text-align: center;
line-height: 30rpx;
border-radius: 6rpx;
margin-right: 16rpx;
color: #fff;
background: linear-gradient(top ,#86fead,#3ad423);
}
.hot{
width: 30rpx;
height: 30rpx;
text-align: center;
line-height: 30rpx;
color: #fff;
border-radius: 6rpx;
background: linear-gradient(top ,#db577c,#d71c5e);
}
.jieshao{
margin-left: 4rpx;
font-weight: 800;
line-height: 36rpx;
width: 100%;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
}
}
.gs{
margin-top: 10rpx;
font-size: 20rpx;
width: 95.5%;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
}
.zhi{
margin-top: 15rpx;
font-size: 20rpx;
}
.jiage{
margin-top: 20rpx;
font-size: 30rpx;
font-weight: 800;
color: red;
}
}
.box:last-child{
margin-right: 0;
}
</style>

View File

@@ -0,0 +1,137 @@
<template>
<view>
<!-- 购物列表 -->
<view class="shoplist" v-for="(i, j) in shop" :key="j">
<view class="jieshao"><img :src="'https://' + i.pc_thumb" alt="" /></view>
<view class="right">
<view class="first">
<img v-if='i.limit_info' src="/static/me/xian.png" alt="" class="imga" />
<img v-if="i.retail_flag==0" src="/static/me/re.png" alt="" class="imgb" />
<p>{{ i.goods_name }}</p>
</view>
<p class="pice">{{i.limit_info}}</p>
<p class="changshang">
{{ i.manufacturer_name }}
</p>
<view class="next">
<p>{{ i.spec_desc }}</p>
<img src="/static/me/ling.png" alt="" />
<p>1{{i.unit}}/件</p>
</view>
<view class="last">
<p>¥{{ i.price }}</p>
<img src="/static/me/cart_icon.png" alt="" />
</view>
</view>
</view>
</view>
</template>
<script>
export default {
props: {
shop: {},
},
data() {
return {};
},
methods: {},
};
</script>
<style lang='less' scoped>
.shoplist {
display: flex;
border-radius: 20rpx;
height: 300rpx;
background-color: #fff;
width: 100%;
.jieshao {
display: flex;
align-items: center;
img {
width: 248rpx;
height: 150rpx;
margin: 0 20rpx;
}
}
.right {
img {
width: 30rpx;
height: 30rpx;
}
.first {
display: flex;
margin-top: 40rpx;
align-items: center;
.imga {
padding-right: 30rpx;
}
.imgb {
padding-right: 30rpx;
}
p {
font-weight: 800;
font-size: 30rpx;
width: 50%;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
}
}
.next {
display: flex;
}
.last {
display: flex;
}
}
.pice {
width: 70%;
margin-top: 10rpx;
color: red;
font-size: 27rpx;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
}
.changshang {
width: 60%;
margin-top: 10rpx;
font-size: 20rpx;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
}
.next {
margin-top: 10rpx;
font-size: 20rpx;
img {
margin: 0 20rpx;
}
}
.last {
width: 400rpx;
margin-top: 20rpx;
font-size: 30rpx;
color: red;
font-weight: 800;
display: flex;
align-items: center;
justify-content: space-between;
position: relative;
img {
width: 50rpx;
height: 50rpx;
position: absolute;
top: 0;
right: 0;
}
}
}
</style>

View File

@@ -0,0 +1,54 @@
<template>
<view class="mysss">
<!--#ifdef H5-->
<view class="video-js" ref="video">
</view>
<!-- #endif -->
<!--#ifdef APP-PLUS-->
<video
class="my_video"
object-fit="fill"
:src="src"
controls></video>
<!-- #endif -->
</view>
</template>
<script>
//
export default {
props: {
src: {
type: String,
default: ''
}
},
data() {
return {
};
},
mounted() {
// #ifdef H5
var video = document.createElement('video')
video.id = 'video'
video.style = 'width: 100%;height: 150px;'
video.controls = true
var source = document.createElement('source')
source.src = this.src
video.appendChild(source)
this.$refs.video.$el.appendChild(video)
videojs('video')
// #endif
},
}
</script>
<style>
.my_video {
width: 100%;
}
</style>