Bladeren bron

2023-4-28

cmy 2 jaren geleden
bovenliggende
commit
d617edd8a2
6 gewijzigde bestanden met toevoegingen van 86 en 28 verwijderingen
  1. 61 1
      pages.json
  2. 0 2
      pages/mall/mall.vue
  3. 8 0
      pages/product/common/contentText.vue
  4. 0 4
      pages/product/list.vue
  5. 17 17
      pages/product/product.vue
  6. 0 4
      pages/product/reply.vue

+ 61 - 1
pages.json

@@ -8,7 +8,7 @@
 					"titleNView": false
 				},
 				// #endif
-				"navigationBarTitleText": "母婴界严选"
+				"navigationBarTitleText": "租电"
 			}
 		},
 		{
@@ -30,6 +30,66 @@
 				"navigationStyle": "custom",
 				"navigationBarTitleText": "个人中心"
 			}
+		},
+		{
+			"path": "pages/product/reply",
+			"style": {
+				"navigationBarTitleText": "商品评价",
+				"app-plus": {
+					"titleNView": {
+						"type": "transparent"
+					}
+				}
+			}
+		},
+		{
+			"path": "pages/product/product",
+			"style": {
+				"navigationBarTitleText": "详情展示",
+				"app-plus": {
+					"titleNView": {
+						"type": "transparent"
+					}
+				}
+			}
+		},
+		{
+			"path": "pages/product/list",
+			"style": {
+				"enablePullDownRefresh": true,
+				"navigationBarTitleText": "商品列表"
+			}
+		},
+		{
+			"path": "pages/product/search",
+			"style": {
+				"enablePullDownRefresh": true,
+				// #ifdef APP-PLUS
+				"navigationStyle": "custom",
+				// #endif
+				// #ifndef MP || APP-PLUS
+				"app-plus": {
+					"titleNView": {
+						"searchInput": {
+							"backgroundColor": "rgba(231, 231, 231,.7)",
+							"borderRadius": "16px",
+							"placeholder": "请输入关键字",
+							"disabled": false,
+							"placeholderColor": "#606266",
+							"align": "left"
+						},
+						"buttons": [{
+							"text": "搜索",
+							"fontSize": "14",
+							"color": "#303133",
+							"background": "rgba(0,0,0,0)",
+							"width": "40px"
+						}]
+					}
+				},
+				// #endif
+				"navigationBarTitleText": "搜索"
+			}
 		}
 	],
 	"subPackages": [{

+ 0 - 2
pages/mall/mall.vue

@@ -189,8 +189,6 @@
 		width: 750rpx;
 		height: 273rpx;
 		.carousel-item {
-			border-radius: 20rpx;
-
 			.imageitem {
 				width: 750rpx;
 				height: 273rpx;

+ 8 - 0
pages/product/common/contentText.vue

@@ -22,6 +22,14 @@ export default {
 </script>
 
 <style lang="scss">
+	.detail-centent{
+		// 处理float造成的无法撑开页面的bug
+		&:after{
+			content:"";
+			display: block;
+			clear:both ;
+		}
+	}
 	/*  详情 */
 	.detail-desc {
 		margin-top: 14rpx;

+ 0 - 4
pages/product/list.vue

@@ -46,13 +46,9 @@
 </template>
 
 <script>
-import uniLoadMore from '@/components/uni-load-more/uni-load-more.vue';
 import { getProducts } from '@/api/product.js';
 import { getCategoryList } from '@/api/product.js';
 export default {
-	components: {
-		uniLoadMore
-	},
 	data() {
 		return {
 			cateMaskState: 0, //分类面板展开状态

+ 17 - 17
pages/product/product.vue

@@ -36,7 +36,7 @@
 								库存:{{actionGoodsType.goodsStore}}
 							</text>
 						</text>
-						<view class="flex">
+						<!-- <view class="flex">
 							<view class="type">
 								服务费:{{actionGoodsType.day_deducted}}
 							</view>
@@ -44,7 +44,7 @@
 								服务天数:{{actionGoodsType.deal_price_num}}
 							</view>
 
-						</view>
+						</view> -->
 					</view>
 				</view>
 				<view v-for="(item, index) in specList" :key="index" class="attr-list">
@@ -359,21 +359,21 @@
 			// 立即购买
 			buy() {
 				let obj = this;
-				if (obj.userInfo.is_real == 0) {
-					uni.showModal({
-						title: '提示',
-						content: '请先实名认证才可购买',
-						showCancel: false,
-						success: res => {
-							if (res.confirm) {
-								uni.navigateTo({
-									url: '/pages/user/realName/realNameAuthentication'
-								})
-							}
-						},
-					});
-					return
-				}
+				// if (obj.userInfo.is_real == 0) {
+				// 	uni.showModal({
+				// 		title: '提示',
+				// 		content: '请先实名认证才可购买',
+				// 		showCancel: false,
+				// 		success: res => {
+				// 			if (res.confirm) {
+				// 				uni.navigateTo({
+				// 					url: '/pages/user/realName/realNameAuthentication'
+				// 				})
+				// 			}
+				// 		},
+				// 	});
+				// 	return
+				// }
 
 
 				// 创建传值对象

+ 0 - 4
pages/product/reply.vue

@@ -40,11 +40,7 @@
 
 <script>
 import { reply_config, reply_list } from '@/api/product.js';
-import uniRate from '@/components/uni-rate/uni-rate.vue';
 export default {
-	components: {
-		uniRate
-	},
 	watch: {},
 	data() {
 		return {