Commit b992107c by honghong

详情

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