Browse Source

修复

pull/4/head
主管理员 3 weeks ago
parent
commit
e5c697e621
7 changed files with 39 additions and 17 deletions
  1. +18
    -0
      api/model/order.js
  2. +2
    -0
      api/model/shop.js
  3. +1
    -1
      manifest.json
  4. +2
    -0
      mixins/list.js
  5. +2
    -2
      pages_order/components/verifyRecord/voucherCard.vue
  6. +12
    -4
      pages_order/mine/verifyRecord.vue
  7. +2
    -10
      pages_order/order/verifyOrder.vue

+ 18
- 0
api/model/order.js View File

@ -69,6 +69,24 @@ const api = {
auth: true,
showLoading: true,
},
fetchVoucher: {
url: '/order/overOrderList',
method: 'POST',
limit : 500,
auth : true,
showLoading : true,
},
fetchStore: {
url: '/order/overOrderList',
method: 'POST',
limit : 500,
auth : true,
showLoading : true,
},
}
export default api

+ 2
- 0
api/model/shop.js View File

@ -40,6 +40,8 @@ const api = {
auth : true,
showLoading : true,
},
}
export default api

+ 1
- 1
manifest.json View File

@ -1,6 +1,6 @@
{
"name" : "unapp模板",
"appid" : "__UNI__197A38F",
"appid" : "__UNI__C572032",
"description" : "",
"versionName" : "1.0.0",
"versionCode" : "100",


+ 2
- 0
mixins/list.js View File

@ -46,6 +46,8 @@ export default {
* @returns {Promise} 返回Promise对象
*/
getData(queryParams){
console.log("queryParams")
console.log(queryParams)
return new Promise((success, error) => {
if(!this.mixinsListApi){
return console.error('mixinsListApi 缺失');


+ 2
- 2
pages_order/components/verifyRecord/voucherCard.vue View File

@ -1,9 +1,9 @@
<template>
<view class="card flex voucher">
<image class="voucher-img" :src="data.imgUrl"></image>
<image class="voucher-img" :src="data.massageItem.image"></image>
<view class="voucher-info">
<view class="voucher-name">{{ data.userName }}</view>
<view class="voucher-name">{{ data }}</view>
<view class="voucher-desc">{{ `核销时间:${data.createTime}` }}</view>
</view>


+ 12
- 4
pages_order/mine/verifyRecord.vue View File

@ -47,17 +47,24 @@
<view class="right">
<text>{{ `${displaySelectedMonth}总核销:` }}</text>
<!-- todo: 对接接口字段 -->
<text class="highlight">{{ 12 }}</text>
<text class="highlight">{{ 0 }}</text>
</view>
</view>
<template v-if="current == 0" >
<view class="list order">
<orderCard class="list-item"
<!-- <orderCard class="list-item"
v-for="item in list"
:key="item.id"
:data="data"
></orderCard>
></orderCard> -->
<voucherCard class="list-item"
v-for="item in list"
:key="item.id"
:data="data"
></voucherCard>
</view>
</template>
<template v-else-if="current == 1" >
@ -67,7 +74,7 @@
:key="item.id"
:data="data"
></voucherCard>
<!-- todo: delete -->
<voucherCard class="list-item"></voucherCard>
<voucherCard class="list-item"></voucherCard>
</view>
@ -86,6 +93,7 @@
1: 'fetchStore',
}
export default {
mixins : [mixinsList],
components: {


+ 2
- 10
pages_order/order/verifyOrder.vue View File

@ -26,7 +26,8 @@
<!-- <image class="info-qr" :src="orderDetail.qrCodeImgUrl" mode="widthFix"></image> -->
<view class="" style="margin: 20rpx;">
<uv-qrcode ref="qrcode" size="300rpx" :value="orderDetail.id"></uv-qrcode>
<!-- <uv-qrcode ref="qrcode" size="300rpx" value="https://h5.uvui.cn"></uv-qrcode> -->
<uv-qrcode ref="qrcode" size="300px" :value="orderDetail.id"></uv-qrcode>
</view>
<view class="info-no">{{ `订单号:${orderDetail.id}` }}</view>
@ -48,19 +49,10 @@
<script>
import productCard from '@/components/product/productCard.vue'
<<<<<<< HEAD
// import QRCode from 'qrcode';
export default {
components: {
productCard,
},
=======
export default {
components: {
productCard,
},
>>>>>>> 2ca5bd5d3ec1810a06580cd54bef3d84846fe941
data() {
return {
orderDetail: {},


Loading…
Cancel
Save