Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
严立
/
mini-shimao
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
9690d2f5
authored
Sep 24, 2020
by
wjw
Browse files
Options
_('Browse Files')
Download
Plain Diff
Merge branch 'master' of
http://120.77.182.185/yanl/mini-shimao.git
into master
parents
68933f16
2c151bd7
Hide whitespace changes
Inline
Side-by-side
Showing
16 changed files
with
271 additions
and
165 deletions
app.js
pages/commodity/menu-food/menu-food.js
pages/commodity/menu-food/menu-food.wxml
pages/home/home/home.js
pages/mine/appointment-ticket/appointment-ticket.js
pages/mine/appointment/appointment.js
pages/mine/appointment/appointment.wxml
pages/mine/appointment/appointment.wxss
pages/mine/order/order.js
pages/pay/order-comment/order-comment.js
pages/pay/order-comment/order-comment.wxml
pages/pay/order-detail/order-detail.js
pages/pay/order-detail/order-detail.wxml
pages/pay/order-detail/order-detail.wxss
pages/pay/order-input/order-input.js
pages/play/service-detail/service-detail.js
app.js
View file @
9690d2f5
...
...
@@ -48,8 +48,6 @@ App({
for
(
let
i
=
0
,
l
=
funcObjectKey
.
length
;
i
<
l
;
i
++
)
{
funcCss
=
funcCss
+
funcObjectKey
[
i
]
+
': '
+
funcCssObject
[
funcObjectKey
[
i
]]
+
'; '
}
// console.log(funcCss)
return
funcCss
},
...
...
@@ -64,10 +62,6 @@ App({
method
:
obj
.
method
||
'POST'
,
header
:
header
,
success
:
(
res
)
=>
{
// console.log("接口:", this.globalData.baseUrl + obj.url);
// console.log("参数:", JSON.stringify(obj.data));
// console.log("返回:", res);
let
code
=
res
.
data
.
code
*
1
if
(
200
==
code
&&
true
==
res
.
data
.
success
)
{
if
(
obj
.
success
)
{
...
...
@@ -90,9 +84,6 @@ App({
}
},
fail
:
(
err
)
=>
{
// console.log("接口:", this.globalData.baseUrl + obj.url)
// console.log("参数:", obj.data)
// console.log("返回:", err)
if
(
obj
.
fail
)
{
let
err
=
{
statusCode
:
9999
,
...
...
@@ -162,7 +153,6 @@ App({
}
wx
.
setStorageSync
(
'userInfo'
,
funcUserInfo
)
if
(
obj
&&
obj
.
success
)
{
obj
.
success
(
funcResponse
.
token
)
}
...
...
pages/commodity/menu-food/menu-food.js
View file @
9690d2f5
let
App
=
getApp
()
Page
({
scrollLock
:
false
,
scrollTimer
:
0
,
data
:
{
imageBase
:
App
.
globalData
.
appImageBase
,
resourcesBase
:
App
.
globalData
.
appResourcesBase
,
...
...
@@ -16,7 +19,11 @@ Page({
shopInfo
:
{},
sideBar
:
[],
// 侧边菜单
sideBarHeight
:
[],
// 分类商品起始高度
sideBarTopPadding
:
0
,
sideBarIndex
:
0
,
menuTitle
:
''
,
// 商品列表标题
commodityList
:
[],
// 商品列表
commodityDetail
:
{},
// 商品详情
...
...
@@ -25,7 +32,7 @@ Page({
currentIndex
:
0
,
scrollTop
:
0
,
winToast
:
false
,
...
...
@@ -177,7 +184,7 @@ Page({
for
(
let
i
=
0
,
l
=
funcSideBar
.
length
;
i
<
l
;
i
++
)
{
if
(
funcSideBar
[
i
].
id
===
this
.
data
.
option
.
sideBarId
)
{
this
.
setData
({
current
Index
:
i
sideBar
Index
:
i
})
break
}
...
...
@@ -208,7 +215,7 @@ Page({
url
:
'/api/v1/commodity/getCommoditys'
,
data
:
{
'officeId'
:
this
.
data
.
shopInfo
.
id
,
// 'classifyId': this.data.sideBar[this.data.
current
Index].id,
// 'classifyId': this.data.sideBar[this.data.
sideBar
Index].id,
'genre'
:
this
.
data
.
shopInfo
.
shopType
,
},
success
:
(
response
)
=>
{
...
...
@@ -264,32 +271,78 @@ Page({
funcCommodityList
.
push
(
funcItem
)
}
this
.
setData
({
winLoading
:
false
,
commodityList
:
funcCommodityList
,
})
// 分类商品列表
this
.
setCommodityClassification
(
funcCommodityList
)
// // 判断是否从推荐菜单进入,主动查询商品详情
// if (this.data.option.commodityId) {
// for (let i = 0, l = funcCommodityList.length; i < l; i++) {
// if (funcCommodityList[i].id === this.data.option.commodityId) {
// let funcEvent = {
// currentTarget: {
// dataset: {
// item: funcCommodityList[i]
// }
// }
// }
// // 查询之后参数失效,避免返回页面时继续查询
// this.setData({
// option: {}
// })
// this.onCommodityDetail(funcEvent)
// break
// }
// }
// }
},
})
},
// 判断是否从推荐菜单进入,主动查询商品详情
if
(
this
.
data
.
option
.
commodityId
)
{
for
(
let
i
=
0
,
l
=
funcCommodityList
.
length
;
i
<
l
;
i
++
)
{
if
(
funcCommodityList
[
i
].
id
===
this
.
data
.
option
.
commodityId
)
{
let
funcEvent
=
{
currentTarget
:
{
dataset
:
{
item
:
funcCommodityList
[
i
]
}
}
}
// 查询之后参数失效,避免返回页面时继续查询
this
.
setData
({
option
:
{}
})
this
.
onCommodityDetail
(
funcEvent
)
break
}
}
/**
* 分类商品列表
* @function
* @param
* @returns
*/
setCommodityClassification
:
function
(
funcCommodityList
)
{
let
funcSideBarId
=
this
.
data
.
sideBar
let
funcList
=
[]
for
(
let
i
=
0
,
l
=
funcSideBarId
.
length
;
i
<
l
;
i
++
)
{
funcList
.
push
({
'id'
:
funcSideBarId
[
i
].
id
,
'tab'
:
funcSideBarId
[
i
].
tab
,
'commodity'
:
[],
})
for
(
let
ii
=
0
;
ii
<
funcCommodityList
.
length
;
ii
++
)
{
if
(
funcSideBarId
[
i
].
id
===
funcCommodityList
[
ii
].
sideBarId
)
{
funcList
[
i
].
commodity
.
push
(
funcCommodityList
[
ii
])
funcCommodityList
.
splice
(
ii
,
1
)
ii
=
ii
-
1
}
},
}
}
this
.
setData
({
winLoading
:
false
,
commodityList
:
funcList
,
})
// 获取商品分类高度,用于判断滚动位置自动选择标签
const
funcQuery
=
wx
.
createSelectorQuery
()
funcQuery
.
selectAll
(
'.right-content-title'
).
boundingClientRect
()
funcQuery
.
exec
((
response
)
=>
{
let
funcElement
=
response
[
0
]
let
funcSideBarHeight
=
[]
for
(
let
i
=
0
,
l
=
funcElement
.
length
;
i
<
l
;
i
++
)
{
funcSideBarHeight
.
push
(
funcElement
[
i
].
top
)
}
this
.
setData
({
sideBarHeight
:
funcSideBarHeight
})
console
.
log
(
this
.
data
.
sideBarHeight
)
})
},
...
...
@@ -303,7 +356,7 @@ Page({
let
funcIndex
=
event
.
currentTarget
.
dataset
.
index
let
funcMenuTitle
=
this
.
data
.
sideBar
[
funcIndex
].
tab
this
.
setData
({
current
Index
:
funcIndex
,
sideBar
Index
:
funcIndex
,
menuTitle
:
funcMenuTitle
,
scrollTop
:
0
})
...
...
@@ -441,4 +494,36 @@ Page({
url
:
'/pages/commodity/shopping-cart/shopping-cart'
,
})
},
/**
* 页面滚动事件
* @function
* @param
* @returns
*/
onPageScroll
:
function
(
event
)
{
// 优化滚动事件触发频率
if
(
this
.
scrollLock
)
return
this
.
scrollLock
=
true
console
.
log
(
event
.
detail
.
scrollTop
)
let
funcIndex
=
0
let
funcScrollHeight
=
event
.
detail
.
scrollTop
let
funcSideBarHeight
=
this
.
data
.
sideBarHeight
for
(
let
i
=
0
,
l
=
funcSideBarHeight
.
length
;
i
<
l
;
i
++
)
{
if
(
funcScrollHeight
>
funcSideBarHeight
[
i
])
{
funcIndex
=
i
}
}
this
.
setData
({
sideBarIndex
:
funcIndex
})
// 恢复滚动事件
this
.
scrollTimer
=
setTimeout
(()
=>
{
this
.
scrollLock
=
false
clearTimeout
(
this
.
scrollTimer
)
},
10
)
},
})
\ No newline at end of file
pages/commodity/menu-food/menu-food.wxml
View file @
9690d2f5
...
...
@@ -21,73 +21,77 @@
<view class="row">
<!-- 侧边菜单 -->
<
view class="side-bar"
style="{{'padding-top: ' + sideBarTopPadding + 'px;'}}">
<
scroll-view class="side-bar" scroll-y
style="{{'padding-top: ' + sideBarTopPadding + 'px;'}}">
<block wx:for="{{sideBar}}" wx:for-index="index" wx:for-item="item" wx:key="index">
<view class="menu-item {{
current
Index === index ? 'active' : ''}}" data-index="{{index}}" bindtap="onSelectionSideBar">
<view class="menu-item {{
sideBar
Index === index ? 'active' : ''}}" data-index="{{index}}" bindtap="onSelectionSideBar">
<text>{{item.tab}}</text>
</view>
</block>
</view>
</
scroll-
view>
<!-- 商品列表 -->
<view class="menu-list">
<view class="right-content-title">{{menuTitle}}</view>
<scroll-view class="menu-list" scroll-y bindscroll="onPageScroll">
<block wx:for="{{commodityList}}" wx:for-index="index" wx:for-item="item" wx:key="index">
<view class="commodity-item row" data-item="{{item}}" bind:tap="onCommodityDetail">
<view class="item-img">
<image src="{{item.cover}}" mode="widthFix"></image>
</view>
<view class="item-info">
<view class="item-info-title">{{item.name}}</view>
<view class="item-info-text-wrap">
<view wx:if="{{item.describe}}">{{item.describe}}</view>
<view wx:else class="item-info-content"></view>
</view>
<view class="right-content-title">{{item.tab}}</view>
<view class="item-other row con-b">
<!-- 活动价样式 -->
<view wx:if="{{item.priceType === 1}}">
<view class="item-price row align-c">
<text>¥</text>
<text>{{item.priceDiscountText}}</text>
<text class="item-price-discount">活动价</text>
</view>
<view class="item-info-old-price row align-c">
<text>¥</text>
<text>{{item.priceText}}</text>
</view>
<!-- 循环商品列表 -->
<block wx:for="{{item.commodity}}" wx:for-index="indexCommodity" wx:for-item="itemCommodity" wx:key="indexCommodity">
<view class="commodity-item row" data-item="{{itemCommodity}}" bind:tap="onCommodityDetail">
<view class="item-img">
<image src="{{itemCommodity.cover}}" mode="widthFix"></image>
</view>
<view class="item-info">
<view class="item-info-title">{{itemCommodity.name}}</view>
<view class="item-info-text-wrap">
<view wx:if="{{itemCommodity.describe}}">{{itemCommodity.describe}}</view>
<view wx:else class="item-info-content"></view>
</view>
<!-- 业主价样式 -->
<view wx:if="{{item.priceType === 2}}">
<view class="item-price row align-c">
<text>¥</text>
<text>{{item.priceSpecialText}}</text>
<text class="item-price-special">业主价</text>
<view class="item-other row con-b">
<!-- 活动价样式 -->
<view wx:if="{{itemCommodity.priceType === 1}}">
<view class="item-price row align-c">
<text>¥</text>
<text>{{itemCommodity.priceDiscountText}}</text>
<text class="item-price-discount">活动价</text>
</view>
<view class="item-info-old-price row align-c">
<text>¥</text>
<text>{{itemCommodity.priceText}}</text>
</view>
</view>
<view class="item-info-old-price row align-c">
<text>¥</text>
<text>{{item.priceText}}</text>
<!-- 业主价样式 -->
<view wx:if="{{itemCommodity.priceType === 2}}">
<view class="item-price row align-c">
<text>¥</text>
<text>{{itemCommodity.priceSpecialText}}</text>
<text class="item-price-special">业主价</text>
</view>
<view class="item-info-old-price row align-c">
<text>¥</text>
<text>{{itemCommodity.priceText}}</text>
</view>
</view>
</view>
<!-- 普通价样式 -->
<view wx:if="{{item.priceType === 3}}">
<view class="item-price row align-c">
<text>¥</text>
<text>{{item.priceText}}</text>
<text></text>
<!-- 普通价样式 -->
<view wx:if="{{itemCommodity.priceType === 3}}">
<view class="item-price row align-c">
<text>¥</text>
<text>{{itemCommodity.priceText}}</text>
<text></text>
</view>
</view>
</view>
<view class="item-operation-add">
<button class="row con-c align-c" data-item="{{item}}" catchtap="onCommodityAdd">
<image mode="widthFix" src="{{imageBase + 'icon/cart-3.png'}}"></image>
</button>
<view class="item-operation-add">
<button class="row con-c align-c" data-item="{{itemCommodity}}" catchtap="onCommodityAdd">
<image mode="widthFix" src="{{imageBase + 'icon/cart-3.png'}}"></image>
</button>
</view>
</view>
</view>
</view>
</
view
>
</
block
>
</block>
<!-- 购物车按钮 -->
...
...
@@ -100,7 +104,7 @@
<image src="../../../image/cart.png" mode="widthFix"></image>
</view>
</view>
</view>
</
scroll-
view>
</view>
<!-- 商品详情弹窗 -->
...
...
pages/home/home/home.js
View file @
9690d2f5
...
...
@@ -67,20 +67,23 @@ Page({
pageNo
:
1
})
this
.
getBanner
()
// this.loadVisiterPlanList()
this
.
getNoticeList
()
this
.
getBrands
()
},
setLogin
:
function
()
{
let
funcUserInfo
=
wx
.
getStorageSync
(
'userInfo'
)
this
.
setData
({
isLogin
:
funcUserInfo
.
isSignIn
})
let
funcTimer
=
setInterval
(()
=>
{
let
funcUserInfo
=
wx
.
getStorageSync
(
'userInfo'
)
if
(
funcUserInfo
)
{
this
.
setData
({
isLogin
:
funcUserInfo
.
isSignIn
})
clearInterval
(
funcTimer
)
}
},
200
)
},
onShareAppMessage
:
function
(
res
)
{
if
(
res
.
from
===
'button'
)
{
// 来自页面内转发按钮
console
.
log
(
res
.
target
)
}
return
{
title
:
'自定义转发标题'
,
...
...
@@ -95,7 +98,6 @@ Page({
},
onGuide
:
function
()
{
console
.
log
(
'onGuide'
)
wx
.
navigateTo
({
url
:
'/pages/home/guide/guide'
})
...
...
@@ -186,7 +188,6 @@ Page({
},
bannerClick
(
e
)
{
console
.
log
(
e
.
currentTarget
.
dataset
.
item
)
// 活动、动态、攻略详情 对应 1,2,3
let
jumpColumnId
=
e
.
currentTarget
.
dataset
.
item
.
jumpColumnId
*
1
let
jumpId
=
e
.
currentTarget
.
dataset
.
item
.
jumpId
...
...
@@ -278,7 +279,6 @@ Page({
// 跳转到品牌故事详情页面
onToHistory
:
function
(
event
)
{
let
{
index
}
=
event
.
currentTarget
.
dataset
console
.
log
(
index
)
wx
.
navigateTo
({
url
:
'/pages/home/history/history?index='
+
index
,
})
...
...
pages/mine/appointment-ticket/appointment-ticket.js
View file @
9690d2f5
...
...
@@ -112,14 +112,14 @@ Page({
*/
onLoad
:
function
(
options
)
{
let
detail
=
JSON
.
parse
(
options
.
detail
);
let
yyDate
=
detail
.
subscribeDate
?
Date
.
parse
(
detail
.
subscribeDate
.
replace
(
/-/
,
'/'
))
:
0
let
nowStr
=
new
Date
().
toLocaleString
().
substr
(
0
,
10
)
+
" 00:00:00"
let
detail
=
JSON
.
parse
(
options
.
detail
);
let
yyDate
=
detail
.
subscribeDate
?
Date
.
parse
(
detail
.
subscribeDate
.
replace
(
/-/g
,
'/'
))
:
0
let
nowStr
=
new
Date
().
toLocaleString
().
substr
(
0
,
10
).
replace
(
/-/g
,
'/'
)
+
" 00:00:00"
let
now
=
Date
.
parse
(
nowStr
)
let
isShowCancel
=
now
<=
yyDate
let
isShowCancel
=
now
<=
yyDate
this
.
setData
({
tickerInfo
:
detail
,
type
:
detail
.
type
,
...
...
pages/mine/appointment/appointment.js
View file @
9690d2f5
...
...
@@ -212,10 +212,11 @@ Page({
// 删除,取消预约
doCancel
:
function
(
event
)
{
let
that
=
this
let
type
=
event
.
currentTarget
.
dataset
.
type
wx
.
lin
.
showDialog
({
type
:
"confirm"
,
title
:
""
,
content
:
"是否确认删除报名"
,
content
:
type
==
0
?
"是否确认取消报名"
:
"是否确认删除报名"
,
success
:
(
res
)
=>
{
if
(
res
.
confirm
)
{
console
.
log
(
'用户点击确定'
)
...
...
@@ -232,22 +233,34 @@ Page({
url
:
'/api/v1/activity/doCancel'
,
data
:
{
'enrollId'
:
funcItem
.
enrollId
,
'type'
:
1
,
//0取消1删除
'type'
:
type
,
//0取消1删除
},
success
:
(
response
)
=>
{
wx
.
hideLoading
()
wx
.
lin
.
showToast
({
image
:
'/image/success.png'
,
title
:
'删除成功'
,
})
setTimeout
(()
=>
{
that
.
setData
({
isDoing
:
false
,
'activityList'
:
[],
'pageNo'
:
1
,
if
(
response
.
data
&&
response
.
data
.
code
==
500
)
{
wx
.
lin
.
showToast
({
image
:
'/image/error.png'
,
title
:
response
.
data
.
msg
,
})
that
.
getActivity
()
},
2000
);
}
else
{
wx
.
lin
.
showToast
({
image
:
'/image/success.png'
,
title
:
type
==
0
?
'取消成功'
:
'删除成功'
,
})
setTimeout
(()
=>
{
that
.
setData
({
isDoing
:
false
,
'activityList'
:
[],
'pageNo'
:
1
,
isFinished
:
false
})
that
.
getActivity
()
},
2000
);
}
}
})
...
...
pages/mine/appointment/appointment.wxml
View file @
9690d2f5
...
...
@@ -40,7 +40,8 @@
<text>{{activity.amount}}</text>
</view>
<view class="appointment-activity-btn row">
<view catchtap="doCancel" data-item="{{activity}}" class="cancel-btn">删除报名</view>
<view catchtap="doCancel" data-item="{{activity}}" data-type='0' class="cancel-btn">取消报名
</view>
<view catchtap="onOrderPay" data-item="{{activity}}" class="confirm-btn">去支付</view>
</view>
</view>
...
...
@@ -145,11 +146,12 @@
</view>
</view>
<!-- 已过期 -->
<view class="appointment-wrapper" wx:if="{{activity.status === '4'}}">
<view class="mask-cancel" bindtap="onOrderDetail" data-item="{{activity}}"></view>
<view class="appointment-wrapper" wx:if="{{activity.status === '4'
||activity.status === '6'
}}">
<view
wx:if="{{activity.status === '4'}}"
class="mask-cancel" bindtap="onOrderDetail" data-item="{{activity}}"></view>
<view class="appointment-time mask-cancel-time">{{activity.date}}</view>
<view class="appintment-activity-status-cancel">
<text>已过期</text>
<text wx:if="{{activity.status === '4'}}">已过期</text>
<text wx:if="{{activity.status === '6'}}">已评价</text>
</view>
<view class="appointment-activity-content row align-c">
<view class="appointment-activity-img">
...
...
@@ -173,7 +175,8 @@
<text>{{activity.amount}}</text>
</view>
<view class="appointment-activity-btn row">
<view data-item="{{activity}}" catchtap="doCancel" class="cancel-btn ">删除报名</view>
<view data-item="{{activity}}" data-type='1' catchtap="doCancel" class="cancel-btn ">删除报名
</view>
</view>
</view>
</view>
...
...
@@ -206,7 +209,7 @@
<text>{{activity.amount}}</text>
</view>
<view class="appointment-activity-btn row">
<view data-item="{{activity}}" catchtap="doCancel" class="cancel-btn cancel">删除报名</view>
<view data-item="{{activity}}" catchtap="doCancel"
data-type="1"
class="cancel-btn cancel">删除报名</view>
<view data-index="0" catchtap="goAppoint" class="confirm-btn confirm-once">再次报名</view>
</view>
</view>
...
...
pages/mine/appointment/appointment.wxss
View file @
9690d2f5
...
...
@@ -220,6 +220,7 @@
}
.appointment-activity-footer {
margin-top: 48rpx;
}
.appointment-activity-price text:nth-child(1) {
...
...
pages/mine/order/order.js
View file @
9690d2f5
...
...
@@ -299,7 +299,7 @@ Page({
}
wx
.
setStorageSync
(
'shopInfoBuffer'
,
funcShopInfo
)
wx
.
navigateTo
({
url
:
'/pages/pay/order-detail/order-detail?id='
+
funcItem
.
id
,
url
:
`/pages/pay/order-detail/order-detail?id=
${
funcItem
.
id
}
&shopAppId=
${
funcItem
.
shopAppId
}
`
,
})
},
...
...
@@ -529,11 +529,11 @@ Page({
onOrderAgain
:
function
(
event
)
{
let
item
=
event
.
currentTarget
.
dataset
.
item
console
.
log
(
item
)
console
.
log
(
item
,
'再次下单'
)
let
commodityType
=
item
.
commodityType
let
shopAppId
=
wx
.
getStorageSync
(
'shopInfoBuffer'
)
?
wx
.
getStorageSync
(
'shopInfoBuffer'
).
appId
:
""
let
shopAppId
=
item
.
shopAppId
// wx.getStorageSync('shopInfoBuffer') ? wx.getStorageSync('shopInfoBuffer').appId : ""
console
.
log
(
commodityType
,
'commodityType------------------------'
);
console
.
log
(
shopAppId
,
'shopAppId------------------------'
);
wx
.
navigateTo
({
url
:
`/pages/commodity/menu-food/menu-food?formPage=order&shopAppId=
${
shopAppId
}
&commodityType=
${
commodityType
}
`
,
})
...
...
pages/pay/order-comment/order-comment.js
View file @
9690d2f5
...
...
@@ -22,7 +22,7 @@ Page({
fileResults
:
[]
},
onLoad
:
function
(
options
)
{
console
.
log
(
options
,
'99999999999999999999999999999'
);
let
pageFrom
=
options
.
pageFrom
let
orderItem
=
JSON
.
parse
(
options
.
orderItem
)
this
.
setData
({
...
...
@@ -243,6 +243,12 @@ Page({
})
}
},
doInputContent
:
function
(
event
)
{
console
.
log
(
event
);
this
.
setData
({
content
:
event
.
detail
.
value
})
},
/**
* 移除评价图片
* @function
...
...
@@ -261,6 +267,7 @@ Page({
*/
onSubmitCommennt
:
function
()
{
let
that
=
this
;
if
(
this
.
data
.
scoreServeText
==
0
)
{
wx
.
lin
.
showToast
({
image
:
'/image/error.png'
,
...
...
@@ -299,7 +306,7 @@ Page({
'imgUrls'
:
formData
.
imgUrls
,
'serviceEvaluation'
:
formData
.
serviceEvaluation
,
'productEvaluation'
:
formData
.
productEvaluation
,
'environmentalEvaluation'
:
formData
.
product
Evaluation
,
'environmentalEvaluation'
:
formData
.
environmental
Evaluation
,
'content'
:
formData
.
content
},
success
:
(
response
)
=>
{
...
...
pages/pay/order-comment/order-comment.wxml
View file @
9690d2f5
...
...
@@ -68,8 +68,8 @@
<view class="score-star row">
<block wx:for="{{5}}" wx:key="index">
<view class="star" bindtap="onChangeScore" data-index="{{index}}" data-type="{{3}}">
<image wx:if="{{scoreEnvironment >=
index + 1
}}" src="{{imageBase + 'star-yellow.png'}}"></image>
<image wx:elif="{{scoreEnvironment <
index + 1
}}" src="{{imageBase + 'star-gray.png'}}"></image>
<image wx:if="{{scoreEnvironment >=
(index + 1)
}}" src="{{imageBase + 'star-yellow.png'}}"></image>
<image wx:elif="{{scoreEnvironment <
(index + 1)
}}" src="{{imageBase + 'star-gray.png'}}"></image>
</view>
</block>
</view>
...
...
@@ -78,12 +78,18 @@
</view>
</view>
<view class="order-comment">
<l-textarea cursor-spacing="100" placeholder="您的评价与建议,会让园区做的更好" placeholder-style="color: #C2C7CF" maxlength="200"
l-class="l-textarea" border="{{false}}" bind:linconfirm="eventInputDone" />
<!-- <l-textarea cursor-spacing="100" placeholder="您的评价与建议,会让园区做的更好" placeholder-style="color: #C2C7CF" maxlength="200"
l-class="l-textarea" border="{{false}}" bind:linconfirm="eventInputDone" /> -->
<textarea style="padding:24rpx;font-size:26rpx;color:#15191F;line-height:40rpx" cols="30" rows="10" maxlength='200' placeholder="您的评价与建议,会让园区做的更好" placeholder-style="color: #C2C7CF;font-size:26rpx"
bindinput="doInputContent"></textarea>
<view class="text-length-box " style="padding:16rpx 24rpx;text-align:right;font-size:24rpx;color:#C2C7CF;">
{{content.length}}/200</view>
<view class="order-picker">
<l-image-picker size-type="compressed" preview="{{true}}" l-item-class="l-image-item" l-class="l-picker"
count="9" size="3" size-type="compressed"
c
ustom="{{true}}" bind:linchange="eventImageAdd" bind:linremove="eventImageRemove
"
bind:linpreview="eventImagePreview">
<l-image-picker size-type="compressed" preview="{{true}}" l-item-class="l-image-item" l-class="l-picker"
c
ount="9" size="3" size-type="compressed" custom="{{true}}" bind:linchange="eventImageAdd
"
bind:lin
remove="eventImageRemove" bind:lin
preview="eventImagePreview">
<view class="col con-c align-c">
<image class="icon-img" src="{{resourcesBase+'mine/server/camera_icon.png'}}"></image>
<text>添加图片</text>
...
...
pages/pay/order-detail/order-detail.js
View file @
9690d2f5
...
...
@@ -25,6 +25,7 @@ Page({
sealSrc
:
''
,
shopConfig
:
App
.
globalData
.
shopId
,
shopAppId
:
""
},
...
...
@@ -36,6 +37,7 @@ Page({
this
.
setData
({
shopInfo
:
wx
.
getStorageSync
(
'shopInfoBuffer'
),
orderInfo
:
funcOrderInfo
,
shopAppId
:
options
.
shopAppId
,
fromPage
:
options
.
fromPage
===
'order'
?
'order'
:
''
,
isFromUse
:
options
.
showCode
===
'true'
?
true
:
false
,
})
...
...
@@ -44,7 +46,7 @@ Page({
// 再次下单
onOrderAgain
:
function
(
event
)
{
let
commodityType
=
this
.
data
.
orderInfo
.
commodityType
let
shopAppId
=
this
.
data
.
orderInfo
.
shopInfo
.
a
ppId
//wx.getStorageSync('shopInfoBuffer') ? wx.getStorageSync('shopInfoBuffer').appId : ""
let
shopAppId
=
this
.
data
.
shopA
ppId
//wx.getStorageSync('shopInfoBuffer') ? wx.getStorageSync('shopInfoBuffer').appId : ""
wx
.
navigateTo
({
url
:
`/pages/commodity/menu-food/menu-food?formPage=order&shopAppId=
${
shopAppId
}
&commodityType=
${
commodityType
}
`
,
})
...
...
@@ -217,7 +219,7 @@ Page({
'wxRequest'
:
funcResponse
.
wxRequest
,
'businessTime'
:
funcResponse
.
businessTime
,
//营业时间
'expireTime'
:
funcResponse
.
expireTime
,
//订单有效期
'particulars'
:
funcResponse
.
particulars
}
// 设置印章
let
shopName
=
funcResponse
.
officeName
;
...
...
@@ -227,7 +229,7 @@ Page({
}
)
funcOrderInfo
.
shopInfo
=
shopFilter
[
0
]
// 添加订单商品列表
let
funcCommodity
=
funcResponse
.
smOrderDetails
for
(
let
i
=
0
,
l
=
funcCommodity
.
length
;
i
<
l
;
i
++
)
{
...
...
pages/pay/order-detail/order-detail.wxml
View file @
9690d2f5
...
...
@@ -360,9 +360,11 @@
<!-- 使用须知 -->
<l-popup show="{{showNotice}}" content-align="bottom">
<view class="notice-popup-wrapper">
<view class="notice-popup-title">
购买
须知</view>
<view class="notice-popup-title">
使用
须知</view>
<scroll-view scroll-y class="notice-popup-content">
<view>
<rich-text nodes="{{orderInfo.particulars}}"></rich-text>
</view>
</scroll-view>
</view>
</l-popup>
...
...
pages/pay/order-detail/order-detail.wxss
View file @
9690d2f5
...
...
@@ -508,8 +508,6 @@
color: #959DAA;
}
/* 扫码弹窗 */
.scan-code-wrapper {}
.code-header {
height: 70rpx;
...
...
@@ -541,6 +539,9 @@
.item-center {
margin-left: 112rpx;
}
.notice-popup-content {
max-height: 896rpx;
}
.code-item-title {
color: #15191F;
...
...
pages/pay/order-input/order-input.js
View file @
9690d2f5
...
...
@@ -92,7 +92,6 @@ Page({
},
onLoad
:
function
(
options
)
{
console
.
log
(
options
)
if
(
options
.
type
)
options
.
type
=
Number
(
options
.
type
)
logicData
.
option
=
options
...
...
@@ -349,8 +348,6 @@ Page({
payAmount
:
App
.
modular
.
utils
.
formatAmount
(
funcPayAmount
),
buyContentAmount
:
funcPriceUnit
,
})
console
.
log
(
'shoppingCartList'
,
this
.
data
.
shoppingCartList
)
},
/**
...
...
@@ -492,7 +489,6 @@ Page({
* @returns
*/
onEntryTimeChange
:
function
(
event
)
{
console
.
log
(
event
.
detail
)
let
funcColumn
=
event
.
detail
.
column
let
funcIndex
=
event
.
detail
.
value
...
...
@@ -985,11 +981,9 @@ Page({
'enrollNum'
:
this
.
data
.
quantity
,
'name'
:
this
.
data
.
registerInfo
[
0
].
name
,
'mobile'
:
this
.
data
.
registerInfo
[
0
].
phone
,
'totalPrice'
:
Number
(
this
.
data
.
payAmount
),
},
success
:
(
response
)
=>
{
console
.
log
(
'/api/v1/activity/doActivityEnroll'
)
console
.
log
(
response
)
if
(
/请勿重复报名/
.
test
(
response
.
data
.
msg
))
{
wx
.
lin
.
showToast
({
title
:
response
.
data
.
msg
,
...
...
@@ -1012,10 +1006,20 @@ Page({
return
}
if
(
/总价格不能为空/
.
test
(
response
.
data
.
msg
))
{
wx
.
lin
.
showToast
({
title
:
response
.
data
.
msg
,
icon
:
'error'
,
})
this
.
setData
({
isPaySubmit
:
false
,
})
return
}
// 库存充足正常下单支付
let
funcResponse
=
response
.
data
pagePayId
=
funcResponse
.
orderId
console
.
log
(
pagePayId
)
this
.
setData
({
orderId
:
pagePayId
})
...
...
@@ -1032,8 +1036,6 @@ Page({
'signType'
:
funcResponse
.
signType
,
'paySign'
:
funcResponse
.
paySign
,
success
:
(
response
)
=>
{
console
.
log
(
'active requestPayment'
)
if
(
response
.
errMsg
===
'requestPayment:ok'
)
{
// 用户点击支付完成按钮回调
// this.payStatus(true)
...
...
@@ -1063,8 +1065,6 @@ Page({
},
queryPayStatus
:
function
()
{
console
.
log
(
'queryPayStatus'
)
let
funcIndex
=
0
App
.
globalData
.
payStateTimer
=
setInterval
(()
=>
{
...
...
@@ -1097,9 +1097,6 @@ Page({
* @returns
*/
payStatus
:
function
(
funcPayResult
)
{
console
.
log
(
'payStatus'
,
funcPayResult
)
console
.
log
(
'payStatus'
,
logicData
.
option
.
type
)
clearInterval
(
App
.
globalData
.
payStateTimer
)
this
.
setData
({
isPaySubmit
:
false
,
...
...
pages/play/service-detail/service-detail.js
View file @
9690d2f5
...
...
@@ -399,7 +399,6 @@ Page({
},
success
:
(
response
)
=>
{
let
funcResponse
=
response
.
data
.
list
console
.
log
(
funcResponse
)
let
funcList
=
[]
for
(
let
i
=
0
,
l
=
funcResponse
.
length
;
i
<
l
;
i
++
)
{
let
funcItem
=
{
...
...
@@ -429,7 +428,6 @@ Page({
funcItem
.
priceType
=
3
}
}
console
.
log
(
funcItem
)
funcList
.
push
(
funcItem
)
}
...
...
@@ -617,8 +615,6 @@ Page({
let
funcEvaluate
=
this
.
data
.
detailEvaluate
let
funcTextHeight
=
response
[
0
]
console
.
log
(
funcContentHeight
)
console
.
log
(
funcTextHeight
)
for
(
let
i
=
0
,
l
=
funcTextHeight
.
length
;
i
<
l
;
i
++
)
{
if
(
funcContentHeight
>
funcTextHeight
[
i
].
height
)
{
funcEvaluate
[
i
].
isMore
=
true
...
...
@@ -724,6 +720,7 @@ Page({
},
// 跳转到服务详情
onContact
:
function
()
{
App
.
setShopInfo
(
Number
(
this
.
data
.
option
.
id
),
3
)
wx
.
navigateTo
({
url
:
'/pages/commodity/project-detail/project-detail'
})
...
...
@@ -902,8 +899,6 @@ Page({
this
.
setData
({
detailEvaluate
:
funcEvaluate
})
console
.
log
(
funcItem
)
},
/**
...
...
@@ -913,7 +908,6 @@ Page({
* @returns
*/
onEvaluateAlbum
:
function
(
event
)
{
console
.
log
(
'onEvaluateAlbum'
)
let
funcItem
=
event
.
currentTarget
.
dataset
.
item
let
funcIndex
=
event
.
currentTarget
.
dataset
.
index
...
...
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