更新
This commit is contained in:
parent
afec5c706d
commit
3ca2637490
@ -12,8 +12,8 @@ let httpApiSix
|
|||||||
let wsApi
|
let wsApi
|
||||||
|
|
||||||
// 在打包之前请检查当前环境是否正确
|
// 在打包之前请检查当前环境是否正确
|
||||||
const env = 'dev'; // 开发
|
// const env = 'dev'; // 开发
|
||||||
// const env = 'prod'; // 生产
|
const env = 'prod'; // 生产
|
||||||
// const env = 'prew'; // 预上线
|
// const env = 'prew'; // 预上线
|
||||||
|
|
||||||
switch (env) {
|
switch (env) {
|
||||||
|
@ -2,8 +2,8 @@
|
|||||||
"name" : "惠农生活",
|
"name" : "惠农生活",
|
||||||
"appid" : "__UNI__3A527D1",
|
"appid" : "__UNI__3A527D1",
|
||||||
"description" : "",
|
"description" : "",
|
||||||
"versionName" : "1.8.6",
|
"versionName" : "1.8.7",
|
||||||
"versionCode" : 186,
|
"versionCode" : 187,
|
||||||
"transformPx" : false,
|
"transformPx" : false,
|
||||||
/* 5+App特有相关 */
|
/* 5+App特有相关 */
|
||||||
"app-plus" : {
|
"app-plus" : {
|
||||||
|
@ -1636,6 +1636,7 @@
|
|||||||
"navigationBarTitleText": "预售列表"
|
"navigationBarTitleText": "预售列表"
|
||||||
// #ifdef MP || APP-PLUS
|
// #ifdef MP || APP-PLUS
|
||||||
,
|
,
|
||||||
|
"navigationStyle": "custom",
|
||||||
"navigationBarBackgroundColor": "#F2F2F2"
|
"navigationBarBackgroundColor": "#F2F2F2"
|
||||||
// #endif
|
// #endif
|
||||||
}
|
}
|
||||||
|
@ -1,67 +1,58 @@
|
|||||||
<template>
|
<template>
|
||||||
<view class="container" :style="viewColor">
|
<view class="container" :style="viewColor">
|
||||||
<view class='flash-sale'>
|
<view class='flash-sale'>
|
||||||
<!-- #ifdef H5 -->
|
|
||||||
<view class="fixed-head">
|
<view class="fixed-head">
|
||||||
<view class="sys-head" :style="{height:statusBarHeight}"></view>
|
|
||||||
<view class="tool-bar">
|
<view class="tool-bar">
|
||||||
<view class='iconfont icon-xiangzuo' @tap='goBack'></view>
|
<view class='iconfont icon-xiangzuo' @tap='goBack'></view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<!-- #endif -->
|
|
||||||
<view class='header'>
|
<view class='header'>
|
||||||
<image mode="widthFix" class="presellBg" :src="domain+'/static/diy/presell_title'+keyColor+'.png'" alt="">
|
<!-- <image mode="widthFix" class="presellBg" :src="domain+'/static/diy/presell_title'+keyColor+'.png'" alt=""> -->
|
||||||
|
<image mode="widthFix" class="presellBg" src="https://lihai001.oss-cn-chengdu.aliyuncs.com/public/uploads/home_img/nongzinongju_bg.webp" alt="">
|
||||||
</view>
|
</view>
|
||||||
<view class="main_count">
|
<view class="main_count">
|
||||||
<view class="presellList acea-row row-between-wrapper">
|
|
||||||
<view class='timeList'>
|
|
||||||
<block v-for="(item,index) in timeList" :key='index'>
|
|
||||||
<view @tap='settimeList(item,index)' class='item' :class="active == index?'on':''">
|
|
||||||
<view class='time'><text>{{item}}</text></view>
|
|
||||||
</view>
|
|
||||||
</block>
|
|
||||||
</view>
|
|
||||||
</view>
|
|
||||||
<view class='list'>
|
<view class='list'>
|
||||||
<block v-for="(item,index) in presellList" :key='index'>
|
<block v-for="(item,index) in presellList" :key='index'>
|
||||||
<view class='item acea-row row-between-wrapper' @tap='goDetails(item)'>
|
<view class='item acea-row row-between-wrapper' @tap='goDetails(item)'>
|
||||||
<view class='pictrue'>
|
<view class='pictrue'>
|
||||||
<image :src='item.product.image'></image>
|
<image :src='item.product.image'></image>
|
||||||
</view>
|
</view>
|
||||||
<view class='text acea-row row-column-around'>
|
<view class='text acea-row row-column-around' style="justify-content: space-between;display: flex;flex-direction: column;height: 100%;padding: 20rpx 0;">
|
||||||
<view class='name line1'>{{item.store_name}}</view>
|
<view class='name line1'>{{item.store_name}}</view>
|
||||||
<view class='booking'>
|
<view class="card_price">
|
||||||
<text v-if="item.presell_type != 0 && active != 0" class="count" style="color: #BFBFBF;">已预定{{item.seles ? item.seles : 0}}{{item.product.unit_name}}</text>
|
<text class="card_small">¥</text>
|
||||||
<text v-else style="color: #999; font-size: 24rpx;">暂未开始</text>
|
<text>{{item.price}}</text>
|
||||||
</view>
|
</view>
|
||||||
<view v-if="item.coupon" class='coupon acea-row row-between-wrapper' style="margin-top: 14rpx;">
|
|
||||||
<view class='hide line1 acea-row'>
|
<view class="card_bottom" >
|
||||||
<view class='activity'>满{{item.coupon.use_min_price}}减{{item.coupon.coupon_price}}</view>
|
<view class="card_left">
|
||||||
</view>
|
<view style="white-space: pre-wrap;" v-html="item.store_info"></view>
|
||||||
</view>
|
<!-- <view class="card_item">
|
||||||
<view class="progress" :style="'background-image:url('+domain+'/static/diy/priceBg'+keyColor+'.png'">
|
<view>品牌:</view>
|
||||||
<view class='presell_price'>
|
<view></view>
|
||||||
<text class="presell_text">预售价</text>
|
</view>
|
||||||
<text class="price">¥ <text>{{ item.price }}</text></text>
|
<view class="card_item">
|
||||||
</view>
|
<view>规格:</view>
|
||||||
<view v-if="active != 0" class='order_btn'>{{ active === 1 ? '立即预定' : '已结束' }}</view>
|
<view>{{item.product.unit_name}}</view>
|
||||||
<view v-else class="unStartBtn">
|
</view> -->
|
||||||
<text>开售时间</text>
|
</view>
|
||||||
<view>{{ new Date(item.start_time.replace(/-/g,"/")).getMonth()+1 }}月
|
<view class="card_right" >立即采购</view>
|
||||||
{{ new Date(item.start_time.replace(/-/g,"/")).getDate() }}日
|
</view>
|
||||||
{{ new Date(item.start_time.replace(/-/g,"/")).getHours()<10?'0'+
|
|
||||||
new Date(item.start_time.replace(/-/g,"/")).getHours():new Date(item.start_time.replace(/-/g,"/")).getHours() || '00'}}:
|
|
||||||
{{ new Date(item.start_time.replace(/-/g,"/")).getMinutes()<10?"0" + new Date(item.start_time.replace(/-/g,"/")).getMinutes():
|
|
||||||
new Date(item.start_time.replace(/-/g,"/")).getMinutes() || '00'}}</view>
|
|
||||||
</view>
|
|
||||||
</view>
|
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</block>
|
</block>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<home></home>
|
<uni-popup ref="tipspopupRef">
|
||||||
|
<view class="popup_ref">
|
||||||
|
<image class="p_icon" src="https://lihai001.oss-cn-chengdu.aliyuncs.com/public/uploads/home_img/nongzinongju_expression.webp"></image>
|
||||||
|
<view class="p_item1">非常抱歉!</view>
|
||||||
|
<view class="p_item2">供销农资春节期间暂停发货,年后恢复购买~</view>
|
||||||
|
</view>
|
||||||
|
</uni-popup>
|
||||||
|
<!-- <home></home> -->
|
||||||
<!-- #ifndef H5 -->
|
<!-- #ifndef H5 -->
|
||||||
<passwordPopup></passwordPopup>
|
<passwordPopup></passwordPopup>
|
||||||
<!-- #endif -->
|
<!-- #endif -->
|
||||||
@ -89,6 +80,7 @@
|
|||||||
import { configMap } from "@/utils";
|
import { configMap } from "@/utils";
|
||||||
import { mapGetters } from "vuex";
|
import { mapGetters } from "vuex";
|
||||||
import { HTTP_REQUEST_URL } from '@/config/app';
|
import { HTTP_REQUEST_URL } from '@/config/app';
|
||||||
|
import { Toast } from '../../../libs/uniApi.js';
|
||||||
export default {
|
export default {
|
||||||
computed: configMap({statusBarHeight:0},mapGetters(['viewColor','keyColor'])),
|
computed: configMap({statusBarHeight:0},mapGetters(['viewColor','keyColor'])),
|
||||||
components: {
|
components: {
|
||||||
@ -107,7 +99,7 @@
|
|||||||
'正在进行',
|
'正在进行',
|
||||||
'已结束'
|
'已结束'
|
||||||
],
|
],
|
||||||
active: 1,
|
active: 0,
|
||||||
type: 0,
|
type: 0,
|
||||||
scrollLeft: 0,
|
scrollLeft: 0,
|
||||||
interval: 0,
|
interval: 0,
|
||||||
@ -155,7 +147,7 @@
|
|||||||
var data = {
|
var data = {
|
||||||
page: that.page,
|
page: that.page,
|
||||||
limit: that.limit,
|
limit: that.limit,
|
||||||
type: that.active
|
// type: that.active
|
||||||
};
|
};
|
||||||
if (that.loadend) return;
|
if (that.loadend) return;
|
||||||
if (that.pageloading) return;
|
if (that.pageloading) return;
|
||||||
@ -184,6 +176,7 @@
|
|||||||
that.getPresellProductList();
|
that.getPresellProductList();
|
||||||
},
|
},
|
||||||
goDetails(item) {
|
goDetails(item) {
|
||||||
|
if(!item.type) return this.$refs.tipspopupRef.open(); // type表示该活动是否能点击
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
url: '/pages/activity/presell_details/index?id=' + item.product_presell_id
|
url: '/pages/activity/presell_details/index?id=' + item.product_presell_id
|
||||||
})
|
})
|
||||||
@ -201,7 +194,8 @@
|
|||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
.container {
|
.container {
|
||||||
min-height: 100vh;
|
min-height: 100vh;
|
||||||
background-color: var(--view-theme);
|
// background-color: var(--view-theme);
|
||||||
|
background-color: #fd552a;
|
||||||
}
|
}
|
||||||
.noCommodity{
|
.noCommodity{
|
||||||
border-top: none;
|
border-top: none;
|
||||||
@ -212,7 +206,8 @@
|
|||||||
}
|
}
|
||||||
.flash-sale .main_count{
|
.flash-sale .main_count{
|
||||||
position: relative;
|
position: relative;
|
||||||
top: -150rpx;
|
// top: -150rpx;
|
||||||
|
top: -50rpx;
|
||||||
}
|
}
|
||||||
.flash-sale .header .presellBg {
|
.flash-sale .header .presellBg {
|
||||||
width: 750rpx;
|
width: 750rpx;
|
||||||
@ -311,7 +306,7 @@
|
|||||||
margin-top: 24rpx;
|
margin-top: 24rpx;
|
||||||
}
|
}
|
||||||
.flash-sale .list .item {
|
.flash-sale .list .item {
|
||||||
height: 278rpx;
|
height: 238rpx;
|
||||||
position: relative;
|
position: relative;
|
||||||
width: 690rpx;
|
width: 690rpx;
|
||||||
margin: 0 auto 20rpx auto;
|
margin: 0 auto 20rpx auto;
|
||||||
@ -320,8 +315,8 @@
|
|||||||
padding: 0 25rpx;
|
padding: 0 25rpx;
|
||||||
}
|
}
|
||||||
.flash-sale .list .item .pictrue {
|
.flash-sale .list .item .pictrue {
|
||||||
width: 240rpx;
|
width: 200rpx;
|
||||||
height: 240rpx;
|
height: 200rpx;
|
||||||
border-radius: 10rpx;
|
border-radius: 10rpx;
|
||||||
}
|
}
|
||||||
.flash-sale .list .item .pictrue image {
|
.flash-sale .list .item .pictrue image {
|
||||||
@ -330,7 +325,7 @@
|
|||||||
border-radius: 10rpx;
|
border-radius: 10rpx;
|
||||||
}
|
}
|
||||||
.flash-sale .list .item .text {
|
.flash-sale .list .item .text {
|
||||||
width: 380rpx;
|
width: 420rpx;
|
||||||
font-size: 30rpx;
|
font-size: 30rpx;
|
||||||
color: #333;
|
color: #333;
|
||||||
}
|
}
|
||||||
@ -408,7 +403,7 @@
|
|||||||
.fixed-head{
|
.fixed-head{
|
||||||
position: absolute;
|
position: absolute;
|
||||||
left: 0;
|
left: 0;
|
||||||
top: 20px;
|
top: var(--status-bar-height);
|
||||||
width: 100%;
|
width: 100%;
|
||||||
z-index: 10;
|
z-index: 10;
|
||||||
.icon-xiangzuo {
|
.icon-xiangzuo {
|
||||||
@ -418,4 +413,58 @@
|
|||||||
color: #fff;
|
color: #fff;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
.card_price{
|
||||||
|
font-size: 32rpx;
|
||||||
|
color: #FF8056;
|
||||||
|
.card_small{
|
||||||
|
font-size: 26rpx;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
.card_bottom{
|
||||||
|
display: flex;
|
||||||
|
justify-content: space-between;
|
||||||
|
.card_left{
|
||||||
|
font-size: 24rpx;
|
||||||
|
color: #616161;
|
||||||
|
// background-color: red;
|
||||||
|
width: 210rpx;
|
||||||
|
max-height: 140rpx;
|
||||||
|
}
|
||||||
|
.card_right{
|
||||||
|
background-color: #FF593C;
|
||||||
|
width: 160rpx;
|
||||||
|
height: 80rpx;
|
||||||
|
background: #FF593C;
|
||||||
|
box-shadow: 0rpx 4rpx 8rpx 0rpx #FF5435;
|
||||||
|
border-radius: 84rpx;
|
||||||
|
display: flex;
|
||||||
|
justify-content: center;
|
||||||
|
align-items: center;
|
||||||
|
color: #fff;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
.popup_ref{
|
||||||
|
width: 583rpx;
|
||||||
|
height: 393rpx;
|
||||||
|
background: #f1f3f4;
|
||||||
|
border-radius: 30rpx 30rpx 30rpx 30rpx;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
color: #FF8056;
|
||||||
|
.p_icon{
|
||||||
|
width: 250rpx;
|
||||||
|
height: 140rpx;
|
||||||
|
}
|
||||||
|
.p_item1{
|
||||||
|
font-size: 30rpx;
|
||||||
|
padding: 30rpx 0;
|
||||||
|
}
|
||||||
|
.p_item2{
|
||||||
|
font-size: 28rpx;
|
||||||
|
width: 380rpx;
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
@ -49,13 +49,16 @@
|
|||||||
@change="dchange">
|
@change="dchange">
|
||||||
</zbpSwiper> -->
|
</zbpSwiper> -->
|
||||||
|
|
||||||
<view class="home_list">
|
<view class="home_list" style="padding-bottom: 0;">
|
||||||
<image class="left" @click="go_shop" src="https://lihai001.oss-cn-chengdu.aliyuncs.com/public/uploads/home_img/home_yuncang.webp"></image>
|
<image class="left" @click="go_shop" src="https://lihai001.oss-cn-chengdu.aliyuncs.com/public/uploads/home_img/home_yuncang.webp"></image>
|
||||||
<view class="right">
|
<view class="right">
|
||||||
<image class="top" @click="navgo(`/pages/nongKe/supply_chain/supplierB?type_id=10,17&street_id=${street_id}&townName=${town}`)" src="https://lihai001.oss-cn-chengdu.aliyuncs.com/public/uploads/home_img/home_shichang.webp"></image>
|
<image class="top" @click="navgo(`/pages/nongKe/supply_chain/supplierB?type_id=10,17&street_id=${street_id}&townName=${town}`)" src="https://lihai001.oss-cn-chengdu.aliyuncs.com/public/uploads/home_img/home_shichang.webp"></image>
|
||||||
<image class="bottom" @click="navgo('/pages/nongKe/specialty/index?type_code=PersonalStore&street_id='+street_id)" src="https://lihai001.oss-cn-chengdu.aliyuncs.com/public/uploads/home_img/home_my.webp"></image>
|
<image class="bottom" @click="navgo('/pages/nongKe/specialty/index?type_code=PersonalStore&street_id='+street_id)" src="https://lihai001.oss-cn-chengdu.aliyuncs.com/public/uploads/home_img/home_my.webp"></image>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
<view class="home_list">
|
||||||
|
<image class="bottom" style="width: 750rpx;" mode="widthFix" @click="navgo('/pages/activity/presell/index')" src="https://lihai001.oss-cn-chengdu.aliyuncs.com/public/uploads/home_img/nongzinongju_card.webp"></image>
|
||||||
|
</view>
|
||||||
<view class="home_recommend">
|
<view class="home_recommend">
|
||||||
<image src="https://lihai001.oss-cn-chengdu.aliyuncs.com/public/uploads/home_img/home_tuijian.webp"></image>
|
<image src="https://lihai001.oss-cn-chengdu.aliyuncs.com/public/uploads/home_img/home_tuijian.webp"></image>
|
||||||
</view>
|
</view>
|
||||||
|
@ -113,6 +113,21 @@
|
|||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
<view class="item no-border">
|
||||||
|
<view class='acea-row row-middle'>
|
||||||
|
<text class="item-title" style="margin-right: 20rpx;">请上传营业执照</text>
|
||||||
|
<text class="item-desc">(图片格式支持JPG、PNG、JPEG)</text>
|
||||||
|
<view class="upload">
|
||||||
|
<view v-if="business_license" class='pictrue' @click='uploadpicText'>
|
||||||
|
<image :src='business_license'></image>
|
||||||
|
</view>
|
||||||
|
<view v-else class='pictrue acea-row row-center-wrapper row-column' @click='uploadpicText'>
|
||||||
|
<text class='iconfont icon-icon25201'></text>
|
||||||
|
<view>上传图片</view>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
<!-- <view class="item no-border">
|
<!-- <view class="item no-border">
|
||||||
<checkbox-group @change='ChangeIsAgree'>
|
<checkbox-group @change='ChangeIsAgree'>
|
||||||
<checkbox class="checkbox" :checked="isAgree ? true : false" />已阅读并同意
|
<checkbox class="checkbox" :checked="isAgree ? true : false" />已阅读并同意
|
||||||
@ -708,22 +723,22 @@ import { Toast } from '../../../libs/uniApi';
|
|||||||
let that = this;
|
let that = this;
|
||||||
that.$util.uploadImageOne('upload/image', function(res) {
|
that.$util.uploadImageOne('upload/image', function(res) {
|
||||||
that.business_license = res.data.path;
|
that.business_license = res.data.path;
|
||||||
uni.showLoading({
|
// uni.showLoading({
|
||||||
title: '识别中'
|
// title: '识别中'
|
||||||
})
|
// })
|
||||||
merchantLicenseIdentify({
|
// merchantLicenseIdentify({
|
||||||
image: res.data.path
|
// image: res.data.path
|
||||||
}).then(res=>{
|
// }).then(res=>{
|
||||||
that.merchantData.address = res.data.address;
|
// that.merchantData.address = res.data.address;
|
||||||
that.merchantData.user_name = res.data.legal_person;
|
// that.merchantData.user_name = res.data.legal_person;
|
||||||
that.merchantData.social_credit_code = res.data.register_number;
|
// that.merchantData.social_credit_code = res.data.register_number;
|
||||||
that.merchantData.company_name = res.data.name;
|
// that.merchantData.company_name = res.data.name;
|
||||||
// that.$set('merchantData', that.merchantData);
|
// // that.$set('merchantData', that.merchantData);
|
||||||
uni.hideLoading();
|
// uni.hideLoading();
|
||||||
}).catch((e)=>{
|
// }).catch((e)=>{
|
||||||
uni.hideLoading();
|
// uni.hideLoading();
|
||||||
Toast(e)
|
// Toast(e)
|
||||||
})
|
// })
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
@ -965,9 +980,9 @@ import { Toast } from '../../../libs/uniApi';
|
|||||||
// if (that.isShowCode && !that.codeVal) return that.$util.Tips({
|
// if (that.isShowCode && !that.codeVal) return that.$util.Tips({
|
||||||
// title: '请填写图片验证码'
|
// title: '请填写图片验证码'
|
||||||
// });
|
// });
|
||||||
// if (!that.business_license) return that.$util.Tips({
|
if (!that.business_license) return that.$util.Tips({
|
||||||
// title: '请上传营业执照'
|
title: '请上传营业执照'
|
||||||
// });
|
});
|
||||||
// if (that.pics.length == 0) return that.$util.Tips({
|
// if (that.pics.length == 0) return that.$util.Tips({
|
||||||
// title: '请上传一张或者多张图片'
|
// title: '请上传一张或者多张图片'
|
||||||
// });
|
// });
|
||||||
|
Loading…
x
Reference in New Issue
Block a user