Commit 1bc5c8ac authored by 石盼盼's avatar 石盼盼

Merge branch 'shipanpan' into 'master'

Shipanpan

See merge request !64
parents 1fe35bca ac1d2f89
...@@ -58,7 +58,7 @@ App({ ...@@ -58,7 +58,7 @@ App({
codeChangeToken(code, cb) { codeChangeToken(code, cb) {
let that = this let that = this
wx.request({ wx.request({
url: 'https://wandoutiyu.xueyoubangedu.com/api/getsessionkey', url: 'https://wandoutiyu.test.xueyoubangedu.com/api/getsessionkey',
data: { data: {
code: code code: code
}, },
...@@ -87,7 +87,7 @@ App({ ...@@ -87,7 +87,7 @@ App({
wx.checkSession({ wx.checkSession({
success() { success() {
wx.request({ wx.request({
url: 'https://wandoutiyu.xueyoubangedu.com/api/saveinfo', url: 'https://wandoutiyu.test.xueyoubangedu.com/api/saveinfo',
data: { data: {
encryptedData: encodeURIComponent(info.encryptedData), encryptedData: encodeURIComponent(info.encryptedData),
iv: encodeURIComponent(info.iv), iv: encodeURIComponent(info.iv),
......
const app = getApp() const app = getApp()
import { import {
Base Base
} from '../../../utils/base.js'; } from '../../../utils/base.js';
const base = new Base() const base = new Base()
Page({ Page({
data: { data: {
showCoach: false,
user_id: '', user_id: '',
role_type: '2', role_type: '2',
telPhone: '' telPhone: '',
gender: [
{
name: 'male',
value: '',
icon: 'https://wdty.xueyoubangedu.com/wandou/sexUnselected.png',
iconActive: 'https://wdty.xueyoubangedu.com/wandou/sexSelected.png'
},
{
name: 'famale',
value: '',
icon: 'https://wdty.xueyoubangedu.com/wandou/sexUnselected.png',
iconActive: 'https://wdty.xueyoubangedu.com/wandou/sexSelected.png'
},
],
}, },
onLoad: function (options) { onLoad: function (options) {
...@@ -17,45 +32,115 @@ Page({ ...@@ -17,45 +32,115 @@ Page({
}) })
console.log(this.data.user_id) console.log(this.data.user_id)
}, },
// 性别选择
gender: function (e) {
var index = e.currentTarget.dataset.index;
this.setData({
selectedIndex: index,
})
console.log(this.data.selectedIndex)
},
showPopup() {
this.setData({
showCoach: true
})
},
Close() {
this.setData({
showCoach: false
})
},
name(e) {
console.log(e.detail);
this.setData({
name: e.detail
})
},
age(e) {
console.log(e.detail);
this.setData({
age: e.detail
})
},
subject(e) {
console.log(e.detail);
this.setData({
subject: e.detail
})
},
major(e) {
console.log(e.detail);
this.setData({
major: e.detail
})
},
certificate(e) {
console.log(e.detail);
this.setData({
certificate: e.detail
})
},
getPhoneNumber: function (e) { getPhoneNumber: function (e) {
var that = this var that = this
if (e.detail.errMsg == 'getPhoneNumber:ok') { if (e.detail.errMsg == 'getPhoneNumber:ok') {
let params = { let params = {
url: 'user/switchPhone', url: 'user/switchPhone',
data: { data: {
encryptedData: e.detail.encryptedData, encryptedData: e.detail.encryptedData,
iv: e.detail.iv iv: e.detail.iv
}, },
type: "POST", type: "POST",
callback: (data) => { callback: (data) => {
this.setData({ this.setData({
telPhone: data.phoneNumber telPhone: data.phoneNumber,
showCoach : true
}) })
app.globalData.userTel = data.phoneNumber app.globalData.userTel = data.phoneNumber
wx.setStorageSync('userTel', data.phoneNumber) wx.setStorageSync('userTel', data.phoneNumber)
that.apply() },
}, }
} base.newRequest(params)
base.newRequest(params) } else {
} else { base.toast('授权失败,无法查看')
base.toast('授权失败,无法查看') }
} },
},
apply() { apply() {
if(this.data.name == '' || this.data.name == undefined){
base.toast('真实姓名不能为空')
return
}
if(this.data.selectedIndex == '' || this.data.selectedIndex == undefined){
base.toast('性别不能为空')
return
}
if(this.data.age == '' || this.data.age == undefined){
base.toast('年龄不能为空')
return
}
if( this.data.subject == '' || this.data.subject == undefined){
base.toast('擅长科目不能为空')
return
}
let params = { let params = {
url: 'apply', url: 'apply',
type: 'POST', type: 'POST',
data: { data: {
role_type: this.data.role_type, role_type: this.data.role_type,
mobile: this.data.telPhone mobile: this.data.telPhone,
true_name: this.data.name,
sex: this.data.selectedIndex,
age: this.data.age,
subject: this.data.subject,
major: this.data.major,
certificate: this.data.certificate
}, },
callback:(data)=>{ callback: (data) => {
wx.redirectTo({ wx.redirectTo({
url: '/pages/sign/applyResult/applyResult?type=success', url: '/pages/sign/applyResult/applyResult?type=success',
}) })
}, },
confirmback:()=>{ confirmback: () => {
wx.redirectTo({ wx.redirectTo({
url: '/pages/sign/applyResult/applyResult?type=fail', url: '/pages/sign/applyResult/applyResult?type=fail',
}) })
......
...@@ -7,5 +7,34 @@ ...@@ -7,5 +7,34 @@
<button class="save" open-type="getPhoneNumber" bindgetphonenumber="getPhoneNumber">申请成为教练</button> <button class="save" open-type="getPhoneNumber" bindgetphonenumber="getPhoneNumber">申请成为教练</button>
</view> </view>
<!-- <view class="btn">
<button class="save" catchtap="showPopup">申请成为教练</button>
</view> -->
</view>
<!-- 填写信息弹窗 -->
<view class="cityBox" wx:if="{{ showCoach }}">
<view class="txContent">
<view class="top">
<view class="title">请填写申请信息</view>
<text class="iconfont iconguanbi1" catchtap="Close"></text>
</view>
<view class="center">
<van-field value="{{ value }}" placeholder="请输入真实姓名" border="{{ true }}" bind:change="name" />
<view class="sexBox">
<view class="gender" wx:for="{{gender}}" wx:key="index" data-index="{{index}}" bindtap="gender">
<text class="genderText">{{item.value}}</text>
<image wx:if="{{index == selectedIndex}}" class="genderImg" src="{{item.iconActive}}"></image>
<image wx:else class="genderImg" src="{{item.icon}}"></image>
</view>
</view>
<view class="phone">{{telPhone}}</view>
<van-field value="{{ value }}" placeholder="请输入年龄" border="{{ true }}" bind:change="age" />
<van-field value="{{ value }}" placeholder="请输入擅长科目" border="{{ true }}" bind:change="subject" />
<van-field value="{{ value }}" placeholder="请输入所选专业 (选填)" border="{{ true }}" bind:change="major" />
<van-field value="{{ value }}" placeholder="请输入相关证书 (选填)" border="{{ true }}" bind:change="certificate" />
</view>
<button class="submit" bindtap="apply">提交</button>
</view>
</view> </view>
\ No newline at end of file
.img { .img {
width: 690rpx; width: 690rpx;
height: 2652rpx; margin: 30rpx auto 150rpx;
margin: 30rpx auto 300rpx;
} }
.img image { .img image {
...@@ -22,10 +21,145 @@ ...@@ -22,10 +21,145 @@
width: 620rpx; width: 620rpx;
height: 80rpx; height: 80rpx;
border: none; border: none;
background: linear-gradient(-70deg, #FFC600 0%, #FFD400 100%); background: linear-gradient(-18deg, #FF6B0F 0%, #FF984D 100%);
border-radius: 40rpx; border-radius: 40rpx;
color: #000000; color: #000000;
font-size: 30rpx; font-size: 30rpx;
text-align: center; text-align: center;
line-height: 50rpx; line-height: 50rpx;
}
/* 填写信息弹窗样式 */
.cityBox {
position: fixed;
left: 0;
right: 0;
top: 0;
bottom: 0;
background: rgba(0, 0, 0, 0.3);
z-index: 20;
}
.txContent {
width: 610rpx;
background: #FFFFFF;
border-radius: 10rpx;
margin: 24% auto;
position: relative;
padding-top: 44rpx;
padding-bottom: 20rpx;
}
.txContent .title {
color: #1A1A1A;
font-size: 34rpx;
text-align: center;
font-weight: bold;
}
.iconguanbi1 {
position: absolute;
top: 26rpx;
right: 28rpx;
color: #CCCCCC;
}
.center {
font-size: 26rpx;
color: #808080;
line-height: 42rpx;
padding: 30rpx 28rpx 0;
}
.input1 {
width: 490rpx;
height: 60rpx;
border-bottom: 1px solid #EBEBEB;
margin: 0 auto;
line-height: 60rpx;
margin-bottom: 20rpx;
}
.submit {
width: 320rpx;
height: 72rpx;
background: linear-gradient(-70deg, #FFC600 0%, #FFD400 100%);
border-radius: 36px;
color: #1A1A1A;
font-size: 28rpx;
text-align: center;
line-height: 48rpx;
margin: 50rpx 140rpx 20rpx;
}
.inputbox {
display: flex;
flex-direction: row;
justify-content: space-between;
width: 490rpx;
height: 80rpx;
line-height: 80rpx;
border-bottom: 1px solid #f1f1f1;
font-size: 26rpx;
color: #000000;
margin: 0 auto;
}
.sexBox{
overflow: hidden;
width: 490rpx;
height: 80rpx;
margin: 0 auto;
border-bottom: 1rpx solid #ebedf0;
}
.gender{
float: left;
line-height: 80rpx;
margin-right: 50rpx;
color: #000000;
font-size: 26rpx;
}
.gender image{
width: 27rpx;
height: 27rpx;
vertical-align: middle;
}
.gender .genderText{
margin-right: 10rpx;
}
.inpbox {
width: 100%;
display: flex;
flex-direction: row;
justify-content: space-between;
}
.inp {
position: relative;
width: 100%;
height: 80rpx;
}
.radiogroup {
display: flex;
flex-direction: row;
}
.radiobox {
display: flex;
flex-direction: row;
}
.radiotxt {
margin-right: 10rpx;
}
.phone {
width: 490rpx;
height: 80rpx;
margin: 0 auto;
line-height: 80rpx;
border-bottom: 1rpx solid #ebedf0;
} }
\ No newline at end of file
...@@ -10,7 +10,22 @@ Page({ ...@@ -10,7 +10,22 @@ Page({
status: '0', status: '0',
curImage: 'https://wdty.xueyoubangedu.com/wandou/pic_02.png', curImage: 'https://wdty.xueyoubangedu.com/wandou/pic_02.png',
role_type: '2', role_type: '2',
telPhone: '' telPhone: '',
gender: [
{
name: 'male',
value: '',
icon: 'https://wdty.xueyoubangedu.com/wandou/sexUnselected.png',
iconActive: 'https://wdty.xueyoubangedu.com/wandou/sexSelected.png'
},
{
name: 'famale',
value: '',
icon: 'https://wdty.xueyoubangedu.com/wandou/sexUnselected.png',
iconActive: 'https://wdty.xueyoubangedu.com/wandou/sexSelected.png'
},
],
userTel : ''
}, },
/** /**
...@@ -18,7 +33,66 @@ Page({ ...@@ -18,7 +33,66 @@ Page({
*/ */
onLoad: function (options) { onLoad: function (options) {
this.setData({ this.setData({
status: options.status ? options.status : '0' status: options.status ? options.status : '0',
userTel : wx.getStorageSync('userTel')
})
},
showPopup() {
this.setData({
showCoach: true
})
},
Close() {
this.setData({
showCoach: false
})
},
// 性别选择
gender: function (e) {
var index = e.currentTarget.dataset.index;
this.setData({
selectedIndex: index,
})
console.log(this.data.selectedIndex)
},
showPopup() {
this.setData({
showCoach: true
})
},
Close() {
this.setData({
showCoach: false
})
},
name(e) {
console.log(e.detail);
this.setData({
name: e.detail
})
},
age(e) {
console.log(e.detail);
this.setData({
age: e.detail
})
},
subject(e) {
console.log(e.detail);
this.setData({
subject: e.detail
})
},
major(e) {
console.log(e.detail);
this.setData({
major: e.detail
})
},
certificate(e) {
console.log(e.detail);
this.setData({
certificate: e.detail
}) })
}, },
copy: function (e) { copy: function (e) {
...@@ -39,12 +113,34 @@ Page({ ...@@ -39,12 +113,34 @@ Page({
}) })
}, },
save() { save() {
if(this.data.name == '' || this.data.name == undefined){
base.toast('真实姓名不能为空')
return
}
if(this.data.selectedIndex == '' || this.data.selectedIndex == undefined){
base.toast('性别不能为空')
return
}
if(this.data.age == '' || this.data.age == undefined){
base.toast('年龄不能为空')
return
}
if( this.data.subject == '' || this.data.subject == undefined){
base.toast('擅长科目不能为空')
return
}
let params = { let params = {
url: 'apply', url: 'apply',
type: 'POST', type: 'POST',
data: { data: {
role_type: this.data.role_type, role_type: this.data.role_type,
mobile: wx.getStorageSync('userTel') mobile: wx.getStorageSync('userTel'),
true_name: this.data.name,
sex: this.data.selectedIndex,
age: this.data.age,
subject: this.data.subject,
major: this.data.major,
certificate: this.data.certificate
}, },
callback: (data) => { callback: (data) => {
wx.redirectTo({ wx.redirectTo({
......
<!-- <view class="box">
<view class="icon">
<image src="/images/pic_01.png"></image>
</view>
<view class="text">申请成功</view>
<view class="cont">
<view class="title">添加审核人员,更快管理场馆!</view>
<view class="code" catchtap="prevImage">
<image src="{{curImage}}"></image>
</view>
<view class="save" catchtap="prevImage">长按保存相册</view>
<view class="wx">微信号: bu15333212792<text class="copy" bindtap="copy">复制</text></view>
</view>
</view> -->
<view> <view>
<view class="one" wx:if="{{ status == 0 }}"> <view class="one" wx:if="{{ status == 0 }}">
<image src="/images/loading.png"></image> <image src="/images/loading.png"></image>
...@@ -21,7 +8,35 @@ ...@@ -21,7 +8,35 @@
<image src="/images/fail.png"></image> <image src="/images/fail.png"></image>
<view class="fail">抱歉,您的申请未通过</view> <view class="fail">抱歉,您的申请未通过</view>
<view class="button"> <view class="button">
<view class="apply" bindtap="save">重新申请</view> <view class="apply" bindtap="showPopup">重新申请</view>
</view>
</view>
</view>
<!-- 填写信息弹窗 -->
<view class="cityBox" wx:if="{{ showCoach }}">
<view class="txContent">
<view class="top">
<view class="title">请填写申请信息</view>
<text class="iconfont iconguanbi1" catchtap="Close"></text>
</view>
<view class="center">
<van-field value="{{ value }}" placeholder="请输入真实姓名" border="{{ true }}" bind:change="name" />
<view class="sexBox">
<view class="gender" wx:for="{{gender}}" wx:key="index" data-index="{{index}}" bindtap="gender">
<text class="genderText">{{item.value}}</text>
<image wx:if="{{index == selectedIndex}}" class="genderImg" src="{{item.iconActive}}"></image>
<image wx:else class="genderImg" src="{{item.icon}}"></image>
</view>
</view>
<view class="phone">{{userTel}}</view>
<!-- <van-field value="{{ value }}" placeholder="请输入手机号" border="{{ true }}" bind:change="tel" /> -->
<van-field value="{{ value }}" placeholder="请输入年龄" border="{{ true }}" bind:change="age" />
<van-field value="{{ value }}" placeholder="请输入擅长科目" border="{{ true }}" bind:change="subject" />
<van-field value="{{ value }}" placeholder="请输入所选专业 (选填)" border="{{ true }}" bind:change="major" />
<van-field value="{{ value }}" placeholder="请输入相关证书 (选填)" border="{{ true }}" bind:change="certificate" />
</view> </view>
<button class="submit" bindtap="save">提交</button>
</view> </view>
</view> </view>
\ No newline at end of file
...@@ -104,4 +104,139 @@ ...@@ -104,4 +104,139 @@
font-size: 30rpx; font-size: 30rpx;
text-align: center; text-align: center;
line-height: 80rpx; line-height: 80rpx;
}
/* 填写信息弹窗样式 */
.cityBox {
position: fixed;
left: 0;
right: 0;
top: 0;
bottom: 0;
background: rgba(0, 0, 0, 0.3);
z-index: 20;
}
.txContent {
width: 610rpx;
background: #FFFFFF;
border-radius: 10rpx;
margin: 24% auto;
position: relative;
padding-top: 44rpx;
padding-bottom: 20rpx;
}
.txContent .title {
color: #1A1A1A;
font-size: 34rpx;
text-align: center;
font-weight: bold;
}
.iconguanbi1 {
position: absolute;
top: 26rpx;
right: 28rpx;
color: #CCCCCC;
}
.center {
font-size: 26rpx;
color: #808080;
line-height: 42rpx;
padding: 30rpx 28rpx 0;
}
.input1 {
width: 490rpx;
height: 60rpx;
border-bottom: 1px solid #EBEBEB;
margin: 0 auto;
line-height: 60rpx;
margin-bottom: 20rpx;
}
.submit {
width: 320rpx;
height: 72rpx;
background: linear-gradient(-70deg, #FFC600 0%, #FFD400 100%);
border-radius: 36px;
color: #1A1A1A;
font-size: 28rpx;
text-align: center;
line-height: 48rpx;
margin: 50rpx 140rpx 20rpx;
}
.inputbox {
display: flex;
flex-direction: row;
justify-content: space-between;
width: 490rpx;
height: 80rpx;
line-height: 80rpx;
border-bottom: 1px solid #f1f1f1;
font-size: 26rpx;
color: #000000;
margin: 0 auto;
}
.sexBox{
overflow: hidden;
width: 490rpx;
height: 80rpx;
margin: 0 auto;
border-bottom: 1rpx solid #ebedf0;
}
.gender{
float: left;
line-height: 80rpx;
margin-right: 50rpx;
color: #000000;
font-size: 26rpx;
}
.gender image{
width: 27rpx;
height: 27rpx;
vertical-align: middle;
}
.gender .genderText{
margin-right: 10rpx;
}
.inpbox {
width: 100%;
display: flex;
flex-direction: row;
justify-content: space-between;
}
.inp {
position: relative;
width: 100%;
height: 80rpx;
}
.radiogroup {
display: flex;
flex-direction: row;
}
.radiobox {
display: flex;
flex-direction: row;
}
.radiotxt {
margin-right: 10rpx;
}
.phone {
width: 490rpx;
height: 80rpx;
margin: 0 auto;
line-height: 80rpx;
border-bottom: 1rpx solid #ebedf0;
} }
\ No newline at end of file
...@@ -96,6 +96,7 @@ Page({ ...@@ -96,6 +96,7 @@ Page({
url: 'commission', url: 'commission',
data: { data: {
wx_user_id: this.data.user_id, wx_user_id: this.data.user_id,
role_id: this.data.role_id
}, },
callback: (data) => { callback: (data) => {
this.setData({ this.setData({
...@@ -206,7 +207,8 @@ Page({ ...@@ -206,7 +207,8 @@ Page({
type: 'POST', type: 'POST',
data: { data: {
wx_user_id: this.data.user_id, wx_user_id: this.data.user_id,
amount: this.data.detail.unrealized_revenue amount: this.data.detail.unrealized_revenue,
role_id: this.data.role_id
}, },
callback:(data)=>{ callback:(data)=>{
base.toast('提现成功') base.toast('提现成功')
......
{ {
"description": "项目配置文件", "description": "项目配置文件",
"packOptions": { "packOptions": {
"ignore": [] "ignore": []
}, },
"setting": { "setting": {
"urlCheck": false, "urlCheck": false,
"es6": true, "es6": true,
"enhance": false, "enhance": false,
"postcss": true, "postcss": true,
"preloadBackgroundData": false, "preloadBackgroundData": false,
"minified": true, "minified": true,
"newFeature": false, "newFeature": false,
"coverView": true, "coverView": true,
"nodeModules": false, "nodeModules": false,
"autoAudits": false, "autoAudits": false,
"showShadowRootInWxmlPanel": true, "showShadowRootInWxmlPanel": true,
"scopeDataCheck": false, "scopeDataCheck": false,
"uglifyFileName": false, "uglifyFileName": false,
"checkInvalidKey": true, "checkInvalidKey": true,
"checkSiteMap": true, "checkSiteMap": true,
"uploadWithSourceMap": true, "uploadWithSourceMap": true,
"compileHotReLoad": false, "compileHotReLoad": false,
"useMultiFrameRuntime": false, "babelSetting": {
"useApiHook": true, "ignore": [],
"babelSetting": { "disablePlugins": [],
"ignore": [], "outputPath": ""
"disablePlugins": [], },
"outputPath": "" "bundle": false,
}, "useIsolateContext": true,
"enableEngineNative": false, "useCompilerModule": false,
"useIsolateContext": true, "userConfirmedUseCompilerModuleSwitch": false,
"useCompilerModule": false, "useMultiFrameRuntime": false,
"userConfirmedUseCompilerModuleSwitch": false, "useApiHook": true,
"userConfirmedBundleSwitch": false, "enableEngineNative": false,
"packNpmManually": false, "userConfirmedBundleSwitch": false,
"packNpmRelationList": [], "packNpmManually": false,
"minifyWXSS": true, "packNpmRelationList": [],
"bundle": false "minifyWXSS": true
}, },
"compileType": "miniprogram", "compileType": "miniprogram",
"libVersion": "2.14.0", "libVersion": "2.14.0",
"appid": "wx6e6eaca9cc1c406d", "appid": "wx6e6eaca9cc1c406d",
"projectname": "wandouchengzhang_coach", "projectname": "wandouchengzhang_coach",
"debugOptions": { "debugOptions": {
"hidedInDevtools": [] "hidedInDevtools": []
}, },
"scripts": {}, "scripts": {},
"isGameTourist": false, "isGameTourist": false,
"simulatorType": "wechat", "simulatorType": "wechat",
"simulatorPluginLibVersion": {}, "simulatorPluginLibVersion": {},
"condition": { "condition": {
"plugin": { "search": {
"list": [] "current": -1,
}, "list": []
"game": { },
"list": [] "conversation": {
}, "current": -1,
"gamePlugin": { "list": []
"list": [] },
}, "plugin": {
"miniprogram": { "list": []
"list": [ },
{ "game": {
"id": -1, "list": []
"name": "pages/tabbar/personal/personal", },
"pathName": "pages/tabbar/personal/personal", "gamePlugin": {
"query": "", "list": []
"scene": null },
}, "miniprogram": {
{ "list": [
"id": -1, {
"name": "pages/tabbar/personal/personal", "id": -1,
"pathName": "pages/tabbar/personal/personal", "name": "pages/tabbar/personal/personal",
"query": "", "pathName": "pages/tabbar/personal/personal",
"scene": null "query": "",
}, "scene": null
{ },
"id": -1, {
"name": "pages/my/parents/parents", "id": -1,
"pathName": "pages/my/parents/parents", "name": "pages/tabbar/personal/personal",
"query": "", "pathName": "pages/tabbar/personal/personal",
"scene": null "query": "",
}, "scene": null
{ },
"id": -1, {
"name": "pages/tabbar/personal/personal", "id": -1,
"pathName": "pages/tabbar/personal/personal", "name": "pages/my/parents/parents",
"query": "", "pathName": "pages/my/parents/parents",
"scene": null "query": "",
}, "scene": null
{ },
"id": -1, {
"name": "pages/my/teachingArea/teachingArea", "id": -1,
"pathName": "pages/my/teachingArea/teachingArea", "name": "pages/tabbar/personal/personal",
"query": "", "pathName": "pages/tabbar/personal/personal",
"scene": null "query": "",
}, "scene": null
{ },
"id": -1, {
"name": "pages/index/classManagement/classManagement", "id": -1,
"pathName": "pages/index/classManagement/classManagement", "name": "pages/my/teachingArea/teachingArea",
"query": "", "pathName": "pages/my/teachingArea/teachingArea",
"scene": null "query": "",
}, "scene": null
{ },
"id": -1, {
"name": "pages/index/courseInstant/courseInstant", "id": -1,
"pathName": "pages/index/courseInstant/courseInstant", "name": "pages/index/classManagement/classManagement",
"query": "", "pathName": "pages/index/classManagement/classManagement",
"scene": null "query": "",
}, "scene": null
{ },
"id": 7, {
"name": "pages/index/classDetail/classDetail", "id": -1,
"pathName": "pages/index/classDetail/classDetail", "name": "pages/index/courseInstant/courseInstant",
"query": "", "pathName": "pages/index/courseInstant/courseInstant",
"scene": null "query": "",
}, "scene": null
{ },
"id": -1, {
"name": "pages/team/teamDetail/teamDetail", "id": 7,
"pathName": "pages/team/teamDetail/teamDetail", "name": "pages/index/classDetail/classDetail",
"query": "", "pathName": "pages/index/classDetail/classDetail",
"scene": null "query": "",
}, "scene": null
{ },
"id": -1, {
"name": "pages/index/performance/performance", "id": -1,
"pathName": "pages/index/performance/performance", "name": "pages/team/teamDetail/teamDetail",
"query": "", "pathName": "pages/team/teamDetail/teamDetail",
"scene": null "query": "",
}, "scene": null
{ },
"id": -1, {
"name": "pages/index/evaluation/evaluation", "id": -1,
"pathName": "pages/index/evaluation/evaluation", "name": "pages/index/performance/performance",
"query": "", "pathName": "pages/index/performance/performance",
"scene": null "query": "",
}, "scene": null
{ },
"id": -1, {
"name": "个人中心", "id": -1,
"pathName": "pages/tabbar/personal/personal", "name": "pages/index/evaluation/evaluation",
"query": "", "pathName": "pages/index/evaluation/evaluation",
"scene": null "query": "",
}, "scene": null
{ },
"id": -1, {
"name": "pages/tabbar/class/class", "id": -1,
"pathName": "pages/tabbar/class/class", "name": "个人中心",
"query": "", "pathName": "pages/tabbar/personal/personal",
"scene": null "query": "",
}, "scene": null
{ },
"id": -1, {
"name": "pages/team/teamDetail/teamDetail", "id": -1,
"pathName": "pages/team/teamDetail/teamDetail", "name": "pages/tabbar/class/class",
"query": "", "pathName": "pages/tabbar/class/class",
"scene": null "query": "",
}, "scene": null
{ },
"name": "财务", {
"pathName": "pages/tabbar/financial/financial", "id": -1,
"query": "", "name": "pages/team/teamDetail/teamDetail",
"scene": null "pathName": "pages/team/teamDetail/teamDetail",
}, "query": "",
{ "scene": null
"name": "课程管理详情页面", },
"pathName": "pages/index/classManagement/classManagement", {
"query": "", "id": -1,
"scene": null "name": "pages/sign/apply/apply",
}, "pathName": "pages/sign/apply/apply",
{ "scene": null
"name": "申请成为教练", }
"pathName": "pages/sign/apply/apply", ]
"query": "", }
"scene": null }
},
{
"name": "课程瞬间上传",
"pathName": "pages/index/courseInstant/courseInstant",
"query": "type=check&lesson_id=93",
"scene": null
},
{
"name": "教学区域",
"pathName": "pages/my/teachingArea/teachingArea",
"query": "",
"scene": null
},
{
"name": "课程管理",
"pathName": "pages/index/classManagement/classManagement",
"query": "classTime=2020-11-28 10:00~11:00&class_id=23&lesson_id=85",
"scene": null
},
{
"name": "运动评价",
"pathName": "pages/index/evaluation/evaluation",
"query": "child_id=341&class_id=25&class_single_id=93&course_id=1001",
"scene": null
},
{
"name": "pages/tabbar/index/index",
"pathName": "pages/tabbar/index/index",
"scene": null
}
]
}
}
} }
\ No newline at end of file
...@@ -3,8 +3,8 @@ var app = getApp() ...@@ -3,8 +3,8 @@ var app = getApp()
const qiniuUploader = require("./qiniuUploader.js"); const qiniuUploader = require("./qiniuUploader.js");
class Base { class Base {
constructor() { constructor() {
this.baseUrl = 'https://wandoutiyu.xueyoubangedu.com/api/' //线上接口 // this.baseUrl = 'https://wandoutiyu.xueyoubangedu.com/api/' //线上接口
// this.baseUrl = 'https://wandoutiyu.test.xueyoubangedu.com/api/' //测试接口 this.baseUrl = 'https://wandoutiyu.test.xueyoubangedu.com/api/' //测试接口
} }
newRequest(params, flag = false, tips = true) { newRequest(params, flag = false, tips = true) {
let that = this let that = this
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment