YZM 2 anos atrás
pai
commit
235b0005c8

+ 76 - 0
pages/dingdan/index.vue

@@ -0,0 +1,76 @@
+<template>
+	<view :style="{ minHeight: sys.windowHeight + 'px' }"
+		:class="[$tm.vx.state().tmVuetify.black ? 'black' : ' ']">
+		<tm-menubars title="我的订单" :shadow="0" :showback="true"></tm-menubars>
+		<tm-tabs align="center" class="qiehuan1" v-model="activeIndex" :list="list2" range-key="title"></tm-tabs>
+		<div class="zhuti shangpin">
+			<tm-sheet class="jiaoxi" style="" v-for="item in test">
+				<tm-cartCellListFood class="shuliang" :typeclick="typeclick" :mdata="item" :cart-num.sync="item.buy"></tm-cartCellListFood>
+			</tm-sheet>
+		</div>
+		<!-- 弹出层消息 -->
+		<tm-message ref="toast"></tm-message>
+	</view>
+</template>	
+<script>
+import{myRequest} from '@/api/request.js'
+export default {
+	data() {
+		return {
+			list2:[ '全部','待付款','待收货','已完成','售后'],
+			activeIndex:0,
+			test: [{
+				img: '../../static/img/83.png',
+				title: '丝缎质感纹理风衣',
+				label: '黑色 - 6518/320',
+				size:'S',
+				price: '1299',
+				id: 3,
+				buy: 0,
+				itemId: 0,
+				checked:false,
+			},{
+				img: '../../static/img/84.png',
+				title: '产品3(任选)',
+				size:'S',
+				label: '这个产品是只有几个融会',
+				price: 36.2,
+				id: 3,
+				buy: 0,
+				itemId: 0,
+				checked:false
+			}],
+			typeclick:4,//1加入购物车,2购物车
+		};
+	},
+	onLoad() {
+		
+	},
+	created() {
+		this.sys = uni.getSystemInfoSync();
+	},
+	methods: {
+		
+	},
+}
+</script>
+
+<style lang="scss">
+	/deep/ .tm-menubars .body{
+		background-color: #1b1b1b !important;
+	}
+	/deep/ .qiehuan1 .text-primary{color: white !important;}
+	/deep/ .qiehuan1 .tm-tabs-wk{border-top: 1px solid #262628;}
+	/deep/ .shuliang .text-size-n{color: white !important;}
+	/deep/ .shangpin .white.bk{background-color:#1b1b1b!important;}
+	/deep/ .shangpin .tm-cartCellListFood{padding: 0px 0px 15px 0px !important;
+	margin-top: 5px !important;margin-bottom: 20px !important;
+	border-bottom: 1px solid #1B1B1B;}
+	/deep/ .shangpin .border-t-1.bk{border-top:1px solid #1b1b1b!important;}
+	/deep/ .shangpin .title{color: white !important;}
+	/deep/ .shangpin .text-red{color: white !important;}
+	/deep/ .shangpin .round-3{width:90px !important;height:90px !important;}
+	/deep/ .shangpin .tm-cartCellListFood-img{width:90px !important;height:90px !important;}
+	/deep/ .shuliang .text-size-n{color: white !important;}
+	/deep/ .jiaoxi{margin:0 !important;padding: 8px !important;margin-top: 10px !important;}
+</style>

+ 1 - 4
pages/gouwuche/index.vue

@@ -6,11 +6,8 @@
 			<tm-sheet :padding="[0, 0]" class="jiaoxi xiao">
 				<view v-for="item in test">
 					<tm-checkbox style="float: left;padding:2px !important;margin-top:9%;" v-model="item.checked" label=""></tm-checkbox>
-					<tm-cartCellListFood class="shuliang" :typeclick="typeclick" :mdata="item" :cart-num.sync="item.buy">
-						
-					</tm-cartCellListFood>
+					<tm-cartCellListFood class="shuliang" :typeclick="typeclick" :mdata="item" :cart-num.sync="item.buy"></tm-cartCellListFood>
 				</view>
-				
 			</tm-sheet>
 		</view>
 		<view class="dibu">

+ 85 - 0
pages/guanzhu/index.vue

@@ -0,0 +1,85 @@
+<template>
+	<view :style="{ minHeight: sys.windowHeight + 'px' }"
+		:class="[$tm.vx.state().tmVuetify.black ? 'black' : ' ']">
+		<tm-menubars title="消息列表" :shadow="0" :showback="true"></tm-menubars>
+		<div class="zhuti">
+			<tm-sheet class="kuang" style="padding-bottom: 70px !important;">
+				<view style="width: 94%;margin:0 auto;">
+					<view class="mb-30 pt-20 text-white">全部关注</view>
+					<tm-listitem
+						class="liebiao"
+						:left-icon-size="120"
+						value="取消关注"
+						title="默认用户1"
+						label="用户暂无简介"
+						left-icon="/static/img/53.png"
+						show-left-icon
+						:show-right-icon="false"
+					></tm-listitem>
+					<tm-listitem
+						class="liebiao"
+						:left-icon-size="120"
+						value="取消关注"
+						title="默认用户1"
+						label="用户暂无简介"
+						left-icon="/static/img/53.png"
+						show-left-icon
+						:show-right-icon="false"
+					></tm-listitem>
+				</view>
+			</tm-sheet>
+		</div>
+		<!-- 弹出层消息 -->
+		<tm-message ref="toast"></tm-message>
+	</view>
+</template>	
+<script>
+import{myRequest} from '@/api/request.js'
+export default {
+	data() {
+		return {
+			checked1:false,
+			checked2:false,
+			checked3:false,
+			beizu:''
+		};
+	},
+	onLoad() {
+		
+	},
+	created() {
+		this.sys = uni.getSystemInfoSync();
+	},
+	methods: {
+		aa(num){
+			if(num==1){
+				this.checked1=true;
+				this.checked2=false;
+				this.checked3=false;
+			}else if(num==2){
+				this.checked1=false;
+				this.checked2=true;
+				this.checked3=false;
+			}else if(num==3){
+				this.checked1=false;
+				this.checked2=false;
+				this.checked3=true;
+			}
+		},
+	},
+}
+</script>
+
+<style lang="scss">
+	/deep/ .tm-menubars .body{
+		background-color: #1b1b1b !important;
+	}
+	/deep/ .zhuti{padding: 10px 10px;}
+	/deep/ .kuang{margin:0 !important;padding: 0px !important;}
+	/deep/ .liebiao .tm-content{margin-left:15px !important;}
+	/deep/ .liebiao .mx-32{margin:0px !important;border-bottom: 1px solid #303030;}
+	/deep/ .liebiao .pt-4{padding-top: 12px;}
+	/deep/ .liebiao .d-inline-block{background: #303440;
+    padding: 4px 14px 4px 14px;
+    border-radius: 30px;}
+</style>

+ 111 - 0
pages/pingjia/index.vue

@@ -0,0 +1,111 @@
+<template>
+	<view :style="{ minHeight: sys.windowHeight + 'px' }"
+		:class="[$tm.vx.state().tmVuetify.black ? 'black' : ' ']">
+		<tm-menubars title="我的评价" :shadow="0" :showback="true"></tm-menubars>
+		<div class="zhuti">
+			<tm-sheet class="kuang" style="padding-bottom: 70px !important;">
+				<view style="width: 94%;margin:0 auto;">
+					<tm-cartCellListFood class="shangpin" :typeclick="typeclick" :mdata="item" :cart-num.sync="item.buy"></tm-cartCellListFood>
+					<view class="tiyan">
+						<text class="text-white mr-20">产品体验</text>
+						<tm-rate v-model="rate1"></tm-rate>
+						<text class="ml-20 text-size-s">非常满意</text>
+					</view>
+					<view class="tiyan">
+						<text class="text-white mr-20">派送评价</text>
+						<tm-rate v-model="rate2"></tm-rate>
+						<text class="ml-20 text-size-s">比较满意</text>
+					</view>
+					<view class="tiyan">
+						<text class="text-white mr-20">服务态度</text>
+						<tm-rate v-model="rate3"></tm-rate>
+						<text class="ml-20 text-size-s">一般满意</text>
+					</view>
+					<tm-input class="shuru" :height="150" title="" :maxlength="144"  :border-bottom="false" placeholder="快来发表评论吧!"  input-type="textarea" v-model="val_1" bg-color="grey-lighten-5" clear></tm-input>
+					<view class="mt-30">
+						<tm-upload :tips="false" :filelist.sync="filelist"></tm-upload>
+					</view>
+					<tm-button :round="24" class="sao" block>提交</tm-button>
+				</view>
+			</tm-sheet>
+			
+		</div>
+		<!-- 弹出层消息 -->
+		<tm-message ref="toast"></tm-message>
+	</view>
+</template>	
+<script>
+import{myRequest} from '@/api/request.js'
+export default {
+	data() {
+		return {
+			item: {
+				img: '../../static/img/83.png',
+				title: '丝缎质感纹理风衣',
+				label: '黑色 - 6518/320',
+				size:'S',
+				price: '1299',
+				id: 3,
+				buy: 0,
+				itemId: 0,
+				checked:false,
+			},
+			typeclick:5,//1加入购物车,2购物车
+			rate1:1,
+			rate2:2,
+			rate3:3,
+			val_1:'',
+			filelist:["https://picsum.photos/200?v=555","https://picsum.photos/200?v=555"],
+		};
+	},
+	onLoad() {
+		
+	},
+	created() {
+		this.sys = uni.getSystemInfoSync();
+	},
+	methods: {
+		aa(num){
+			if(num==1){
+				this.checked1=true;
+				this.checked2=false;
+				this.checked3=false;
+			}else if(num==2){
+				this.checked1=false;
+				this.checked2=true;
+				this.checked3=false;
+			}else if(num==3){
+				this.checked1=false;
+				this.checked2=false;
+				this.checked3=true;
+			}
+		},
+	},
+}
+</script>
+
+<style lang="scss">
+	/deep/ .tm-menubars .body{
+		background-color: #1b1b1b !important;
+	}
+	/deep/ .zhuti{padding: 10px 10px;}
+	/deep/ .kuang{margin:0 !important;padding: 0px !important;}
+	.sao{width: 90%;margin: 0 auto;margin-top: 20px;}
+	/deep/ .shuliang .text-size-n{color: white !important;}
+	/deep/ .kuang .white.bk{background-color:#1b1b1b!important;}
+	/deep/ .shangpin .tm-cartCellListFood{padding: 0px 0px 15px 0px !important;
+	margin-top: 5px !important;margin-bottom: 20px !important;
+	border-bottom: 1px solid #1B1B1B;}
+	/deep/ .kuang .border-t-1.bk{border-top:1px solid #1b1b1b!important;}
+	/deep/ .shangpin .title{color: white !important;}
+	/deep/ .shangpin .text-red{color: white !important;}
+	/deep/ .shangpin .round-3{width:90px !important;height:90px !important;}
+	/deep/ .shangpin .tm-cartCellListFood-img{width:90px !important;height:90px !important;}
+	/deep/ .shuliang .text-size-n{color: white !important;}
+	.tiyan text{vertical-align: middle;}
+	.tiyan{margin-top: 20px;}
+	/deep/ .tiyan .text-primary.bk{color: #FFCC00 !important;}
+	/deep/ .tiyan .opacity-6{opacity:1 !important;}
+	/deep/ .shuru .grey-darken-4{background: #0D0D0D !important;}
+	.shuru{padding:0px !important;margin-top: 20px !important;}
+</style>

+ 60 - 0
pages/qianbao/index.vue

@@ -0,0 +1,60 @@
+<template>
+	<view :style="{ minHeight: sys.windowHeight + 'px' }"
+		:class="[$tm.vx.state().tmVuetify.black ? 'black' : ' ']">
+		<tm-menubars title="消息列表" :shadow="0" :showback="true"></tm-menubars>
+		<div class="zhuti">
+			<tm-sheet class="kuang" style="padding-bottom: 70px !important;">
+				<view style="width: 94%;margin:0 auto;">
+					
+				</view>
+			</tm-sheet>
+			<tm-button :round="24" class="sao mb-40 mt-40" block>提交</tm-button>
+		</div>
+		<!-- 弹出层消息 -->
+		<tm-message ref="toast"></tm-message>
+	</view>
+</template>	
+<script>
+import{myRequest} from '@/api/request.js'
+export default {
+	data() {
+		return {
+			checked1:false,
+			checked2:false,
+			checked3:false,
+			beizu:''
+		};
+	},
+	onLoad() {
+		
+	},
+	created() {
+		this.sys = uni.getSystemInfoSync();
+	},
+	methods: {
+		aa(num){
+			if(num==1){
+				this.checked1=true;
+				this.checked2=false;
+				this.checked3=false;
+			}else if(num==2){
+				this.checked1=false;
+				this.checked2=true;
+				this.checked3=false;
+			}else if(num==3){
+				this.checked1=false;
+				this.checked2=false;
+				this.checked3=true;
+			}
+		},
+	},
+}
+</script>
+
+<style lang="scss">
+	/deep/ .tm-menubars .body{
+		background-color: #1b1b1b !important;
+	}
+	/deep/ .zhuti{padding: 10px 10px;}
+	/deep/ .kuang{margin:0 !important;padding: 0px !important;}
+</style>

+ 14 - 8
pages/shouye/index.vue

@@ -33,7 +33,7 @@
 								<image v-if="current==0" class="anniu mr-10" src="/static/img/14.png" mode="widthFix"></image>
 								<image v-if="current!=0" @click="xia()" class="anniu mr-10" src="/static/img/12.png" mode="widthFix"></image>
 							</tm-translate>
-							<tm-swiper @change="jinriFun" class="tu fl" :previmage="false" :noSwiping="true" :height="220" :width="250" :current="current" :margin="8"  :autoplay="false" :list="list"></tm-swiper>
+							<tm-swiper @click="tiaoclick" @change="jinriFun" class="tu fl" :previmage="false" :noSwiping="true" :height="220" :width="250" :current="current" :margin="8"  :autoplay="false" :list="list"></tm-swiper>
 							<tm-translate class="fl a_1" :auto="true" ref="a_5" :duration="80"  animation-name="zoomIn">
 								<image v-if="current<(list.length-1)" @click="shang()" class="anniu fl ml-10" src="/static/img/13.png" mode="widthFix"></image>
 								<image v-if="current>(list.length-2)" class="anniu fl ml-10" src="/static/img/11.png" mode="widthFix"></image>
@@ -223,17 +223,23 @@
 		},
 		created() {
 			var that=this;
-			// setTimeout(function(){
-			// 	if(uni.getStorageSync("token")==""){
-			// 		uni.redirectTo({
-			// 			url:"/pages/login/index"
-			// 		})
-			// 	}
-			// },1000)
+			setTimeout(function(){
+				if(uni.getStorageSync("token")==""){
+					uni.redirectTo({
+						url:"/pages/login/index"
+					})
+				}
+			},1000)
 			this.sys = uni.getSystemInfoSync();
 			this.randouh()
 		},
 		methods: {
+			tiaoclick(e){
+				console.log(e)
+				uni.navigateTo({
+					url: "/pages/shouyedetail/index",
+				})
+			},
 			jinriFun(e){
 				this.current=e;
 			},

+ 120 - 26
pages/shouyedetail/index.vue

@@ -1,15 +1,57 @@
 <template>
 	<view :style="{ minHeight: sys.windowHeight + 'px' }"
 		:class="[$tm.vx.state().tmVuetify.black ? 'black' : ' ']">
-		<tm-menubars title="消息列表" :shadow="0" :showback="true"></tm-menubars>
-		<div class="zhuti">
-			<tm-sheet class="kuang" style="padding-bottom: 70px !important;">
-				<view style="width: 94%;margin:0 auto;">
-					
+		<tm-menubars title="详情" :shadow="0" :showback="true"></tm-menubars>
+		<image class="touimg" src="/static/img/91.png" mode="widthFix"></image>
+		<view class="qiehuancla">
+			<view :class="index==0?'border':'border1'" class="da" @click="qiehuan(0)">
+				<image class="xiaoimg" src="/static/img/92.png"></image>
+				<image v-if="index==0" class="sanjiao" src="/static/img/93.png" mode="widthFix"></image>
+			</view>
+			<view :class="index==1?'border':'border1'" class="da" @click="qiehuan(1)">
+				<image class="xiaoimg" src="/static/img/92.png"></image>
+				<image v-if="index==1" class="sanjiao" src="/static/img/93.png" mode="widthFix"></image>
+			</view>
+			<view :class="index==2?'border':'border1'" class="da" @click="qiehuan(2)">
+				<image class="xiaoimg" src="/static/img/92.png"></image>
+				<image v-if="index==2" class="sanjiao" src="/static/img/93.png" mode="widthFix"></image>
+			</view>
+			<view :class="index==3?'border':'border1'" class="da" @click="qiehuan(3)">
+				<image class="xiaoimg" src="/static/img/92.png"></image>
+				<image v-if="index==3" class="sanjiao" src="/static/img/93.png" mode="widthFix"></image>
+			</view>
+			<view :class="index==4?'border':'border1'" class="da" @click="qiehuan(4)">
+				<image class="xiaoimg" src="/static/img/92.png"></image>
+				<image v-if="index==4" class="sanjiao" src="/static/img/93.png" mode="widthFix"></image>
+			</view>
+			<view style="clear: both;"></view>
+		</view>
+		<tm-sheet class="contzui">
+			<div class="zhuti">
+				<view class="text-white">BALENCIAGA / adidas TRIPLE S男士运动鞋</view>
+				<view class="text-gray text-size-m mt-20">adidas 白色、黑色和灰色双层泡沫和网布 Triple S 运动鞋是与 adidas 携手推出的合作款。</view>
+				<view class="shoucang mt-30 fr">
+					<view class="fl di mr-20" @click="shouc">
+						<tm-translate ref="a_3" :auto="true" :duration="80"  animation-name="zoomIn">
+							<image :src="shoucangsrc?'/static/img/15.png':'/static/img/8.png'" mode="widthFix" style="margin-right: 15px;"></image>
+						</tm-translate>
+					</view>
+					<view class="fl di" @click="zan">
+						<tm-translate ref="a_2" :auto="true" :duration="80"  animation-name="zoomIn">
+							<image :src="dianzan?'/static/img/16.png':'/static/img/9.png'" mode="widthFix" style="margin-right: 15px;"></image>
+						</tm-translate>
+					</view>
 				</view>
-			</tm-sheet>
-			<tm-button :round="24" class="sao mb-40 mt-40" block>提交</tm-button>
-		</div>
+				<view style="clear: both;"></view>
+			</div>
+		</tm-sheet>
+		<tm-sheet :padding="[0, 0]" class="jiaoxi">
+			<view class="zhuti shangpin">
+				<view class="mb-30 mt-20 text-white">商品</view>
+				<tm-cartCellListFood  v-on:jiaruFun="jiarufuFun" v-for="item in test" :typeclick="typeclick" :mdata="item" :cart-num.sync="item.buy"></tm-cartCellListFood>
+			</view>
+		</tm-sheet>
+		
 		<!-- 弹出层消息 -->
 		<tm-message ref="toast"></tm-message>
 	</view>
@@ -19,10 +61,32 @@ import{myRequest} from '@/api/request.js'
 export default {
 	data() {
 		return {
-			checked1:false,
-			checked2:false,
-			checked3:false,
-			beizu:''
+			index:0,
+			shoucangsrc:true,
+			dianzan:true,
+			test: [{
+				img: '../../static/img/83.png',
+				title: '丝缎质感纹理风衣',
+				label: '黑色 - 6518/320',
+				id: 3,
+				buy: 0,
+				itemId: 0
+			},{
+				img: '../../static/img/84.png',
+				title: '产品3(任选)',
+				label: '这个产品是只有几个融会',
+				id: 3,
+				buy: 0,
+				itemId: 0
+			},{
+				img: '../../static/img/83.png',
+				title: '产品3(任选)',
+				label: '这个产品是只有几个融会',
+				id: 3,
+				buy: 0,
+				itemId: 0
+			}],
+			typeclick:3,//1加入购物车,2购物车,3详情
 		};
 	},
 	onLoad() {
@@ -32,21 +96,24 @@ export default {
 		this.sys = uni.getSystemInfoSync();
 	},
 	methods: {
-		aa(num){
-			if(num==1){
-				this.checked1=true;
-				this.checked2=false;
-				this.checked3=false;
-			}else if(num==2){
-				this.checked1=false;
-				this.checked2=true;
-				this.checked3=false;
-			}else if(num==3){
-				this.checked1=false;
-				this.checked2=false;
-				this.checked3=true;
-			}
+		jiarufuFun(data){
+			// uni.navigateTo({
+			// 	url: "/pages/gouwuche/index",
+			// })
+			console.log(data)
+			// this.gouwuche.push(data)
+		},
+		shouc(){
+			this.shoucangsrc=! this.shoucangsrc;
+			this.$refs.a_3.play()
+		},
+		zan(){
+			this.dianzan=! this.dianzan;
+			this.$refs.a_2.play()
 		},
+		qiehuan(index){
+			this.index=index;
+		}
 	},
 }
 </script>
@@ -57,4 +124,31 @@ export default {
 	}
 	/deep/ .zhuti{padding: 10px 10px;}
 	/deep/ .kuang{margin:0 !important;padding: 0px !important;}
+	.touimg{width: 100%;display: block;}
+	.qiehuancla{width: 100%;}
+	.xiaoimg{width: 100%;height: 55px;display: block;}
+	.qiehuancla .da{width: 19.4%;float: left;height: 55px;position:relative;}
+	.border{border: 1px solid #0178FD;}
+	.border1{border: 1px solid #0D0D0D;}
+	.sanjiao{width: 18px;height: 18px;position: absolute;top: -10px;left:39%;}
+	.shoucang image{width: 45px;}
+	.qiehuan{float: right;}
+	.qiehuan .a_1{margin-top: 25%;}
+	.qiehuan .anniu{width: 20px;height: 20px !important;}
+	.di{background: #0D0D0D;width: 45px;height: 45px;text-align: center;line-height: 50px;border-radius: 30px;}
+	.di image{width: 22px;margin: 0 !important;height: 20px !important;}
+	.contzui{margin:0;}
+	/deep/ .shangpin .white.bk{background-color:#1b1b1b!important;}
+	/deep/ .shangpin .tm-cartCellListFood{padding: 0px 10px 15px 10px !important;
+	margin-top: 5px !important;margin-bottom: 20px !important;
+	border-bottom: 1px solid #303030;}
+	/deep/ .shangpin .border-t-1.bk{border-top:1px solid #1B1B1B!important;}
+	/deep/ .shangpin .round-3{width:110px !important;height:110px !important;}
+	/deep/ .shangpin .tm-cartCellListFood-img{width:110px !important;height:110px !important;}
+	.fudong{position: fixed;right:30px;bottom:80px;background: #0DABF2;width: 60px;height:60px;
+	border-radius: 30px;text-align: center;}
+	/deep/ .shangpin .title{color: white !important;font-size: 16px;}
+	/deep/ .shangpin .text-red{color: white !important;}
+	.jiaoxi{margin: 0px;margin-top: 15px;}
+	/deep/ .shangpin .tm-cartCellListFood-label{font-size: 14px;color: white !important;margin-top: 10px !important;}
 </style>

+ 14 - 1
pages/user/index.vue

@@ -19,7 +19,7 @@
 							<view class="aa"></view>
 						</view>
 					</tm-col>
-					<tm-col color="" >
+					<tm-col color="" @click="dingdan">
 						<view class="py-10 text-size-xs">
 							<image class="sange2" src="/static/img/57.png"></image>
 							<text>我的订单</text>
@@ -89,6 +89,10 @@ export default {
 				uni.navigateTo({
 					url: "/pages/chuanghome/index",
 				})
+			}else if(type==2){
+				uni.navigateTo({
+					url: "/pages/pingjia/index",
+				})
 			}else if(type==3){
 				uni.navigateTo({
 					url: "/pages/fankui/index",
@@ -97,12 +101,21 @@ export default {
 				uni.navigateTo({
 					url: "/pages/xiaoxi/index",
 				})
+			}else if(type==5){
+				uni.navigateTo({
+					url: "/pages/guanzhu/index",
+				})
 			}else if(type==10){
 				uni.navigateTo({
 					url: "/pages/luru/index",
 				})
 			}
 		},
+		dingdan(){
+			uni.navigateTo({
+				url: "/pages/dingdan/index",
+			})
+		},
 		queren(){
 			var that=this;
 			if(uni.getStorageSync("token")==""){