Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
7
7-Eleven
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
高淑倩
7-Eleven
Commits
414ce063
Commit
414ce063
authored
May 11, 2020
by
程南
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
2020.05.11版本
parent
1e564142
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
29 changed files
with
859 additions
and
117 deletions
+859
-117
app.json
src/app.json
+3
-1
productListStyleOne.wxml
src/component/productListStyleOne/productListStyleOne.wxml
+13
-1
productListStyleOne.wxss
src/component/productListStyleOne/productListStyleOne.wxss
+15
-0
productListStyleTwo.wxml
src/component/productListStyleTwo/productListStyleTwo.wxml
+22
-31
productListStyleTwo.wxss
src/component/productListStyleTwo/productListStyleTwo.wxss
+16
-0
scrollDel.wxml
src/component/scrollDel/scrollDel.wxml
+23
-30
scrollDel.wxss
src/component/scrollDel/scrollDel.wxss
+17
-0
skuPopup.js
src/component/skuPopup/skuPopup.js
+2
-2
index.js
src/config/index.js
+2
-2
cart.js
src/pages/cart/cart.js
+41
-37
confirmOrder.js
src/pages/confirmOrder/confirmOrder.js
+2
-2
coupons.js
src/pages/coupons/coupons.js
+4
-1
orderDetail.js
src/pages/orderDetail/orderDetail.js
+0
-0
orderDetail.wxml
src/pages/orderDetail/orderDetail.wxml
+9
-1
productDetail.wxml
src/pages/productDetail/productDetail.wxml
+3
-2
productDetail.wxss
src/pages/productDetail/productDetail.wxss
+6
-1
refundDetail.wxml
src/pages/refundDetail/refundDetail.wxml
+1
-1
project.config.json
src/project.config.json
+31
-2
categoryPro.js
src/subPackage/page/pages/categoryPro/categoryPro.js
+2
-1
couponCenterInfo.js
...ubPackage/page/pages/couponCenterInfo/couponCenterInfo.js
+36
-1
couponCenterInfo.wxml
...Package/page/pages/couponCenterInfo/couponCenterInfo.wxml
+3
-1
TimelimitedSales.js
...bPackageA/page/pages/TimelimitedSales/TimelimitedSales.js
+127
-0
TimelimitedSales.json
...ackageA/page/pages/TimelimitedSales/TimelimitedSales.json
+5
-0
TimelimitedSales.wxml
...ackageA/page/pages/TimelimitedSales/TimelimitedSales.wxml
+59
-0
TimelimitedSales.wxss
...ackageA/page/pages/TimelimitedSales/TimelimitedSales.wxss
+249
-0
belongWithGuide.js
...subPackageA/page/pages/belongWithGuide/belongWithGuide.js
+60
-0
belongWithGuide.json
...bPackageA/page/pages/belongWithGuide/belongWithGuide.json
+5
-0
belongWithGuide.wxml
...bPackageA/page/pages/belongWithGuide/belongWithGuide.wxml
+33
-0
belongWithGuide.wxss
...bPackageA/page/pages/belongWithGuide/belongWithGuide.wxss
+70
-0
No files found.
src/app.json
View file @
414ce063
...
...
@@ -110,7 +110,9 @@
"pages/payCardInfo/payCardInfo"
,
"pages/moneyBuyCoupon/moneyBuyCoupon"
,
"pages/moneyBuyCouponInfo/moneyBuyCouponInfo"
,
"pages/moneyBuyCouponRecords/moneyBuyCouponRecords"
"pages/moneyBuyCouponRecords/moneyBuyCouponRecords"
,
"pages/TimelimitedSales/TimelimitedSales"
,
"pages/belongWithGuide/belongWithGuide"
]
},
{
...
...
src/component/productListStyleOne/productListStyleOne.wxml
View file @
414ce063
...
...
@@ -16,6 +16,9 @@
<template name="water-list">
<navigator hover-class="none" url="/pages/productDetail/productDetail?id={{productId}}">
<view class="item">
<image wx:if="{{isFlashSale}}" class="limited-icon" src="https://img3.bigaka.com/prd/3001/202005/20200508/3001a6dcdf69-369a-4f43-8757-60f071946ea8.png" />
<!-- 图片主图时 -->
<image class="item-img"
src="{{indexUrl}}"
...
...
@@ -34,11 +37,20 @@
<view class="item-title">{{productName}}</view>
</view>
<view class="pro-price-wrap">
<view class="pro-plus-price">
<view class="pro-plus-price" wx:if="{{falshSaleActivityPrice}}">
<text>¥</text>
<text class="plus-price">{{utils.numberFormat(falshSaleActivityPrice / 100)}}</text>
<text class="sale-price">¥{{utils.numberFormat(minSalePrice / 100)}}</text>
</view>
<view class="pro-plus-price" wx:if="{{!falshSaleActivityPrice}}">
<text>¥</text>
<text class="plus-price">{{memberPrice ? utils.numberFormat(memberPrice / 100) : utils.numberFormat(minSalePrice / 100)}}</text>
<image wx:if="{{memberPrice}}" mode="widthFix" src="/assets/imgs/7_1_0/member-icon.png"></image>
</view>
<view class="pro-member-price" wx:if="{{plusPrice}}">
<text>¥</text>
<text class="member-price">{{utils.numberFormat(plusPrice / 100)}}</text>
...
...
src/component/productListStyleOne/productListStyleOne.wxss
View file @
414ce063
...
...
@@ -11,7 +11,22 @@
border-radius: 10rpx;
box-shadow: 0px 2px 5px 0px rgba(199, 199, 199, 0.5);
padding-bottom: 24rpx;
position: relative;
}
.sale-price{
color: rgba(170, 170, 170, 1);
font-size: 22rpx;
margin-left: 12rpx;
text-decoration: line-through;
}
.limited-icon{
position: absolute;
height: 36rpx;
width: 91rpx;
top: 0;
left: 0;
}
.item-ava{
width: 40rpx;
height: 40rpx;
...
...
src/component/productListStyleTwo/productListStyleTwo.wxml
View file @
414ce063
<!--
component/productListStyleTwo/productListStyleTwo.wxml
-->
<!--
component/productListStyleTwo/productListStyleTwo.wxml
-->
<wxs src="../../wxs/utils.wxs" module="utils" />
<block wx:for="{{imageData}}" wx:key="*this" wx:for-item="item">
<navigator hover-class="none" url="/pages/productDetail/productDetail?id={{item.productId}}">
<view class="hot-item border_box"
>
<view class="hot-item border_box"
>
<view class="hot-img-box">
<image class="hot-img"
src="{{item.indexUrl}}"
mode="aspectFit" lazy-load
wx:if="{{!utils.isVideo(item.indexUrl)}}"/>
<video id="myVideo"
class="hot-img"
src="{{item.indexUrl}}"
muted
wx:if="{{utils.isVideo(item.indexUrl)}}"></video>
<image wx:if="{{item.isFlashSale}}" class="limited-icon" src="https://img3.bigaka.com/prd/3001/202005/20200508/3001a6dcdf69-369a-4f43-8757-60f071946ea8.png" />
<image class="hot-img" src="{{item.indexUrl}}" mode="aspectFit" lazy-load wx:if="{{!utils.isVideo(item.indexUrl)}}" />
<video id="myVideo" class="hot-img" src="{{item.indexUrl}}" muted wx:if="{{utils.isVideo(item.indexUrl)}}"></video>
</view>
<view class="hot-item-desc border_box">
<view class="item-name">{{item.productName}}</view>
<!-- <view class="item-desc">{{item.productStatusDesc}}</view>
-->
<!-- <view class="item-desc">{{item.productStatusDesc}}</view>
-->
<view class="item-vip-price weui-flex">
<text class="vip-sale-price border_box">
<text class="vip-sale-price border_box" wx:if="{{item.falshSaleActivityPrice}}">
¥{{utils.numberFormat(item.falshSaleActivityPrice / 100)}}<text class="sale-price">¥{{utils.numberFormat(item.minSalePrice / 100)}}</text>
</text>
<text class="vip-sale-price border_box" wx:if="{{!item.falshSaleActivityPrice}}">
¥{{item.memberPrice ? utils.numberFormat(item.memberPrice / 100) : utils.numberFormat(item.minSalePrice / 100)}}
</text>
<view class="" >
<image
class="item-vip"
src="https://img3.bigaka.com/prd/3001/202003/20200309/3001918ef881-b117-44da-8cfe-72e26f051e29.png"
mode="widthFix"
wx:if="{{item.memberPrice}}"
/>
<view class="">
<image class="item-vip" src="https://img3.bigaka.com/prd/3001/202003/20200309/3001918ef881-b117-44da-8cfe-72e26f051e29.png" mode="widthFix" wx:if="{{item.memberPrice}}" />
</view>
<!-- <text class="vip-original-price">¥189</text> -->
</view>
<view class="item-plus-price weui-flex" wx:if="{{item.plusPrice}}">
<text class="vip-plus-price vip-sale-price border_box">¥{{utils.numberFormat(item.plusPrice / 100)}}</text>
<text class="vip-plus-price vip-sale-price border_box">
¥{{utils.numberFormat(item.plusPrice / 100)}}
</text>
<view class="">
<image
class="item-plus"
src="https://img3.bigaka.com/prd/3001/202003/20200309/3001fce746fd-c6f9-4016-bc0a-9aee0ac93f7a.png"
mode="widthFix"
lazy-load="false"
/>
<image class="item-plus" src="https://img3.bigaka.com/prd/3001/202003/20200309/3001fce746fd-c6f9-4016-bc0a-9aee0ac93f7a.png" mode="widthFix" lazy-load="false" />
</view>
</view>
<view
/>
<view
/>
</view>
</view>
</navigator>
</block>
\ No newline at end of file
src/component/productListStyleTwo/productListStyleTwo.wxss
View file @
414ce063
...
...
@@ -17,6 +17,22 @@
border-top-left-radius: 10rpx;
border-bottom-left-radius: 10rpx;
}
.sale-price{
color: rgba(170, 170, 170, 1);
font-size: 22rpx;
margin-left: 12rpx;
text-decoration: line-through;
}
.hot-img-box{
position: relative;
}
.limited-icon{
position: absolute;
height: 36rpx;
width: 91rpx;
top: 0;
left: 0;
}
.hot-item-desc {
margin-left: 28rpx;
margin-top: 33rpx;
...
...
src/component/scrollDel/scrollDel.wxml
View file @
414ce063
<!--
component/scrollDel/scrollDel.wxml
-->
<!--
<scroll-view scroll-y="{{isScroll}}" style='height:{{windowHeight}}px'>
-->
<!--
component/scrollDel/scrollDel.wxml
-->
<!--
<scroll-view scroll-y="{{isScroll}}" style='height:{{windowHeight}}px'>
-->
<wxs src="../../wxs/utils.wxs" module="utils" />
<scroll-view scroll-y="{{isScroll}}">
<block class="cart-item" wx:key="item" wx:for="{{cartList}}">
<view data-index='{{index}}'
class="order-item cart-list"
bindtouchstart="drawStart"
bindtouchmove="drawMove"
bindtouchend="drawEnd"
style="right:{{item.right}}rpx">
<!--遮盖层 -->
<view data-index='{{index}}' class="order-item cart-list" bindtouchstart="drawStart" bindtouchmove="drawMove" bindtouchend="drawEnd" style="right:{{item.right}}rpx">
<!-- 遮盖层 -->
<view data-index="{{index}}" class="checke-item" catchtap="checkPro">
<icon size="18" type="{{item.checked ? 'success' : 'circle'}}" color="{{checkedColor}}" data-index="{{index}}"
></icon>
<icon size="18" type="{{item.checked ? 'success' : 'circle'}}" color="{{checkedColor}}" data-index="{{index}}"
></icon>
</view>
<!-- bindtap="bindTapItem" data-id="{{item.id}}" -->
<!-- productStatus 0未发布1下架2上架3删除 -->
<view class="pro-info" bindtap="bindTapItem" data-id="{{item.productId}}"
style='border-bottom:{{index == (cartList.length -1) ? "none" : "1rpx solid #eeeeee" }};opacity:{{(item.productStatus == 0 || item.productStatus == 1 || item.productStatus == 3) ? 0.2 : 1}};'>
<image class="pro-img" src="{{item.skuImgUrl}}"
wx:if="{{!utils.isVideo(item.skuImgUrl)}}"
mode="widthFix"></image>
<video id="myVideo"
class="hot-img"
src="{{item.skuImgUrl}}"
muted
wx:if="{{utils.isVideo(item.skuImgUrl)}}"></video>
<view class="pro-info" bindtap="bindTapItem" data-id="{{item.productId}}" style='border-bottom:{{index == (cartList.length -1) ? "none" : "1rpx solid #eeeeee" }};opacity:{{(item.productStatus == 0 || item.productStatus == 1 || item.productStatus == 3) ? 0.2 : 1}};'>
<image wx:if="{{item.activityPrice}}" class="limited-icon" src="https://img3.bigaka.com/prd/3001/202005/20200508/3001a6dcdf69-369a-4f43-8757-60f071946ea8.png" />
<image class="pro-img" src="{{item.skuImgUrl}}" wx:if="{{!utils.isVideo(item.skuImgUrl)}}" mode="widthFix"></image>
<video id="myVideo" class="hot-img" src="{{item.skuImgUrl}}" muted wx:if="{{utils.isVideo(item.skuImgUrl)}}"></video>
<view class="pro-right-info">
<view class="pro-name">{{item.productName}}</view>
<view class="pro-sku">{{item.skuSpec}}</view>
<view class="pro-price">
<view class="price">¥{{item.price}}</view>
<view class="price">
<text >¥{{item.activityPrice?item.activityPrice:item.price}}</text>
<text class="sale-price" wx:if="{{item.activityPrice}}">¥{{item.price}}</text>
</view>
<view class="pro-num-edit">
<button class="redus-num" data-index="{{index}}" catchtap="minusNum">-</button>
<input class="pro-num-edit-input" disabled type="number"
data-index="{{index}}" catchtap bindblur="blurNum" bindinput="inputNum" value="{{item.count}}"></input>
<button class="add-num" data-index="{{index}}" catchtap="addNum">+</button>
<button class="redus-num" data-index="{{index}}" catchtap="minusNum">
-
</button>
<input class="pro-num-edit-input" disabled type="number" data-index="{{index}}" catchtap bindblur="blurNum" bindinput="inputNum" value="{{item.count}}"></input>
<button class="add-num" data-index="{{index}}" catchtap="addNum">
+
</button>
</view>
</view>
</view>
</view>
<view class="remove" data-index="{{index}}" data-skuId="{{item.skuId}}" bindtap="delItem">
删除
</view>
<view class="remove" data-index="{{index}}" data-skuId="{{item.skuId}}" bindtap="delItem">删除 </view>
</view>
</block>
</scroll-view>
\ No newline at end of file
src/component/scrollDel/scrollDel.wxss
View file @
414ce063
...
...
@@ -23,9 +23,26 @@
display: flex;
overflow: hidden;
}
.pro-info{
position: relative;
}
.sale-price{
color: rgba(170, 170, 170, 1);
font-size: 22rpx;
margin-left: 12rpx;
text-decoration: line-through;
}
.cart-item:last-child .pro-info{
border-bottom: none;
}
.limited-icon{
position: absolute;
height: 36rpx;
width: 91rpx;
top: 0;
left: 0;
}
.pro-info:last-child{
border-bottom: none;
...
...
src/component/skuPopup/skuPopup.js
View file @
414ce063
...
...
@@ -311,7 +311,7 @@ Component({
if
(
flag
)
{
this
.
setData
({
skuStock
:
this
.
data
.
skuInfos
[
i
].
stock
,
salePrice
:
this
.
data
.
skuInfos
[
i
].
salePrice
,
salePrice
:
this
.
data
.
skuInfos
[
i
].
activityPrice
?
this
.
data
.
skuInfos
[
i
].
activityPrice
:
this
.
data
.
skuInfos
[
i
].
salePrice
,
picUrl
:
this
.
data
.
skuInfos
[
i
].
picUrl
,
skuId
:
this
.
data
.
skuInfos
[
i
].
skuId
})
...
...
@@ -347,7 +347,7 @@ Component({
if
(
flag
)
{
skuStock
=
item
.
stock
skuId
=
item
.
skuId
salePrice
=
item
.
salePrice
salePrice
=
item
.
activityPrice
?
item
.
activityPrice
:
item
.
salePrice
picUrl
=
item
.
picUrl
}
...
...
src/config/index.js
View file @
414ce063
...
...
@@ -6,7 +6,7 @@
// 修改 BRANCH_ID 为对应的商户id
// app.js 中brandId 修改为对应
const
PROJECT_ENV
=
'
dev
'
// 生产 prod, 开发 dev, 测试 test , 测试门户 test_store, 预生产 pre
const
PROJECT_ENV
=
'
test
'
// 生产 prod, 开发 dev, 测试 test , 测试门户 test_store, 预生产 pre
//仅生产环境时 配置 :
//3001 3001 , wx313ec36b710125d4 有直播
//2006 泰华 , wx40fec8944623c8b3 有直播 //门户 wx833d5ece112fc3fd
...
...
@@ -26,7 +26,7 @@ const PROJECT_ENV = 'dev' // 生产 prod, 开发 dev, 测试 test , 测试门户
//2002 巴黎贝甜 wx21968cb3a486d4ab
//2014 包小姐与鞋先生 wxa00302e2f53dd9c5
const
BRANCH_ID
=
100
1
const
BRANCH_ID
=
100
2
const
isMall
=
true
// const needMock = '' //
...
...
src/pages/cart/cart.js
View file @
414ce063
...
...
@@ -18,7 +18,7 @@ wxService.page({
checkAll
:
false
,
checkedColor
:
'rgb(203, 60, 60)'
,
shopCartTotalFee
:
0
,
// 商品总价
invalidCarts
:
[]
invalidCarts
:
[]
},
/**
...
...
@@ -47,8 +47,8 @@ wxService.page({
}
this
.
setData
({
checkAll
:
false
,
shopCartTotalFee
:
0
,
checkAll
:
false
,
shopCartTotalFee
:
0
,
});
this
.
init
()
...
...
@@ -78,26 +78,30 @@ wxService.page({
//这里进行区分已经失效和未失效
// productStatus 0未发布1下架2上架3删除
let
invalidCarts
=
[],
validateCarts
=
[];
list
.
forEach
(
item
=>
{
list
.
forEach
(
item
=>
{
if
(
item
.
activityPrice
){
// item.price = (item.activityPrice/10/10).toFixed(2)
item
.
activityPrice
=
(
item
.
activityPrice
/
10
/
10
).
toFixed
(
2
)
}
item
.
checked
=
false
;
if
(
item
.
productStatus
==
2
)
{
if
(
item
.
productStatus
==
2
)
{
validateCarts
.
push
(
item
);
}
else
{
else
{
invalidCarts
.
push
(
item
);
}
});
this
.
setData
({
cartList
:
validateCarts
,
invalidCarts
:
invalidCarts
,
checkAll
:
false
,
shopCartTotalFee
:
0
,
invalidCarts
:
invalidCarts
,
checkAll
:
false
,
shopCartTotalFee
:
0
,
})
}
}
if
(
refresh
)
{
if
(
refresh
)
{
wx
.
showToast
({
title
:
'刷新成功'
,
});
...
...
@@ -135,7 +139,7 @@ wxService.page({
addNumChange
(
e
)
{
this
.
addNum
(
e
.
detail
)
},
addNum
(
e
)
{
// 增加数量
addNum
(
e
)
{
// 增加数量
var
cartList
=
this
.
data
.
cartList
// var proNum = cartList[e.currentTarget.dataset.index].count
var
proNum
=
cartList
[
e
].
count
...
...
@@ -163,7 +167,7 @@ wxService.page({
blurNumChange
(
e
)
{
this
.
blurNum
(
e
.
detail
)
},
blurNum
(
e
)
{
blurNum
(
e
)
{
var
newNum
=
e
.
value
// var newNum = e.detail.value
var
cartList
=
this
.
data
.
cartList
...
...
@@ -232,7 +236,7 @@ wxService.page({
cartListData
.
filter
(
item
=>
{
// 选中的商品信息
return
item
.
checked
}).
map
(
item
=>
{
if
(
!
item
.
skuId
)
return
false
if
(
!
item
.
skuId
)
return
false
let
trolleySku2BuyObj
=
{
count
:
0
,
skuId
:
0
...
...
@@ -253,7 +257,7 @@ wxService.page({
// 去下单页 && 参数
let
tradeDto
=
{
trolleySku2Buy
:
JSON
.
stringify
(
trolleySku2Buy
)
trolleySku2Buy
:
JSON
.
stringify
(
trolleySku2Buy
)
}
const
parmas
=
tradeDto
...
...
@@ -290,7 +294,7 @@ wxService.page({
},
// 输入商品数量
inputProNumber
(
cartPro
)
{
inputProNumber
(
cartPro
)
{
wx
.
showLoading
({
title
:
'加载中'
})
...
...
@@ -315,12 +319,12 @@ wxService.page({
var
cartList
=
this
.
data
.
cartList
var
index
=
e
;
let
productStatus
=
cartList
[
index
].
productStatus
;
if
(
productStatus
==
0
||
productStatus
==
1
||
productStatus
==
3
)
{
if
(
productStatus
==
0
||
productStatus
==
1
||
productStatus
==
3
)
{
wx
.
showToast
({
title
:
'此商品已下架或不存在'
,
icon
:
'none'
icon
:
'none'
});
return
;
return
;
}
var
checkAll
=
false
...
...
@@ -332,9 +336,9 @@ wxService.page({
if
(
cartList
.
length
===
cartList
.
filter
(
function
(
item
)
{
return
item
.
checked
}).
length
)
{
}).
length
)
{
checkAll
=
true
}
else
{
}
else
{
checkAll
=
false
}
...
...
@@ -348,23 +352,23 @@ wxService.page({
checkAll
:
function
()
{
// 全选
var
cartList
=
this
.
data
.
cartList
||
[];
let
offLineProducts
=
[];
cartList
.
forEach
((
item
,
index
)
=>
{
if
(
item
.
productStatus
==
0
||
item
.
productStatus
==
1
||
item
.
productStatus
==
3
)
{
cartList
.
forEach
((
item
,
index
)
=>
{
if
(
item
.
productStatus
==
0
||
item
.
productStatus
==
1
||
item
.
productStatus
==
3
)
{
offLineProducts
.
push
(
item
.
productName
);
}
});
if
(
offLineProducts
.
length
>
0
)
{
if
(
offLineProducts
.
length
>
0
)
{
let
toastText
=
offLineProducts
.
join
(
','
);
wx
.
showToast
({
title
:
'您购物车中商品:'
+
toastText
+
' 已下架或不存在!'
,
icon
:
'none'
icon
:
'none'
});
return
;
return
;
}
if
(
!
cartList
.
length
)
return
false
if
(
!
cartList
.
length
)
return
false
if
(
this
.
data
.
checkAll
)
{
this
.
setData
({
...
...
@@ -393,8 +397,8 @@ wxService.page({
this
.
deletePro
(
e
.
detail
)
},
//失效商品话滑动删除
delInvalidItemChange
(
e
)
{
const
{
index
,
skuid
}
=
e
.
detail
;
delInvalidItemChange
(
e
)
{
const
{
index
,
skuid
}
=
e
.
detail
;
var
self
=
this
wx
.
showModal
({
title
:
'提示'
,
...
...
@@ -414,7 +418,7 @@ wxService.page({
})
},
//清空失效商品
onTapEmptyInvlidCarts
()
{
onTapEmptyInvlidCarts
()
{
let
self
=
this
;
wx
.
showModal
({
title
:
'提示'
,
...
...
@@ -435,13 +439,13 @@ wxService.page({
title
:
'清除成功'
,
});
self
.
setData
({
invalidCarts
:
[],
invalidCarts
:
[],
});
}).
catch
(
err
=>
{
wx
.
hideLoading
();
wx
.
showToast
({
title
:
'清除失败,请稍后再试'
,
icon
:
'none'
icon
:
'none'
});
})
}
...
...
@@ -449,16 +453,16 @@ wxService.page({
});
},
//清空有效宝贝
onTapEmptyValidCarts
()
{
onTapEmptyValidCarts
()
{
let
self
=
this
;
let
checked
=
self
.
data
.
cartList
.
filter
(
item
=>
item
.
checked
);
if
(
checked
.
length
==
0
)
{
if
(
checked
.
length
==
0
)
{
wx
.
showToast
({
title
:
'请先勾选需要删除的商品'
,
icon
:
'none'
icon
:
'none'
});
return
;
return
;
}
wx
.
showModal
({
...
...
@@ -484,7 +488,7 @@ wxService.page({
wx
.
hideLoading
();
wx
.
showToast
({
title
:
'清除失败,请稍后再试'
,
icon
:
'none'
icon
:
'none'
});
});
}
...
...
@@ -493,7 +497,7 @@ wxService.page({
},
//删除商品
deletePro
(
e
)
{
const
{
index
,
skuid
}
=
e
const
{
index
,
skuid
}
=
e
var
self
=
this
wx
.
showModal
({
title
:
'提示'
,
...
...
src/pages/confirmOrder/confirmOrder.js
View file @
414ce063
...
...
@@ -412,7 +412,7 @@ wxService.page({
if
(
result
==
0
){
data
.
faceAmount
=
data
.
couponSetting
.
faceAmount
;
data
.
postalDiscountPrice
=
'0.00'
;
data
.
coupon
SettingId
=
data
.
couponSetting
.
couponSettingI
d
;
data
.
coupon
Id
=
data
.
coupon
.
i
d
;
this
.
data
.
currentPostalCoupon
=
data
;
}
else
{
...
...
@@ -1040,7 +1040,7 @@ wxService.page({
//处理包邮券信息
if
(
this
.
data
.
currentPostalCoupon
){
params
.
postCoupon
SettingId
=
this
.
data
.
currentPostalCoupon
.
couponSetting
Id
;
params
.
postCoupon
Id
=
this
.
data
.
currentPostalCoupon
.
coupon
Id
;
}
let
_this
=
this
;
...
...
src/pages/coupons/coupons.js
View file @
414ce063
...
...
@@ -172,6 +172,8 @@ wxService.page({
},
//跳转到我的购买优惠券记录
onTapToBuyCouponRecords
(){
wx
.
navigateTo
({
url
:
'/subPackageA/page/pages/moneyBuyCouponRecords/moneyBuyCouponRecords'
,
});
},
})
\ No newline at end of file
src/pages/orderDetail/orderDetail.js
View file @
414ce063
This diff is collapsed.
Click to expand it.
src/pages/orderDetail/orderDetail.wxml
View file @
414ce063
...
...
@@ -152,8 +152,16 @@
<text>¥{{utils.numberFormat(detail.coouponDiscount)}}</text>
</view>
<view class="order-pro-list">
<text>包邮券优惠</text>
<text>¥{{utils.numberFormat(detail.order.postCouponDisCount)}}</text>
</view>
<view class="order-pro-list">
<text>支付券优惠</text>
<text>¥{{utils.numberFormat(detail.order.wechatCouponPrice)}}</text>
</view>
<view class="order-pro-list">
<text class="pay-amount">实付金额</text>
<text class="order-price">¥{{detail.payAmount}}</text>
<text class="order-price">¥{{detail.payAmount
}}</text>
</view>
</view>
<view class="order-number-info">
...
...
src/pages/productDetail/productDetail.wxml
View file @
414ce063
...
...
@@ -43,7 +43,8 @@
<view class="product-price">
<view class="price-wrap">
<view class="price-icon" wx:if="{{memberLevel}}">会员专享价</view>
<text class="price">¥{{utils.numberFormat(productInfo.minSalePrice / 100)}}</text>
<text class="price">¥{{ productInfo.minActivityPrice? utils.numberFormat(productInfo.minActivityPrice / 100):utils.numberFormat(productInfo.minSalePrice / 100) }}</text>
<text wx:if="{{productInfo.minActivityPrice}}" class="sale-price">¥{{utils.numberFormat(productInfo.minSalePrice / 100)}}</text>
<!-- <text class="cost-price">¥888</text> -->
</view>
<button
...
...
@@ -176,7 +177,7 @@
good-type="{{productInfo.productType}}"
index-img="{{productInfo.indexUrl}}"
sku-infos="{{productInfo.productSku}}"
product-price="{{productInfo.plusPrice ? productInfo.plusPrice : productInfo.minSalePrice}}"
product-price="{{
productInfo.plusPrice ? productInfo.plusPrice : productInfo.minSalePrice}}"
show="{{showSkuPopup}}"
bind:skuselect="confirmClick"
btn-text="{{btnText}}"
...
...
src/pages/productDetail/productDetail.wxss
View file @
414ce063
...
...
@@ -12,7 +12,12 @@ page{
.swiper-image{
width: 100%;
}
.sale-price{
color: rgba(170, 170, 170, 1);
font-size: 24rpx;
margin-left: 12rpx;
text-decoration: line-through;
}
.video-cover{
width: 100%;
height: 100%;
...
...
src/pages/refundDetail/refundDetail.wxml
View file @
414ce063
...
...
@@ -87,7 +87,7 @@
<text class="refund-desc">{{refundDetail.reason}}</text>
</view>
<view class="refund-item">
<text class="refund-label">
退款
时间</text>
<text class="refund-label">
申请
时间</text>
<text class="refund-desc">{{refundDetail.createTime}}</text>
</view>
<view class="refund-item">
...
...
src/project.config.json
View file @
414ce063
...
...
@@ -13,7 +13,7 @@
},
"compileType"
:
"miniprogram"
,
"libVersion"
:
"2.8.2"
,
"appid"
:
"wx
c3b64b09b1d3dfc2
"
,
"appid"
:
"wx
ac09792264c49b5c
"
,
"projectname"
:
"%E5%BE%AE%E5%95%86%E5%9F%8E"
,
"debugOptions"
:
{
"hidedInDevtools"
:
[]
...
...
@@ -150,7 +150,7 @@
"id"
:
16
,
"name"
:
"商品详情页"
,
"pathName"
:
"pages/productDetail/productDetail"
,
"query"
:
"id=6
9782828050140774
4"
,
"query"
:
"id=6
8446542220414566
4"
,
"scene"
:
null
},
{
...
...
@@ -657,6 +657,35 @@
"id"
:
-1
,
"name"
:
"领券中心"
,
"pathName"
:
"subPackage/page/pages/couponCenter/couponCenter"
,
"query"
:
""
,
"scene"
:
null
},
{
"id"
:
-1
,
"name"
:
"限时抢购"
,
"pathName"
:
"subPackageA/page/pages/TimelimitedSales/TimelimitedSales"
,
"query"
:
""
,
"scene"
:
null
},
{
"id"
:
-1
,
"name"
:
"所属门店信息"
,
"pathName"
:
"subPackageA/page/pages/belongWithGuide/belongWithGuide"
,
"query"
:
""
,
"scene"
:
null
},
{
"id"
:
-1
,
"name"
:
"现金购买券记录"
,
"pathName"
:
"subPackageA/page/pages/moneyBuyCouponRecords/moneyBuyCouponRecords"
,
"query"
:
""
,
"scene"
:
null
},
{
"id"
:
-1
,
"name"
:
"subPackage/page/pages/couponCenterInfo/couponCenterInfo"
,
"pathName"
:
"subPackage/page/pages/couponCenterInfo/couponCenterInfo"
,
"query"
:
"id=708696469342916608"
,
"scene"
:
null
}
]
...
...
src/subPackage/page/pages/categoryPro/categoryPro.js
View file @
414ce063
...
...
@@ -143,7 +143,8 @@ wxService.page({
});
let
pageNo
=
this
.
data
.
pageNo
,
pageSize
=
this
.
data
.
pageSize
;
wxService
.
post
(
`/sale/product/buyer/listPageByCategoryId?pageNo=
${
pageNo
}
&pageSize=
${
pageSize
}
`
,
this
.
data
.
form
).
then
(
res
=>
{
// wxService.post(`/sale/product/buyer/listPageByCategoryId?pageNo=${pageNo}&pageSize=${pageSize}`, this.data.form).then(res => {
wxService
.
post
(
`/sale/product/buyer/findCategoryTreeIdByProductList?pageNo=
${
pageNo
}
&pageSize=
${
pageSize
}
&id=
${
this
.
data
.
form
.
mallCategoryId
}
`
).
then
(
res
=>
{
const
{
result
,
data
}
=
res
.
data
if
(
result
==
0
&&
data
.
content
)
{
wx
.
hideLoading
()
...
...
src/subPackage/page/pages/couponCenterInfo/couponCenterInfo.js
View file @
414ce063
...
...
@@ -61,6 +61,7 @@ wxService.page({
});
let
id
=
this
.
data
.
activityId
;
let
isStart
=
this
.
data
.
activityInfo
.
isStart
;
console
.
log
(
isStart
)
//判断是不是老活动
if
(
!
this
.
data
.
activityInfo
.
couponList
){
this
.
getCoupon
(
id
);
...
...
@@ -107,7 +108,41 @@ wxService.page({
},
//立即预约
orderCouponNow
(
id
){
let
baseUserInfo
=
wx
.
getStorageSync
(
'_baseUserInfo'
);
wxService
.
post
(
`
${
'/merchant/message/wxSubMsgMapping/getListByParams'
}
`
,
{
scenarioIds
:
[
'usernoticeappointment'
],
sourceFrom
:
2
,
switchType
:
3
}).
then
(
res
=>
{
let
tempArr
=
res
.
data
.
data
?
res
.
data
.
data
:
[];
let
tempids
=
[];
tempArr
.
map
(
item
=>
{
tempids
.
push
(
item
.
templateId
);
});
wx
.
requestSubscribeMessage
({
tmplIds
:
tempids
,
success
:
(
res
)
=>
{
for
(
let
i
=
0
;
i
<
tempArr
.
length
;
i
++
)
{
wxService
.
post
(
`
${
'/merchant/message/wxSubMsgSubscride/member/subscribe'
}
`
,
{
businessId
:
id
,
memberId
:
baseUserInfo
.
memberId
,
scenarioId
:
tempArr
[
i
].
scenarioId
,
templateId
:
tempArr
[
i
].
templateId
}).
then
(
resp
=>
{
});
}
if
(
tempids
.
length
>
0
)
{
let
status
=
res
[
tempids
[
0
]];
if
(
status
==
'accept'
)
{
this
.
getACtivityInfo
();
wx
.
showToast
({
title
:
'预约成功'
,
})
}
}
},
complete
:
(
res
)
=>
{
}
})
}).
catch
(
err
=>
{
})
},
/**
...
...
src/subPackage/page/pages/couponCenterInfo/couponCenterInfo.wxml
View file @
414ce063
...
...
@@ -40,7 +40,9 @@
bindgetuserinfo="_getUserInfo"
open-type='getUserInfo'
class="clear-btn positionAbs">{{activityInfo.isStart ? '立即领取' : '立即预约'}}</button>
<view wx:else class="view-btn" bindtap="onTapGetCoupon">{{activityInfo.isStart ? '立即领取' : '立即预约'}}</view>
<!-- <view wx:else class="view-btn" bindtap="onTapGetCoupon">{{activityInfo.isStart ? '立即领取' : '立即预约'}}</view> -->
<view wx:if="{{currentHasUserInfo && !activityInfo.isAppointMent}}" class="view-btn" bindtap="onTapGetCoupon">{{activityInfo.isStart ? '立即领取' : '立即预约'}}</view>
<view wx:if="{{currentHasUserInfo && activityInfo.isAppointMent}}" class="view-btn" >已预约</view>
</view>
</view>
...
...
src/subPackageA/page/pages/TimelimitedSales/TimelimitedSales.js
0 → 100644
View file @
414ce063
// share/share.js
const
wxService
=
require
(
'../../../../utils/wxService'
)
const
utils
=
require
(
'../../../../utils/util'
)
const
envInfo
=
require
(
'../../../../config/index'
).
envInfo
const
app
=
getApp
()
wxService
.
page
({
data
:
{
bannerImg
:
''
,
listData
:
[[],
[],
[]],
current
:
0
,
typeArr
:
[
1
,
2
,
3
]
},
onLoad
:
function
(
options
)
{
this
.
getProductList
();
this
.
getImg
();
},
getImg
()
{
wxService
.
post
(
`/sale/specialPriceActivate/getPropagandaSet`
).
then
(
res
=>
{
if
(
res
.
data
.
data
&&
res
.
data
.
data
.
imgList
.
length
>
0
)
{
this
.
setData
({
bannerImg
:
res
.
data
.
data
.
imgList
[
0
]
})
}
})
},
getProductList
(
current
)
{
current
=
current
?
current
:
0
;
wxService
.
post
(
`/sale/specialPriceActivate/getActivityProductList?type=
${
this
.
data
.
typeArr
[
current
]}
`
).
then
(
res
=>
{
let
data
=
res
.
data
.
data
?
res
.
data
.
data
:[];
data
.
map
(
item
=>
{
item
.
activityPriceText
=
item
.
activityPrice
?
String
((
item
.
activityPrice
/
10
/
10
).
toFixed
(
2
)).
split
(
'.'
)
:
[
'00'
,
'00'
];
item
.
salePriceText
=
item
.
productPrice
?
String
((
item
.
productPrice
/
10
/
10
).
toFixed
(
2
)).
split
(
'.'
)
:
[
'00'
,
'00'
];
item
.
per
=
(
item
.
salesCount
/
item
.
repertory
).
toFixed
(
2
)
*
10
*
10
;
item
.
width
=
item
.
per
/
10
/
10
*
254
;
return
item
;
});
let
list
=
this
.
data
.
listData
;
list
[
current
]
=
data
;
this
.
setData
({
listData
:
list
})
})
},
linkToProInfo
(
e
)
{
let
productId
=
e
.
currentTarget
.
dataset
.
productid
;
wxService
.
router
(
`/pages/productDetail/productDetail?id=
${
productId
}
`
);
},
//消息订阅
subscribeClick
(
e
)
{
let
activeId
=
e
.
currentTarget
.
dataset
.
id
;
let
itemIndex
=
e
.
currentTarget
.
dataset
.
index
;
let
baseUserInfo
=
wx
.
getStorageSync
(
'_baseUserInfo'
);
wxService
.
post
(
`
${
'/merchant/message/wxSubMsgMapping/getListByParams'
}
`
,
{
scenarioIds
:
[
'usernoticeappointment'
],
sourceFrom
:
2
,
switchType
:
3
}).
then
(
res
=>
{
let
tempArr
=
res
.
data
.
data
?
res
.
data
.
data
:
[];
let
tempids
=
[];
tempArr
.
map
(
item
=>
{
tempids
.
push
(
item
.
templateId
);
});
console
.
log
(
tempids
)
wx
.
requestSubscribeMessage
({
tmplIds
:
tempids
,
success
:
(
res
)
=>
{
for
(
let
i
=
0
;
i
<
tempArr
.
length
;
i
++
)
{
wxService
.
post
(
`
${
'/merchant/message/wxSubMsgSubscride/member/subscribe'
}
`
,
{
businessId
:
activeId
,
memberId
:
baseUserInfo
.
memberId
,
scenarioId
:
tempArr
[
i
].
scenarioId
,
templateId
:
tempArr
[
i
].
templateId
}).
then
(
resp
=>
{
});
}
if
(
tempids
.
length
>
0
){
let
status
=
res
[
tempids
[
0
]];
if
(
status
==
'accept'
){
let
list
=
this
.
data
.
listData
;
list
[
this
.
data
.
current
][
itemIndex
].
isAppointMent
=
true
;
this
.
setData
({
listData
:
list
})
wx
.
showToast
({
title
:
'预约成功'
,
})
}
}
},
complete
:
(
res
)
=>
{
console
.
log
(
res
)
}
})
}).
catch
(
err
=>
{})
},
changeTab
(
e
)
{
this
.
setData
({
current
:
e
.
target
.
dataset
.
current
*
1
})
},
swiperChange
(
e
)
{
let
current
=
e
.
detail
.
current
;
this
.
setData
({
current
:
current
})
if
(
this
.
data
.
listData
[
current
].
length
===
0
)
{
this
.
getProductList
(
current
);
}
// this.getProductList(current);
},
onShow
:
function
()
{
},
});
\ No newline at end of file
src/subPackageA/page/pages/TimelimitedSales/TimelimitedSales.json
0 → 100644
View file @
414ce063
{
"navigationBarTitleText"
:
"限时抢购"
,
"usingComponents"
:
{}
}
\ No newline at end of file
src/subPackageA/page/pages/TimelimitedSales/TimelimitedSales.wxml
0 → 100644
View file @
414ce063
<view class="banner-wrap">
<image class="banner-img" src="{{bannerImg}}" />
</view>
<view class="tab-wrap">
<view class="tab-item {{current==0?'tab-item-active':''}}" bind:tap="changeTab" data-current="0">抢购中</view>
<view class="tab-item {{current==1?'tab-item-active':''}}" bind:tap="changeTab" data-current="1">未开始</view>
<view class="tab-item {{current==2?'tab-item-active':''}}" bind:tap="changeTab" data-current="2">抢先商品</view>
</view>
<view class="list-wrap" style="flex:1;">
<swiper bindchange="swiperChange" current="{{current}}">
<block wx:for="{{3}}" wx:key="*this">
<swiper-item>
<view class="list-item" wx:for="{{listData[index]}}" wx:if="{{listData[current].length}}" wx:key="*this" data-productid="{{item.productId}}" bind:tap="linkToProInfo">
<view class="item-lf">
<image class="item-img" src="{{item.indexUrl}}" />
<image wx:if="{{(item.repertory - item.salesCount)==0}}" class="sale-out" src="https://img3.bigaka.com/prd/3001/202005/20200511/3001de63752e-41ab-4736-ac2e-4ef3603c0309.png" />
</view>
<view class="item-rt">
<view class="tips">{{ item.subtitle }}</view>
<view class="title">{{item.productName}}</view>
<view class="start-time" wx:if="{{current==1}}">开始时间 {{item.startTime}}</view>
<view class="left" wx:if="{{current!=1}}">
<view class="all-line">
<view class="left-line" style="width: {{item.width}}rpx;" wx:if="{{item.repertory!=0}}">已抢{{item.salesCount}}件</view>
<text class="per-text" wx:if="{{item.repertory!=0}}">{{item.per}}%</text>
<view class="left-line-saled" wx:if="{{(item.repertory - item.salesCount)==0}}">已抢完</view>
</view>
</view>
<view class="price-wrap">
<view class="active-price"><text class="fs-24">¥</text><text class="fs-38">{{ item.activityPriceText[0] }}.</text><text class="fs-32">{{item.activityPriceText[1]}}</text></view>
<view class="sale-price"><text class="fs-15">¥</text><text class="fs-23">{{item.salePriceText[0]}}.</text><text class="fs-17">{{item.salePriceText[1]}}</text></view>
<view class="rush-btn" wx:if="{{current!=1&&(item.repertory - item.salesCount)>0}}">马上抢</view>
<view class="subscribe-btn" wx:if="{{current==1 && !item.isAppointMent}}" catchtap="subscribeClick" data-id="{{item.productId}}" data-index="{{index}}">预约提醒</view>
<view class="subscribe-btn" wx:if="{{current==1 && item.isAppointMent}}" data-id="{{item.activityId}}">已预约</view>
<view class="saled-btn" wx:if="{{current!=1&&(item.repertory - item.salesCount)==0}}">去看看</view>
</view>
<view class="time">结束时间 {{item.endTime}}</view>
</view>
</view>
<view class="empty" wx:if="{{listData[index].length === 0}}">
暂无商品哦~
</view>
</swiper-item>
</block>
</swiper>
</view>
\ No newline at end of file
src/subPackageA/page/pages/TimelimitedSales/TimelimitedSales.wxss
0 → 100644
View file @
414ce063
page{
background-color: #F4F5F6;
width: 100%;
height: 100%;
display: flex;
position: fixed;
flex-direction: column;
}
swiper{
overflow: visible;
width: 100%;
height: 100%;
}
swiper-item{
overflow: visible;
overflow-y: auto;
width: 100%;
height: 100%;
}
.banner-wrap{
height: 276rpx;
padding: 0 30rpx;
background-color: #ffffff;
}
.banner-img{
height: 276rpx;
width: 690rpx;
border-radius: 10rpx;
}
.tab-wrap{
height: 80rpx;
display: flex;
background-color: #ffffff;
padding: 0 30rpx;
justify-content: space-around;
color: #000000;
}
.tab-item{
display: flex;
align-items: center;
justify-content: center;
padding: 0 10rpx;
font-size: 28rpx;
opacity: 0.6;
}
.tab-item-active{
font-size: 34rpx;
opacity: 1;
font-weight: bold;
}
.list-wrap{
padding: 20rpx 30rpx;
}
.list-item{
background-color: #ffffff;
height: 300rpx;
border-radius: 10rpx;
display: flex;
margin-bottom: 20rpx;
}
.item-lf{
min-width: 269rpx;
max-width: 269rpx;
display: flex;
justify-content: center;
position: relative;
}
.sale-out{
width: 210rpx;
height: 210rpx;
position: absolute;
top: 44.5rpx;
left: 14.5rpx;
}
.item-img{
width: 210rpx;
height: 210rpx;
margin: auto;
margin-top: 30rpx;
}
.item-rt{
flex-grow: 1;
display: flex;
flex-direction: column;
padding-right: 23rpx;
}
.tips{
height: 22rpx;
color: rgba(102, 102, 102, 1);
font-size: 22rpx;
text-align: left;
margin-top: 33rpx;
}
.title{
height: 70rpx;
line-height: 35rpx;
color: rgba(0, 0, 0, 1);
font-size: 28rpx;
text-align: left;
margin-top: 10rpx;
text-overflow: -o-ellipsis-lastline;
overflow: hidden;
text-overflow: ellipsis;
display: -webkit-box;
-webkit-line-clamp: 2;
line-clamp: 2;
-webkit-box-orient: vertical;
}
.left{
margin-top: 8rpx;
}
.all-line{
width: 254rpx;
height: 26rpx;
border-radius: 13rpx;
background-color: rgba(255, 206, 206, 1);
position: relative;
text-align: right;
display: flex;
align-items: center;
justify-content: flex-end;
}
.left-line{
position: absolute;
top: 0;
left: 0;
width: 79rpx;
height: 26rpx;
border-radius: 13rpx;
background-image: linear-gradient(to right, #FF2569, #FF1038);
color: #ffffff;
white-space: nowrap;
font-size: 16rpx;
display: flex;
align-items: center;
padding-left: 8rpx;
}
.left-line-saled{
position: absolute;
top: 0;
left: 0;
width: 254rpx;
height: 26rpx;
border-radius: 13rpx;
background-image: linear-gradient(to right, #FF2569, #FF1038);
color: #ffffff;
font-size: 16rpx;
display: flex;
align-items: center;
justify-content: center;
}
.start-time{
height: 20rpx;
color: rgba(250, 100, 0, 1);
font-size: 20rpx;
margin-top: 8rpx;
}
.per-text{
font-size: 16rpx;
color: #FF1038;
margin-right: 8rpx;
}
.price-wrap{
display: flex;
justify-content: space-between;
align-items: center;
margin-top: 10rpx;
}
.active-price{
height: 53rpx;
color: rgba(255, 51, 51, 1);
vertical-align: bottom;
}
.sale-price{
vertical-align: bottom;
color: #9B9B9B;
text-decoration:line-through;
}
.rush-btn{
width: 123rpx;
height: 48rpx;
border-radius: 24rpx;
background-color: rgba(255, 16, 56, 1);
display: flex;
align-items: center;
justify-content: center;
color: rgba(255, 255, 255, 1);
font-size: 22rpx;
}
.subscribe-btn{
width: 138rpx;
height: 48rpx;
display: flex;
align-items: center;
justify-content: center;
border-radius: 24rpx;
border: 2rpx solid rgba(255, 16, 56, 1);
color: rgba(255, 16, 56, 1);
font-size: 22rpx;
}
.saled-btn{
width: 123rpx;
height: 48rpx;
border-radius: 24rpx;
border: 1rpx solid rgba(155, 155, 155, 1);
display: flex;
align-items: center;
justify-content: center;
color: rgba(155, 155, 155, 1);
font-size: 22rpx;
}
.time{
height: 20rpx;
color: rgba(192, 191, 191, 1);
font-size: 20rpx;
}
.empty{
width: 300rpx;
color: #808080;
margin: 40% auto;
text-align: center;
}
.fs-24{
font-size: 24rpx;
}
.fs-38{
font-size: 38rpx;
}
.fs-32{
font-size: 32rpx;
}
.fs-15{
font-size: 15rpx;
}
.fs-13{
font-size: 13rpx;
}
.fs-17{
font-size: 17rpx;
}
\ No newline at end of file
src/subPackageA/page/pages/belongWithGuide/belongWithGuide.js
0 → 100644
View file @
414ce063
// share/share.js
const
wxService
=
require
(
'../../../../utils/wxService'
)
const
utils
=
require
(
'../../../../utils/util'
)
const
envInfo
=
require
(
'../../../../config/index'
).
envInfo
const
app
=
getApp
()
wxService
.
page
({
data
:
{
storeId
:
undefined
,
storeName
:
undefined
,
shoppingGuidName
:
undefined
,
latitude
:
undefined
,
longitude
:
undefined
,
contactPhone
:
undefined
},
onLoad
:
function
(
options
)
{
const
userInfo
=
wx
.
getStorageSync
(
'_baseUserInfo'
);
this
.
getUserInfo
(
userInfo
.
member
.
id
);
},
locationClick
()
{
wx
.
openLocation
({
latitude
:
this
.
data
.
latitude
,
longitude
:
this
.
data
.
longitude
,
name
:
this
.
data
.
storeName
,
address
:
this
.
data
.
address
,
scale
:
18
})
},
getUserInfo
(
id
)
{
wxService
.
post
(
`/member/find`
,
{
memberId
:
id
}).
then
(
res
=>
{
let
member
=
res
.
data
.
data
.
member
;
this
.
setData
({
storeId
:
member
.
storeId
,
storeName
:
member
.
storeName
,
shoppingGuidName
:
member
.
shoppingGuidName
})
this
.
getStoreInfo
(
member
.
storeId
)
})
},
getStoreInfo
(
id
)
{
wxService
.
get
(
`/platform/securityB/organization/findById/`
+
id
).
then
(
res
=>
{
let
data
=
res
.
data
.
data
?
res
.
data
.
data
:
{}
this
.
setData
({
latitude
:
data
.
latitude
,
longitude
:
data
.
longitude
,
contactPhone
:
data
.
contactPhone
,
address
:
data
.
addressArea
+
data
.
addressDetail
})
})
}
});
\ No newline at end of file
src/subPackageA/page/pages/belongWithGuide/belongWithGuide.json
0 → 100644
View file @
414ce063
{
"navigationBarTitleText"
:
"所属门店"
,
"usingComponents"
:
{}
}
\ No newline at end of file
src/subPackageA/page/pages/belongWithGuide/belongWithGuide.wxml
0 → 100644
View file @
414ce063
<view class="guide-wrap">
<view class="guide-head">
<view class="head-lf">
<view class="row-wrap">
<view class="title">所属门店:</view>
<view class="content">{{storeName?storeName:'无'}}</view>
</view>
<view class="row-wrap">
<view class="title">门店电话:</view>
<view class="content">{{contactPhone?contactPhone:'无'}}</view>
</view>
</view>
<view class="head-rt" bind:tap="locationClick">
<image src="https://img3.bigaka.com/prd/3001/202005/20200509/300123dc8d19-2c59-461a-89a3-bab020687557.png" />
</view>
</view>
<view class="guide-body">
<view class="row-wrap">
<view class="title">所属导购:</view>
<view class="content">{{shoppingGuidName?shoppingGuidName:'无'}}</view>
</view>
<view class="row-wrap">
<view class="title">联系方式:</view>
<view class="content">企业微信</view>
</view>
<!-- <view class="qrcode-wrap">
</view>
<view class="save-btn">保存图片</view> -->
</view>
</view>
\ No newline at end of file
src/subPackageA/page/pages/belongWithGuide/belongWithGuide.wxss
0 → 100644
View file @
414ce063
page{
background-color: #F4F5F6;
width: 100%;
height: 100%;
display: flex;
position: fixed;
flex-direction: column;
}
.guide-wrap{
padding: 30rpx;
}
.guide-head{
height: 198rpx;
background-color: #ffffff;
display: flex;
align-items: center;
padding: 0 48rpx;
justify-content: space-between;
border-radius: 10rpx;
}
.head-lf{
}
.head-rt{
height: 100rpx;
width: 100rpx;
}
.head-rt image{
height: 100rpx;
width: 100rpx;
}
.row-wrap{
display: flex;
font-size: 25rpx;
margin-bottom: 12rpx;
}
.title{
color: rgba(0, 0, 0, 0.5);
}
.content{
color: rgba(0, 0, 0, 1);
}
.guide-body{
height: 198rpx;
background-color: #ffffff;
display: flex;
flex-direction: column;
padding: 0 48rpx;
margin-top: 30rpx;
justify-content: center;
border-radius: 10rpx;
}
.qrcode-wrap{
height: 500rpx;
}
.save-btn{
display: flex;
align-items: center;
justify-content: center;
width: 320rpx;
height: 86rpx;
border-radius: 10rpx;
border: 1rpx solid rgba(0, 0, 0, 0.25);
color: rgba(0, 0, 0, 0.7);
font-size: 30rpx;
}
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment