16 Commits

Author SHA1 Message Date
zmr900709
78169d8cde 解决样式问题 2020-08-20 14:24:17 +08:00
zmr900709
7f0d1063f0 Merge branch 'master' of http://git.luyuan.tk/luyuan/deming into zmr 2020-08-20 14:23:32 +08:00
zmr900709
c81ee7e961 1 2020-08-20 14:23:21 +08:00
6864f22576 Merge pull request '首页拼团商品显示不全' (#262) from zhy into master
Reviewed-on: http://git.luyuan.tk/luyuan/deming/pulls/262
2020-08-20 12:05:44 +08:00
a91fa4708b 首页拼团商品显示不全 2020-08-20 12:05:15 +08:00
bfffb44fe2 Merge pull request 'zhy' (#261) from zhy into master
Reviewed-on: http://git.luyuan.tk/luyuan/deming/pulls/261
2020-08-20 11:43:19 +08:00
16c2c1fa71 使用优惠券价格 2020-08-20 11:42:52 +08:00
4c8e2ba4b6 使用优惠券价格 2020-08-20 11:41:58 +08:00
96d7ad439a Merge pull request '优惠券列表显示,使用优惠券价格计算' (#259) from zhy into master
Reviewed-on: http://git.luyuan.tk/luyuan/deming/pulls/259
2020-08-20 11:29:22 +08:00
390bda7c0e 优惠券列表显示,使用优惠券价格计算 2020-08-20 11:28:49 +08:00
0ae19c2ddf Merge pull request 'touxiang' (#258) from xbx into master
Reviewed-on: http://git.luyuan.tk/luyuan/deming/pulls/258
2020-08-20 11:27:56 +08:00
26cb84748a touxiang 2020-08-20 11:26:59 +08:00
c6cd88dc48 Merge pull request 'xbx' (#257) from xbx into master
Reviewed-on: http://git.luyuan.tk/luyuan/deming/pulls/257
2020-08-20 11:10:11 +08:00
a34880e6a6 Merge branch 'master' of http://git.luyuan.tk/luyuan/deming into xbx 2020-08-20 11:09:49 +08:00
3d840a0546 修复了交易物流 2020-08-20 10:54:09 +08:00
e58f571de4 直播添加了下拉刷新 2020-08-20 10:16:40 +08:00
16 changed files with 123 additions and 72 deletions

View File

@@ -6,7 +6,7 @@
<u-icon name="play-circle-fill" color="#ffffff" size="20"></u-icon> <u-icon name="play-circle-fill" color="#ffffff" size="20"></u-icon>
<text>视频</text> <text>视频</text>
</view> </view>
<image class="head" :src="item.article_pic"></image> <image class="head" :src="item.article_pic" mode="aspectFill"></image>
</view> </view>
<view class="title" v-if="">{{ item.article_title }}</view> <view class="title" v-if="">{{ item.article_title }}</view>
<view class="jianjie">{{ item.article_content }}</view> <view class="jianjie">{{ item.article_content }}</view>
@@ -103,7 +103,7 @@
} }
} }
>image{ >image{
width: 37rpx; width: 35rpx;
height: 8rpx; height: 8rpx;
padding: 20rpx; padding: 20rpx;
} }

View File

@@ -1,5 +1,5 @@
<template> <template>
<view class="notice"> <view class="notice" :style="{height : height + 'px'}">
<view v-for="(item,index) in notice" :key="index" @click="gotoInfo(index)"> <view v-for="(item,index) in notice" :key="index" @click="gotoInfo(index)">
<view class="time_notice">{{ item.addtime }}</view> <view class="time_notice">{{ item.addtime }}</view>
<view class="notice_view"> <view class="notice_view">
@@ -36,6 +36,7 @@
margin: 0 auto; margin: 0 auto;
text-align: left; text-align: left;
line-height: 40rpx; line-height: 40rpx;
letter-spacing: 2rpx;
} }
.notice_view > view:nth-child(3){ .notice_view > view:nth-child(3){
height: 84rpx; height: 84rpx;
@@ -77,7 +78,8 @@
props: ['list'], props: ['list'],
data() { data() {
return { return {
notice : [] notice : [],
height : ''
}; };
}, },
watch: { watch: {
@@ -86,6 +88,8 @@
this.notice = newVal; this.notice = newVal;
} }
}, },
onLoad() {
},
methods: { methods: {
gotoInfo(index) { gotoInfo(index) {
console.log(index); console.log(index);

View File

@@ -13,7 +13,7 @@
<swiper :current="swiperCurrent" @animationfinish="animationfinish" style="height: 340rpx;"> <swiper :current="swiperCurrent" @animationfinish="animationfinish" style="height: 340rpx;">
<swiper-item class="swiper-item list" v-for="(_, i) in classifyList" :key="i"> <swiper-item class="swiper-item list" v-for="(_, i) in classifyList" :key="i">
<!-- 最多显示3个 --> <!-- 最多显示3个 -->
<view v-if="groupList[i]"> <view v-if="groupList[i]" class="group-container">
<sitem :info="info" v-for="(info, index) in groupList[i].slice(0, 3)" :key="index"></sitem> <sitem :info="info" v-for="(info, index) in groupList[i].slice(0, 3)" :key="index"></sitem>
</view> </view>
<u-empty text="暂无拼团商品" mode="list" color="#000" v-if="!groupList[i] || !groupList[i].length" style="margin: 0 auto;"></u-empty> <u-empty text="暂无拼团商品" mode="list" color="#000" v-if="!groupList[i] || !groupList[i].length" style="margin: 0 auto;"></u-empty>
@@ -61,7 +61,7 @@ export default {
gc_id: id, gc_id: id,
}).then(res => { }).then(res => {
this.groupList[this.current] = res.data; this.groupList[this.current] = res.data;
// console.log(this.groupList); console.log(this.groupList);
this.$forceUpdate(); this.$forceUpdate();
}) })
}, },
@@ -105,10 +105,12 @@ export default {
.list { .list {
box-sizing: border-box; box-sizing: border-box;
padding: 0 30rpx; padding: 0 30rpx;
display: flex; .group-container {
> view { display: flex;
&:not(:nth-child(3n)) { > view {
margin-right: 20rpx; &:not(:nth-child(3n)) {
margin-right: 20rpx;
}
} }
} }
} }

View File

@@ -1,7 +1,7 @@
<template> <template>
<view class="special"> <view class="special">
<view v-if="type == 'spike'" @click="spikeGoods"> <view v-if="type == 'spike'" @click="spikeGoods">
<image :src="item.groupbuy_image1"></image> <image :src="item.groupbuy_image1" mode="aspectFill"></image>
<view class="right"> <view class="right">
<view class="name u-line-1">{{ item.goods_name }}</view> <view class="name u-line-1">{{ item.goods_name }}</view>
<view class="price"> <view class="price">

View File

@@ -75,7 +75,7 @@
/* #endif */ /* #endif */
align-items: center; align-items: center;
flex-direction: column; flex-direction: column;
padding: 0 30rpx; // padding: 0 30rpx;
} }
.operat-span { .operat-span {

View File

@@ -158,13 +158,16 @@
display: flex; display: flex;
flex-wrap: wrap; flex-wrap: wrap;
.label { .label {
padding: 6rpx 10rpx; height: 40rpx;
margin: 0 10rpx 10rpx 0; padding: 4rpx 14rpx;
font-size: 24rpx; margin-right: 10rpx;
margin-bottom: 10rpx;
font-size: 26rpx;
text-align: center;
line-height: 38rpx;
color: #fff; color: #fff;
border-radius: 6rpx; border-radius: 10rpx;
background-color: #000000; background-color: rgba(0, 0, 0, .6);
opacity: 0.5;
} }
} }
} }

