06 2020 档案

摘要:1.修改Bug1:用户信息应该实时更新 1.修改潜在bug,因为后端可能要涉及到用户身份权限的修改,所以每一次打开个人中心和操作中心,都应该更新一遍用户的个人信息 1.在后端项目user_operations/views.py中: class UpUserInfoView(APIView): """ 阅读全文
posted @ 2020-06-25 19:17 雪落忆海 阅读(289) 评论(0) 推荐(0)
摘要:res.goods_desc=res.goods_desc.replace(/\/media/g,host+"/media") this.about_data=res 阅读全文
posted @ 2020-06-23 04:07 雪落忆海 阅读(899) 评论(0) 推荐(0)
摘要:1.在小程序端newapp开发个人中心页面: 1.备用 1.新建修改密码页面uppwd 2.开发pages/me/me.vue: <template> <view class="content"> <view class="padding-xl radius shadow-warp bg-cyan" 阅读全文
posted @ 2020-06-21 10:17 雪落忆海 阅读(547) 评论(0) 推荐(0)
摘要:1.设置是否已经登录的验证 1.在newapp/pages/center/center.vue中: <template> <view class="content"> </view> </template> <script> export default { data() { return { } 阅读全文
posted @ 2020-06-21 04:40 雪落忆海 阅读(486) 评论(0) 推荐(0)
摘要:1.轮播图效果 1.在后端开发获取banner的api: 1.在后端项目NewCenter/apps/user_operations/views.py中开发获取片区banner图的视图: from django.shortcuts import render,HttpResponse from re 阅读全文
posted @ 2020-06-21 02:39 雪落忆海 阅读(304) 评论(0) 推荐(0)
摘要:1.打开Hbuilder-x,【文件】→【新建】→【项目】 2.创建项目newapp 3.【工具】→【设置】→【运行配置】,在将微信开发者工具的安装目录填入 4. 在项目newapp下的manifest.json下的【基础配置】中: 获取AppID 5.点击运行,在微信开发者工具中运行: 6.在微信 阅读全文
posted @ 2020-06-20 12:20 雪落忆海 阅读(404) 评论(0) 推荐(0)
摘要:获取楼列表 1.后端NewCenter部分: 1.在apps/users/views.py: from django.shortcuts import render,HttpResponse from rest_framework.views import APIView,Response from 阅读全文
posted @ 2020-06-12 00:17 雪落忆海 阅读(78) 评论(0) 推荐(0)
摘要:获取片区轮播图 1.在后端NewCenter部分: 1.在apps/users/views.py中: from django.shortcuts import render,HttpResponse from rest_framework.views import APIView,Response 阅读全文
posted @ 2020-06-11 16:11 雪落忆海 阅读(198) 评论(0) 推荐(0)
摘要:管理员登录功能的开发 1.在后端的django项目NewCenter部分 1.在xadmin后台,新建一个用户admin,密码a13506587879 2.在apps/users/views.py中: from django.shortcuts import render,HttpResponse 阅读全文
posted @ 2020-06-11 10:15 雪落忆海 阅读(378) 评论(0) 推荐(0)
摘要:新建vue项目newpc 1.安装node.js 2.新建项目newpc 在想要存放项目的目录下,按住shift键+鼠标右键,选择【在此处打开命令窗口】,打开cmd命令行窗口 为了下载包更快,可以先安装淘宝镜像cnpm npm install -g cnpm --registry=https://r 阅读全文
posted @ 2020-06-10 23:52 雪落忆海 阅读(538) 评论(0) 推荐(0)
摘要:xadmin配置 1.在每个apps下新建adminx.py 1.在apps/users下新建adminx.py: import xadmin from xadmin import views from .models import UserProfile,PianQu,LouMing,DanYua 阅读全文
posted @ 2020-06-09 17:51 雪落忆海 阅读(240) 评论(0) 推荐(0)
摘要:Model设计 1.在settings.py中配置: AUTH_USER_MODEL='users.UserProfile' 2.设计model 1.在apps/users/models.py中: from django.db import models from django.contrib.au 阅读全文
posted @ 2020-06-09 10:23 雪落忆海 阅读(250) 评论(0) 推荐(0)
摘要:新建django项目NewCenter 1.开发环境 1.系统:Windows7 2.开发工具:pycharm 3.数据库:MySQL5.7 还是得选择5.7,选择8..0版本的,在往Ubuntu上部署项目的时候,真的坑得要死。 MySQL5.7.25.0下载地址:https://dev.mysql 阅读全文
posted @ 2020-06-06 17:01 雪落忆海 阅读(254) 评论(0) 推荐(0)
摘要:1.开发环境 1.系统: Windows7 2.开发工具: pycharm 3.python版本: 3.6 4.数据库: MySQL 5.框架: django2.0 2.新建django项目qr 3.整理目录 1.新建app python manage.py startapp user_operat 阅读全文
posted @ 2020-06-06 05:19 雪落忆海 阅读(146) 评论(0) 推荐(0)