Browse Source

征信管理

devlop
邓雄飞 4 years ago
parent
commit
a401acc990
3 changed files with 97 additions and 24 deletions
  1. 16
      apis/creditManagementApi.js
  2. 53
      pages.json
  3. 52
      pages/credit-management/index.vue

16
apis/creditManagementApi.js

@ -0,0 +1,16 @@
import http from '../utils/http/index.js'
// 添加纸品
export function addPaper(data) {
return http.post({
url: '/base-paper-trading/create/product',
data
})
}
export function getPaperCategory(data) {
return http.get({
url: '/base-paper-trading/get/product/category-list',
data
})
}

53
pages.json

@ -205,31 +205,36 @@
"navigationBarTitleText": "统一第三方页面",
"enablePullDownRefresh": false
}
},
{
"path": "pages/store-settings/index",
"style": {
"navigationBarTitleText": "店铺设置",
"navigationStyle": "custom",
"enablePullDownRefresh": false
}
},
{
"path": "pages/follow-up-records/index",
"style": {
"navigationBarTitleText": "跟进记录"
}
},
{
"path": "pages/add-record/index",
"style": {
"navigationBarTitleText": "新增跟进记录",
"navigationStyle": "custom"
}
},
{
"path": "pages/credit-management/index",
"style": {
"navigationBarTitleText": "征信管理",
"navigationStyle": "custom"
}
}
,{
"path" : "pages/store-settings/index",
"style" :
{
"navigationBarTitleText": "店铺设置",
"navigationStyle": "custom",
"enablePullDownRefresh": false
}
},
{
"path": "pages/follow-up-records/index",
"style": {
"navigationBarTitleText": "跟进记录"
}
},
{
"path": "pages/add-record/index",
"style": {
"navigationBarTitleText": "新增跟进记录",
"navigationStyle": "custom"
}
}
],
],
"globalStyle": {
"navigationBarTextStyle": "black",
"navigationBarTitleText": "uni-app",

52
pages/credit-management/index.vue

@ -0,0 +1,52 @@
<template>
<view>
<uni-nav-bar left-icon="back" @clickLeft="back" statusBar fixed title="征信管理"></uni-nav-bar>
<view @click="getPaperCategory">category</view>
<view @click="add">add</view>
</view>
</template>
<script>
import { go2, back } from '@/utils/hook.js'
import { addPaper, getPaperCategory } from '@/apis/creditManagementApi.js'
export default {
data() {
return {}
},
methods: {
go2,
back,
getPaperCategory,
add() {
let form = {
brandName: '博汇',
categoryId: 1,
description: '156企业测试纸品',
imgList: ['https://qncloudtest.oss-cn-shenzhen.aliyuncs.com/common/13390214088425427.jpg'],
isMainProduct: true,
manufacturerName: '156纸厂',
name: '156白卡',
otherNote: '没有说明',
sellingProposition: '没有卖点',
shippingNote: '没有送货说明',
skuList: [
{
isPromoting: false,
listPrice: 10000,
minimum: 1,
stock: 100,
stockUnit: 2,
weight: 200
}
],
supplierId: '678289470268772352'
}
addPaper(form).then((res) => {
console.log(res)
})
}
}
}
</script>
<style lang="scss" scoped></style>
Loading…
Cancel
Save