zs 2 年之前
父節點
當前提交
b03fd03cfb
共有 5 個文件被更改,包括 55 次插入9 次删除
  1. 6 0
      pages.json
  2. 3 2
      pagesHome/group/index.vue
  3. 36 0
      pagesHome/order/appraise.vue
  4. 5 4
      pagesHome/order/detail.vue
  5. 5 3
      pagesMy/dough/index.vue

+ 6 - 0
pages.json

@@ -246,6 +246,12 @@
 						"navigationBarTitleText": "提交订单"
 					}
 				},
+				{
+					"path": "order/appraise",
+					"style": {
+						"navigationBarTitleText": "商品评价"
+					}
+				},
 				{
 					"path": "shop/index",
 					"style": {

+ 3 - 2
pagesHome/group/index.vue

@@ -30,9 +30,9 @@
 						<view class="list" v-for="(item, index) in list" :key="index">
 							<view class="image">
 								<image class="file" v-for="(tag, indexs) in item.persons.slice(0,7)" :key="indexs"
-									:src="tag.icon&&tag.icon.length>0?tag.icon[0].url:''" mode="">
+									v-if="tag.status==0" :src="tag.icon&&tag.icon.length>0?tag.icon[0].url:''" mode="">
+								</image>
 							</view>
-							</image>
 							<view class="list_1">
 								<view class="name">
 									{{item.person_limit||0}}人即可开团成功
@@ -210,6 +210,7 @@
 				if (res.errcode == '0') {
 					let list = [...that.list, ...res.data];
 					for (let val of list) {
+						val.persons = val.persons.filter(i => i.status == '0')
 						let status = that.statusList.find(i => i.value == val.status)
 						if (status) val.zhStatus = status.label;
 						val.time = moment(val.meta.createdAt).format('YYYY-MM-DD HH:mm:ss')

+ 36 - 0
pagesHome/order/appraise.vue

@@ -0,0 +1,36 @@
+<template>
+	<mobile-frame>
+		<view class="main">
+			<view class="one">
+				1
+			</view>
+		</view>
+	</mobile-frame>
+</template>
+
+<script>
+	export default {
+		data() {
+			return {
+				list: []
+			};
+		},
+		onLoad: function(e) {
+
+		},
+		methods: {
+
+		}
+	}
+</script>
+
+<style lang="scss">
+	.main {
+		display: flex;
+		flex-direction: column;
+		width: 100vw;
+		height: 100vh;
+
+		.one {}
+	}
+</style>

+ 5 - 4
pagesHome/order/detail.vue

@@ -37,7 +37,7 @@
 								<view class="title">选择规格</view>
 								<text class="iconfont icon-jiantouyou"></text>
 							</view>
-							<view class="thr_1">
+							<view class="thr_1" @click="toAppraise">
 								<view class="title">商品评价({{info.comment||0}})</view>
 								<text class="iconfont icon-jiantouyou"></text>
 							</view>
@@ -252,10 +252,11 @@
 					url: `/pagesHome/shop/index?id=${that.shop._id}`
 				})
 			},
-			// 公共跳转
-			toCommon(e) {
+			// 商品评价
+			toAppraise(e) {
+				const that = this;
 				uni.navigateTo({
-					url: `/${e}`
+					url: `/pagesHome/order/appraise`
 				})
 			},
 			// 收藏

+ 5 - 3
pagesMy/dough/index.vue

@@ -10,9 +10,9 @@
 						<view class="list" v-for="(item, index) in list" :key="index">
 							<view class="image">
 								<image class="file" v-for="(tag, indexs) in item.persons.slice(0,7)" :key="indexs"
-									:src="tag.icon&&tag.icon.length>0?tag.icon[0].url:''" mode="">
+									v-if="tag.status==0" :src="tag.icon&&tag.icon.length>0?tag.icon[0].url:''" mode="">
+								</image>
 							</view>
-							</image>
 							<view class="list_1">
 								<view class="name">
 									{{item.person_limit||0}}人即可开团成功
@@ -109,6 +109,7 @@
 					if (res.errcode == '0') {
 						let list = [...that.list, ...res.data];
 						for (let val of list) {
+							val.persons = val.persons.filter(i => i.status == '0')
 							let status = that.statusList.find(i => i.value == val.status)
 							if (status) val.zhStatus = status.label;
 							val.time = moment(val.meta.createdAt).format('YYYY-MM-DD HH:mm:ss')
@@ -241,7 +242,8 @@
 							font-size: var(--font12Size);
 						}
 					}
-					.button{
+
+					.button {
 						margin: 0 2vw;
 						padding: 2vw 3vw;
 						background-color: var(--fcColor);