| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234 |
- <template>
- <view class="check">
- <view class="top"></view>
- <view class="head">
- <span class="cuIcon-back" @click="back"></span>
- <view class="case">
- 核销详情
- </view>
- </view>
- <view class="content">
- <view class="status">
- 已核销<br />
- <span>已完成</span>
- </view>
- <view class="product">
- <view class="title">
- 商品信息
- </view>
- <view class="center">
- <view class="img">
- <image :src="form.productImage" mode=""></image>
- </view>
- <view class="name">
- {{form.productName}}
- <view class="price">
- ¥{{form.costPrice}}/份
- <span>实付款:¥ {{form.orderPrice}}</span>
- </view>
- </view>
- </view>
- </view>
- <view class="product">
- <view class="title">
- 订单信息
- </view>
- <view class="data">
- <span>订单号</span>
- {{form.orderId}}
- </view>
- <view class="data">
- <span>券码</span>
- {{form.voucherCode}}
- </view>
- <view class="data">
- <span>支付流水号</span>
- {{form.tradeId}}
- </view>
- <view class="data">
- <span>提交人</span>
- {{form.linkName}}
- </view>
- <view class="data">
- <span>联系电话</span>
- {{form.phone}}
- </view>
- <view class="data">
- <span>下单时间</span>
- {{form.buyTime}}
- </view>
- <view class="data">
- <span>付款时间</span>
- {{form.payTime}}
- </view>
- <view class="data">
- <span>使用时间</span>
- {{form.writeOffTime}}
- </view>
- </view>
- </view>
- </view>
- </template>
- <script>
- export default{
- data(){
- return{
- form:{}
- }
- },
- methods:{
- //返回
- back() {
- uni.navigateBack({
- delta: 1
- });
- },
- getDeatil(){
- this.$http.get("app/writeOff/writeDetails?id="+this.writeOffId , ).then(res => {
-
- if (res.data.code == 200) {
- this.form = res.data.result
- console.log(res)
- }else{
- }
- })
- .catch(()=>{
- this.mescroll.endErr()
- })
- }
- },
- onLoad(options) {
- this.writeOffId = options.writeOffId
- console.log(this.writeOffId )
- },
- onShow() {
- this.getDeatil()
- }
- }
- </script>
- <style lang="scss" scoped>
- .check {
- width: 100vw;
- height: 100vh;
- background: #F7F8FC;
- /*#ifdef APP-PLUS*/
- .top {
- width: 100%;
- background: linear-gradient( 87deg, #E2F4F8 0%, #A3CDFF 100%), linear-gradient( 360deg, #FFFFFF 0%, rgba(255,255,255,0) 100%);
- height: var(--status-bar-height);
- }
-
- /*#endif*/
- .head {
- width: 100%;
- height: 112rpx;
- padding: 20rpx;
- display: flex;
- align-items: center;
- background: linear-gradient( 87deg, #E2F4F8 0%, #A3CDFF 100%), linear-gradient( 360deg, #FFFFFF 0%, rgba(255,255,255,0) 100%);
- position: relative;
- .cuIcon-back {
- font-size: 40rpx;
- margin-right: 40rpx;
- }
- .case {
- position: absolute;
- left: 50%;
- transform: translateX(-50%);
- font-size: 36rpx;
- font-weight: 600;
- }
- }
- .content {
- padding: 24rpx;
- .status {
- font-size: 44rpx;
- padding: 0px 20rpx;
- color: #333333;
- span {
- font-size: 28rpx;
- color: #666666;
- line-height: 33rpx;
- }
- }
- .product {
- width: 100%;
- margin-top: 24rpx;
- background: #FFFFFF;
- box-shadow: 0px 2px 8px 0px rgba(214, 225, 237, 0.1);
- border-radius: 16px;
- padding: 20rpx;
- .title {
- font-size: 32rpx;
- color: #333333;
- }
- .center {
- display: flex;
- border-radius: 16rpx;
- margin-top: 16rpx;
- .img {
- width: 132rpx;
- height: 132rpx;
- border-radius: 12rpx;
- overflow: hidden;
- margin-right: 16rpx;
- image {
- width: 132rpx;
- height: 132rpx;
- }
- }
- .name {
- flex: 1;
- display: flex;
- flex-direction: column;
- justify-content: space-between;
- font-size: 30rpx;
- color: #000000;
- line-height: 35rpx;
- font-weight: 600;
- .price {
- font-size: 24rpx;
- display: flex;
- align-items: center;
- justify-content: space-between;
- color: #FF6A42;
- span {
- color: #666666;
- }
- }
- }
- }
- .data{
- width: 100%;
- height: 38rpx;
- display: flex;
- align-items: center;
- justify-content: space-between;
- margin-top:20rpx ;
- font-size: 28rpx;
- color: #333333;
- span{
- font-size: 26rpx;
- color: #8A91A8;
- }
- }
- }
- }
- }
- </style>
|