View File

@@ -631,6 +631,7 @@
font-size: 28rpx; font-size: 28rpx;
color: #333; color: #333;
lines: 2; lines: 2;
letter-spacing: 2rpx;
} }
.more-content-box { .more-content-box {
@@ -859,6 +860,7 @@
margin-bottom: 20rpx; margin-bottom: 20rpx;
lines: 1; lines: 1;
text-overflow: ellipsis; text-overflow: ellipsis;
letter-spacing: 2rpx;
} }
.centent { .centent {

View File

@@ -309,17 +309,7 @@ export default {
}, },
setTotalPrice() { setTotalPrice() {
const goods = this.orderInfo.store_goods_total; const goods = this.orderInfo.store_goods_total;
// console.log(this.freight); let [freight, price, minPrice] = [0, 0, 0];
let freight = 0, price = 0;
// 商品价格加上运费
// [goods, freight].forEach(object => {
// for (const key in object) {
// if (object.hasOwnProperty(key)) {
// const element = object[key];
// price += Number(element);
// }
// }
// })
// 运费 // 运费
for (const key in this.freight) { for (const key in this.freight) {
if (this.freight.hasOwnProperty(key)) { if (this.freight.hasOwnProperty(key)) {
@@ -327,28 +317,38 @@ export default {
freight += Number(element); freight += Number(element);
} }
} }
// 商品价格 // 商品价格减去优惠券
for (const key in goods) { // 店铺
if (goods.hasOwnProperty(key)) { for (const gid in goods) {
const element = goods[key]; if (goods.hasOwnProperty(gid)) {
price += Number(element); // 计算最小价格
minPrice += 0.01;
// 每个店铺所有商品的价格
let sprice = Number(goods[gid]);
if(JSON.stringify(this.storeCoupon) != '{}') {
for (const cid in this.storeCoupon) {
if (this.storeCoupon.hasOwnProperty(cid)) {
const cprice = this.storeCoupon[cid];
// 商品减去优惠券价格
if(gid == cid) {
sprice -= cprice.voucher_price;
// 每个店铺最低付款 0.01
if(sprice <= 0) sprice = 0.01;
}
}
}
}
// 所有商品总价
price += sprice;
} }
} }
// 减去优惠券
// 平台 // 平台
if(JSON.stringify(this.choiceCoupon) != '{}') price -= Number(this.choiceCoupon.voucher_price); if(JSON.stringify(this.choiceCoupon) != '{}') price -= Number(this.choiceCoupon.voucher_price);
// 店铺 // 每个店铺最低付款 0.01
if(JSON.stringify(this.storeCoupon) != '{}') { if(price <= minPrice) price = minPrice;
for (const key in this.storeCoupon) { // console.log("minPrice" + minPrice);
if (this.storeCoupon.hasOwnProperty(key)) { // console.log("freight:" + freight);
const element = this.storeCoupon[key]; // console.log("price:" + price);
price -= element.voucher_price;
}
}
}
// 最低付款 0.01
if(price <= 0) price = 0.01;
// console.log(price);
this.totalPrice = (price + freight).toFixed(2); this.totalPrice = (price + freight).toFixed(2);
}, },
setDelivery(index) { setDelivery(index) {

View File

@@ -81,7 +81,7 @@
padding: 39rpx 0 30rpx; padding: 39rpx 0 30rpx;
} }
.content{ .content{
width:630rpx; width:94%;
padding: 30rpx; padding: 30rpx;
background:rgba(255,255,255,1); background:rgba(255,255,255,1);
border-radius:20rpx; border-radius:20rpx;

View File

@@ -2,18 +2,18 @@
<view id="actives"> <view id="actives">
<!-- 活动消息推送 --> <!-- 活动消息推送 -->
<view class="activity" v-for="(item, index) in actives" :key="index"> <view class="activity" v-for="(item, index) in actives" :key="index">
<view class="times">{{item.type}}</view> <view class="times">{{item.kd_time}}</view>
<view class="content"> <view class="content">
<view class="store_name"> <view class="store_name">
<image src="../../pageE/static/mine/1.png"></image> <image :src="item.store_avatar"></image>
<view>小时代</view> <view>{{item.store_name}}</view>
</view> </view>
<view class="xiantiao"></view> <view class="xiantiao"></view>
<view class="title">{{item.name}}</view> <view class="title">{{item.title}}</view>
<view class="images_about"> <view class="images_about">
<image :src="item.url"></image> <image :src="item.picture"></image>
<view> <view>
<text>{{item.about}}</text> <text>{{item.summary}}</text>
</view> </view>
</view> </view>
</view> </view>
@@ -35,8 +35,9 @@
methods: { methods: {
getCartList() { getCartList() {
this.$u.post("message/orderDeliveryList",{page: this.page}).then(res => { this.$u.post("message/orderDeliveryList",{page: this.page}).then(res => {
console.log(res.data.data)
if (res.errCode == 0) { if (res.errCode == 0) {
this.actives == res.data; this.actives = res.data.data;
} }
}) })
} }
@@ -46,7 +47,10 @@
}; };
</script> </script>
<style lang="scss" scoped> <style lang="scss" >
page{
background-color: #ECECEC;
}
#actives{ #actives{
height: 100%; height: 100%;
} }

View File

@@ -1,5 +1,5 @@
<template> <template>
<view> <view id="viewes" :style="{height : height + 'px'}">
<!-- 公告咨询 --> <!-- 公告咨询 -->
<notice :list="list"></notice> <notice :list="list"></notice>
</view> </view>
@@ -15,6 +15,13 @@
}, },
onLoad() { onLoad() {
this.informationList(); this.informationList();
var _that = this
uni.getSystemInfo({
success: function (res) {
console.log(res.windowHeight);
_that.height = res.windowHeight
}
});
}, },
methods: { methods: {
titletext() {}, titletext() {},
@@ -36,7 +43,9 @@
page { page {
background-color: #ECECEC; background-color: #ECECEC;
} }
#viewes{
background: #ECECEC;
}
.sousuo { .sousuo {
height: 113rpx; height: 113rpx;
border: 1px #f00 solid; border: 1px #f00 solid;

View File

@@ -59,7 +59,7 @@
<div :class="[audio.visible ? 'record-icon record-open':'record-icon']" @click="switchAudioKeyboard"></div> <div :class="[audio.visible ? 'record-icon record-open':'record-icon']" @click="switchAudioKeyboard"></div>
<div class="record-input" @longpress="onRecordStart" @touchend="onRecordEnd" v-if="audio.visible" >{{audio.recording ? '松开发送' : '按住录音'}}</div> <div class="record-input" @longpress="onRecordStart" @touchend="onRecordEnd" v-if="audio.visible" >{{audio.recording ? '松开发送' : '按住录音'}}</div>
<div class="message-input" v-else> <div class="message-input" v-else>
<input type="text" placeholder="发送消息" v-model="content"> <input type="text" placeholder="发送消息" v-model="content" @click="bindtapInput">
</div> </div>
<div class="file-icon img-video" @click="sendImage"></div> <div class="file-icon img-video" @click="sendImage"></div>
<div class="file-icon" @click="sendVideo"></div> <div class="file-icon" @click="sendVideo"></div>
@@ -84,6 +84,7 @@
return { return {
//聊天文本框 //聊天文本框
content: '', content: '',
bottom : '',
friend: null, friend: null,
currentUser: null, currentUser: null,
//已经接收到的消息 //已经接收到的消息
@@ -154,6 +155,11 @@
this.imService.resetFriendUnReadMessage(this.friend); this.imService.resetFriendUnReadMessage(this.friend);
}, },
methods: { methods: {
bindtapInput(){
console.log("222")
var _that = this;
_that.bottom = 14
},
initialListeners () { initialListeners () {
//传入监听器,收到一条私聊消息总是滚到到页面底部 //传入监听器,收到一条私聊消息总是滚到到页面底部
this.imService.onNewPrivateMessageReceive = (friendId, message)=> { this.imService.onNewPrivateMessageReceive = (friendId, message)=> {

View File

@@ -12,8 +12,8 @@
</view> </view>
<view class="version-view"> <view class="version-view">
<text class="title">版本更新</text> <text class="title">版本更新</text>
<text class="tips" v-if="0">已是最新版本</text> <text class="tips" v-if="1">已是最新版本</text>
<text class="tips" v-else @click="updateVersion">1.1.10</text> <text class="tips" v-else @click="updateVersion">发现新版本</text>
</view> </view>
</view> </view>
</view> </view>

View File

@@ -61,6 +61,7 @@ export default {
}) })
}, },
async getMemberCouponList({ load = 'reload' }) { async getMemberCouponList({ load = 'reload' }) {
if(load == 'reload') this.page = 0;
const res = await this.$u.api.getMemberCouponList({ const res = await this.$u.api.getMemberCouponList({
status: this.current + 1, // 代金券状态 1:未用 2:已用 3:过期 4:收回 status: this.current + 1, // 代金券状态 1:未用 2:已用 3:过期 4:收回
page: this.page, page: this.page,

View File

@@ -39,7 +39,8 @@
</scroll-view> </scroll-view>
</swiper-item> </swiper-item>
<swiper-item> <swiper-item>
<scroll-view style="width:100%;height:100%" scroll-y="true" @scrolltolower="swiperBottomLive(e)"> <scroll-view style="width:100%;height:100%" scroll-y="true" @scrolltolower="swiperBottomLive(e)" :refresher-enabled="true" @refresherrefresh="dianji(1)" :refresher-triggered="refresher" @refresherpulling="onPulling"
@refresherrestore="onRestore" @refresherabort="onAbort">
<view class="box"> <view class="box">
<u-swiper mode="dot" :list="zhiboImageSwiper" name="adv_code" @click="clickSImage($event, 2)"></u-swiper> <u-swiper mode="dot" :list="zhiboImageSwiper" name="adv_code" @click="clickSImage($event, 2)"></u-swiper>
<view class="list"> <view class="list">
@@ -261,6 +262,7 @@
loading: '努力加载中', loading: '努力加载中',
nomore: '实在没有了' nomore: '实在没有了'
}, },
refresher:true
} }
}, },
components: { components: {
@@ -356,6 +358,7 @@
this.$u.api.tabLiveList({page:this.live_page}).then((res) => { this.$u.api.tabLiveList({page:this.live_page}).then((res) => {
// uni.stopPullDownRefresh(); // uni.stopPullDownRefresh();
this.status_live = "loading"; this.status_live = "loading";
this.refresher = false;
console.log(res) console.log(res)
if (res.errCode == 0) { if (res.errCode == 0) {
uni.hideLoading(); uni.hideLoading();
@@ -410,7 +413,8 @@
}, },
// 切换导航 // 切换导航
dianji(a) { dianji(a) {
// console.log(a); console.log(a);
if (a.type == "change") { if (a.type == "change") {
this.num = a.detail.current; this.num = a.detail.current;
} else { } else {
@@ -418,7 +422,7 @@
} }
// console.log(this.num); // console.log(this.num);
// 状态请求 // 状态请求
if (a.type == "change") { // 强制请求一次 if (a.type == "change" || this.num == 1) { // 强制请求一次
if (this.num == 0) { if (this.num == 0) {
this.page = 1; this.page = 1;
this.articleList = []; this.articleList = [];
@@ -429,7 +433,7 @@
this.live_page = 1; this.live_page = 1;
this.status_live = "nomore"; this.status_live = "nomore";
this.getZhiBoSwiper(); // 直播轮播 this.getZhiBoSwiper(); // 直播轮播
this.tabLiveList(); this.tabLiveList();
} else if (this.num == 2) { } else if (this.num == 2) {
this.follow_page = 0; this.follow_page = 0;
this.fansList = []; this.fansList = [];
@@ -558,6 +562,16 @@
} }
}) })
}, },
onPulling(e) {
console.log("onpulling", e);
},
onRestore() {
this.refresher = 'restore'; // 需要重置
console.log("onRestore");
},
onAbort() {
console.log("onAbort");
},
jumpPage(uri) { jumpPage(uri) {
// console.log(uri); // console.log(uri);
common.jumpPage({ type: uri.type, id: uri.id }); common.jumpPage({ type: uri.type, id: uri.id });

View File

@@ -54,7 +54,9 @@
<view v-for="(item, index) in orderList" :key="index" @click="toOtherPage(item.link)"> <view v-for="(item, index) in orderList" :key="index" @click="toOtherPage(item.link)">
<image :src="item.img"></image> <image :src="item.img"></image>
<view>{{ item.title }}</view> <view>{{ item.title }}</view>
<view class="order-num" v-if="item.number">{{ item.number }}</view> <view class="order-num" v-if="item.number">
<text>{{ item.number }}</text>
</view>
</view> </view>
<!-- <view @click="toOtherPage('/order/Index?current=1')"> <!-- <view @click="toOtherPage('/order/Index?current=1')">
<image src="/static/image/mine/6.png"></image> <image src="/static/image/mine/6.png"></image>
@@ -209,7 +211,7 @@ export default {
this.getOrderNumber(); this.getOrderNumber();
}, },
onNavigationBarButtonTap(e) { onNavigationBarButtonTap(e) {
console.log(e); // console.log(e);
if(e.index == 0) this.$u.route('/pageE/setting/Index'); if(e.index == 0) this.$u.route('/pageE/setting/Index');
}, },
methods: { methods: {
@@ -237,7 +239,7 @@ export default {
}) })
}, },
toOtherPage(url) { toOtherPage(url) {
console.log(url); // console.log(url);
uni.navigateTo({ uni.navigateTo({
url: '/pageE' + url url: '/pageE' + url
}); });
@@ -410,11 +412,15 @@ export default {
align-items: center; align-items: center;
justify-content: space-between; justify-content: space-between;
position: relative; position: relative;
.order-num { .order-num{
z-index: 9;
position: absolute; position: absolute;
top: -12rpx; top: -12rpx;
right: -16rpx; right: -38rpx;
width: 50rpx;
}
.order-num > text {
z-index: 9;
float: left;
border: 1rpx solid #FF7807; border: 1rpx solid #FF7807;
height: 24rpx; height: 24rpx;
border-radius: 12rpx; border-radius: 12rpx;