master V1.1.1
yujialong 1 year ago
parent 9d78448e9e
commit 66b112f80f
  1. 15
      components/filter-popup/filter-popup.vue
  2. 6
      config/request.js
  3. 2
      libs/util.js
  4. 11
      order/addCourse/addCourse.vue
  5. 1
      order/editCourse/editCourse.vue
  6. 2
      order/orderDetail/orderDetail.vue
  7. 2
      order/shopCart/shopCart.vue
  8. 2
      pages.json
  9. 13
      pages/orders/orders.vue
  10. 6
      pages/plans/plans.vue
  11. 1
      team/scheme/scheme.vue

@ -207,6 +207,20 @@ export default {
e.title = e.disciplineName e.title = e.disciplineName
}) })
this.categories.push(list) this.categories.push(list)
const res = await courseProfessionalClass(1)
res.list.map(e => {
e.id = e.professionalClassId
e.title = e.professionalClassName
})
this.categories.push(res.list)
const res1 = await courseProfessional(1)
res1.list.map(e => {
e.id = e.professionalId
e.title = e.professionalName
})
this.categories.push(res1.list)
}, },
// //
change(e) { change(e) {
@ -233,7 +247,6 @@ export default {
// //
async columnchange(e) { async columnchange(e) {
const { column } = e.detail const { column } = e.detail
console.log('change',column)
if (column == 0) { if (column == 0) {
const { list } = await courseProfessionalClass(this.categories[0][e.detail.value].id) const { list } = await courseProfessionalClass(this.categories[0][e.detail.value].id)
list.map(e => { list.map(e => {

@ -5,9 +5,9 @@
*/ */
export default { export default {
// baseURL: 'https://huorantech.cn/', baseURL: 'https://huorantech.cn/',
// baseURL: 'http://192.168.31.51:9000/', // baseURL: 'http://192.168.31.152:9000/',
baseURL: 'http://121.37.12.51/', // baseURL: 'http://121.37.12.51/',
headers: { headers: {
'Content-Type': 'application/json;charset=UTF-8' 'Content-Type': 'application/json;charset=UTF-8'
}, },

@ -68,7 +68,7 @@ export default {
getBmName(val) { getBmName(val) {
return uni.getStorageSync('team').partnerClassificationName return uni.getStorageSync('team').partnerClassificationName
}, },
// 返回图标。如果有图标,则直接返回,否则判断是否是数据产品,即productType=2,如果是,则取数据图标,否则则显示通用图标,这两个图标都在config/product.js里有配置 // 返回图标。如果有图标,则直接返回
getIcon(e) { getIcon(e) {
return e.appletIcon || Product.normalIcon return e.appletIcon || Product.normalIcon
}, },

@ -279,16 +279,17 @@
console.log(44, e) console.log(44, e)
const classId = e.classificationId const classId = e.classificationId
const pid = +e.associatedProduct const pid = +e.associatedProduct
const { mallId } = e
if (classId == 1 || classId == 2) { if (classId == 1 || classId == 2) {
list1.push(pid) list1.push(mallId)
} else if (classId == 3) { } else if (classId == 3) {
list2.push(pid) list2.push(mallId)
} else if (classId == 4) { } else if (classId == 4) {
list3.push(pid) list3.push(mallId)
} else if (classId == 5) { } else if (classId == 5) {
list0.push(pid) list0.push(mallId)
} else if (classId == 6) { } else if (classId == 6) {
list4.push(pid) list4.push(mallId)
} }
result.push(this.createParam(e, this.$util.getOrderType(classId))) result.push(this.createParam(e, this.$util.getOrderType(classId)))
resolve() resolve()

@ -143,7 +143,6 @@
courses['list' + e.authority].list.push(e) courses['list' + e.authority].list.push(e)
}) })
this.courses = courses this.courses = courses
console.log('editCourse', this.courses)
}).catch(e => {}) }).catch(e => {})
try { try {
uni.removeStorageSync('courses') uni.removeStorageSync('courses')

@ -809,8 +809,10 @@
} }
} }
.ship-info { .ship-info {
height: 400rpx;
padding: 20rpx; padding: 20rpx;
white-space: pre-wrap; white-space: pre-wrap;
font-size: 28rpx; font-size: 28rpx;
overflow: auto;
} }
</style> </style>

@ -58,6 +58,7 @@
} }
}, },
onShow() { onShow() {
this.checked = []
// //
try { try {
uni.removeStorageSync('orderForm') uni.removeStorageSync('orderForm')
@ -164,6 +165,7 @@
submit() { submit() {
const list = this.checked // const list = this.checked //
if (list.length) { if (list.length) {
//
if (new Set(list.map(e => e.mallId)).size !== list.length) return this.$util.errMsg('所选产品存在重复,请重新选择') if (new Set(list.map(e => e.mallId)).size !== list.length) return this.$util.errMsg('所选产品存在重复,请重新选择')
const promises = [] const promises = []

@ -251,7 +251,7 @@
"path" : "scheme/scheme", "path" : "scheme/scheme",
"style" : "style" :
{ {
"navigationBarTitleText": "", "navigationBarTitleText": "方案详情",
"enablePullDownRefresh": false "enablePullDownRefresh": false
} }
}, },

@ -1,5 +1,5 @@
<template> <template>
<view> <view :class="[{oh: !per}]">
<view class="filter"> <view class="filter">
<uni-search-bar class="search" radius="30" placeholder="请输入学校名称,商务经理,订单号" v-model="keyword" clearButton="auto" cancelButton="none" /> <uni-search-bar class="search" radius="30" placeholder="请输入学校名称,商务经理,订单号" v-model="keyword" clearButton="auto" cancelButton="none" />
<view :class="['sort', sort]" @click="switchSort"></view> <view :class="['sort', sort]" @click="switchSort"></view>
@ -60,6 +60,7 @@
<uni-icons class="plus" type="plus-filled" size="60" color="#007eff" @click="$util.to('/order/orderDetail/orderDetail')"></uni-icons> <uni-icons class="plus" type="plus-filled" size="60" color="#007eff" @click="$util.to('/order/orderDetail/orderDetail')"></uni-icons>
<filter-popup :data="filterData" :form.sync="filterForm" v-model="popup" title="全部筛选" height="1104rpx" @finsh="subFinsh"></filter-popup> <filter-popup :data="filterData" :form.sync="filterForm" v-model="popup" title="全部筛选" height="1104rpx" @finsh="subFinsh"></filter-popup>
<view v-if="!per" class="per-mask">功能升级中敬请期待...</view>
</view> </view>
</template> </template>
@ -69,6 +70,7 @@
export default { export default {
data() { data() {
return { return {
per: true, //
popup: false, popup: false,
// //
filterData: [ filterData: [
@ -143,6 +145,7 @@
} }
}, },
onShow() { onShow() {
this.per = true
// //
try { try {
uni.removeStorageSync('orderForm') uni.removeStorageSync('orderForm')
@ -153,8 +156,11 @@
methods: { methods: {
// //
initRole() { initRole() {
this.tabs = []
const auth = uni.getStorageSync('auth') const auth = uni.getStorageSync('auth')
if (!auth.includes('订单')) {
this.per = false
}
this.tabs = []
auth.includes('订单:我的订单') && this.tabs.push({ auth.includes('订单:我的订单') && this.tabs.push({
name: '我的订单', name: '我的订单',
id: 0 id: 0
@ -309,4 +315,7 @@
color: #bdbdbd; color: #bdbdbd;
} }
} }
.oh {
overflow: hidden;
}
</style> </style>

@ -17,8 +17,8 @@
<view class="line"> <view class="line">
<view class="name">产品</view> <view class="name">产品</view>
<view class="val ell-wrap"> <view class="val ell-wrap">
<view :class="['product', {ell: !item.toggle}]" v-html="item.product"></view> <view :class="['product', {ell: !item.toggle}]">{{ item.productNames }}</view>
<view v-if="item.product.length > 14" class="toggle" @click.stop="toggle(item)">{{ item.toggle ? '收起' : '展开' }}</view> <view v-if="item.productNames && item.productNames.length > 14" class="toggle" @click.stop="toggle(item)">{{ item.toggle ? '收起' : '展开' }}</view>
</view> </view>
</view> </view>
<view class="line"> <view class="line">
@ -109,7 +109,7 @@
// list // list
const list = data.records const list = data.records
list.forEach(e => { list.forEach(e => {
e.toggle = false if (e.productNames) e.toggle = e.productNames.length < 14 // 14
}) })
this.list = this.reachBottom > 0 ? [...this.list, ...list] : list this.list = this.reachBottom > 0 ? [...this.list, ...list] : list
this.page++ // page+1 this.page++ // page+1

@ -36,6 +36,7 @@
title: '加载中' title: '加载中'
}) })
schemeFindById(this.id).then(({ data }) => { schemeFindById(this.id).then(({ data }) => {
if (data.productList) data.product = data.productList.map(e => e.productName).join('、')
this.form = data this.form = data
uni.hideLoading() uni.hideLoading()
}).catch(e => { }).catch(e => {

Loading…
Cancel
Save