Commit 229ad531 by wjw

ww-首页修改

parent cb88e5b5
......@@ -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>
......
......@@ -64,7 +64,7 @@
top: 620rpx;
left: 40rpx;
width: 670rpx;
height: 92rpx;
height: 108rpx;
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: 366rpx !important;
width: 308rpx !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;
......
......@@ -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
......@@ -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": []
},
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment