zs 2 年之前
父節點
當前提交
ef421b98b0
共有 4 個文件被更改,包括 160 次插入8 次删除
  1. 2 2
      config.js
  2. 3 3
      manifest.json
  3. 81 3
      pagesHome/order/detail.vue
  4. 74 0
      pagesHome/order/parts/banner_1.vue

+ 2 - 2
config.js

@@ -3,9 +3,9 @@ const system = uni.getSystemInfoSync();
 // 项目微信key
 // 测试环境:pointApp
 // 生产环境:tehqApp
-const wx_projectkey = 'tehqApp';
+const wx_projectkey = 'pointApp';
 // 请求地址
-const wx_dev = '';
+const wx_dev = '/dev';
 // 测试环境:/dev
 // 生产环境:''
 export default {

+ 3 - 3
manifest.json

@@ -67,7 +67,7 @@
                 },
                 "oauth" : {
                     "weixin" : {
-                        "appid" : "wx928648edf0df1882",
+                        "appid" : "wx8cdd28824dfcdf19",
                         "UniversalLinks" : ""
                     }
                 },
@@ -84,7 +84,7 @@
                 },
                 "share" : {
                     "weixin" : {
-                        "appid" : "wx928648edf0df1882",
+                        "appid" : "wx8cdd28824dfcdf19",
                         "UniversalLinks" : ""
                     }
                 }
@@ -127,7 +127,7 @@
     "quickapp" : {},
     /* 小程序特有相关 */
     "mp-weixin" : {
-        "appid" : "wx928648edf0df1882",
+        "appid" : "wx8cdd28824dfcdf19",
         "setting" : {
             "urlCheck" : true,
             "postcss" : true,

+ 81 - 3
pagesHome/order/detail.vue

@@ -2,7 +2,17 @@
 	<mobile-frame>
 		<view class="main">
 			<view class="one">
-				第一部分
+				<scroll-view scroll-y="true" class="scroll-view">
+					<view class="list-scroll-view">
+						<view class="one_1">
+
+						</view>
+					</view>
+				</scroll-view>
+			</view>
+			<view class="two">
+				<uni-goods-nav :options="options" :button-group="buttonGroup" @click="toNavleft"
+					@buttonClick="toNavright" />
 			</view>
 		</view>
 	</mobile-frame>
@@ -12,7 +22,33 @@
 	export default {
 		data() {
 			return {
-
+				// 底部菜单
+				options: [{
+						icon: 'shop',
+						text: '店铺',
+						type: 'shop',
+						route: 'pagesHome/shop/index',
+					},
+					{
+						icon: 'cart',
+						text: '购物车',
+						type: 'market',
+						route: 'pages/market/index',
+					},
+				],
+				buttonGroup: [{
+						text: '加入购物车',
+						backgroundColor: 'linear-gradient(90deg, #FFCD1E, #FF8A18)',
+						color: '#fff',
+						type: '0'
+					},
+					{
+						text: '立即购买',
+						backgroundColor: 'linear-gradient(90deg, #FE6035, #EF1224)',
+						color: '#fff',
+						type: '1'
+					}
+				],
 			};
 		},
 		onLoad: function(e) {
@@ -25,7 +61,25 @@
 
 		},
 		methods: {
-
+			// 店铺,购物车
+			toNavleft(e) {
+				const that = this;
+				if (e.content.type == 'shop') {
+					that.toShop();
+				} else if (e.content.type == 'market') {
+					let obj = {
+						route: e.content.route
+					}
+					that.toPath(obj)
+				}
+			},
+			// 加入购物车,立即购买
+			toNavright(e) {
+				const that = this;
+				that.$set(that, `popupShow`, '1');
+				that.$set(that, `btn_type`, e.content.type);
+				that.$refs.specShow.open();
+			},
 
 		}
 	}
@@ -37,5 +91,29 @@
 		flex-direction: column;
 		width: 100vw;
 		height: 100vh;
+
+		.one {
+			position: relative;
+			flex-grow: 1;
+		}
+
+		.two {
+			width: 100vw;
+			height: 8vh;
+			overflow: hidden;
+		}
+	}
+
+	.scroll-view {
+		position: absolute;
+		top: 0;
+		left: 0;
+		right: 0;
+		bottom: 0;
+
+		.list-scroll-view {
+			display: flex;
+			flex-direction: column;
+		}
 	}
 </style>

+ 74 - 0
pagesHome/order/parts/banner_1.vue

@@ -0,0 +1,74 @@
+<template>
+	<mobile-frame>
+		<view class="banner">
+			<view class="banner_1">
+				<swiper class="swiper" circular :indicator-dots="true" indicator-color="#ffffff"
+					indicator-active-color="#FB1438" :interval="3000" :duration="1000">
+					<swiper-item class="list" v-for="(item,index) in info.goods.file" :key="index">
+						<image class="image" :src="item.url" mode="aspectFit">
+						</image>
+					</swiper-item>
+				</swiper>
+				<!-- 是否关注商品 -->
+				<view class="goodsColect">
+					<text @tap="toGoodscolect"
+						:class="['iconfont',goodsColect?'icon-yduishoucangshixin-copy':'icon-yduishoucangkongxin']"></text>
+				</view>
+				<view class="acttags" v-if="info.goods.act_tags&&info.goods.act_tags.length>0">
+					<text v-for="i in info.goods.act_tags" :key="i">{{i.label}}</text>
+				</view>
+			</view>
+		</view>
+	</mobile-frame>
+</template>
+
+<script>
+	export default {
+		data() {
+			return {};
+		},
+		onLoad: function(e) {
+
+		},
+		onShow: function() {
+
+		},
+		onUnload: function() {
+
+		},
+		methods: {}
+	}
+</script>
+
+<style lang="scss">
+	.main {
+		display: flex;
+		flex-direction: column;
+		width: 100vw;
+		height: 100vh;
+
+		.one {
+			position: relative;
+			flex-grow: 1;
+		}
+
+		.two {
+			width: 100vw;
+			height: 8vh;
+			overflow: hidden;
+		}
+	}
+
+	.scroll-view {
+		position: absolute;
+		top: 0;
+		left: 0;
+		right: 0;
+		bottom: 0;
+
+		.list-scroll-view {
+			display: flex;
+			flex-direction: column;
+		}
+	}
+</style>