反馈修改-0715
							parent
							
								
									b798f65596
								
							
						
					
					
						commit
						a3c5e79aa7
					
				
							
								
								
									
										3
									
								
								App.vue
								
								
								
								
							
							
						
						
									
										3
									
								
								App.vue
								
								
								
								
							|  | @ -5,7 +5,8 @@ | |||
| 			projectname:'', // 项目名称 | ||||
| 			lat:'', // 公司地址维度 | ||||
| 			lng:''  ,// 公司地址经度 | ||||
| 			hostapi:'https://caimall.scdxtc.cn' // 域名配置 | ||||
| 			hostapi:'https://www.cdxidoudou.cn' ,// 域名配置 | ||||
| 			// hostapi:'https:caimall.scdxtc.cn',// 测试域名 | ||||
| 		}, | ||||
| 		// 优先于show方法 | ||||
| 		onLaunch: function() { | ||||
|  |  | |||
|  | @ -95,7 +95,7 @@ | |||
| 									skuId:item.skuId, | ||||
| 									imgsrc:item.cover, | ||||
| 									title:item.name, | ||||
| 									price:this.$toolAll.tools.changeNum(parseInt(item.original_price)+'') | ||||
| 									price:item.original_price | ||||
| 								} | ||||
| 								this.dataList.push(obj); | ||||
| 							}) | ||||
|  |  | |||
|  | @ -20,7 +20,7 @@ | |||
| 						</view> | ||||
| 						<view class="disjbac"> | ||||
| 							<!-- 商品价格 --> | ||||
| 							<view class="fon24 textc bold">¥<span class="fon28 ">{{$toolAll.tools.changeNum(item.price)}}</span></view> | ||||
| 							<view class="fon24 textc bold">¥<span class="fon28 ">{{item.price}}</span></view> | ||||
| 							<!-- 商品数量 --> | ||||
| 							<view class="disac"> | ||||
| 								<!-- 减数量 --> | ||||
|  | @ -45,7 +45,7 @@ | |||
| 		<view class="disjbac cart-foot-box fon24" :style="{bottom: footHeight+'px'}"> | ||||
| 			<label class="disac" @tap="chooseAll"><radio :checked="allChoose" color="#ff3673" style="transform: scale(.8);"/><text>全选</text></label> | ||||
| 			<view class="disac"> | ||||
| 				<view class="fon24 mar-y30">合计:<span>¥{{$toolAll.tools.changeNum(allPrice)}}</span></view> | ||||
| 				<view class="fon24 mar-y30">合计:<span>¥{{allPrice}}</span></view> | ||||
| 				<view class="fon32 cart-submit-btn" :style="{background: !buyNum ? '#cccccc' : 'linear-gradient(to right,#ff3771 0%,#fd5549 100%)'}" @tap="submitEv">{{allPrice==0 ? '去购物' : `提交订单 (${buyNum})`}}</view> | ||||
| 			</view>  | ||||
| 		</view>  | ||||
|  | @ -107,7 +107,7 @@ | |||
| 				let allPrice = 0; | ||||
| 				this.listData.forEach(item=>{ | ||||
| 					if(item.ifcheck) { | ||||
| 						allPrice += this.$toolAll.tools.operationEv(item.price,item.num,'*',2)*1; | ||||
| 						allPrice += item.price*item.num; | ||||
| 					} | ||||
| 				}) | ||||
| 				// return this.$toolAll.tools.addXiaoShu(allPrice); | ||||
|  | @ -185,7 +185,7 @@ | |||
| 									title: item.spu.spu_name, | ||||
| 									content: item.spu.unit, | ||||
| 									slide_x: 0, | ||||
| 									price:this.$toolAll.tools.changeNum(parseInt(item.spu.original_price)+''), | ||||
| 									price:item.spu.original_price, | ||||
| 									num:item.num, | ||||
| 									ifcheck:this.skuId==item.sku_id ? true : false, | ||||
| 									ifExit:true, | ||||
|  |  | |||
|  | @ -2,7 +2,7 @@ | |||
| const goLogin = () => { | ||||
|     uni.clearStorageSync(); | ||||
|     uni.navigateTo({ | ||||
|         url: '/pages/login/login' | ||||
|         url: '/pagesB/login/login' | ||||
|     }) | ||||
| } | ||||
| let flag = true; | ||||
|  |  | |||
|  | @ -270,7 +270,7 @@ const tools = { | |||
| 		}) | ||||
| 		.replace('<section', '<div') | ||||
| 		.replace(/<img [^>]*src=['"]([^'"]+)[^>]*>/gi, (match, p1) => { | ||||
| 		    return `<img mode="widthFix" style="max-width:100%!important;height:auto" src='${p1.indexOf('http') > -1 ? p1 : 'https://oss.hmzfyy.cn' + p1}' />` | ||||
| 		    return `<img mode="widthFix" style="max-width:100%!important;height:auto" src='${p1.indexOf('http') > -1 ? p1 : 'https://www.cdxidoudou.cn' + p1}' />` | ||||
| 		}) | ||||
| 	}, | ||||
| 	/** | ||||
|  |  | |||
|  | @ -77,7 +77,8 @@ | |||
| 				pid:'',//分类id | ||||
| 				doms:'', | ||||
| 				topList:[], | ||||
| 				heightData: 0 | ||||
| 				heightData: 0, | ||||
| 				scroll:true, | ||||
| 			} | ||||
| 		}, | ||||
| 		computed:{ | ||||
|  | @ -111,7 +112,7 @@ | |||
| 									skuId:item.skuId, | ||||
| 									imgsrc:item.cover,  | ||||
| 									title:item.name, | ||||
| 									price:this.$toolAll.tools.changeNum(parseInt(item.price)+'') | ||||
| 									price:item.price | ||||
| 								} | ||||
| 								newArr.push(obj); | ||||
| 							}) | ||||
|  | @ -157,21 +158,30 @@ | |||
| 			 | ||||
| 			// 一级分类选择 | ||||
| 			chooseCate(index,id) { | ||||
| 				this.current =index | ||||
| 				this.doms = 'product'+index | ||||
| 				console.log(index,222) | ||||
| 				if(this.scroll){ | ||||
| 					if(this.current !== index){ | ||||
| 						this.scroll =false; | ||||
| 						this.current =index | ||||
| 						this.doms = 'product'+index | ||||
| 						console.log(index,11111) | ||||
| 					} | ||||
| 					this.scroll = true; | ||||
| 				} | ||||
| 			}, | ||||
| 			 | ||||
| 			// 滚动 | ||||
| 			scrolls(e){ | ||||
| 				this.scroll =false; | ||||
| 				let scrollTop = e.target.scrollTop | ||||
| 				for(let i =0;i<this.topList.length;i++){ | ||||
| 					let h1 = this.topList[i] | ||||
| 					let h2 = this.topList[i+1] | ||||
| 					if(scrollTop>=h1&&scrollTop<h2){ | ||||
| 						this.current = i | ||||
| 						console.log(i,22222) | ||||
| 					} | ||||
| 				} | ||||
| 				this.scroll =true; | ||||
| 			}, | ||||
| 			 | ||||
| 			// 改变topList | ||||
|  |  | |||
|  | @ -77,6 +77,7 @@ | |||
| 		}, | ||||
| 		onHide() { | ||||
| 			clearTimeout(this.playTimer); | ||||
| 			this.isplay = false; | ||||
| 		}, | ||||
| 		onShow() { | ||||
| 			slidePosition().then(res=>{ | ||||
|  |  | |||
|  | @ -51,7 +51,7 @@ | |||
| 			return { | ||||
| 				userInfo: {},//用户信息 | ||||
| 				canIGetUserProfile: false, | ||||
| 				imgSrc: 'https://s6.jpg.cm/2022/02/14/L4oDhy.jpg',//默认logo头像 | ||||
| 				imgSrc: '/static/public/login-cover.png',//默认logo头像 | ||||
| 				appletName:'商城小程序',//小程序名称 | ||||
| 				isShowP:false, | ||||
| 			}; | ||||
|  |  | |||
|  | @ -87,7 +87,7 @@ | |||
| 									skuId:item.skuId, | ||||
| 									imgsrc:item.cover, | ||||
| 									title:item.name, | ||||
| 									price:this.$toolAll.tools.changeNum(parseInt(item.original_price)+'') | ||||
| 									price:item.original_price  | ||||
| 								} | ||||
| 								this.dataList.push(obj); | ||||
| 							}) | ||||
|  |  | |||
|  | @ -6,7 +6,7 @@ | |||
| 				<view class="pad-zy20 bacf pad-sx20"> | ||||
| 					<view class="fon42 colb mar-x10">{{shopObj.name}}</view> | ||||
| 					<view class="fon24 col6 mar-x20">{{shopObj.subtitle}}</view> | ||||
| 					<view class="textc bold fon30 ">¥{{$toolAll.tools.changeNum(parseInt(shopObj.original_price)+'')}}/<text class="fon24">{{shopObj.unit}}</text></view> | ||||
| 					<view class="textc bold fon30 ">¥{{shopObj.original_price}}/<text class="fon24">{{shopObj.unit}}</text></view> | ||||
| 				</view> | ||||
| 				<view class="fon36 colb tcenter pad-sx30 bold">商品介绍</view> | ||||
| 				<view class="pad-zy20"> | ||||
|  |  | |||
										
											Binary file not shown.
										
									
								
							| After Width: | Height: | Size: 9.9 KiB | 
		Loading…
	
		Reference in New Issue