lhl 3 yıl önce
ebeveyn
işleme
ccee871456

+ 6 - 6
components/Authorize.vue

@@ -1,20 +1,20 @@
 <template>
 	<view :style="viewColor">
 		<view class='Popup' v-if='isShowAuth && code'>
-			<view class="logo-auth">
+<!-- 			<view class="logo-auth">
 				<image :src='routine_logo' mode="aspectFit"></image>
-			</view>
-			<view class='title'>授权提醒</view>
-			<view class='tip'>请授权头像等信息,以便为您提供更好的服务</view>
+			</view> -->
+			<view class='title'>登录</view>
+			<view class='tip'>您未登录,是否马上登录?</view>
 			<view class='bottom flex'>
 				<view class='item' @click='close'>随便逛逛</view>
 				<!-- #ifdef MP -->
 				<button class="item grant" hover-class="none"
-					@tap="getUserProfile">去授权</button>
+					@tap="getUserProfile">登录</button>
 				<!-- #endif -->
 				<!-- #ifdef H5 || APP-PLUS -->
 				<button class="item grant"
-					@tap="toWecahtAuth">去授权</button>
+					@tap="toWecahtAuth">登录</button>
 				<!-- #endif -->
 			</view>
 		</view>

+ 46 - 23
pages/index/index.vue

@@ -13,9 +13,9 @@
 		<!-- 轮播图 start -->
 		<view class="swiper-wrap">
 			<swiper class="top-swiper" autoplay="true" duration="400" interval="5000" @change="swiperChange">
-				<swiper-item v-for="(item, index) in carouselList" :key="index" class="carousel-item"
+				<swiper-item v-for="(item, index) in imgUrls" :key="index" class="carousel-item"
 					@click="bannerNavToUrl(item)">
-					<image :src="item.img" />
+					<image :src="item.pic" />
 				</swiper-item>
 			</swiper>
 		</view>
@@ -43,16 +43,16 @@
 			</view>
 			<view class="cate-item flex" @click="navto('/pages/store/shopStreet/index')">
 				<view class="img-wrapper flex">
-					<image src="../../static/icon/c4.png" mode=""></image>
+					<image src="../../static/icon/c5.png" mode=""></image>
 				</view>
 				<view class="item-title">商铺列表</view>
 			</view>
-			<view class="cate-item flex" @click="nav('/pages/user/shareQrCode')">
+			<!-- <view class="cate-item flex" @click="nav('/pages/user/shareQrCode')">
 				<view class="img-wrapper flex">
 					<image src="../../static/icon/c5.png" mode=""></image>
 				</view>
 				<view class="item-title">邀请有礼</view>
-			</view>
+			</view> -->
 		</view>
 		<!-- 分类 end-->
 		<!-- 专区 start -->
@@ -124,7 +124,7 @@
 
 				</view>
 			</view>
-			<!-- <uni-load-more :status="loadingType"></uni-load-more> -->
+			<uni-load-more :status="where.loadingType"></uni-load-more>
 
 		</view>
 		<view class="page-btm" style="padding-top: 20rpx;">
@@ -374,6 +374,7 @@
 				sortProduct: [],
 				where: {
 					// pid: 0,
+					loadingType: 'more',
 					page: 1,
 					limit: 30
 				},
