This commit is contained in:
weipengfei 2024-02-20 16:52:33 +08:00
parent 78a818552d
commit 069a5993b2
11 changed files with 167 additions and 128 deletions

View File

@ -101,7 +101,8 @@
title: '用户登录',
info: '请登录,将为您提供更好的服务!',
//#ifdef H5
isWeixin: this.$wechat.isWeixin(),
// isWeixin: this.$wechat.isWeixin(),
isWeixin: false, //
//#endif
//#ifdef MP
title: '授权提醒',

View File

@ -11,7 +11,7 @@
</view>
<view v-if="isPresell" class="money presell_price">
<view>
预售价
<!-- 预售价 -->
<text class="num">{{ attr.productSelect.price }}</text>
<text v-if="presell_type === 2">定金¥<text class="num">{{ attr.productSelect.down_price }}</text></text>
</view>

View File

@ -51,7 +51,10 @@ export function toLogin(push, pathLogin) {
Cache.set('login_back_url', path);
// #ifdef H5
if (isWeixin()) {
auth.oAuth();
// auth.oAuth();
uni.navigateTo({
url: '/pages/users/login/login_copy',
})
} else {
if (path !== pathLogin) {
push ? uni.navigateTo({

View File

@ -2,8 +2,8 @@
"name" : "惠农生活",
"appid" : "__UNI__3A527D1",
"description" : "",
"versionName" : "1.8.7",
"versionCode" : 187,
"versionName" : "1.8.8",
"versionCode" : 188,
"transformPx" : false,
/* 5+App */
"app-plus" : {

View File

@ -167,7 +167,7 @@ import { Toast } from '../../../libs/uniApi.js';
that.getPresellProductList();
},
goDetails(item) {
if(!item.type) return this.$refs.tipspopupRef.open(); // type
// if(!item.type) return this.$refs.tipspopupRef.open(); // type
uni.navigateTo({
url: '/pages/activity/presell_details/index?id=' + item.product_presell_id
})
@ -423,7 +423,10 @@ import { Toast } from '../../../libs/uniApi.js';
font-size: 24rpx;
color: #616161;
width: 240rpx;
height: 96rpx;
// height: 96rpx;
display: -webkit-box;
-webkit-box-orient: vertical;
-webkit-line-clamp: 3; /* 指定显示三行 */
overflow: hidden;
text-overflow: ellipsis;
}

View File

@ -26,7 +26,7 @@
<view v-else class='money p-color skeleton-rect'>
<text class='num'>{{presellInfo.price}}</text>
<text class="price_text">预售价</text>
<!-- <text class="price_text">预售价</text> -->
</view>
<view @click="listenerActionSheet" class="fenxiang_btn">
<view class='iconfont icon-fenxiang'></view>
@ -34,14 +34,15 @@
</view>
</view>
<view class='label acea-row skeleton-rect'>
<view>市场价:{{storeInfo.price || ''}}</view>
<view style="margin-left: 30rpx;">已预定:{{presellInfo.seles}}{{ storeInfo.unit_name }}</view>
<!-- <view>市场价:{{storeInfo.price || ''}}</view>
<view style="margin-left: 30rpx;">已预定:{{presellInfo.seles}}</view> -->
<view v-if="storeInfo.unit_name&&storeInfo.unit_name!='无'">单位: {{ storeInfo.unit_name }}</view>
</view>
<view v-if="!storeInfo.atmosphere_pic" class='introduce skeleton-rect'>
<text v-if="(storeInfo.merchant && storeInfo.merchant.type_name)" class="font-bg-red">{{storeInfo.merchant.type_name}}</text>
<text v-else-if="(storeInfo.merchant && storeInfo.merchant.is_trader)" class="font-bg-red">自营</text>
{{presellInfo.store_name}}</view>
<view class="presell_count">
<view class="presell_count" v-if="false">
<view>
<view>预售活动时间</view>
<view v-if="presellInfo.start_time && presellInfo.end_time" class="presell_time">
@ -72,6 +73,9 @@
预售结束后{{ presellInfo.delivery_day }}天内发货
</view>
</view>
<view class="presell_count" style="white-space: pre;font-size: 24rpx;">
<view v-html="presellInfo.store_info"></view>
</view>
<view class='coupon acea-row row-between-wrapper skeleton-rect' @click='couponTap' style="margin-top: 20rpx;">
<view class='hide line1 acea-row'>
优惠券
@ -207,7 +211,25 @@
<view class='product-intro' id="past3">
<view class='title'>产品介绍</view>
<view class='conter' v-if="description">
<jyf-parser :domain="domain" :html="description.content" ref="article" :tag-style="tagStyle"></jyf-parser>
<!-- <jyf-parser :domain="domain" :html="description.content" ref="article" :tag-style="tagStyle"></jyf-parser> -->
<!-- #ifndef APP-PLUS -->
<jyf-parser v-if="description.type == 0 && typeof description.content == 'string'" :domain='domain'
:html="description.content.replace(/<br\/>/ig, '')" ref="article"
:tag-style="tagStyle"></jyf-parser>
<!-- #endif -->
<!-- #ifdef APP-PLUS -->
<view v-if="description.type == 0 && typeof description.content == 'string'" class="description"
v-html="description.content.replace(/<br\/>/ig, '')"></view>
<!-- #endif -->
<view v-else class="product_content">
<view v-if="description.content && description.content.title" class="product_content_title">
{{description.content.title}}
</view>
<block v-if="description.content && description.content.image">
<image v-for="(item,index) in description.content.image" :key="index" :src="item" mode="widthFix" style="background-color: #fff;width: 100vw;">
</image>
</block>
</view>
</view>
<!-- 价格说明 -->
<view v-if="priceRule.content" class="price-info">
@ -1275,6 +1297,7 @@
*
*/
downloadFilePromotionCode: function(successFn) {
return ;
let that = this;
let type;
// #ifndef MP
@ -2336,4 +2359,20 @@
}
}
}
.product_content{
background-color: #fff;
&_title{
width: 100%;
height: auto;
line-height: 50rpx;
padding: 28rpx;
word-wrap: break-word;
text-align: center;
}
image{
width: 750rpx;
// height: auto;
// height: 750rpx;
}
}
</style>

View File

@ -159,7 +159,8 @@
<activityCard @close="closeActivityCard"></activityCard>
</uni-popup>
<activityHome :showClose="false" @click="navgo(`/pages/newActivity/towPrice/towPrice?street_id=${street_id}&townName=${street}`)"></activityHome>
<!-- <activityHome :showClose="false" @click="navgo(`/pages/newActivity/towPrice/towPrice?street_id=${street_id}&townName=${street}`)"></activityHome> -->
<!-- <m-tabbar native>
<template v-slot:tabbar_index_2>
<view class="custom_style">
@ -302,9 +303,9 @@ import activityCard from "@/components/activityCard.vue"
})
this.selfLocation();
this.$nextTick(()=>{
this.$refs.activityPopup.open();
})
// this.$nextTick(()=>{
// this.$refs.activityPopup.open();
// })
},

