Browse Source

feat: 接口对接;

pull/4/head
Fox-33 1 week ago
parent
commit
6883787f42
7 changed files with 18 additions and 15 deletions
  1. +4
    -0
      common.scss
  2. +1
    -1
      pages_order/applyService/index.vue
  3. +1
    -1
      pages_order/comment/commentCard.vue
  4. +8
    -6
      pages_order/comment/commentRecords.vue
  5. +3
    -5
      pages_order/home/recommendSwiper.vue
  6. +1
    -2
      pages_order/product/productDetail.vue
  7. BIN
      pages_order/static/temp-1.png

+ 4
- 0
common.scss View File

@ -68,4 +68,8 @@
/deep/ .uv-modal__content { /deep/ .uv-modal__content {
padding: 0 !important; padding: 0 !important;
}
/deep/ .uv-rate__content__item__icon-wrap--half {
width: 50% !important;
} }

+ 1
- 1
pages_order/applyService/index.vue View File

@ -212,6 +212,7 @@
let params = { let params = {
orderId: this.id, orderId: this.id,
productId: this.applyServiceProduct.map(item => item.productId).join(','), productId: this.applyServiceProduct.map(item => item.productId).join(','),
type,
} }
if (type == 2) { // if (type == 2) { //
@ -221,7 +222,6 @@
params.num = num params.num = num
params.price = price params.price = price
params.image = images.join(',') params.image = images.join(',')
// todo: check key
params.phone = phone params.phone = phone
} }


+ 1
- 1
pages_order/comment/commentCard.vue View File

@ -60,7 +60,7 @@
images() { images() {
const { image } = this.data || {} const { image } = this.data || {}
return image?.split?.(',')
return image?.split?.(',').filter(val => val)
} }
}, },
methods: { methods: {


+ 8
- 6
pages_order/comment/commentRecords.vue View File

@ -1,7 +1,7 @@
<template> <template>
<view class="page__view"> <view class="page__view">
<navbar :title="title" leftClick @leftClick="$utils.navigateBack" color="#191919" bgColor="#FFFFFF" />
<navbar title="我的评价" leftClick @leftClick="$utils.navigateBack" color="#191919" bgColor="#FFFFFF" />
<view class="main"> <view class="main">
<view class="tabs"> <view class="tabs">
@ -51,12 +51,15 @@
}, },
data() { data() {
return { return {
title: '我的评价',
tabs: [ tabs: [
{ name: '全部' }, { name: '全部' },
{ name: '有图/视频' }, { name: '有图/视频' },
{ name: '最新' }, { name: '最新' },
], ],
queryParams: {
pageNo: 1,
pageSize: 10,
},
mixinsListApi: 'myEvaluate', mixinsListApi: 'myEvaluate',
} }
}, },
@ -69,12 +72,11 @@
methods: { methods: {
//tab //tab
clickTabs({ index }) { clickTabs({ index }) {
// todo
return
// type01
if (index == 0) { if (index == 0) {
delete this.queryParams.status
delete this.queryParams.type
} else { } else {
this.queryParams.status = index - 1
this.queryParams.type = index - 1
} }
this.getData() this.getData()
}, },


+ 3
- 5
pages_order/home/recommendSwiper.vue View File

@ -10,8 +10,7 @@
<swiper-item v-for="item in list" :key="item.id" style="display: inline-block;"> <swiper-item v-for="item in list" :key="item.id" style="display: inline-block;">
<view class="swiper-item"> <view class="swiper-item">
<view class="swiper-item-content"> <view class="swiper-item-content">
<!-- todo: check img url? -->
<image class="img" src="@/pages_order/static/temp-1.png" mode="widthFix"></image>
<image class="img" :src="item.image" mode="widthFix"></image>
<view class="content"> <view class="content">
<view> <view>
@ -69,12 +68,11 @@
let result = await this.$fetch('getPersonalized') let result = await this.$fetch('getPersonalized')
this.list = result.map(item => { this.list = result.map(item => {
const { id, title, subTitle, info, btnTxt, paperId } = item
const { id, title, subTitle, info, image, btnTxt, paperId } = item
return { return {
id, id,
// todo: check img url?
// url
image,
arr: [ arr: [
{ text: title, class: 'font1' }, { text: title, class: 'font1' },
{ text: subTitle, class: 'font2' }, { text: subTitle, class: 'font2' },


+ 1
- 2
pages_order/product/productDetail.vue View File

@ -7,8 +7,7 @@
<view class="summary"> <view class="summary">
<view class="card info"> <view class="card info">
<!-- todo: check key -->
<view class="name">{{ detail.name }}</view>
<view class="name">{{ detail.content || data.name }}</view>
<!-- todo: check key --> <!-- todo: check key -->
<view class="flex tags" v-if="detail.tags"> <view class="flex tags" v-if="detail.tags">
<view class="tag" v-for="(tag, tIdx) in detail.tags" :key="tIdx"> <view class="tag" v-for="(tag, tIdx) in detail.tags" :key="tIdx">


BIN
pages_order/static/temp-1.png View File

Before After
Width: 300  |  Height: 204  |  Size: 85 KiB

Loading…
Cancel
Save