Browse Source

查看合同

devlop
mo-bai 4 years ago
parent
commit
e5647d0a04
3 changed files with 14 additions and 22 deletions
  1. 28
      apis/commonApi.js
  2. 4
      pages/order-detail/index.vue
  3. 4
      pages/store/index.vue

28
apis/commonApi.js

@ -74,17 +74,15 @@ export function getBaseInfo(data = {}, refresh = false) {
if (!refresh && baseInfo) {
resolve(baseInfo)
} else {
http
.get({ url: '/yyt-uec/get/base-info', data }, { hideLoading: true })
.then((res) => {
if (res) {
baseInfo = res
syncStore(res)
resolve(res)
} else {
resolve(null)
}
})
http.get({ url: '/yyt-uec/get/base-info', data }, { hideLoading: true }).then((res) => {
if (res) {
baseInfo = res
syncStore(res)
resolve(res)
} else {
resolve(null)
}
})
}
})
}
@ -95,9 +93,7 @@ export function getBaseInfo(data = {}, refresh = false) {
*/
export function getVerifyUrl(data = {}) {
return http.post({
url:
'/yyt-uec/get/fdd-enterprise-verify-url?enterpriseId=' +
data.enterpriseId,
url: '/yyt-uec/get/fdd-enterprise-verify-url?enterpriseId=' + data.enterpriseId,
data
})
}
@ -108,9 +104,7 @@ export function getVerifyUrl(data = {}) {
*/
export function getGuaranteeContract(data = {}) {
return http.post({
url:
'/yyt-uec/create/supplier/guarantee-contract?mallSupplierId=' +
data.mallSupplierId,
url: '/yyt-uec/create/supplier/guarantee-contract?mallSupplierId=' + data.mallSupplierId,
data
})
}

4
pages/order-detail/index.vue

@ -427,8 +427,8 @@ export default {
list.push(item.imgUrl)
})
uni.previewImage({
list,
current: list[0].imgUrl
urls: list,
current: list[0]
})
})
}

4
pages/store/index.vue

@ -101,7 +101,6 @@ export default {
//
getCustomer() {
getCustomer(this.customerParams).then((res) => {
// console.log('', res)
if (res) {
this.customerInfo = res
}
@ -118,7 +117,6 @@ export default {
} else {
this.list = this.list.concat(res.records)
}
// this.list = [...this.list, ...[1, 2, 3, 4, 5, 6, 7, 8, 9, 10]]
resolve({ list: this.list, total: res.total })
} else {
reject()
@ -163,7 +161,7 @@ export default {
if (this.hasLogin) {
return `¥${value}`
} else {
return `¥${value - 150}${value - 0 + 400}`
return `¥${value - 150 > 0 ? value - 150 : 0}${value - 0 + 400}`
}
}
},

Loading…
Cancel
Save