摘要: 1.项目准备 1.在settings.py中 STATIC_URL = '/static/' STATIC_ROOT = os.path.join(BASE_DIR, 'static') # STATICFILES_DIRS = ( # os.path.join(BASE_DIR, 'static' 阅读全文
posted @ 2020-07-03 16:54 雪落忆海 阅读(289) 评论(0) 推荐(0) 编辑
摘要: 1.系统、环境、软件工具: 1.系统: 1.本地开发端:Windows7旗舰版 2.腾讯云服务器端:Ubuntu18.04.1 LTS 64位 2.环境: 1.本地开发端:node.js、python3.6 2.腾讯云服务器端:node.js、python3.6 3.软件工具: 1.Xshell(免 阅读全文
posted @ 2020-07-03 04:16 雪落忆海 阅读(458) 评论(0) 推荐(0) 编辑
摘要: 1.在newapp/components/wgy.vue中: <template> <view> <scroll-view scroll-x class="bg-cyan nav text-center"> <view class="cu-item text-lg" :class="0==TabCu 阅读全文
posted @ 2020-07-03 02:57 雪落忆海 阅读(205) 评论(0) 推荐(0) 编辑
摘要: 1.在newapp/components/wgz.vue中: <template> <view> <view class="cu-bar bg-white solid-bottom"> <view class="action"> <text class="cuIcon-title text-oran 阅读全文
posted @ 2020-07-03 02:55 雪落忆海 阅读(179) 评论(0) 推荐(0) 编辑
摘要: 1.在newapp/components/putong.vue中: <template> <view class="putong"> <view class="padding-xl radius shadow-warp bg-cyan margin-top"> <view class="v-head 阅读全文
posted @ 2020-07-03 02:54 雪落忆海 阅读(162) 评论(0) 推荐(0) 编辑
摘要: 1.newapp/pages/center/center.vue 1.在newapp/components新建三个组件:putong.vue,wgy.vue,wgz.vue 2.在newapp/pages/center/center.vue中: <template> <view class="con 阅读全文
posted @ 2020-07-03 02:52 雪落忆海 阅读(194) 评论(0) 推荐(0) 编辑
摘要: 1.在后端NewCenter 1.apps/user_operations/views.py中新建增删查:楼、单元、住户、用户的类: from django.shortcuts import render,HttpResponse from rest_framework.views import A 阅读全文
posted @ 2020-07-03 02:47 雪落忆海 阅读(190) 评论(0) 推荐(0) 编辑
摘要: 1.在NewCenter项目apps/user_operations/models.py中增加OnOrOff class OnOrOff(models.Model): """数据操作开关""" wgz=models.BooleanField(default=False,verbose_name='是 阅读全文
posted @ 2020-07-03 02:38 雪落忆海 阅读(224) 评论(0) 推荐(0) 编辑