YZM 1 year ago
parent
commit
74a1068d02

+ 3 - 1
manifest.json

@@ -17,7 +17,9 @@
             "delay" : 0
             "delay" : 0
         },
         },
         /* 模块配置 */
         /* 模块配置 */
-        "modules" : {},
+        "modules" : {
+            "Camera" : {}
+        },
         /* 应用发布信息 */
         /* 应用发布信息 */
         "distribute" : {
         "distribute" : {
             /* android打包配置 */
             /* android打包配置 */

+ 5 - 2
pages/bianji/index.vue

@@ -1,7 +1,7 @@
 <template>
 <template>
 	<view :style="{ minHeight: sys.windowHeight + 'px' }"
 	<view :style="{ minHeight: sys.windowHeight + 'px' }"
 		:class="[$tm.vx.state().tmVuetify.black ? 'black' : ' ']">
 		:class="[$tm.vx.state().tmVuetify.black ? 'black' : ' ']">
-		<tm-menubars title="添加穿搭" :shadow="0" :showback="true"></tm-menubars>
+		<tm-menubars :title="name" :shadow="0" :showback="true"></tm-menubars>
 		<div class="zhuti">
 		<div class="zhuti">
 			<!-- 衣橱 -->
 			<!-- 衣橱 -->
 			<tm-sheet class="yichu" style="margin-bottom: 40px !important;">
 			<tm-sheet class="yichu" style="margin-bottom: 40px !important;">
@@ -52,10 +52,13 @@ export default {
 			quanbuList:[],
 			quanbuList:[],
 			yixuanList:[],
 			yixuanList:[],
 			chooseindex:-1,
 			chooseindex:-1,
-			type:1
+			type:1,
+			name:'添加穿搭'
 		};
 		};
 	},
 	},
 	onLoad(e) {
 	onLoad(e) {
+		console.log()
+		this.name=e.name?'明日计划':'添加穿搭'
 		this.type=e.type?e.type:1;//1今天2明天
 		this.type=e.type?e.type:1;//1今天2明天
 	},
 	},
 	created() {
 	created() {

+ 3 - 3
pages/dapei/index.vue

@@ -18,7 +18,7 @@
 				<view class="mt-20 text-align-center" v-if="tianqiList">
 				<view class="mt-20 text-align-center" v-if="tianqiList">
 					<image class="taiyang" src="/static/img/106.png" mode="widthFix"></image>
 					<image class="taiyang" src="/static/img/106.png" mode="widthFix"></image>
 					<text class="text-size-s ml-15">{{tianqiList.templow}}°c~{{tianqiList.temphigh}}°c</text>
 					<text class="text-size-s ml-15">{{tianqiList.templow}}°c~{{tianqiList.temphigh}}°c</text>
-					<text class="text-size-s ml-15">{{tianqiList.week}}</text>
+					<view class="text-size-s ml-15">{{tianqiList.date}} <text class="text-size-s ml-15">{{tianqiList.week}}</text></view>
 				</view>
 				</view>
 				<view v-if="alltouList[0]" class="bianji" @click="bianji(1,alltouList[0].data)">{{alltouList[0].data !=0?'更换穿搭':'添加穿搭'}}</view>
 				<view v-if="alltouList[0]" class="bianji" @click="bianji(1,alltouList[0].data)">{{alltouList[0].data !=0?'更换穿搭':'添加穿搭'}}</view>
 			</view>
 			</view>
@@ -33,7 +33,7 @@
 				<view class="mt-20 text-align-center" v-if="tianqiList">
 				<view class="mt-20 text-align-center" v-if="tianqiList">
 					<image class="taiyang" src="/static/img/106.png" mode="widthFix"></image>
 					<image class="taiyang" src="/static/img/106.png" mode="widthFix"></image>
 					<text class="text-size-s ml-15">最高温度{{tianqiList.daily[1].day.temphigh}}°C</text>
 					<text class="text-size-s ml-15">最高温度{{tianqiList.daily[1].day.temphigh}}°C</text>
-					<text class="text-size-s ml-15">{{tianqiList.daily[1].week}}</text>
+					<view class="text-size-s ml-15">{{tianqiList.daily[1].date}} <text class="text-size-s ml-15">{{tianqiList.daily[1].week}}</text></view>
 				</view>
 				</view>
 				<view v-if="alltouList[1]" class="bianji" @click="bianji(2,alltouList[1].data)">{{alltouList[1].data !=0?'更换穿搭':'添加穿搭'}}</view>
 				<view v-if="alltouList[1]" class="bianji" @click="bianji(2,alltouList[1].data)">{{alltouList[1].data !=0?'更换穿搭':'添加穿搭'}}</view>
 			</view>
 			</view>
@@ -383,5 +383,5 @@ export default {
 	.fudong{position:fixed;right:10px;bottom:150px;background: #303030;width: 130px;height: 60px;
 	.fudong{position:fixed;right:10px;bottom:150px;background: #303030;width: 130px;height: 60px;
 	border-radius: 30px 0px 0px 30px;font-size: 14px;text-align: center;}
 	border-radius: 30px 0px 0px 30px;font-size: 14px;text-align: center;}
 	.sao{width: 60%;display: block;margin: 0 auto;margin-bottom: 60px;}
 	.sao{width: 60%;display: block;margin: 0 auto;margin-bottom: 60px;}
-	/deep/ .scroll-view_H{height:245px !important;}
+	/deep/ .scroll-view_H{height:260px !important;}
 </style>
 </style>

+ 1 - 1
pages/dizhi/index.vue

@@ -15,7 +15,7 @@
 				</view>
 				</view>
 			</view>
 			</view>
 		</div>
 		</div>
-		<tm-button :round="24" class="sao mb-40 mt-40" block @click="xinjian">新建收地址</tm-button>
+		<tm-button :round="24" class="sao mb-40 mt-40" block @click="xinjian">新建收地址</tm-button>
 		<!-- 弹出层消息 -->
 		<!-- 弹出层消息 -->
 		<tm-message ref="toast"></tm-message>
 		<tm-message ref="toast"></tm-message>
 	</view>
 	</view>

+ 67 - 56
pages/gengduo/index.vue

@@ -1,28 +1,26 @@
 <template>
 <template>
-	<view :style="{ minHeight: sys.windowHeight + 'px' }" :class="[$tm.vx.state().tmVuetify.black ? 'black' : ' ']"
+	<view :class="[$tm.vx.state().tmVuetify.black ? 'black' : ' ']"
 		class="bodycont">
 		class="bodycont">
 		<tm-menubars ref="fenleig" title="分类" :shadow="0" :showback="true"></tm-menubars>
 		<tm-menubars ref="fenleig" title="分类" :shadow="0" :showback="true"></tm-menubars>
-		<div class="cont" :style="{ height: (sys.windowHeight-80) + 'px' }">
-			<tm-sheet black>
-				<tm-sliderNav :style="{ height: (sys.windowHeight-80) + 'px' }" class="zuo fl" @change="change"
-					:list="list" text color="red">
-
-				</tm-sliderNav>
-				<view class="fr you" :style="{ height: (sys.windowHeight-80) + 'px' }">
-					<view class="huadong">
-						<view class="py-10 text-size-g dianz mingri text-align-center mt-40">
-							<image src="/static/img/88.png" mode="widthFix"></image>
-							<text class="text-white">精选推荐</text>
-						</view>
-						<view class="yiguicla mt-20 ml-20 fl" v-for="item in quanbuList" @click="sort(item.id)">
+		<div class="cont">
+			<tm-sliderNav :activeIndex="activeIndex" class="zuo fl" @change="change" :list="list" text color="red"></tm-sliderNav>
+			<view class="fr you">
+				<view class="huadong">
+					<view class="py-10 text-size-g dianz mingri text-align-center mt-40">
+						<image src="/static/img/88.png" mode="widthFix"></image>
+						<text class="text-white">精选推荐</text>
+					</view>
+					<view class="yiguicla mt-20 fl" v-for="item in quanbuList" @click="sort(item.id)">
+						<view class="waicont">
 							<image :src="item.src" mode="widthFix"></image>
 							<image :src="item.src" mode="widthFix"></image>
 							<view class="wenzi text-align-center text-size-m mt-8">{{item.text}}</view>
 							<view class="wenzi text-align-center text-size-m mt-8">{{item.text}}</view>
 						</view>
 						</view>
-						<view style="width:100%;height:40px;clear: both;"></view>
 					</view>
 					</view>
+					<tm-empty v-if="quanbuList.length ==0" label="暂无数据" color="white" icon="icon-paperplane-fill"></tm-empty>
+					<view style="width:100%;height:40px;clear: both;"></view>
 				</view>
 				</view>
-				<view style="clear: both;"></view>
-			</tm-sheet>
+			</view>
+			<view style="clear: both;"></view>
 		</div>
 		</div>
 		<!-- 弹出层消息 -->
 		<!-- 弹出层消息 -->
 		<tm-message ref="toast"></tm-message>
 		<tm-message ref="toast"></tm-message>
@@ -36,16 +34,15 @@
 		data() {
 		data() {
 			return {
 			return {
 				list: [],
 				list: [],
-				quanbuList: [
-					// 	{
-					// 	src: '/static/img/45.png',
-					// 	text: 'NEO CITY 涂鸦',
-					// 	type: '手提包'
-					// }, 
-				]
+				quanbuList: {},
+				activeIndex:0,
+				frist:2,
 			};
 			};
 		},
 		},
-		onLoad() {
+		onLoad(e) {
+			this.activeIndex=e.index?e.index:0;
+			this.frist=e.index?1:2;
+			console.log(this.activeIndex)
 		},
 		},
 		created() {
 		created() {
 			this.sys = uni.getSystemInfoSync();
 			this.sys = uni.getSystemInfoSync();
@@ -60,7 +57,6 @@
 					method: 'get',
 					method: 'get',
 					data: that.reqData
 					data: that.reqData
 				}).then(res => {
 				}).then(res => {
-					console.log(res.data);
 					if (res.data.code == 200) {
 					if (res.data.code == 200) {
 						res.data.data.forEach(item => {
 						res.data.data.forEach(item => {
 							that.list.push({
 							that.list.push({
@@ -69,7 +65,7 @@
 								title: item.category_name
 								title: item.category_name
 							})
 							})
 						})
 						})
-						this.change(0)
+						this.change(this.activeIndex)
 					} else {
 					} else {
 						that.$refs.toast.show({
 						that.$refs.toast.show({
 							model: 'error',
 							model: 'error',
@@ -81,6 +77,11 @@
 			// 切换更换二级分类
 			// 切换更换二级分类
 			change(e) {
 			change(e) {
 				let that = this;
 				let that = this;
+				if(this.frist==2){
+					this.activeIndex=e;
+				}
+				this.frist=2;
+				console.log(e)
 				myRequest({
 				myRequest({
 					url: '/api/ShopGoods/getMallChildrenClassification',
 					url: '/api/ShopGoods/getMallChildrenClassification',
 					method: 'post',
 					method: 'post',
@@ -117,85 +118,95 @@
 </script>
 </script>
 
 
 <style lang="scss">
 <style lang="scss">
-	/deep/ .tm-menubars .body {
-		background-color: #1b1b1b !important;
+	page,uni-page-body,.bodycont{
+		height: 100% !important;
+		overflow: hidden;
+	}
+	// /deep/ .tm-menubars .body {
+	// 	background-color: #1b1b1b !important;
+	// }
+	.huadong{
+		width: 90%;
+		margin: 0 auto;
 	}
 	}
-
-	// /deep/ .zhuti{padding: 10px 10px;}
-	// page,.bodycont{height:100%;}
 	/deep/ .cont {
 	/deep/ .cont {
 		overflow: hidden;
 		overflow: hidden;
+		height: calc(100% - 45px) !important;
 	}
 	}
-
 	/deep/ .kuang {
 	/deep/ .kuang {
 		margin: 0 !important;
 		margin: 0 !important;
 		padding: 0px !important;
 		padding: 0px !important;
 	}
 	}
-
 	/deep/ .zuo .grey-darken-4.bk {
 	/deep/ .zuo .grey-darken-4.bk {
 		background-color: #0D0D0D !important;
 		background-color: #0D0D0D !important;
 	}
 	}
-
-	/deep/ .zuo .uni-scroll-view-content {
-		background-color: #0D0D0D !important;
-	}
-
+	// /deep/ .zuo .uni-scroll-view-content {
+	// 	background-color: #0D0D0D !important;
+	// }
 	/deep/ .cont .shadow-white-5 {
 	/deep/ .cont .shadow-white-5 {
 		padding: 0px !important;
 		padding: 0px !important;
 		margin: 0px !important
 		margin: 0px !important
 	}
 	}
-
 	/deep/ .zuo .border-red-l-2.bk {
 	/deep/ .zuo .border-red-l-2.bk {
 		border-left-color: #0178FD !important;
 		border-left-color: #0178FD !important;
 	}
 	}
-
 	/deep/ .zuo .text-red,
 	/deep/ .zuo .text-red,
 	/deep/ .zuo .text-grey-darken-1 {
 	/deep/ .zuo .text-grey-darken-1 {
 		color: white !important;
 		color: white !important;
 	}
 	}
-
 	.yiguicla image {
 	.yiguicla image {
 		width: 100%;
 		width: 100%;
 		display: block;
 		display: block;
-		margin: 0 auto;
+		
 		margin-top: 5px;
 		margin-top: 5px;
 		border-radius: 10px;
 		border-radius: 10px;
 	}
 	}
-
-	.yiguicla {
-		width: 45%;
+	.waicont{
+		overflow: hidden;
 		border-radius: 10px;
 		border-radius: 10px;
+		width: 80%;
+		height: 100%;
+		margin: 0 auto;
+		position: relative;
+	}
+	.yiguicla{
+		width: 50%;
 		position: relative;
 		position: relative;
 		padding: 0px !important;
 		padding: 0px !important;
+		text-align: center;
 	}
 	}
-
 	.wenzi {
 	.wenzi {
 		position: absolute;
 		position: absolute;
 		bottom: 0px;
 		bottom: 0px;
-		background: #BCC2C7;
+		background: rgba(158,165,172,0.8);
 		color: white;
 		color: white;
 		width: 100%;
 		width: 100%;
-		height: 25px;
-		border-radius: 0px 0px 10px 10px;
+		height: 27px;
+		line-height: 27px;
+		font-size: 13px;
 	}
 	}
-
-	// /deep/ .zuo uni-scroll-view{height: calc(100% - 45px) !important;}
 	.mingri image {
 	.mingri image {
 		width: 25px;
 		width: 25px;
 		margin-right: 12px;
 		margin-right: 12px;
 		vertical-align: middle;
 		vertical-align: middle;
 	}
 	}
-
 	.mingri text {
 	.mingri text {
 		vertical-align: middle;
 		vertical-align: middle;
 	}
 	}
-
 	.you {
 	.you {
-		width: calc(100% - 100px);
+		width: calc(100% - 80px);
+		overflow: auto;
+		background-color: #1b1b1b !important;
+		height: 100%;
 		overflow: auto;
 		overflow: auto;
 	}
 	}
-
 	.zuo {
 	.zuo {
 		overflow: hidden;
 		overflow: hidden;
+		width: 80px !important;
+		text-align: center;
+		background-color: #0D0D0D !important;
+	}
+	/deep/ uni-scroll-view{
+		width: 80px !important;
 	}
 	}
 </style>
 </style>

+ 10 - 2
pages/index/index.vue

@@ -21,7 +21,7 @@
 			</view>
 			</view>
 		</view>
 		</view>
 		<view class="zhuti mt-50">
 		<view class="zhuti mt-50">
-			<tm-grid :grid="5" :list="list3" :icon-size="140" font-color="white"></tm-grid>
+			<tm-grid :grid="5" @change="clickup" :list="list3" :icon-size="140" font-color="white"></tm-grid>
 			<!-- 今日穿搭 -->
 			<!-- 今日穿搭 -->
 			<tm-sheet class="lunbo bushan1">
 			<tm-sheet class="lunbo bushan1">
 				<view class="py-10 text-size-g dianz">
 				<view class="py-10 text-size-g dianz">
@@ -147,6 +147,8 @@
 				</view>
 				</view>
 			</tm-sheet>
 			</tm-sheet>
 		</view>
 		</view>
+		<!-- 弹出层消息 -->
+		<tm-message ref="toast"></tm-message>
 	</view>
 	</view>
 </template>
 </template>
 
 
@@ -212,6 +214,12 @@
 			this.getCity()
 			this.getCity()
 		},
 		},
 		methods: {
 		methods: {
+			clickup(){
+				this.$refs.toast.show({
+					model: 'wait',
+					label: '开发中,敬请期待'
+				})
+			},
 			getCity(){
 			getCity(){
 				var that=this;
 				var that=this;
 				uni.getLocation({
 				uni.getLocation({
@@ -397,7 +405,7 @@
 			tiao(e) {
 			tiao(e) {
 				console.log(e)
 				console.log(e)
 				uni.navigateTo({
 				uni.navigateTo({
-					url: "/pages/bianji/index",
+					url: "/pages/bianji/index?name=1",
 				})
 				})
 			},
 			},
 			tiaoclick(e) {
 			tiaoclick(e) {

+ 14 - 20
pages/registered/index.vue

@@ -99,27 +99,21 @@ export default {
 				that.$refs.toast.show({model:'warn',label:'请输入手机号'})
 				that.$refs.toast.show({model:'warn',label:'请输入手机号'})
 				return
 				return
 			}
 			}
-			uni.request({
-				url: "https://apitest.yitutianxia.com/common/SendSms?mobile="+that.reqData.mobile,
-				method: "get",
-				data:{},
-				dataType:'json',
-				success : function(res) {
-					console.log(res)
-					if (res.data.code == 200) {
-						that.$refs.toast.show({model:'success',label:res.data.msg})
-						that.yzmvar.text="已发送";
-						setTimeout(function(){
-							that.yzmvar.text="发送验证码";
-						},15000)
-					}else{
-						that.$refs.toast.show({model:'error',label:res.data.msg})
-					}
-				},
-				error : function(e) {
-					alert("网络异常,请重试");
+			myRequest({
+				url: "/api/Login/sendCode?mobile="+that.reqData.mobile,
+				method:'get',
+				data:{}
+			}).then(res => {
+				if (res.data.code == 200) {
+					that.$refs.toast.show({model:'success',label:res.data.msg})
+					that.yzmvar.text="已发送";
+					setTimeout(function(){
+						that.yzmvar.text="发送验证码";
+					},15000)
+				}else{
+					that.$refs.toast.show({model:'error',label:res.data.msg})
 				}
 				}
-			});
+			})
 		},
 		},
 		login(){
 		login(){
 			uni.navigateTo({
 			uni.navigateTo({

+ 22 - 11
pages/shop/index.vue

@@ -52,8 +52,8 @@
 				<tm-dragGrid :list="list1" :col="3" disabled="false" class="mt-40 mb-40 remen" :icon-size="160"
 				<tm-dragGrid :list="list1" :col="3" disabled="false" class="mt-40 mb-40 remen" :icon-size="160"
 					v-if="list1.length!=0">
 					v-if="list1.length!=0">
 					<template v-slot:default="{item}">
 					<template v-slot:default="{item}">
-						<view class="flex-center flex-col" @click="tiaozhuan()">
-							<tm-icons :size="160" :name="item.icon" :color="item.color"></tm-icons>
+						<view class="flex-center flex-col" @click="tiaozhuan(item)">
+							<tm-icons class="divcont" :size="160" :name="item.icon" :color="item.color"></tm-icons>
 							<text class="text-size-m text-white pt-10">{{item.text}}</text>
 							<text class="text-size-m text-white pt-10">{{item.text}}</text>
 							<text class="text-size-m text-white pt-10">{{item.jie}}</text>
 							<text class="text-size-m text-white pt-10">{{item.jie}}</text>
 						</view>
 						</view>
@@ -117,7 +117,7 @@
 				current: 0,
 				current: 0,
 				activeIndex: 0,
 				activeIndex: 0,
 				soso: '',
 				soso: '',
-				addr: ['江西省', '南昌市', '西湖区'],
+				addr: ['江苏省', '南京市', '栖霞区'],
 				value: '',
 				value: '',
 				list: [],
 				list: [],
 				list1: [],
 				list1: [],
@@ -248,7 +248,8 @@
 						res.data.data.forEach(item => {
 						res.data.data.forEach(item => {
 							that.list3.push({
 							that.list3.push({
 								icon: item.image,
 								icon: item.image,
-								text: item.category_name
+								text: item.category_name,
+								id:item.id
 							})
 							})
 						})
 						})
 					} else {
 					} else {
@@ -274,7 +275,8 @@
 						res.data.data.forEach(item => {
 						res.data.data.forEach(item => {
 							that.list1.push({
 							that.list1.push({
 								icon: item.image,
 								icon: item.image,
-								text: item.category_name
+								text: item.category_name,
+								pid:item.pid
 							})
 							})
 						})
 						})
 					} else {
 					} else {
@@ -293,7 +295,6 @@
 					method: 'get',
 					method: 'get',
 				}).then(res => {
 				}).then(res => {
 					if (res.data.code == 200) {
 					if (res.data.code == 200) {
-						console.log(res.data.data, '22');
 						res.data.data.forEach(item => {
 						res.data.data.forEach(item => {
 							that.list4.push({
 							that.list4.push({
 								icon: item.image,
 								icon: item.image,
@@ -359,10 +360,15 @@
 					this.isBottom = true;
 					this.isBottom = true;
 				}
 				}
 			},
 			},
-			tiaozhuan() {
-				uni.navigateTo({
-					url: "/pages/gengduo/index",
-				})
+			tiaozhuan(e) {
+				for(let i=0;i<this.list3.length;i++){
+					if(this.list3[i].id==e.pid){
+						uni.navigateTo({
+							url: "/pages/gengduo/index?index="+i,
+						})
+					}
+				}
+				
 			},
 			},
 			// 广告详情
 			// 广告详情
 			xiangqing() {
 			xiangqing() {
@@ -440,8 +446,9 @@
 				// }
 				// }
 			},
 			},
 			zhonglei(e) {
 			zhonglei(e) {
+				console.log(e)
 				uni.navigateTo({
 				uni.navigateTo({
-					url: "/pages/gengduo/index",
+					url: "/pages/gengduo/index?index="+e.index,
 				})
 				})
 			}
 			}
 		},
 		},
@@ -618,4 +625,8 @@
 	/deep/ .shangpin .text-red {
 	/deep/ .shangpin .text-red {
 		color: white !important;
 		color: white !important;
 	}
 	}
+	.divcont{
+		border-radius: 50px;
+		overflow: hidden;
+	}
 </style>
 </style>

+ 5 - 2
pages/sort/index.vue

@@ -2,7 +2,7 @@
 	<view :style="{ minHeight: sys.windowHeight + 'px' }" :class="[$tm.vx.state().tmVuetify.black ? 'black' : ' ']">
 	<view :style="{ minHeight: sys.windowHeight + 'px' }" :class="[$tm.vx.state().tmVuetify.black ? 'black' : ' ']">
 		<tm-menubars title="分类列表" :shadow="0" :showback="true"></tm-menubars>
 		<tm-menubars title="分类列表" :shadow="0" :showback="true"></tm-menubars>
 		<div class="zhuti">
 		<div class="zhuti">
-			<tm-sheet class="kuang" style="padding-bottom: 30px !important;" v-if="listdata.length!=0" >
+			<tm-sheet class="kuang" style="padding-bottom: 30px !important;" >
 				<view style="width: 94%;margin:0 auto;" class="remen">
 				<view style="width: 94%;margin:0 auto;" class="remen">
 					<view v-for="(item,index) in listdata"  class="round-5 contone black mt-20" :class="index%2==0?'fl':'fr'" @click="goDetail(item)">
 					<view v-for="(item,index) in listdata"  class="round-5 contone black mt-20" :class="index%2==0?'fl':'fr'" @click="goDetail(item)">
 						<image class="logo" :src="item.image" mode="widthFix"></image>
 						<image class="logo" :src="item.image" mode="widthFix"></image>
@@ -21,12 +21,14 @@
 							</view>
 							</view>
 						</view>
 						</view>
 					</view>
 					</view>
+					<tm-empty v-if="listdata.length ==0" label="暂无数据" color="white" icon="icon-paperplane-fill"></tm-empty>
 					<view style="clear: both;"></view>
 					<view style="clear: both;"></view>
 					<view style="clear: both;" class="more ma-40 pt-40" @click="gengmore()" v-if="listdata.length<total" >
 					<view style="clear: both;" class="more ma-40 pt-40" @click="gengmore()" v-if="listdata.length<total" >
 						<image src="/static/img/30.png" mode="widthFix"></image>
 						<image src="/static/img/30.png" mode="widthFix"></image>
 						<text class="text-size-s">下拉加载更多~</text>
 						<text class="text-size-s">下拉加载更多~</text>
 					</view>
 					</view>
 				</view>
 				</view>
+				
 			</tm-sheet>
 			</tm-sheet>
 			<view style="height:60px"></view>
 			<view style="height:60px"></view>
 		</div>
 		</div>
@@ -40,7 +42,7 @@ export default {
 	data() {
 	data() {
 		return {
 		return {
 			typeclick:1,
 			typeclick:1,
-			listdata:[],
+			listdata:{},
 			soId:'',
 			soId:'',
 			page:1,
 			page:1,
 			pagesize:8,
 			pagesize:8,
@@ -110,6 +112,7 @@ export default {
 						that.listdata=[]
 						that.listdata=[]
 					}
 					}
 				}else{
 				}else{
+					that.listdata=[]
 					that.$refs.toast.show({
 					that.$refs.toast.show({
 						model: 'error',
 						model: 'error',
 						label: res.data.msg
 						label: res.data.msg

+ 14 - 20
pages/zhaohui/index.vue

@@ -65,27 +65,21 @@ export default {
 				that.$refs.toast.show({model:'warn',label:'请输入手机号'})
 				that.$refs.toast.show({model:'warn',label:'请输入手机号'})
 				return
 				return
 			}
 			}
-			uni.request({
-				url: "https://apitest.yitutianxia.com/common/SendSms?mobile="+that.reqData.mobile,
-				method: "get",
-				data:{},
-				dataType:'json',
-				success : function(res) {
-					console.log(res)
-					if (res.data.code == 200) {
-						that.$refs.toast.show({model:'success',label:res.data.msg})
-						that.yzmvar.text="已发送";
-						setTimeout(function(){
-							that.yzmvar.text="发送验证码";
-						},15000)
-					}else{
-						that.$refs.toast.show({model:'error',label:res.data.msg})
-					}
-				},
-				error : function(e) {
-					alert("网络异常,请重试");
+			myRequest({
+				url: "/api/Login/sendCode?mobile="+that.reqData.mobile,
+				method:'get',
+				data:{}
+			}).then(res => {
+				if (res.data.code == 200) {
+					that.$refs.toast.show({model:'success',label:res.data.msg})
+					that.yzmvar.text="已发送";
+					setTimeout(function(){
+						that.yzmvar.text="发送验证码";
+					},15000)
+				}else{
+					that.$refs.toast.show({model:'error',label:res.data.msg})
 				}
 				}
-			});
+			})
 		},
 		},
 	},
 	},
 }
 }

+ 7 - 3
tm-vuetify/components/tm-sliderNav/tm-sliderNav.vue

@@ -73,6 +73,11 @@
 					return [];
 					return [];
 				}
 				}
 			},
 			},
+			// activeIndex
+			activeIndex: {
+				type: Number |String,
+				default: 0 // set a default value for the prop
+			},
 			// 显示标签的key.
 			// 显示标签的key.
 			rangKey:{
 			rangKey:{
 				type:String,
 				type:String,
@@ -129,8 +134,7 @@
 			return {
 			return {
 				activeHeight:0,
 				activeHeight:0,
 				activeWidth:0,
 				activeWidth:0,
-				activeIndex:0,
-				formaData:[]
+				formaData:[],
 			};
 			};
 		},
 		},
 		computed:{
 		computed:{
@@ -176,7 +180,7 @@
 		},
 		},
 		methods: {
 		methods: {
 			change(index) {
 			change(index) {
-				this.activeIndex=index;
+				// this.activeIndex=index;
 				this.$emit('change',index);
 				this.$emit('change',index);
 			}
 			}
 		},
 		},

BIN
unpackage/cache/apk/__UNI__ED944FB_cm.apk


+ 1 - 1
unpackage/cache/apk/apkurl

@@ -1 +1 @@
-https://ide.dcloud.net.cn/build/download/c07f5450-c78a-11ed-9fc4-b7a21152eb4c
+https://ide.dcloud.net.cn/build/download/e7610930-c922-11ed-b80d-bbbbc1fe0b5e

File diff suppressed because it is too large
+ 0 - 0
unpackage/cache/apk/cmManifestCache.json


File diff suppressed because it is too large
+ 0 - 0
unpackage/cache/wgt/__UNI__ED944FB/app-service.js


File diff suppressed because it is too large
+ 0 - 0
unpackage/cache/wgt/__UNI__ED944FB/app-view.js


File diff suppressed because it is too large
+ 0 - 0
unpackage/cache/wgt/__UNI__ED944FB/manifest.json


File diff suppressed because it is too large
+ 0 - 0
unpackage/dist/build/app-plus/app-service.js


File diff suppressed because it is too large
+ 0 - 0
unpackage/dist/build/app-plus/app-view.js


File diff suppressed because it is too large
+ 0 - 0
unpackage/dist/build/app-plus/manifest.json


File diff suppressed because it is too large
+ 0 - 0
unpackage/dist/dev/app-plus/app-service.js


File diff suppressed because it is too large
+ 65 - 7
unpackage/dist/dev/app-plus/app-view.js


File diff suppressed because it is too large
+ 0 - 0
unpackage/dist/dev/app-plus/manifest.json


BIN
unpackage/release/apk/__UNI__ED944FB__20230323103206.apk


+ 0 - 0
unpackage/release/apk/智能衣柜.apk → unpackage/release/apk/备份/智能衣柜1.apk


BIN
unpackage/release/apk/备份/智能衣柜2.apk


Some files were not shown because too many files changed in this diff