Commit b992107c by honghong

详情

parent 0b2dd4d9
...@@ -8,7 +8,7 @@ const userNeedSquare = (params) => { ...@@ -8,7 +8,7 @@ const userNeedSquare = (params) => {
} }
// 获取订单详细信息 // 获取订单详细信息
const orderDetailMsg = (params) => { const orderDetailMsg = (params) => {
return ApiHttp('/xinrenli/article',params,'GET') return ApiHttp('/xinrenli/order/',params,'GET')
} }
export { export {
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
标题 标题
</view> </view>
<view class=""> <view class="">
灯泡坏了 {{orderDetail.title}}
</view> </view>
</view> </view>
<view class="content-textarea"> <view class="content-textarea">
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
成交金额 成交金额
</view> </view>
<view class=""> <view class="">
270 {{orderDetail.actualAmount}}
</view> </view>
</view> </view>
<view class="content-photograph"> <view class="content-photograph">
...@@ -64,7 +64,8 @@ ...@@ -64,7 +64,8 @@
return { return {
imgBgUrl: apiBaseConfig.imgBgUrl, imgBgUrl: apiBaseConfig.imgBgUrl,
globalData: getApp().globalData, globalData: getApp().globalData,
scrollTopHeader: 0 scrollTopHeader: 0,
orderDetail:{}
}; };
}, },
onLoad(option) { onLoad(option) {
...@@ -92,8 +93,12 @@ ...@@ -92,8 +93,12 @@
}, },
methods: { methods: {
getDetailData(id){ getDetailData(id){
let that = this
orderDetailMsg({id:id}).then(res=>{ orderDetailMsg({id:id}).then(res=>{
console.log(res,'详情') console.log(res.data,'详情')
if(res.code == 200){
that.orderDetail = res.data
}
}) })
}, },
// 播放 // 播放
......
<template> <template>
<view>
<view class="index"> <view class="index">
<view class="index-content"> <view class="index-content">
<view class="index-content-item"> <view class="index-content-item">
...@@ -20,10 +22,7 @@ ...@@ -20,10 +22,7 @@
</view> </view>
</view> </view>
</view> </view>
<u-button <u-button text="继续邀请新用户" color="#2C66FF" :customStyle="{
text="继续邀请新用户"
color="#2C66FF"
:customStyle="{
width: '710rpx', width: '710rpx',
height: '80rpx', height: '80rpx',
borderRadius: '10rpx', borderRadius: '10rpx',
...@@ -31,14 +30,18 @@ ...@@ -31,14 +30,18 @@
position: 'absolute', position: 'absolute',
left: '20rpx', left: '20rpx',
bottom: '142rpx' bottom: '142rpx'
}" }"></u-button>
></u-button>
</view>
<!-- <view>
<button class="invite-btn" data-name="shareBtn" open-type="share">继续邀请新用户</button>
</view> -->
</view> </view>
</template> </template>
<script> <script>
import apiBaseConfig from '@/config/index.js'; import apiBaseConfig from '@/config/index.js';
export default { export default {
data() { data() {
return { return {
imgBgUrl: apiBaseConfig.imgBgUrl, imgBgUrl: apiBaseConfig.imgBgUrl,
...@@ -46,21 +49,30 @@ export default { ...@@ -46,21 +49,30 @@ export default {
scrollTopHeader: 0 scrollTopHeader: 0
}; };
}, },
//分享
onShareAppMessage() {
return {
title: '分享的标题'
}
},
onLoad() {}, onLoad() {},
methods: {} methods: {}
}; };
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
.index { .index {
&-content { &-content {
margin: 24rpx 20rpx; margin: 24rpx 20rpx;
width: calc(100% - 20rpx * 2); width: calc(100% - 20rpx * 2);
&-item { &-item {
margin-bottom: 30rpx; margin-bottom: 30rpx;
&-nav { &-nav {
margin-bottom: 20rpx; margin-bottom: 20rpx;
> text {
>text {
display: inline-block; display: inline-block;
width: 6rpx; width: 6rpx;
height: 36rpx; height: 36rpx;
...@@ -68,19 +80,23 @@ export default { ...@@ -68,19 +80,23 @@ export default {
border-radius: 3rpx; border-radius: 3rpx;
margin-right: 10rpx; margin-right: 10rpx;
} }
> view {
>view {
font-size: 28rpx; font-size: 28rpx;
font-family: AlibabaPuHuiTi-Medium, AlibabaPuHuiTi; font-family: AlibabaPuHuiTi-Medium, AlibabaPuHuiTi;
font-weight: 500; font-weight: 500;
color: #333333; color: #333333;
> text {
>text {
color: #2c66ff; color: #2c66ff;
} }
} }
} }
&-nav:last-child { &-nav:last-child {
margin-bottom: 0rpx; margin-bottom: 0rpx;
} }
&-li { &-li {
font-size: 24rpx; font-size: 24rpx;
font-family: AlibabaPuHuiTi-Regular, AlibabaPuHuiTi; font-family: AlibabaPuHuiTi-Regular, AlibabaPuHuiTi;
...@@ -89,10 +105,29 @@ export default { ...@@ -89,10 +105,29 @@ export default {
margin-bottom: 10rpx; margin-bottom: 10rpx;
padding-left: 14rpx; padding-left: 14rpx;
} }
&-li:last-child { &-li:last-child {
margin-bottom: 0rpx; margin-bottom: 0rpx;
} }
} }
} }
} }
.invite-btn {
width: 710rpx;
height: 80rpx;
border-radius: 10rpx;
// padding: 0rpx;
// position: absolute;
// left: 20rpx;
bottom: 142rpx;
color: #FFFFFF;
font-size: 18px;
text-align: center;
line-height: 80rpx;
background: #3476ff;
// transform: translate(50%,0);
// left: 50%;
// margin-left: -350rpx;
}
</style> </style>
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 to comment