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
229ad531
authored
Sep 15, 2020
by
wjw
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
ww-首页修改
parent
cb88e5b5
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
71 additions
and
14 deletions
pages/home/home/home.wxml
pages/home/home/home.wxss
pages/pay/order-comment/order-comment.js
project.config.json
pages/home/home/home.wxml
View file @
229ad531
...
...
@@ -21,6 +21,19 @@
<image src="/image/ornament-0.png" mode="widthFix"></image>
</view>
<view class="banner-notice row align-c {{true ? 'login-notice' : ''}}">
<view class="row align-c" bindtap="onNotice">
<image src="./image/inform.png"></image>
<text>微信登陆</text>
</view>
<view class="row con-b align-c">
<view class="notice-bar row con-e" bind:lintap="noticClick">
<text>消费积分 业主特权</text>
</view>
<image class="banner-image" src="{{imageBase + 'more-g.png'}}" bindtap="onNotice"></image>
</view>
</view>
<view class="banner-notice row align-c">
<view class="row align-c" bindtap="onNotice">
<image src="./image/inform.png"></image>
...
...
@@ -28,6 +41,7 @@
</view>
<view class="row con-b align-c">
<l-notice-bar show="{{true}}" type="swip" swip-arr="{{noticeTitles}}" speed="2000" l-class="notice-bar" bind:lintap="noticClick"></l-notice-bar>
<view class="border-right"></view>
<image class="banner-image" src="{{imageBase + 'more-g.png'}}" bindtap="onNotice"></image>
</view>
</view>
...
...
pages/home/home/home.wxss
View file @
229ad531
...
...
@@ -64,7 +64,7 @@
top: 620rpx;
left: 40rpx;
width: 670rpx;
height:
92
rpx;
height:
108
rpx;
padding: 4rpx 32rpx;
background:rgba(255, 255, 255, 1);
box-shadow: 0 16rpx 48rpx 0 rgba(0, 0, 0, .05);
...
...
@@ -72,6 +72,9 @@
overflow: hidden;
justify-content: space-between;
}
.login-notice {
margin-bottom: 40rpx;
}
.banner-notice image:nth-child(1) {
width: 40rpx;
...
...
@@ -271,7 +274,7 @@
}
.notice-bar {
width: 3
66
rpx !important;
width: 3
08
rpx !important;
margin: 0 14rpx 0 4rpx;
line-height: 72rpx;
...
...
@@ -285,7 +288,20 @@
.notice-bar swiper-item {
background-color: #ffffff;
}
.notice-bar text {
color: #8A8C8F;
font-size: 26rpx;
}
.border-right {
width: 1rpx;
height: 40rpx;
margin: 0 34rpx 0 24rpx;
background: #DBDFE5;
box-shadow: 0px 16px 48px 0px rgba(0,0,0,0.05);
}
.banner-image {
width: 32rpx;
...
...
pages/pay/order-comment/order-comment.js
View file @
229ad531
...
...
@@ -10,7 +10,7 @@ Page({
scoreEnvironment
:
0
,
// 环境分数
scoreEnvironmentText
:
'0.0'
,
content
:
''
,
// 评价内容,
imgUrls
:
[],
// 评价图片
imgUrls
:
[],
// 评价图片
本地路径
orderInfo
:
{
orderId
:
'02aaa9a62d5645c59109218c27d2174a'
,
name
:
'精灵鸟理想国年卡'
,
...
...
@@ -118,15 +118,41 @@ Page({
'token'
:
App
.
globalData
.
token
},
success
:
(
res
)
=>
{
console
.
log
(
res
)
const
data
=
JSON
.
parse
(
res
.
data
)
let
fileUrls
=
[]
if
(
data
.
code
===
200
&&
data
.
success
===
true
)
{
console
.
log
(
data
.
data
.
fileUrl
)
fileUrls
.
push
(
data
.
data
.
fileUrl
)
}
else
{
console
.
log
(
'上传失败'
)
}
// this.setData({
// fileUrls
// })
let
formData
=
{}
formData
.
orderId
=
this
.
data
.
orderInfo
.
orderId
formData
.
imgUrls
=
fileUrls
,
formData
.
serviceEvaluation
=
this
.
data
.
scoreServeText
formData
.
productEvaluation
=
this
.
data
.
scoreProductText
formData
.
environmentalEvaluation
=
this
.
data
.
scoreEnvironmentText
formData
.
content
=
this
.
data
.
content
console
.
log
(
formData
)
App
.
wxRequest
({
url
:
'/api/v1/order/doAppraise'
,
data
:
{
'orderId'
:
formData
.
orderId
,
'imgUrls'
:
formData
.
imgUrls
,
'serviceEvaluation'
:
formData
.
serviceEvaluation
,
'productEvaluation'
:
formData
.
productEvaluation
,
'environmentalEvaluation'
:
formData
.
productEvaluation
,
'content'
:
formData
.
content
=
this
.
data
.
content
},
success
:
(
response
)
=>
{
console
.
log
(
response
)
}
})
}
})
// let formData = {}
// formData.orderId = this.data.orderInfo.orderId
// formData.imgUrls = '',
// formData.serviceEvaluation = this.data.scoreServe
// formData.productEvaluation = this.data.scoreProduct
// formData.environmentalEvaluation = this.data.scoreEnvironment
// formData.content = this.data.content
}
})
\ No newline at end of file
project.config.json
View file @
229ad531
...
...
@@ -21,17 +21,17 @@
"checkSiteMap"
:
false
,
"uploadWithSourceMap"
:
true
,
"compileHotReLoad"
:
false
,
"useMultiFrameRuntime"
:
true
,
"useApiHook"
:
true
,
"babelSetting"
:
{
"ignore"
:
[],
"disablePlugins"
:
[],
"outputPath"
:
""
},
"enableEngineNative"
:
false
,
"useIsolateContext"
:
true
,
"useCompilerModule"
:
false
,
"userConfirmedUseCompilerModuleSwitch"
:
false
,
"useMultiFrameRuntime"
:
true
,
"useApiHook"
:
true
,
"enableEngineNative"
:
false
,
"packNpmManually"
:
false
,
"packNpmRelationList"
:
[]
},
...
...
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