Browse Source

添加云商城跳转

master
jugao 3 years ago
parent
commit
a29c2fa753
  1. 7
      common/css/common.css
  2. 29
      pages.json
  3. BIN
      pages/.DS_Store
  4. 286
      pages/qHome/achievement.vue
  5. 25
      pages/tabbar/home.vue
  6. 18
      pages/tabbar/shop.vue
  7. 18
      pages/yunProduct/detail.vue
  8. 119
      pages/yunProduct/newDetail.vue
  9. 5
      pages/yunProduct/storeProduct.vue
  10. BIN
      static/base/.DS_Store
  11. BIN
      static/base/select.png

7
common/css/common.css

@ -179,4 +179,11 @@ button:after{
/* input */
.placeholder{
color: #999 !important;
}
.fix-bottom{
position: fixed;
bottom: 0rpx;
left: 0rpx;
right: 0rpx;
}

29
pages.json

@ -35,7 +35,17 @@
"style" : {
"navigationStyle":"custom",
"navigationBarTitleText": "云商城",
"disableScroll": true,
"disableScroll": false,
"app-plus": {
"bounce":"none"
}
}
},{
"path" : "pages/qHome/achievement",
"style" : {
"navigationStyle":"custom",
"navigationBarTitleText": "打款业绩",
"disableScroll": false,
"app-plus": {
"bounce":"none"
}
@ -45,7 +55,7 @@
"style" : {
"navigationStyle":"custom",
"navigationBarTitleText": "产品详情",
"disableScroll": true,
"disableScroll": false,
"app-plus": {
"bounce":"none"
}
@ -55,13 +65,22 @@
"style" : {
"navigationStyle":"custom",
"navigationBarTitleText": "云仓备货",
"disableScroll": true,
"disableScroll": false,
"app-plus": {
"bounce":"none"
}
}
}
,{
},{
"path" : "pages/yunProduct/newDetail",
"style" : {
"navigationStyle":"custom",
"navigationBarTitleText": "资讯详情",
"disableScroll": false,
"app-plus": {
"bounce":"none"
}
}
},{
"path" : "pages/tabbar/cart",
"style" : {
"navigationBarTitleText": "购物车",

BIN
pages/.DS_Store

Binary file not shown.

286
pages/qHome/achievement.vue

@ -0,0 +1,286 @@
<template>
<view class="app">
<view class="menu">
<view class="menu-item" @click="currentTitle='打款业绩'">
<text class="menu-item-txt">打款业绩</text>
<view :style="{backgroundColor:currentTitle=='打款业绩'?'#EDAF8B':'white'}" class="menu-item-line"></view>
</view>
<view class="menu-item" @click="currentTitle='出货业绩'">
<text class="menu-item-txt">出货业绩</text>
<view :style="{backgroundColor:currentTitle=='出货业绩'?'#EDAF8B':'white'}" class="menu-item-line"></view>
</view>
<view class="separator-line"></view>
</view>
<view class="separator-section"></view>
<view class="achievement-head">
<view class="achievement-head-left">
<text class="achievement-head-time">2021年4月</text>
<text class="achievement-head-number">打款业绩99999.00</text>
</view>
<view class="achievement-head-right">
<text class="achievement-head-right-txt">全部</text>
<image class="achievement-head-right-img" src="/static/base/select.png"></image>
</view>
</view>
<!-- <view class="product-section">
<text class="prduct-title">轻未来超纤维阻燃粉轻未来超纤维阻燃粉轻未来超纤维阻燃粉</text>
<view class="product-des">
<view class="product-price">
<text class="product-price-sale">5999</text>
<text class="product-price-show">6999</text>
</view>
<text class="product-number">库存2000</text>
</view>
</view>
<view class="separator-section"></view>
<view class="product-detail">
<text class="product-detail-title">产品描述</text>
<view class="product-detail-wrap">
<text class="product-detail-txt">理想是未来事物的美好想象和希望也比喻对某事物榛于最完善境界的观念是人们在实践过程中形成的有实现可能性的对未来社会和自身发展的向往和追求价值观是基于人的一定的思维感官之上而作出的认知理解判断或抉择也就是认定事物判定是非的一种思维或取向本产本具有良好疗效</text>
</view>
<image class="product-detail-img" src="/static/shop/677088217d8a00aa.jpg"></image>
</view>
-->
<!-- <view class="shop-list">
<view class="shop-item">
<view class="shop-item-left">
<text class="shop-item-left-title">通知 | 关于轻未来超轻维阻燃粉外包装升级通知</text>
<text class="shop-item-left-time">2021年4月23日</text>
</view>
<image src="/static/shop/677088217d8a00aa.jpg" class="shop-item-img">
</image>
</view>
<view class="shop-item">
<view class="shop-item-left">
<text class="shop-item-left-title">通知 | 关于轻未来超轻维阻燃粉外包装升级通知</text>
<text class="shop-item-left-time">2021年4月23日</text>
</view>
<image src="/static/shop/677088217d8a00aa.jpg" class="shop-item-img">
</image>
</view>
<view class="shop-item">
<view class="shop-item-left">
<text class="shop-item-left-title">通知 | 关于轻未来超轻维阻燃粉外包装升级通知</text>
<text class="shop-item-left-time">2021年4月23日</text>
</view>
<image src="/static/shop/677088217d8a00aa.jpg" class="shop-item-img">
</image>
</view>
</view> -->
</view>
</template>
<script>
export default {
components: {
},
data() {
return {
currentTitle:'打款业绩',
navList: [],//
advertList: [],//广
hotList: [],//
indicatorDots: true,
autoplay: true,
interval: 2000,
duration: 500,
swipeImgs:['/static/shop/677088217d8a00aa.jpg','/static/shop/rem.jpg','/static/shop/b7f2be6053cc88b4.jpg']
}
},
computed: {
changeIndicatorDots(e) {
this.indicatorDots = !this.indicatorDots
},
changeAutoplay(e) {
this.autoplay = !this.autoplay
},
intervalChange(e) {
this.interval = e.target.value
},
durationChange(e) {
this.duration = e.target.value
},
midAdvert(){
if(this.advertList.length === 0) return {};
const res = this.advertList.filter(item=> item.advert_type === 'middle');
return res.length > 0 ? res[0]: {};
},
carousel(){
return this.advertList.filter(item=> item.advert_type === 'carousel');
}
},
onLoad() {
this.loadAdvert();
this.loadNavList();
setTimeout(()=>{
//this.navTo('/pages/address/list')
}, 1000)
},
methods: {
toStoreProduct(){
this.navTo(`/pages/yunProduct/storeProduct`)
},
//广 10
async loadAdvert(){
const res = await this.$request('advert', 'getAdvertList', {}, {
cache: 10*60
});
this.advertList = res.data;
this.log(res);
},
// 1
async loadNavList(){
const res = await this.$request('advert', 'getNavList', {}, {
cache: 60*60*0,
});
this.navList = res.data;
},
}
}
</script>
<style>
page{
background-color: white;
}
</style>
<style scoped lang="scss">
/* 分类 */
.menu{
display: flex;
flex-direction: row;
align-items: center;
background-color: white;
// background-color: yellow;
}
.menu-item{
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
flex:1;
}
.menu-item-txt{
width: 200rpx;
text-align: center;
display: block;
font-size: 15px;
font-weight: bold;
color: #333333;
height: 104rpx;
line-height: 104rpx;
}
.menu-item-line{
position: relative;
top: -20rpx;
background-color: #EDAF8B;
height:6rpx ;
width: 50rpx;
}
.separator-line{
position: absolute;
left: 49.98%;
width: 2rpx;
background-color:#333333 ;
height: 33rpx;
}
.separator-section{
background-color: $separatorColor;
height: 20rpx;
}
.achievement-head{
margin: 36rpx;
// width: 750rpx;
display: flex;
flex-direction: row;
justify-content: space-between;
align-items: center;
}
.achievement-head-time{
font-size: 18px;
// font-weight: 500;
color: #333333;
padding: 0rpx 0rpx 20rpx;
}
.achievement-head-number{
padding: 10rpx 0rpx 0rpx;
display: block;
font-size: 15px;
font-weight: 500;
color: #999999;
}
.achievement-head-right{
padding: 10rpx 10rpx 10rpx 25rpx;
background-color:#F5F5F5 ;
margin: 0rpx 10rpx 0rpx 0rpx;
border-radius: 6rpx;
}
.achievement-head-right-txt{
font-size: 13px;
font-weight: 500;
color: #333333;
}
.achievement-head-right-img{
position: relative;
top: 2rpx;
display: inline-block;
width: 20rpx;
height: 20rpx;
margin: 0rpx 10rpx;
}
</style>

25
pages/tabbar/home.vue

@ -13,15 +13,18 @@
<text class="triangle-topleft"></text>
<text class="date-txt">2021</text>
</view>
<view class="service-item">
<text class="service-number">100.00</text>
<text class="service-unit"></text>
</view>
<text class="service-title">服务业绩()</text>
<view class="charge-item">
<text class="charge-item-money">充值业绩10.00</text>
<text class="charge-item-money">本月营业额8000</text>
<view @click="toAchievement">
<view class="service-item">
<text class="service-number">100.00</text>
<text class="service-unit"></text>
</view>
<text class="service-title">服务业绩()</text>
<view class="charge-item">
<text class="charge-item-money">充值业绩10.00</text>
<text class="charge-item-money">本月营业额8000</text>
</view>
</view>
<view class="service-item">
@ -219,7 +222,11 @@
//this.navTo('/pages/address/list')
}, 1000)
},
methods: {
methods: {
toAchievement(){
this.navTo('/pages/qHome/achievement')
},
//广 10
async loadAdvert(){
const res = await this.$request('advert', 'getAdvertList', {}, {

18
pages/tabbar/shop.vue

@ -8,17 +8,17 @@
<swiper class="swiper" indicator-active-color="white" :indicator-dots="indicatorDots" :autoplay="autoplay" :interval="interval" :duration="duration">
<swiper-item>
<swiper-item @click="toYunProduct()">
<view class="swiper-item uni-bg-red">
<image class="swiper-img swiper-img-tt" src="/static/shop/677088217d8a00aa.jpg"></image>
</view>
</swiper-item>
<swiper-item>
<swiper-item @click="toYunProduct()">
<view class="swiper-item uni-bg-green">
<image class="swiper-img" src="/static/shop/rem.jpg"></image>
</view>
</swiper-item>
<swiper-item>
<swiper-item @click="toYunProduct()">
<view class="swiper-item uni-bg-blue">
<image class="swiper-img" src="/static/shop/b7f2be6053cc88b4.jpg"></image>
</view>
@ -35,7 +35,7 @@
<view class="shop-list">
<view class="shop-item" @click="toYunProduct">
<view class="shop-item" @click="toNewDetail">
<view class="shop-item-left">
<text class="shop-item-left-title">通知 | 关于轻未来超轻维阻燃粉外包装升级通知</text>
<text class="shop-item-left-time">2021年4月23日</text>
@ -44,7 +44,7 @@
</image>
</view>
<view class="shop-item" @click="toYunProduct">
<view class="shop-item" @click="toNewDetail">
<view class="shop-item-left">
<text class="shop-item-left-title">通知 | 关于轻未来超轻维阻燃粉外包装升级通知</text>
<text class="shop-item-left-time">2021年4月23日</text>
@ -53,7 +53,7 @@
</image>
</view>
<view class="shop-item" @click="toYunProduct">
<view class="shop-item" @click="toNewDetail">
<view class="shop-item-left">
<text class="shop-item-left-title">通知 | 关于轻未来超轻维阻燃粉外包装升级通知</text>
<text class="shop-item-left-time">2021年4月23日</text>
@ -88,7 +88,8 @@
indicatorDots: true,
autoplay: true,
interval: 2000,
duration: 500
duration: 500,
swipeImgs:['/static/shop/677088217d8a00aa.jpg','/static/shop/rem.jpg','/static/shop/b7f2be6053cc88b4.jpg']
}
},
computed: {
@ -122,6 +123,9 @@
}, 1000)
},
methods: {
toNewDetail(){
this.navTo(`/pages/yunProduct/newDetail`);
},
toYunProduct(){
let keyword=1
this.navTo(`/pages/yunProduct/detail?keyword=${keyword}`);

18
pages/yunProduct/detail.vue

@ -4,16 +4,13 @@
<text class="menu-txt" @click="toStoreProduct">云仓备货</text>
<text class="menu-txt" style="border-left-width: 0rpx;">云仓提货</text>
</view>
<swiper class="swiper" indicator-active-color="white" :indicator-dots="indicatorDots" :autoplay="autoplay" :interval="interval" :duration="duration">
<swiper-item>
<swiper-item v-for="(item,index) in swipeImgs" :key=index>
<view class="swiper-item uni-bg-red">
<image class="swiper-img swiper-img-tt" src="/static/shop/677088217d8a00aa.jpg"></image>
<image class="swiper-img swiper-img-tt" :src="item"></image>
</view>
</swiper-item>
<swiper-item>
<!-- <swiper-item>
<view class="swiper-item uni-bg-green">
<image class="swiper-img" src="/static/shop/rem.jpg"></image>
</view>
@ -22,7 +19,7 @@
<view class="swiper-item uni-bg-blue">
<image class="swiper-img" src="/static/shop/b7f2be6053cc88b4.jpg"></image>
</view>
</swiper-item>
</swiper-item> -->
</swiper>
@ -50,6 +47,9 @@
</view>
<!-- <view class="shop-list">
<view class="shop-item">
<view class="shop-item-left">
@ -99,7 +99,8 @@
indicatorDots: true,
autoplay: true,
interval: 2000,
duration: 500
duration: 500,
swipeImgs:['/static/shop/677088217d8a00aa.jpg','/static/shop/rem.jpg','/static/shop/b7f2be6053cc88b4.jpg']
}
},
computed: {
@ -179,6 +180,7 @@
display: flex;
flex-direction: row;
align-items: center;
background-color: white;
}
.menu-txt{
height: 90rpx;

119
pages/yunProduct/newDetail.vue

@ -0,0 +1,119 @@
<template>
<view class="app" style="margin: 10rpx 30rpx;">
<text class="new-title">一见倾心 | 轻未来2021大健康引领5G新店品牌战略盛典圆满成功</text>
<text class="new-time">2021年4月24日</text>
<image src="/static/shop/677088217d8a00aa.jpg" class="new-img"></image>
<text class="new-des">理想是未来事物的美好想象和希望也比喻对某事物榛于最完善境界的观念是人们在实践过程中形成的有实现可能性的对未来社会和自身发展的向往和追求价值观是基于人的一定的思维感官之上而作出的认知理解判断或抉择也就是认定事物判定是非的一种思维或取向本产本具有良好疗效理想是未来事物的美好想象和希望也比喻对某事物榛于最完善境界的观念是人们在实践过程中形成的有实现可能性的对未来社会和自身发展的向往和追求价值观是基于人的一定的思维感官之上而作出的认知理解判断或抉择也就是认定事物判定是非的一种思维或取向本产本具有良好疗效</text>
</view>
</template>
<script>
export default {
components: {
},
data() {
return {
navList: [],//
advertList: [],//广
hotList: [],//
indicatorDots: true,
autoplay: true,
interval: 2000,
duration: 500
}
},
computed: {
changeIndicatorDots(e) {
this.indicatorDots = !this.indicatorDots
},
changeAutoplay(e) {
this.autoplay = !this.autoplay
},
intervalChange(e) {
this.interval = e.target.value
},
durationChange(e) {
this.duration = e.target.value
},
midAdvert(){
if(this.advertList.length === 0) return {};
const res = this.advertList.filter(item=> item.advert_type === 'middle');
return res.length > 0 ? res[0]: {};
},
carousel(){
return this.advertList.filter(item=> item.advert_type === 'carousel');
}
},
onLoad() {
this.loadAdvert();
this.loadNavList();
setTimeout(()=>{
//this.navTo('/pages/address/list')
}, 1000)
},
methods: {
toStoreProduct(){
this.navTo(`/pages/yunProduct/storeProduct`)
},
//广 10
async loadAdvert(){
const res = await this.$request('advert', 'getAdvertList', {}, {
cache: 10*60
});
this.advertList = res.data;
this.log(res);
},
// 1
async loadNavList(){
const res = await this.$request('advert', 'getNavList', {}, {
cache: 60*60*0,
});
this.navList = res.data;
},
}
}
</script>
<style>
page{
background-color: white;
}
</style>
<style scoped lang="scss">
/* 分类 */
.new-title{
display: block;
line-height: 45rpx;
font-size: 15px;
font-weight: bold;
color: #333333;
margin: 50rpx 0rpx 0rpx;
}
.new-time{
display: block;
font-size: 13px;
font-weight: 500;
color: #999999;
text-align: right;
}
.new-img{
width: 100%;
height: 375rpx;
margin: 48rpx 0rpx 50rpx;
}
.new-des{
font-size: 13px;
font-weight: 500;
color: #999999;
}
</style>

5
pages/yunProduct/storeProduct.vue

@ -185,7 +185,8 @@
}
.product-left{
background-color:#F5F5F5 ;
height:calc(100vh - 200rpx);
height:calc(100vh - 95rpx);
// height:calc(100vh - 200rpx);
}
.product-left-item{
@ -308,6 +309,8 @@
.product-footer{
border-top: 1rpx solid $separatorColor;
position: absolute;
position: fixed;
// bottom: 32rpx;
bottom: 0rpx;
left: 0rpx;
right: 0rpx;

BIN
static/base/.DS_Store

Binary file not shown.

BIN
static/base/select.png

Binary file not shown.

After

Width: 128  |  Height: 128  |  Size: 2.1 KiB

Loading…
Cancel
Save