pull/1/head
阿怪 1 year ago
parent 60bf302119
commit 4fa658db18

@ -0,0 +1,16 @@
{ // launch.json configurations app-plus/h5/mp-weixin/mp-baidu/mp-alipay/mp-qq/mp-toutiao/mp-360/
// launchtypelocalremote, localremote
"version": "0.0",
"configurations": [{
"default" :
{
"launchtype" : "local"
},
"mp-weixin" :
{
"launchtype" : "local"
},
"type" : "uniCloud"
}
]
}

@ -1,4 +1,5 @@
<script>
import uniIcons from '@/uni_modules/uni-icons/components/uni-icons/uni-icons.vue'
export default {
onLaunch: function() {
console.log('App Launch')

@ -1,8 +1,10 @@
import net from './request.js';
// import store from '../store';
const API = {
//微信登录
getToken: data => net.POST('/login/token',data), // 获取token
wx_login: (data,userId) => net.POST('/user/binding/wechat',data,true,{"userId":userId}), // 微信登录
/*
首页信息
*/

@ -6,9 +6,10 @@ const loginUrl = 'pages/user/login';
export default {
REQUEST(url, method = 'GET', data, checkLogin = true, header) {
let token = uni.getStorageSync('access_token') || '';
let token = uni.getStorageSync('access_token') || 'Basic ZGV20mRldjEyMw==';
const headers = {
"Content-Type": "application/json",
// "Content-Type": "application/x-www-form-urlencoded",
"Authorization": token,
"x-token": token,
"token":token,
@ -17,7 +18,10 @@ export default {
}
var pages = getCurrentPages();
var page = pages[pages.length - 1];
if(!header) {
headers["Content-Type"] = 'application/x-www-form-urlencode'
}
console.log("headers :",headers)
return uni.request({
url: config.baseUrl + url,
method,

@ -1,6 +1,6 @@
// isdev 为 true 表示开发环境 false 表示发布环境
const isdev = true;
const baseUrl = isdev ? 'http://niunai.zhitou1688.com' : 'http://niunai.zhitou1688.com';// 办公室接口 & 测试环境
const baseUrl = isdev ? 'https://71e86bc1.r15.cpolar.top' : 'http://niunai.zhitou1688.com';// 办公室接口 & 测试环境
// const baseUrl = isdev ? 'http://192.168.1.133:8899' : 'https://api.gwkjxb.com';// 办公室接口 & 正式环境
// const baseUrl = 'https://api.gwkjxb.com';// 正式环境(由于本地测试后台没有启动,暂时通用正式服)
@ -8,10 +8,10 @@ const baseUrl = isdev ? 'http://niunai.zhitou1688.com' : 'http://niunai.zhitou16
const shareUrl = isdev ? 'https://h5.gwkjxb.com/' : 'http://test_h5.gwkjxb.com/';
const teacher_admin_url = 'http://teacher.gwkjxb.com/#/login'
const config = {
appName: '牛奶配送',
appName: '保护视力',
baseUrl,
appVersion: '1.0.6',
developer: '牛奶配送',
developer: '保护视力',
// appLogo: require('../static/logo.png'),
shareUrl,
teacher_admin_url,

@ -50,7 +50,7 @@
"quickapp" : {},
/* */
"mp-weixin" : {
"appid" : "",
"appid" : "wxaaf66dbb5c3983b3",
"setting" : {
"urlCheck" : false
},

@ -4,15 +4,15 @@
import mySwiper from "@/components/mySwiper.vue"
import {ref,onMounted,nextTick} from "vue"
import {useStore} from '@/store/index.js'
// import uniIcons from '@/uni_modules/uni-icons/components/uni-icons/uni-icons.vue'
const store = useStore()
onLoad((e) => {
if(!store.userInfo?.has_operation) { //
operation_flag.value = true
setTimeout(()=>{
console.log(inputDialog.value)
inputDialog.value.open()
},0)
// operation_flag.value = true
// setTimeout(()=>{
// console.log(inputDialog.value)
// inputDialog.value.open()
// },0)
}
})
//
@ -47,11 +47,35 @@
<view class="content page-box">
<!-- 轮播图 -->
<mySwiper :indicatorDots="true" :isRadius="true" height="160" class="index-siwper margin-b-card" :lbt_list="lbt_list" style="width: 100%;" />
<!-- <uni-popup ref="inputDialog" >
<view class="">
dasdsdd
<view class="main-cards">
<view class="mc-part" style="margin-left: 0;">
<view class="mc-part-text">已完成事项</view>
<image src="../../static/done.png" mode="widthFix"></image>
</view>
<view class="mc-part mc-part2" style="margin-right: 0;">
<view class="mc-part-text">待完成事项</view>
<image style="transform: rotate(0deg);" src="../../static/undone.png" mode="widthFix"></image>
</view>
</view>
<view class="attention-card">
<view class="part-title">
注意事项
</view>
<view class="ac-parts">
<view class="ac-part" style="background: linear-gradient(45deg, #ffa2a2,#ffd3d3, #ffffff00);">
术前注意事项
<uni-icons type="forward" color="#ffa2a2" size="20"></uni-icons>
</view>
<view class="ac-part" style="background: linear-gradient(45deg, #f9b275,#fff3e9, #ffffff00);">
术中注意事项
<uni-icons type="forward" color="#f9b275" size="20"></uni-icons>
</view>
</uni-popup> -->
<view class="ac-part" style="background: linear-gradient(45deg, #8fdc8a,#fdfdfd, #ffffff00);">
术后注意事项
<uni-icons type="forward" color="#8fdc8a" size="20"></uni-icons>
</view>
</view>
</view>
<uni-popup ref="inputDialog" :is-mask-click='false'>
<view class="pop-box">
<view class="pb-title">手术信息</view>
@ -64,7 +88,65 @@
</uni-popup>
</view>
</template>
<style>
<style scoped lang="scss">
.part-title{
border-left: 10rpx solid #fe915d;
padding-left: 20rpx;
font-weight: 900;
}
.attention-card{
margin-top: 20rpx;
width: 100%;
.ac-parts{
margin-top: 20rpx;
.ac-part{
display: flex;
align-items: center;
justify-content: space-between;
padding:30rpx 20rpx;
color: white;
margin: 20rpx 0;
}
}
}
.main-cards{
.mc-part{
.mc-part-text{
position: relative;
z-index: 10;
font-size: 36rpx;
font-weight: 900;
}
width: 50%;
/* text-align: center; */
background: linear-gradient(200deg, #82d8f2, #ddecf0);
color: white;
padding: 40rpx 20rpx;
margin: 0 20rpx;
border-radius: 20rpx;
height: 100rpx;
position: relative;
overflow: hidden;
image{
position: absolute;
width: 66%;
right: 0;
bottom: -20%;
z-index: 1;
// transform: rotate(315deg);
transform: rotate(45deg);
}
}
.mc-part2{
background: linear-gradient(200deg,#bbf4d5, #50c053);
// text-align: right;
}
display: flex;
align-items: center;
justify-content: space-between;
width: 100%;
margin-top: 20rpx;
}
.pop-box{
background-color: white;
padding: 20rpx;

@ -1,8 +1,57 @@
<template>
</template>
<script>
<script setup>
//
import { onLoad } from "@dcloudio/uni-app"
import mySwiper from "@/components/mySwiper.vue"
import {ref,onMounted,nextTick} from "vue"
import {useStore} from '@/store/index.js'
const store = useStore()
import api from "@/api/index"
//
function getPhoneNumber (e) {
// tel_code.value = e.detail.code
console.log(e)
getAccess_token({code:e.detail.code})
// console.log(e.detail.code) //
// console.log(e.detail.errMsg) //
// console.log(e.detail.errno) //
}
async function getAccess_token(params={}){//token
//token
// wx.clearStorageSync();
//访
const data={
username:params.code,//code
type:'wechat_mini_app',
identity:'user',
password:'111'
}
// console.log(':',data)
const res = await api.getToken(data)
wx_login()
}
async function wx_login(token_res){
let res=await new Promise(resolve=>{
uni.login({
provider: 'weixin', //使
success: function (loginRes) {
resolve(loginRes);
console.log(loginRes,'微信登录返回信息');
}
});
});
let userId = ''
// const res = await api.wx_login(data)
let res2=await api.wx_login({code:res.code},userId);
}
</script>
<template>
<view class="user-box page-box">
<button class="submit-btn" open-type="getPhoneNumber" @getphonenumber="getPhoneNumber">
<!-- <image class="wx_loin_img" :src="wx_login" mode=""></image> -->
<text>登录</text>
</button>
</view>
</template>
<style>
</style>

Binary file not shown.

After

Width:  |  Height:  |  Size: 73 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 71 KiB

@ -0,0 +1,22 @@
## 1.3.52022-01-24
- 优化 size 属性可以传入不带单位的字符串数值
## 1.3.42022-01-24
- 优化 size 支持其他单位
## 1.3.32022-01-17
- 修复 nvue 有些图标不显示的bug兼容老版本图标
## 1.3.22021-12-01
- 优化 示例可复制图标名称
## 1.3.12021-11-23
- 优化 兼容旧组件 type 值
## 1.3.02021-11-19
- 新增 更多图标
- 优化 自定义图标使用方式
- 优化 组件UI并提供设计资源详见:[https://uniapp.dcloud.io/component/uniui/resource](https://uniapp.dcloud.io/component/uniui/resource)
- 文档迁移,详见:[https://uniapp.dcloud.io/component/uniui/uni-icons](https://uniapp.dcloud.io/component/uniui/uni-icons)
## 1.1.72021-11-08
## 1.2.02021-07-30
- 组件兼容 vue3如何创建vue3项目详见 [uni-app 项目支持 vue3 介绍](https://ask.dcloud.net.cn/article/37834)
## 1.1.52021-05-12
- 新增 组件示例地址
## 1.1.42021-02-05
- 调整为uni_modules目录规范

File diff suppressed because it is too large Load Diff

@ -0,0 +1,96 @@
<template>
<!-- #ifdef APP-NVUE -->
<text :style="{ color: color, 'font-size': iconSize }" class="uni-icons" @click="_onClick">{{unicode}}</text>
<!-- #endif -->
<!-- #ifndef APP-NVUE -->
<text :style="{ color: color, 'font-size': iconSize }" class="uni-icons" :class="['uniui-'+type,customPrefix,customPrefix?type:'']" @click="_onClick"></text>
<!-- #endif -->
</template>
<script>
import icons from './icons.js';
const getVal = (val) => {
const reg = /^[0-9]*$/g
return (typeof val === 'number' || reg.test(val) )? val + 'px' : val;
}
// #ifdef APP-NVUE
var domModule = weex.requireModule('dom');
import iconUrl from './uniicons.ttf'
domModule.addRule('fontFace', {
'fontFamily': "uniicons",
'src': "url('"+iconUrl+"')"
});
// #endif
/**
* Icons 图标
* @description 用于展示 icons 图标
* @tutorial https://ext.dcloud.net.cn/plugin?id=28
* @property {Number} size 图标大小
* @property {String} type 图标图案参考示例
* @property {String} color 图标颜色
* @property {String} customPrefix 自定义图标
* @event {Function} click 点击 Icon 触发事件
*/
export default {
name: 'UniIcons',
emits:['click'],
props: {
type: {
type: String,
default: ''
},
color: {
type: String,
default: '#333333'
},
size: {
type: [Number, String],
default: 16
},
customPrefix:{
type: String,
default: ''
}
},
data() {
return {
icons: icons.glyphs
}
},
computed:{
unicode(){
let code = this.icons.find(v=>v.font_class === this.type)
if(code){
return unescape(`%u${code.unicode}`)
}
return ''
},
iconSize(){
return getVal(this.size)
}
},
methods: {
_onClick() {
this.$emit('click')
}
}
}
</script>
<style lang="scss">
/* #ifndef APP-NVUE */
@import './uniicons.css';
@font-face {
font-family: uniicons;
src: url('./uniicons.ttf') format('truetype');
}
/* #endif */
.uni-icons {
font-family: uniicons;
text-decoration: none;
text-align: center;
}
</style>

@ -0,0 +1,663 @@
.uniui-color:before {
content: "\e6cf";
}
.uniui-wallet:before {
content: "\e6b1";
}
.uniui-settings-filled:before {
content: "\e6ce";
}
.uniui-auth-filled:before {
content: "\e6cc";
}
.uniui-shop-filled:before {
content: "\e6cd";
}
.uniui-staff-filled:before {
content: "\e6cb";
}
.uniui-vip-filled:before {
content: "\e6c6";
}
.uniui-plus-filled:before {
content: "\e6c7";
}
.uniui-folder-add-filled:before {
content: "\e6c8";
}
.uniui-color-filled:before {
content: "\e6c9";
}
.uniui-tune-filled:before {
content: "\e6ca";
}
.uniui-calendar-filled:before {
content: "\e6c0";
}
.uniui-notification-filled:before {
content: "\e6c1";
}
.uniui-wallet-filled:before {
content: "\e6c2";
}
.uniui-medal-filled:before {
content: "\e6c3";
}
.uniui-gift-filled:before {
content: "\e6c4";
}
.uniui-fire-filled:before {
content: "\e6c5";
}
.uniui-refreshempty:before {
content: "\e6bf";
}
.uniui-location-filled:before {
content: "\e6af";
}
.uniui-person-filled:before {
content: "\e69d";
}
.uniui-personadd-filled:before {
content: "\e698";
}
.uniui-back:before {
content: "\e6b9";
}
.uniui-forward:before {
content: "\e6ba";
}
.uniui-arrow-right:before {
content: "\e6bb";
}
.uniui-arrowthinright:before {
content: "\e6bb";
}
.uniui-arrow-left:before {
content: "\e6bc";
}
.uniui-arrowthinleft:before {
content: "\e6bc";
}
.uniui-arrow-up:before {
content: "\e6bd";
}
.uniui-arrowthinup:before {
content: "\e6bd";
}
.uniui-arrow-down:before {
content: "\e6be";
}
.uniui-arrowthindown:before {
content: "\e6be";
}
.uniui-bottom:before {
content: "\e6b8";
}
.uniui-arrowdown:before {
content: "\e6b8";
}
.uniui-right:before {
content: "\e6b5";
}
.uniui-arrowright:before {
content: "\e6b5";
}
.uniui-top:before {
content: "\e6b6";
}
.uniui-arrowup:before {
content: "\e6b6";
}
.uniui-left:before {
content: "\e6b7";
}
.uniui-arrowleft:before {
content: "\e6b7";
}
.uniui-eye:before {
content: "\e651";
}
.uniui-eye-filled:before {
content: "\e66a";
}
.uniui-eye-slash:before {
content: "\e6b3";
}
.uniui-eye-slash-filled:before {
content: "\e6b4";
}
.uniui-info-filled:before {
content: "\e649";
}
.uniui-reload:before {
content: "\e6b2";
}
.uniui-micoff-filled:before {
content: "\e6b0";
}
.uniui-map-pin-ellipse:before {
content: "\e6ac";
}
.uniui-map-pin:before {
content: "\e6ad";
}
.uniui-location:before {
content: "\e6ae";
}
.uniui-starhalf:before {
content: "\e683";
}
.uniui-star:before {
content: "\e688";
}
.uniui-star-filled:before {
content: "\e68f";
}
.uniui-calendar:before {
content: "\e6a0";
}
.uniui-fire:before {
content: "\e6a1";
}
.uniui-medal:before {
content: "\e6a2";
}
.uniui-font:before {
content: "\e6a3";
}
.uniui-gift:before {
content: "\e6a4";
}
.uniui-link:before {
content: "\e6a5";
}
.uniui-notification:before {
content: "\e6a6";
}
.uniui-staff:before {
content: "\e6a7";
}
.uniui-vip:before {
content: "\e6a8";
}
.uniui-folder-add:before {
content: "\e6a9";
}
.uniui-tune:before {
content: "\e6aa";
}
.uniui-auth:before {
content: "\e6ab";
}
.uniui-person:before {
content: "\e699";
}
.uniui-email-filled:before {
content: "\e69a";
}
.uniui-phone-filled:before {
content: "\e69b";
}
.uniui-phone:before {
content: "\e69c";
}
.uniui-email:before {
content: "\e69e";
}
.uniui-personadd:before {
content: "\e69f";
}
.uniui-chatboxes-filled:before {
content: "\e692";
}
.uniui-contact:before {
content: "\e693";
}
.uniui-chatbubble-filled:before {
content: "\e694";
}
.uniui-contact-filled:before {
content: "\e695";
}
.uniui-chatboxes:before {
content: "\e696";
}
.uniui-chatbubble:before {
content: "\e697";
}
.uniui-upload-filled:before {
content: "\e68e";
}
.uniui-upload:before {
content: "\e690";
}
.uniui-weixin:before {
content: "\e691";
}
.uniui-compose:before {
content: "\e67f";
}
.uniui-qq:before {
content: "\e680";
}
.uniui-download-filled:before {
content: "\e681";
}
.uniui-pyq:before {
content: "\e682";
}
.uniui-sound:before {
content: "\e684";
}
.uniui-trash-filled:before {
content: "\e685";
}
.uniui-sound-filled:before {
content: "\e686";
}
.uniui-trash:before {
content: "\e687";
}
.uniui-videocam-filled:before {
content: "\e689";
}
.uniui-spinner-cycle:before {
content: "\e68a";
}
.uniui-weibo:before {
content: "\e68b";
}
.uniui-videocam:before {
content: "\e68c";
}
.uniui-download:before {
content: "\e68d";
}
.uniui-help:before {
content: "\e679";
}
.uniui-navigate-filled:before {
content: "\e67a";
}
.uniui-plusempty:before {
content: "\e67b";
}
.uniui-smallcircle:before {
content: "\e67c";
}
.uniui-minus-filled:before {
content: "\e67d";
}
.uniui-micoff:before {
content: "\e67e";
}
.uniui-closeempty:before {
content: "\e66c";
}
.uniui-clear:before {
content: "\e66d";
}
.uniui-navigate:before {
content: "\e66e";
}
.uniui-minus:before {
content: "\e66f";
}
.uniui-image:before {
content: "\e670";
}
.uniui-mic:before {
content: "\e671";
}
.uniui-paperplane:before {
content: "\e672";
}
.uniui-close:before {
content: "\e673";
}
.uniui-help-filled:before {
content: "\e674";
}
.uniui-paperplane-filled:before {
content: "\e675";
}
.uniui-plus:before {
content: "\e676";
}
.uniui-mic-filled:before {
content: "\e677";
}
.uniui-image-filled:before {
content: "\e678";
}
.uniui-locked-filled:before {
content: "\e668";
}
.uniui-info:before {
content: "\e669";
}
.uniui-locked:before {
content: "\e66b";
}
.uniui-camera-filled:before {
content: "\e658";
}
.uniui-chat-filled:before {
content: "\e659";
}
.uniui-camera:before {
content: "\e65a";
}
.uniui-circle:before {
content: "\e65b";
}
.uniui-checkmarkempty:before {
content: "\e65c";
}
.uniui-chat:before {
content: "\e65d";
}
.uniui-circle-filled:before {
content: "\e65e";
}
.uniui-flag:before {
content: "\e65f";
}
.uniui-flag-filled:before {
content: "\e660";
}
.uniui-gear-filled:before {
content: "\e661";
}
.uniui-home:before {
content: "\e662";
}
.uniui-home-filled:before {
content: "\e663";
}
.uniui-gear:before {
content: "\e664";
}
.uniui-smallcircle-filled:before {
content: "\e665";
}
.uniui-map-filled:before {
content: "\e666";
}
.uniui-map:before {
content: "\e667";
}
.uniui-refresh-filled:before {
content: "\e656";
}
.uniui-refresh:before {
content: "\e657";
}
.uniui-cloud-upload:before {
content: "\e645";
}
.uniui-cloud-download-filled:before {
content: "\e646";
}
.uniui-cloud-download:before {
content: "\e647";
}
.uniui-cloud-upload-filled:before {
content: "\e648";
}
.uniui-redo:before {
content: "\e64a";
}
.uniui-images-filled:before {
content: "\e64b";
}
.uniui-undo-filled:before {
content: "\e64c";
}
.uniui-more:before {
content: "\e64d";
}
.uniui-more-filled:before {
content: "\e64e";
}
.uniui-undo:before {
content: "\e64f";
}
.uniui-images:before {
content: "\e650";
}
.uniui-paperclip:before {
content: "\e652";
}
.uniui-settings:before {
content: "\e653";
}
.uniui-search:before {
content: "\e654";
}
.uniui-redo-filled:before {
content: "\e655";
}
.uniui-list:before {
content: "\e644";
}
.uniui-mail-open-filled:before {
content: "\e63a";
}
.uniui-hand-down-filled:before {
content: "\e63c";
}
.uniui-hand-down:before {
content: "\e63d";
}
.uniui-hand-up-filled:before {
content: "\e63e";
}
.uniui-hand-up:before {
content: "\e63f";
}
.uniui-heart-filled:before {
content: "\e641";
}
.uniui-mail-open:before {
content: "\e643";
}
.uniui-heart:before {
content: "\e639";
}
.uniui-loop:before {
content: "\e633";
}
.uniui-pulldown:before {
content: "\e632";
}
.uniui-scan:before {
content: "\e62a";
}
.uniui-bars:before {
content: "\e627";
}
.uniui-cart-filled:before {
content: "\e629";
}
.uniui-checkbox:before {
content: "\e62b";
}
.uniui-checkbox-filled:before {
content: "\e62c";
}
.uniui-shop:before {
content: "\e62f";
}
.uniui-headphones:before {
content: "\e630";
}
.uniui-cart:before {
content: "\e631";
}

@ -0,0 +1,86 @@
{
"id": "uni-icons",
"displayName": "uni-icons 图标",
"version": "1.3.5",
"description": "图标组件,用于展示移动端常见的图标,可自定义颜色、大小。",
"keywords": [
"uni-ui",
"uniui",
"icon",
"图标"
],
"repository": "https://github.com/dcloudio/uni-ui",
"engines": {
"HBuilderX": "^3.2.14"
},
"directories": {
"example": "../../temps/example_temps"
},
"dcloudext": {
"category": [
"前端组件",
"通用组件"
],
"sale": {
"regular": {
"price": "0.00"
},
"sourcecode": {
"price": "0.00"
}
},
"contact": {
"qq": ""
},
"declaration": {
"ads": "无",
"data": "无",
"permissions": "无"
},
"npmurl": "https://www.npmjs.com/package/@dcloudio/uni-ui"
},
"uni_modules": {
"dependencies": ["uni-scss"],
"encrypt": [],
"platforms": {
"cloud": {
"tcb": "y",
"aliyun": "y"
},
"client": {
"App": {
"app-vue": "y",
"app-nvue": "y"
},
"H5-mobile": {
"Safari": "y",
"Android Browser": "y",
"微信浏览器(Android)": "y",
"QQ浏览器(Android)": "y"
},
"H5-pc": {
"Chrome": "y",
"IE": "y",
"Edge": "y",
"Firefox": "y",
"Safari": "y"
},
"小程序": {
"微信": "y",
"阿里": "y",
"百度": "y",
"字节跳动": "y",
"QQ": "y"
},
"快应用": {
"华为": "u",
"联盟": "u"
},
"Vue": {
"vue2": "y",
"vue3": "y"
}
}
}
}
}

@ -0,0 +1,8 @@
## Icons 图标
> **组件名uni-icons**
> 代码块: `uIcons`
用于展示 icons 图标 。
### [查看文档](https://uniapp.dcloud.io/component/uniui/uni-icons)
#### 如使用过程中有任何问题或者您对uni-ui有一些好的建议欢迎加入 uni-ui 交流群871950839

@ -0,0 +1,463 @@
"use strict";
const common_vendor = require("../common/vendor.js");
const api_request = require("./request.js");
const API = {
//微信登录
getToken: (data) => api_request.net.POST("/login/token", data),
// 获取token
wx_login: (data, userId) => api_request.net.POST("/user/binding/wechat", data, true, { "userId": userId }),
// 微信登录
/*
首页信息
*/
getIndexInfo: (data) => api_request.net.GET("/api/index/index"),
// 首页信息
getIndexBanner: (data) => api_request.net.GET("/api/banner/index", data),
// 轮播图
getIndexNotice: (data) => api_request.net.GET("/api/news/notice"),
// 公告
getGoodsDetail: (data) => api_request.net.GET("/api/goods/detail", data),
// 商品详情(普通商品)
getSeckillGoodsDetail: (data) => api_request.net.GET("/api/seckill_goods/detail", data),
// 商品详情(秒杀)
getGroupGoodsDetail: (data) => api_request.net.GET("/api/group_goods/detail", data),
// 商品详情(团购)
getGoodsList: (data) => api_request.net.GET("/api/goods/lists", data),
// 商品列表(普通商品)
getSeckillGoodsList: (data) => api_request.net.GET("/api/seckill_goods/lists", data),
// 商品列表(限时)
getGroupGoodsList: (data) => api_request.net.GET("/api/group_goods/lists?page=&keyword=", data),
// 商品列表(团购)
getNewinfo: (data) => api_request.net.GET("/api/goods/getGoodsSpec", data),
// 根据商品规格更新数据
getCategoryList: (data) => api_request.net.GET("/api/goods_category/lists"),
// 获取商品分类
getCategory: (data) => api_request.net.GET("/api/goods/category", data),
// 根据分类Id获取分类商品
getCartList: (data) => api_request.net.GET("/api/cart/lists", data),
// 获取购物车列表
addCart: (data) => api_request.net.POST("/api/cart/add", data),
// 加入购物车
delCart: (data) => api_request.net.POST("/api/cart/delete", data),
// 删除购物车
updateCart: (data) => api_request.net.POST("/api/cart/edit", data),
// 更新购物车
login: (data) => api_request.net.POST("/api/user/wechatLogin", data),
// 登录
login_test: (data) => api_request.net.GET("/api/user/testLogin?id=1"),
// 登录 测试专用
zhuce: (data) => api_request.net.POST("/api/user/profile", data),
// 注册
getOrderList: (data) => api_request.net.GET("/api/order/lists", data),
//订单列表
getOrderGroupList: (data) => api_request.net.GET("/api/group_order/lists", data),
//订单列表(团购)
getOrderSeckillList: (data) => api_request.net.GET("/api/seckill_order/lists", data),
//订单列表(秒杀)
pay: (data) => api_request.net.POST("/api/order/pay", data),
//支付
payGroup: (data) => api_request.net.POST("/api/group_order/pay", data),
//支付(团购)
paySeckill: (data) => api_request.net.POST("/api/seckill_order/pay", data),
//支付(秒杀)
refund: (data) => api_request.net.POST("/api/order/refund", data),
//退款
getOrderInviteList: (data) => api_request.net.GET("/api/invite/order", data),
//分销订单
getOrderBaseinfo: (data) => api_request.net.POST("/api/order/preview", data),
//获取订单提交页面的基本信息
getOrderGroupBaseinfo: (data) => api_request.net.POST("/api/group_order/preview", data),
//获取订单提交页面的基本信息(团购)
getOrderSeckillBaseinfo: (data) => api_request.net.POST("/api/seckill_order/preview", data),
//获取订单提交页面的基本信息(秒杀)
getOrderCartinfo: (data) => api_request.net.POST("/api/order/cartPreview", data),
//获取订单提交页面的基本信息(购物车来的)
getDelivery: (data) => api_request.net.GET("/api/index/delivery", data),
//获取配送相关的选项(普通商品)
staffApply: (data) => api_request.net.POST("/api/invite/apply", data),
//业务员申请
deliveryApply: (data) => api_request.net.POST("/api/staff/apply", data),
//配送员申请
getDeliveryArea: (data) => api_request.net.GET("/api/staff/getDeliveryArea"),
//获取配送区域
getAddressList: (data) => api_request.net.GET("/api/address/lists"),
//地址列表
getAddDetail: (data) => api_request.net.GET("/api/address/detail", data),
//地址详情
addAddress: (data) => api_request.net.POST("/api/address/add", data),
//新增地址
editAddress: (data) => api_request.net.POST("/api/address/edit", data),
//修改地址
delAddress: (data) => api_request.net.GET("/api/address/delete", data),
//删除地址
getDefaultAddress: (data) => api_request.net.GET("/api/address/getDefault"),
//获取默认地址
orderSubmitFunc: (data) => api_request.net.POST("/api/order/order", data),
//提交订单(普通订单)
orderSubmitCartFunc: (data) => api_request.net.POST("/api/order/cartOrder", data),
//提交订单(购物车)
orderSubmitGroupFunc: (data) => api_request.net.POST("/api/group_order/order", data),
//提交订单(团购订单)
orderSubmitSeckillFunc: (data) => api_request.net.POST("/api/seckill_order/order", data),
//提交订单(秒杀订单)
orderDetail: (data) => api_request.net.GET("/api/order/detail", data),
//订单详情-普通订单 (顾客)
orderGroupDetail: (data) => api_request.net.GET("/api/group_order/detail", data),
//订单详情-团购订单
orderSeckillDetail: (data) => api_request.net.GET("/api/seckill_order/detail", data),
//订单详情-秒杀订单
orderStaffDetail: (data) => api_request.net.GET("/api/staff/orderDetail", data),
//订单详情-配送订单
orderLeaderDetail: (data) => api_request.net.GET("/api/leader/orderDetail", data),
//订单详情-管理员订单
orderCancel: (data) => api_request.net.POST("/api/order/cancle", data),
//取消订单
orderCancelGroup: (data) => api_request.net.POST("/api/group_order/cancle", data),
//取消订单 (团购)
orderCancelSeckill: (data) => api_request.net.POST("/api/seckill_order/cancle", data),
//取消订单 (秒杀)
/*
用户相关
*/
getUserInfo: (data) => api_request.net.GET("/api/user/userInfo", data),
//获取用户信息
updateUserInfo: (data) => api_request.net.POST("/api/user/profile", data),
//更新用户信息
rechargeFunc: (data) => api_request.net.POST("/api/recharge/recharge", data),
//充值
withdrawalFunc: (data) => api_request.net.POST("/api/withdrawl/submit", data),
//提现
vipBuy: (data) => api_request.net.POST("/api/vip/order", data),
//购买VIP
vipConfig: (data) => api_request.net.GET("/api/vip/config"),
//会员说明
/*
优惠券
*/
getCouponsList: (data) => api_request.net.GET("/api/coupon/userCoupons", data),
//优惠券
getCouponsCenterList: (data) => api_request.net.GET("/api/coupon/lists", data),
//领券中心
couponsCenterReceive: (data) => api_request.net.POST("/api/coupon/receive", data),
//领取优惠
getMyStars: (data) => api_request.net.GET("/api/collect/lists", data),
//我的收藏
/*
推广中心
*/
inviteCenter: (data) => api_request.net.GET("/api/invite/index", data),
//首页
inviteCenterwithdrawl: (data) => api_request.net.POST("/api/withdrawl/submit", data),
//提现
inviteCenterwithdrawlDetail: (data) => api_request.net.GET("/api/invite/withdrawlDetail", data),
//提现明细
inviteCenterwithdrawlRecodes: (data) => api_request.net.GET("/api/invite/record", data),
//提现明细(佣金)
getShareQrcode: (data) => api_request.net.GET("/api/user/getShareQrcode"),
//用户分销二维码
/*
配置相关
*/
getConfig: (data) => api_request.net.GET("/api/index/config"),
setDeliveryTime: (data) => api_request.net.POST("/api/staff/setDeliveryTime", data),
// 设置配送时间
getDeliveryTime: (data) => api_request.net.GET("/api/staff/getDeliveryTime"),
// 获取配送时间
getStaffOrder: (data) => api_request.net.GET("/api/staff/orderLists", data),
// 获取订单管理列表(配送员)
getManageOrder: (data) => api_request.net.GET("/api/leader/orderLists", data),
// 获取订单管理列表(团长)
deliveryPhoto: (data) => api_request.net.POST("/api/staff/deliveryPhoto", data),
// 送达拍照
reveiceOrder: (data) => api_request.net.POST("/api/staff/reveiceOrder", data),
// 接单
reveiceOrderOk: (data) => api_request.net.POST("/api/leader/assignOrder", data),
// 派单
getStaffList: (data) => api_request.net.GET("/api/leader/staffList"),
// 配送员列表
goodsBuyFunc: (data) => api_request.net.POST("/api/leader/goodsBuy", data),
// 商品申购
getRecordList: (data) => api_request.net.GET("/api/leader/recordList", data),
// 货物入库
/**
*
* 登录类信息
*
*/
// 检查更新
getUpdateVersion: (data) => api_request.net.GET("/api/v1/index/version"),
// 获取定位
getLocationInfo: (data) => api_request.net.GET("/api/v1/index/ip", data),
// 验证码登陆
codeLogin: (data) => api_request.net.POST("/code/login", data),
// H5扫码登录邀请接口
inviteLogin: (data) => api_request.net.POST("/api/v1/invite/login", data),
// 发送手机验证码接口
sendVerifyCode: (data) => api_request.net.POST("/api/v1/sms/send", { send_type: "student", ...data }),
// 注销账号
unRegister: (data) => api_request.net.POST("/api/v1/student/delete", data),
// 授权登录
accessLogin: (data, t = "wx") => api_request.net.POST(`/api/v1/${t}/login`, data),
// 退出登录
logOut: (data) => api_request.net.POST("/api/v1/code/logout", data),
// 获取省份
getProvince: (data) => api_request.net.GET("/api/v1/colleges/getProvince", data),
// 根据学员所选择的教学点获取院校列表接口
collegesList: (data) => api_request.net.GET("/api/v1/colleges/list", data),
// 通过市反查省/自治区/直辖市
getProvinceByCity: (data) => api_request.net.GET("/api/v1/region/getProvinceByCity", data),
/**
*
* 用户信息
*
*/
// 学员个人信息接口
selectUserInfo: (data) => api_request.net.GET("/api/v1/student/info", data),
// 登录成功后填写学员信息接口
userUpdate: (data) => api_request.net.POST("/api/v1/student/update", data),
// 邀请二维码
qrcode: (data) => api_request.net.POST("/api/v1/student/invite/qrcode", data),
uploadBase64: (data) => api_request.net.POST("/api/v1/student/uploadBase64", data),
// 获取被邀请人列表接口
inviteList: (data) => api_request.net.GET("/api/v1/student/invite/list", data),
// 积分列表
scoreList: (data) => api_request.net.GET("/point", data),
// 余额明细
balanceList: (data) => api_request.net.POST("/api/v1/balance/detail/get/list", data),
// 模拟测试记录
recordList: (data) => api_request.net.GET("/api/v1/test-record/mock/examination/record", data),
// 练习题错误集详情
practiceList: (data) => api_request.net.GET("/api/v1/test-record/practice/list", data),
/**
*
* 首页数据
*
*/
// 首页配置获取
indexConfig: (data) => api_request.net.GET("/api/v1/index/config", data),
// 轮播
// indexBanner: data => net.GET('/app/banner', data),
indexBanner: (data) => api_request.net.POST("/api/v1/index/lbt", data),
// 获取咨询文章列表
// wzList: data => net.GET('/app/consult-wz', data),
wzList: (data) => api_request.net.POST("/api/v1/index/wz/list", data),
// 获取咨询文章
// wzInfo: id => net.GET(`/app/consult-wz/${id}`),
wzInfo: (id) => api_request.net.GET(`/api/v1/index/wz/${id}`),
// 获取课程分页
getCourseList: (data) => api_request.net.GET(`/app/course/page`, data),
// 获取推荐院校列表
// recommendwzList: data => net.GET('/app/academy', data),
recommendwzList: (data) => api_request.net.POST("/api/v1/index/academy/list", data),
// 获取推荐院校文章
// recommendwzInfo: id => net.GET(`/app/academy/${id}`),
recommendwzInfo: (id) => api_request.net.GET(`/api/v1/index/academy/${id}`),
// 推荐院校文章阅读量累计
// recomendaddReadNumber: data => net.PUT('/app/academy/num',data),
recomendaddReadNumber: (data) => api_request.net.POST("/api/v1/index/academy/add/num", data),
//获取考试大纲列表
syllabusList: (data) => api_request.net.POST("/api/v1/index/syllabus/list", data),
// 搜索
search: (data) => api_request.net.POST("/api/v1/index/search", data),
// 阅读量累计
addReadNumber: (data) => api_request.net.PUT("/app/consult-wz/num", data),
// 师资团队列表
lecturerList: (data) => api_request.net.GET("/api/v1/index/lecturer", data),
// 师资详情
lecturerDetail: (id) => api_request.net.GET(`/api/v1/index/lecturer/${id}`),
// 获取资料列表
indexMaterial: (data) => api_request.net.GET("/api/v1/index/material", data),
// indexMaterial: data => net.GET('/app/material', data),
// 获取资料详情
materialDetail: (data) => api_request.net.GET(`/api/v1/index/material/${data.id}`, { buyer_id: data.buyer_id }),
// 获取精品课程
indexBoutiqueCourse: (data) => api_request.net.GET("/api/v1/index/boutique/course", data),
// 获取精品课程详情
boutiqueCourseDetail: (id) => api_request.net.GET(`/api/v1/index/boutique/course/${id}`),
// 获取课程
courseList: (data) => api_request.net.POST("/api/v1/course/get", data),
// 获取套餐
comboList: (data) => api_request.net.POST("/api/v1/combo/course/get", data),
// courseList: data => net.GET('/app/course/page', data),
// 获取课程详情
courseDetail: (id, data) => api_request.net.GET(`/api/v1/course/${id}`, data),
// courseDetail: (id, data) => net.GET(`/app/course`, {id}),
// 获取线下课程
offlineCourseList: (data) => api_request.net.POST("/api/v1/offline/course/get", data),
// 获取线下课程详情
offlineCourseDetail: (id) => api_request.net.GET(`/api/v1/offline/course/${id}`),
// 获取套餐课程详情
getComboDetail: (data) => api_request.net.GET(`/api/v1/combo/course/${data.id}`, { buyer_id: data.buyer_id }