@@ -532,6 +533,9 @@
 			this.reconnect();
 		},
 		methods: {
+			gocx() {
+				window.location.href = 'https://www.miit.gov.cn/'
+			},
 			//观看广告领奖
 			openGg() {
 				getUserInfo().then(res => {
@@ -567,6 +571,14 @@
 			swiperChange() {},
 			bannerNavToUrl(item) {
 				console.log(item)
+				uni.navigateTo({
+					url: item.url,
+					fail() {
+						uni.switchTab({
+							url:item.url
+						})
+					}
+				})
 			},
 			changeBarg() {},
 			loadCoupon() {
@@ -849,17 +861,26 @@
 			//分类产品
 			get_product_list: function() {
 				let that = this;
-				if (that.loading) return;
-				that.loading = true;
-				that.loadTitle = '';
+				// if (that.loading) return;
+				if(that.where.loadingType == 'noMore' || that.where.loadingType == 'loading') {
+					return
+				}
+				// that.loading = true;
+				// that.loadTitle = '';
+				that.where.loadingType = 'loading'
 				getProductslist(that.where)
 					.then(res => {
 						let list = res.data.list;
 						let productList = that.$util.SplitArray(list, that.sortProduct);
 						let loadend = list.length < that.where.limit;
-						that.loadend = loadend;
-						that.loading = false;
-						that.loadTitle = loadend ? '已全部加载' : '加载更多';
+						// that.loadend = loadend;
+						// that.loading = false;
+						if(loadend) {
+							that.where.loadingType = 'noMore'
+						}else {
+							that.where.loadingType = 'more'
+						}
+						// that.loadTitle = loadend ? '已全部加载' : '加载更多';
 						that.$set(that, 'sortProduct', productList);
 						console.log(that.sortProduct,'sortProduct+++++++++++++++++')
 						that.$set(that.where, 'page', that.where.page + 1);
@@ -1032,17 +1053,19 @@
 		},
 		// 滚动到底部
 		onReachBottom() {
-			if (this.navIndex == 0) {
-				// 首页加载更多
-				this.get_host_product();
-			} else {
-				// 分类栏目加载更多
-				if (this.sortProduct.length > 0) {
-					this.get_product_list();
-				} else {
-					this.get_host_product();
-				}
-			}
+			console.log('daodile')
+			this.get_product_list();
+			// if (this.navIndex == 0) {
+			// 	// 首页加载更多
+			// 	this.get_host_product();
+			// } else {
+			// 	// 分类栏目加载更多
+			// 	if (this.sortProduct.length > 0) {
+			// 		this.get_product_list();
+			// 	} else {
+			// 		this.get_host_product();
+			// 	}
+			// }
 		},
 		// 滚动监听
 		onPageScroll(e) {

+ 1 - 1
pages/user/index.vue

@@ -120,7 +120,7 @@
 					<view class="tool-img"><image src="../../static/icon/gn6.png" mode=""></image></view>
 					<view class="tool-name">收货地址</view>
 				</view>
-				<view class="tool-item" @click="authTo('/pages/set/userinfo')">
+				<view class="tool-item" @click="authTo('/pages/users/user_info/index')">
 					<view class="tool-img"><image src="../../static/icon/gn7.png" mode=""></image></view>
 					<view class="tool-name">设置</view>
 				</view>

+ 6 - 6
pages/users/login/index.vue

@@ -7,11 +7,11 @@
 			</div>
 		</div>
 		<div class="whiteBg" v-if="formItem === 1">
-			<div class="title acea-row row-center-wrapper">
+			<!-- <div class="title acea-row row-center-wrapper">
 				<div class="item" :class="current === index ? 'on' : ''" v-for="(item, index) in navList" @click="navTap(index)" :key="index">
 					{{ item }}
 				</div>
-			</div>
+			</div> -->
 			<div class="list" :hidden="current !== 0">
 				<form @submit.prevent="submit">
 					<div class="item">
@@ -268,7 +268,7 @@
 		data: function() {
 			return {
 				navList: ["账号登录", "快速登录"],
-				current: 1,
+				current:0,
 				account: "",
 				password: "",
 				captcha: "",
@@ -680,9 +680,9 @@
 				if (!that.password) return that.$util.Tips({
 					title: '请输入密码'
 				});
-				if (!/^(?![0-9]+$)(?![a-zA-Z]+$)[0-9A-Za-z]{6,16}$/i.test(that.password)) return that.$util.Tips({
-					title: '请输入6-16位字母加数字组合'
-				});
+				// if (!/^(?![0-9]+$)(?![a-zA-Z]+$)[0-9A-Za-z]{6,16}$/i.test(that.password)) return that.$util.Tips({
+				// 	title: '请输入6-16位字母加数字组合'
+				// });
 				if (!that.isAgree) return that.$util.Tips({
 					title: '请勾选用户协议与隐私政策'
 				});

+ 14 - 12
pages/users/order_confirm/index.vue

@@ -131,7 +131,7 @@
 							</view>
 							<view class='discount' v-else>免运费</view>
 						</view>
-						<view class='item acea-row row-between-wrapper'
+						<!-- <view class='item acea-row row-between-wrapper'
 							v-if="!seckillId && order_type != 3 && order_type != 4 && item.order.enabledCoupon">
 							<view>店铺优惠券</view>
 							<block v-if="item.coupon.length>0">
@@ -144,7 +144,7 @@
 							<block v-else>
 								<view class='discount'>暂无优惠券</view>
 							</block>
-						</view>
+						</view> -->
 						<view v-if="item.openReceipt == 1" class='item acea-row row-between-wrapper'>
 							<view>开具发票 <text @tap="showInvoice" class="iconfont icon-wenhao1"></text></view>
 							<view class='discount discount_voice' @tap="goInvoice(item.mer_id)">
@@ -320,7 +320,7 @@
 						</checkbox-group>
 					</view>
 				</view>
-				<view class='item acea-row row-between-wrapper'
+<!-- 				<view class='item acea-row row-between-wrapper'
 					v-if="!seckillId && order_type != 3 && order_type != 4 && enabledPlatformCoupon">
 					<view>平台优惠券<text @tap="showCoupon" class="iconfont icon-wenhao1"></text></view>
 					<block v-if="platformCoupon.length > 0">
@@ -333,7 +333,7 @@
 					<block v-else>
 						<view class='discount'>暂无优惠券</view>
 					</block>
-				</view>
+				</view> -->
 				<view class='item acea-row row-between-wrapper' v-if="priceGroup.storePostage > 0">
 					<view>运费:</view>
 					<view class='money'>+¥{{priceGroup.storePostage}}</view>
@@ -481,14 +481,6 @@
 						// payStatus: this.$store.getters.globalData.alipay_open
 						payStatus: 1,
 					},
-
-					// {
-					// 	"name": "线下支付",
-					// 	"icon": "icon-yinhangqia",
-					// 	value: 'offline',
-					// 	title: '线下支付',
-					// 	payStatus: 2,
-					// },
 				],
 				tagStyle: {
 					img: 'width:100%;display:block;',
@@ -919,6 +911,16 @@
 					return
 				}
 				this.totalPrice = tempTotal
+				if(this.totalPrice == 0) {
+					this.cartArr = [{
+							"name": "余额支付",
+							"icon": "icon-icon-test",
+							value: 'balance',
+							title: '可用余额:',
+							payStatus: this.$store.getters.globalData.yue_pay_status,
+						}
+					]
+				}
 			},
 			/**
 			 * 选择地址后改变事件

+ 4 - 4
pages/users/user_info/index.vue

@@ -82,20 +82,20 @@
 							<text class='iconfont icon-you'></text>
 						</navigator>
 					</view>
-					<view class='item acea-row row-between-wrapper'>
+					<!-- <view class='item acea-row row-between-wrapper'>
 						<view>发票管理</view>
 						<navigator url="/pages/users/user_invoice_list/index" hover-class="none" class='input acea-row row-between-wrapper'>
 							<input type='text' placeholder="立即前往" disabled='true' class='id'></input>
 							<text class='iconfont icon-you'></text>
 						</navigator>
-					</view>
-					<view class='item acea-row row-between-wrapper'>
+					</view> -->
+					<!-- <view class='item acea-row row-between-wrapper'>
 						<view>注销账号</view>
 						<view class='input acea-row row-between-wrapper' @click="changeCancel">
 							<input type='text' placeholder="账号注销后不能恢复" disabled='true' class='id'></input>
 							<text class='iconfont icon-you'></text>
 						</view>
-					</view>
+					</view> -->
 				</view>
 				<!-- #ifdef H5 -->
 				<view class="logOut acea-row row-center-wrapper" @click="outLogin" v-if="!this.$wechat.isWeixin()">退出登录</view>

+ 3 - 3
pages/users/user_spread_code/index.vue

@@ -18,14 +18,14 @@
 				</block>
 			</swiper>
 			<!-- #ifndef H5  -->
-			<view class='keep b-color' @click='savePosterPath(posterImage[swiperIndex])'>保存海报</view>
+			<!-- <view class='keep b-color' @click='savePosterPath(posterImage[swiperIndex])'>保存海报</view> -->
 			<!-- #endif -->
 			<!-- #ifndef MP || APP-PLUS -->
-			<div class="preserve acea-row row-center-wrapper">
+<!-- 			<div class="preserve acea-row row-center-wrapper">
 				<div class="line"></div>
 				<div class="tip">长按保存图片</div>
 				<div class="line"></div>
-			</div>
+			</div> -->
 			<!-- #endif -->
 		</view>
 		<!-- #ifdef MP -->