company only

This commit is contained in:
caoqianming 2020-06-05 10:44:52 +08:00
parent ffbaaf6549
commit 6a1fa23e1b
4 changed files with 8 additions and 7 deletions

View File

@ -3,4 +3,4 @@ ENV = 'production'
# base api
# VUE_APP_BASE_API = '/prod-api'
VUE_APP_BASE_API = 'https://apitest.ctcshe.com'
VUE_APP_BASE_API = 'https://apitest.ahctc.cn'

View File

@ -57,8 +57,8 @@ App({
globalData: {
userInfo: {},
userinfo: {}, // 服务器传回的消费者信息
host: 'https://apitest.ctcshe.com',
mediahost: 'https://apitest.ctcshe.com',
host: 'https://apitest.ahctc.cn',
mediahost: 'https://apitest.ahctc.cn',
//host: 'http://127.0.0.1:8000',
//mediahost: 'http://127.0.0.1:8000',
token : '',

View File

@ -11,6 +11,8 @@
"newFeature": true,
"coverView": true,
"autoAudits": false,
"showShadowRootInWxmlPanel": true,
"scopeDataCheck": false,
"checkInvalidKey": true,
"checkSiteMap": true,
"uploadWithSourceMap": true,
@ -19,9 +21,8 @@
"disablePlugins": [],
"outputPath": ""
},
"showShadowRootInWxmlPanel": true,
"scopeDataCheck": false,
"useCompilerModule": false
"useCompilerModule": true,
"userConfirmedUseCompilerModuleSwitch": false
},
"compileType": "miniprogram",
"libVersion": "2.10.3",

View File

@ -9,7 +9,7 @@ class Company(CommonModel):
'''
客户企业
'''
name = models.CharField(max_length=60, verbose_name='名称')
name = models.CharField(max_length=60, verbose_name='名称', unique=True)
pid = models.ForeignKey('self', null=True, blank=True, on_delete=models.SET_NULL, verbose_name='')
class Meta: