diff --git a/pages.json b/pages.json
index a61eba3..b0d4fb2 100644
--- a/pages.json
+++ b/pages.json
@@ -823,6 +823,13 @@
"navigationBarTitleText": "发表",
"navigationStyle": "custom"
}
+ },
+ {
+ "path" : "pages/order/confirm/confirm",
+ "style" : {
+ "navigationBarTitleText": "确认订单",
+ "navigationStyle": "custom"
+ }
}
],
"globalStyle": {
diff --git a/pages/order/confirm/confirm.vue b/pages/order/confirm/confirm.vue
new file mode 100644
index 0000000..3e31c7a
--- /dev/null
+++ b/pages/order/confirm/confirm.vue
@@ -0,0 +1,213 @@
+
+
+
+
+ 选择收货方式
+
+ 邮寄
+ 自提
+
+
+
+
+ 更换收获地址
+
+
+
+ 王小二
+ 18284385380
+
+
+ 广西壮族自治区-南宁市-青秀区-民族大道民族大道民族大道民族大道民族大道民族大道15号
+
+
+
+
+
+ 精品超市
+
+
+
+
+
+ 爱他美较大婴儿配方奶粉较大配方奶粉较2段
+ 500g
+
+ ¥385
+ x 2
+
+
+
+ 支付成功后15天内柜台提货
+
+ 留言
+
+
+
+
+
+ 优惠券
+
+ 暂无优惠券
+
+
+
+
+ 商品金额
+ ¥385
+
+
+ 运费
+ ¥0
+
+
+ 优惠
+ ¥0
+
+
+
+
+
+ 共1件
+
+ 合计 ¥385
+ 提交订单
+
+
+
+
+
+
+
+
+
+
diff --git a/pages/shop/goodsdetail.vue b/pages/shop/goodsdetail.vue
index ac65363..997a8b2 100644
--- a/pages/shop/goodsdetail.vue
+++ b/pages/shop/goodsdetail.vue
@@ -1,6 +1,6 @@
-
+
@@ -129,13 +129,58 @@
-
-
+
+
+
+
+
+
-
-
+
@@ -154,7 +199,10 @@
'https://hainan.lanzulive.com/storage/images/v2-deb89623e0ee2a2dad34bcded6dfd1ed_1440w.png',
'https://hainan.lanzulive.com/storage/images/v2-deb89623e0ee2a2dad34bcded6dfd1ed_1440w.png',
'https://hainan.lanzulive.com/storage/images/v2-deb89623e0ee2a2dad34bcded6dfd1ed_1440w.png'
- ]
+ ],
+ show_popup: false, // 是否显示选规格模态框
+ spec_current: null, // 规格下标
+ click_type: null // 当前点击的是加入购物车[1]还是立即购买[2]
}
},
onLoad(options){
@@ -171,6 +219,23 @@
}
},
methods: {
+ shoot(type){
+ // TODO 判断type做不同的逻辑
+ this.click_type = type;
+ this.show_popup = true;
+ },
+ activeSpec(index){
+ if(this.spec_current == index){
+ this.spec_current = null;
+ }else{
+ this.spec_current = index;
+ }
+ },
+ confirm(){
+ if(this.click_type == 2){
+ this.$url('/pages/order/confirm/confirm');
+ }
+ },
shareGraphic(){
this.getCreateShareImg();
},
@@ -571,4 +636,88 @@
border-radius: 42rpx;
}
}
+
+ .popup-content{
+ height: max-content;
+ width: 750rpx;
+ background: #FFFFFF;
+ border-radius: 20rpx 20rpx 0rpx 0rpx !important;
+ padding: 40rpx 32rpx;
+ .popup-head{
+ display: flex;
+ justify-content: space-between;
+ .goods-img{
+ width: 150rpx;
+ height: 150rpx;
+ border-radius: 2rpx;
+ margin-right: 20rpx;
+ }
+ .goods-info{
+ width: 400rpx;
+ height: 150rpx;
+ display: flex;
+ flex-direction: column;
+ justify-content: space-around;
+ .price{
+ font-size: 48rpx;
+ font-weight: bold;
+ color: #F63434;
+ line-height: 1;
+ }
+ .goods-name{
+ font-size: 32rpx;
+ color: #222222;
+ line-height: 1.4;
+ }
+ }
+ }
+ .spec-title{
+ font-size: 28rpx;
+ color: #555555;
+ margin-top: 40rpx;
+ margin-bottom: 20rpx;
+ }
+ .spec-item{
+ width: 142rpx;
+ height: 64rpx;
+ border-radius: 33rpx;
+ border: 2rpx solid #555555;
+ font-size: 28rpx;
+ color: #555555;
+ display: flex;
+ justify-content: center;
+ align-items: center;
+ margin-right: 20rpx;
+ &:nth-child(4n){
+ margin-right: 0rpx;
+ }
+ &:nth-child(n+5){
+ margin-top: 20rpx;
+ }
+ }
+ .spec-active{
+ border: none;
+ background-color: #15716E;
+ color: #FFFFFF;
+ }
+ .input{
+ width: 40rpx;
+ height: 45rpx;
+ border-radius: 2rpx;
+ background-color: #F3F8F7;
+ text-align: center;
+ }
+ .num-btn{
+ width: 36rpx;
+ }
+ .comfirm-btn{
+ width: 550rpx;
+ height: 100rpx;
+ background: #15716E;
+ border-radius: 50rpx;
+ color: #FFFFFF;
+ line-height: 100rpx;
+ margin-top: 62rpx;
+ }
+ }
\ No newline at end of file