View File

@ -15,30 +15,25 @@
v-for="(item, index) in changeList" :key="index">
<image class="item_pic" :src="item.pic"></image>
<view class="item_content">
<view class="top">
<view class="top_left"><text class="c_icon">¥</text> <text class="c_content">{{item.count}}</text> <text class="tips">现在购买礼包即送</text></view>
<view class="top_right">
<text>数量: </text>
<view @click="reduce(item)">- </view>
<view>{{item.num}} </view>
<view @click="append(item)">+ </view>
</view>
</view>
<view class="bottom">
<view class="bottom_item">
<image src="https://lihai001.oss-cn-chengdu.aliyuncs.com/public/uploads/new_activity/re_redpacket.webp"></image>
<view class="text">{{tipType[red_type].red1}}</view>
</view>
<view class="bottom_item">
<image src="https://lihai001.oss-cn-chengdu.aliyuncs.com/public/uploads/new_activity/re_redpacket.webp"></image>
<view class="text">{{tipType[red_type].red2}}</view>
</view>
<view class="top_left"><text class="c_icon">¥</text> <text class="c_content">{{item.count}}</text></view>
<view class="top_right">
<text>数量: </text>
<view @click="reduce(item)">- </view>
<view style="width: 80rpx;">{{item.num}} </view>
<view @click="append(item)">+ </view>
</view>
</view>
</view>
</view>
</view>
</view>
<view class="a_tips">
<view>礼包说明</view>
<view>购买1000-4999元礼包补贴对应金额5%的现金抵扣红包</view>
<view>购买5000-9999元礼包补贴对应金额10%的现金抵扣红包</view>
<view>购买10000-49999元礼包补贴对应金额15%的现金抵扣红包</view>
<view>购买50000-100000元礼包补贴对应金额20%的现金抵扣红包</view>
</view>
</view>
<view class="footer">
<view class="f_tip">
@ -53,23 +48,19 @@
<view class="ref_ref">
<view class="ref_top">
购买礼包金额达到
<text v-if="red_type==0">100-2000</text>
<text v-if="red_type==1">2001-4000</text>
<text v-if="red_type==2">4001-20000</text>
!
<text v-if="red_type==0">1000-4999</text>
<text v-if="red_type==1">5000-9999</text>
<text v-if="red_type==2">10000-49999</text>
<text v-if="red_type==3">50000-100000</text>
</view>
<view class="ref_center">
赠送红包变为
</view>
<view class="ref_bottom">
<view class="bottom_item">
<view class="bottom_item" style="width: 100%;">
<image src="https://lihai001.oss-cn-chengdu.aliyuncs.com/public/uploads/new_activity/re_redpacket.webp"></image>
<view class="text">{{tipType[red_type].red1}}</view>
</view>
<view class="bottom_item">
<image src="https://lihai001.oss-cn-chengdu.aliyuncs.com/public/uploads/new_activity/re_redpacket.webp"></image>
<view class="text">{{tipType[red_type].red2}}</view>
</view>
</view>
</view>
</uni-popup>
@ -109,22 +100,22 @@
changeList: [
{
count: 100, //
pic: 'https://lihai001.oss-cn-chengdu.aliyuncs.com/public/uploads/new_activity/a_re_item1.webp',
pic: 'https://lihai001.oss-cn-chengdu.aliyuncs.com/public/uploads/new_activity/a_re_item5.webp',
num: 0, //
},
{
count: 200,
pic: 'https://lihai001.oss-cn-chengdu.aliyuncs.com/public/uploads/new_activity/a_re_item2.webp',
pic: 'https://lihai001.oss-cn-chengdu.aliyuncs.com/public/uploads/new_activity/a_re_item6.webp',
num: 0, //
},
{
count: 500,
pic: 'https://lihai001.oss-cn-chengdu.aliyuncs.com/public/uploads/new_activity/a_re_item3.webp',
pic: 'https://lihai001.oss-cn-chengdu.aliyuncs.com/public/uploads/new_activity/a_re_item7.webp',
num: 0, //
},
{
count: 1000,
pic: 'https://lihai001.oss-cn-chengdu.aliyuncs.com/public/uploads/new_activity/a_re_item4.webp',
pic: 'https://lihai001.oss-cn-chengdu.aliyuncs.com/public/uploads/new_activity/a_re_item8.webp',
num: 0, //
}
],
@ -136,19 +127,22 @@
recordList: [],
tipType: [
{
red1: '8%无门槛红包',
red2: '42%现金抵扣红包'
red1: '5%的现金抵扣红包',
},
{
red1: '12%无门槛红包',
red2: '68%现金抵扣红包'
red1: '10%的现金抵扣红包',
},
{
red1: '15%无门槛红包',
red2: '85%现金抵扣红包'
red1: '15%的现金抵扣红包',
},
{
red1: '20%的现金抵扣红包',
},
{
red1: '',
},
],
red_type: 0,
red_type: 4,
where: {
page: 1,
limit: 15,
@ -222,30 +216,44 @@
changeItem(e, index) {
this.nowPrice = e;
this.nowChange = index;
if (this.priceCount * this.nowPrice > 20000) {
this.priceCount = Math.floor(20000 / this.nowPrice);
return Toast('不可超过2万元');
if (this.priceCount * this.nowPrice > 100000) {
this.priceCount = Math.floor(100000 / this.nowPrice);
return Toast('不可超过10万元');
}
},
append(item) {
if(this.total + item.count >=2001 && this.total + item.count <=4000 && this.red_type != 1){
if(this.total + item.count >=0 && this.total + item.count <1000) this.red_type = 4;
else if(this.total + item.count >=1000 && this.total + item.count <=4999 && this.red_type != 0){
this.red_type = 0;
this.$refs.redTipsRef.open();
}else if(this.total + item.count >=5000 && this.total + item.count <=9999 && this.red_type != 1){
this.red_type = 1;
this.$refs.redTipsRef.open();
}else if(this.total + item.count >=4001 && this.total + item.count <=20000 && this.red_type != 2){
}else if(this.total + item.count >=10000 && this.total + item.count <=49999 && this.red_type != 2){
this.red_type = 2;
this.$refs.redTipsRef.open();
}else if(this.total + item.count >=50000 && this.total + item.count <=100000 && this.red_type != 3){
this.red_type = 3;
this.$refs.redTipsRef.open();
}
if (this.total + item.count > 20000 || this.total>=20000) {
return Toast('不可超过2万元');
if (this.total + item.count > 100000 || this.total>=100000) {
return Toast('不可超过10万元');
} else item.num++;
},
reduce(item) {
if(this.total - item.count >=100 && this.total - item.count <=2000 && this.red_type != 0){
if(this.total - item.count >=0 && this.total - item.count <1000) this.red_type = 4;
else if(this.total - item.count >=1000 && this.total - item.count <=4999 && this.red_type != 0){
this.red_type = 0;
this.$refs.redTipsRef.open();
}else if(this.total - item.count >=2001 && this.total - item.count <=4000 && this.red_type != 1){
}else if(this.total - item.count >=5000 && this.total - item.count <=9999 && this.red_type != 1){
this.red_type = 1;
this.$refs.redTipsRef.open();
}else if(this.total - item.count >=10000 && this.total - item.count <=49999 && this.red_type != 2){
this.red_type = 2;
this.$refs.redTipsRef.open();
}else if(this.total - item.count >=50000 && this.total - item.count <=100000 && this.red_type != 3){
this.red_type = 3;
this.$refs.redTipsRef.open();
}
if (this.total==0||item.num==0) return Toast('不能再少啦');
else item.num--;
@ -715,13 +723,14 @@
width: 700rpx;
margin: 0 auto;
display: flex;
flex-direction: column;
justify-content: space-between;
flex-wrap: wrap;
.change_item {
width: 700rpx;
width: 335rpx;
height: 172rpx;
text-align: center;
background-color: #f7f7f7;
// background-color: #f7f7f7;
border-radius: 20rpx 20rpx 20rpx 20rpx;
font-size: 40rpx;
position: relative;
@ -741,70 +750,47 @@
left: 0;
top: 0;
width: 100%;
height: 100%;
height: 172rpx;
display: flex;
flex-direction: column;
justify-content: space-between;
.top{
.top_left{
font-size: 58rpx;
color: #ffc53d;
display: flex;
justify-content: space-between;
align-items: center;
height: 70rpx;
.top_left{
font-size: 58rpx;
color: #ffc53d;
display: flex;
align-content: center;
.tips{
font-size: 24rpx;
border: 5rpx solid #ffc53d;
margin-left: 20rpx;
padding: 5rpx 15rpx;
border-radius: 60rpx;
color: #7C5906;
}
.c_content{
padding-top: 10rpx;
}
.c_icon {
padding-top: 15rpx;
font-size: 36rpx;
}
align-content: center;
.tips{
font-size: 24rpx;
border: 5rpx solid #ffc53d;
margin-left: 20rpx;
padding: 5rpx 15rpx;
border-radius: 60rpx;
color: #7C5906;
}
.top_right{
display: flex;
align-items: center;
color: #FF3A32;
text{
font-size: 28rpx;
}
view{
height: 60rpx;
width: 40rpx;
text-align: center;
line-height: 60rpx;
}
.c_content{
padding-top: 10rpx;
}
.c_icon {
padding-top: 15rpx;
font-size: 36rpx;
}
}
.bottom{
font-size: 28rpx;
.top_right{
display: flex;
align-items: center;
color: #FF3A32;
.bottom_item{
flex: 1;
display: flex;
align-items: center;
image{
width: 32rpx;
height: 40rpx;
}
.text{
padding-left: 15rpx;
}
text{
font-size: 28rpx;
}
view{
height: 60rpx;
width: 40rpx;
text-align: center;
line-height: 60rpx;
}
}
}
}
@ -820,6 +806,11 @@
}
.a_tips{
color: #FF8056;
padding: 0 30rpx;
line-height: 40rpx;
}
}

View File

@ -188,9 +188,9 @@
<button form-type="submit" @click="auth_token = ''" class="confirmBnt back">返回</button>
</view>
</form>
<view class="copyright" @click="goCopyUrl">
<!-- <view class="copyright" @click="goCopyUrl">
{{ copyright.status == -1 ? `${copyright.year} ${copyright.url}` : copyright.Copyright }}
</view>
</view> -->
<Verify @success="success" :captchaType="'blockPuzzle'" :imgSize="{ width: '330px', height: '155px' }"
ref="verify"></Verify>
@ -384,7 +384,7 @@
// #endif
goCopyUrl() {
// #ifdef H5
location.href = 'http://' + this.copyright.url
// location.href = 'http://' + this.copyright.url
// #endif
},
userAgree() {
@ -1290,14 +1290,14 @@
}
.copyright {
position: fixed;
position: absolute;
bottom: 30rpx;
left: 0;
width: 100%;
text-align: center;
font-size: 20rpx;
line-height: 28rpx;
color: #FFFFFF;
color: #ccc;
.cell {
// margin-left: 6rpx;

View File

@ -36,18 +36,19 @@
<view v-if="goods.product_type == 2">
<view class="product-item">
<view class="img-box">
<image :src="goods.productPresellAttr.image || goods.product.image"></image>
<image :src="(goods.productPresellAttr&&goods.productPresellAttr.image) || (goods.product&&goods.product.image)"></image>
</view>
<view class="content event_content">
<view class="name line1"><text
class="event_name event_bg">预售</text>{{goods.productPresell.store_name}}
<view class="name line1">
<!-- <text class="event_name event_bg">预售</text> -->
{{goods.productPresell.store_name}}
</view>
<view class="label" style="width: 70%;">{{goods.productAttr.sku}}</view>
<view class="price">
<view class="price" v-if="goods.productPresellAttr">
{{goods.productPresellAttr.presell_price}}
<text>X{{goods.cart_num}}</text>
</view>
<view class="event_ship event_color">发货时间
<view class="event_ship event_color" v-if="false">发货时间
<!--全款预售-->
<text
v-if="goods.productPresell.presell_type === 1">{{goods.productPresell.delivery_type === 1 ? '支付后' : '预售结束后'}}{{ goods.productPresell.delivery_day }}天内</text>

View File

@ -135,7 +135,7 @@
<!--#endif-->
</view>
<!-- #ifdef H5 -->
<view class="logOut acea-row row-center-wrapper" @click="outLogin" v-if="!this.$wechat.isWeixin()">退出登录</view>
<view class="logOut acea-row row-center-wrapper" @click="outLogin">退出登录</view>
<!-- #endif -->
<!-- #ifdef MP || APP-PLUS -->
<view class="logOut acea-row row-center-wrapper" @click="outLogin">退出登录</view>