Commit 9aa46683 authored by lvtz's avatar lvtz

fix

parent 8849081e
...@@ -332,6 +332,15 @@ function bTokenExchange(data) { ...@@ -332,6 +332,15 @@ function bTokenExchange(data) {
needToken: true needToken: true
}) })
} }
function authLogin(data) {
return wxRequest({
url: apis.customer.common.bTokenExchange,
data,
method: 'POST',
errorresolve: 1,
})
}
function getVerifyCode(data) { function getVerifyCode(data) {
return wxRequest({ return wxRequest({
url: apis.getVerifyCode, url: apis.getVerifyCode,
...@@ -503,6 +512,7 @@ export { ...@@ -503,6 +512,7 @@ export {
getMember, getMember,
teacherPcLoginReport, teacherPcLoginReport,
bTokenExchange, bTokenExchange,
authLogin,
getVerifyCode, getVerifyCode,
getAccountList, getAccountList,
getMemberMe, getMemberMe,
......
...@@ -99,7 +99,7 @@ ...@@ -99,7 +99,7 @@
<view class="section clock-section"> <view class="section clock-section">
<view class="title">已打卡<text class="static">{{clockTotal + selfcount}}</text>人</view> <view class="title">已打卡<text class="static">{{clockTotal + selfcount}}</text>人</view>
<block wx:if="{{themeSelect.is_cheat == 0 || (themeSelect.is_cheat == 1 && activeDay.isClock) || (themeSelect.is_cheat == 1 && !isSchoolStudent) || (clockTotal + selfcount) == 0}}"> <block wx:if="{{themeSelect.is_cheat == 0 || (themeSelect.is_cheat == 1 && activeDay.isClock) || (themeSelect.is_cheat == 1 && isSchoolStudent)}}">
<view class="clock-list" wx:if="{{!emptyPage}}"> <view class="clock-list" wx:if="{{!emptyPage}}">
<block wx:for="{{clockList}}" wx:key="bigindex" wx:for-index="bigindex" wx:for-item="bigitem"> <block wx:for="{{clockList}}" wx:key="bigindex" wx:for-index="bigindex" wx:for-item="bigitem">
<view class="clock-item" wx:key="index" wx:for="{{bigitem}}"> <view class="clock-item" wx:key="index" wx:for="{{bigitem}}">
......
...@@ -731,12 +731,12 @@ Page({ ...@@ -731,12 +731,12 @@ Page({
switch (this.data.clock.subject_type) { switch (this.data.clock.subject_type) {
case 1: case 1:
wx.redirectTo({ wx.redirectTo({
url: `/src/pages/themeindex/index?tid=${this.data.tid}` url: `/src/pages/themeindex/landpage?tid=${this.data.tid}&sid=${this.data.sid}`
}) })
break; break;
case 2: case 2:
wx.redirectTo({ wx.redirectTo({
url: `/src/pages/calendarthemeindex/index?tid=${this.data.tid}` url: `/src/pages/calendarthemeindex/landpage?tid=${this.data.tid}&sid=${this.data.sid}`
}) })
break; break;
case 3: case 3:
......
...@@ -107,7 +107,7 @@ ...@@ -107,7 +107,7 @@
<view class="right"> <view class="right">
<view class="title">{{clock.subject.title}}</view> <view class="title">{{clock.subject.title}}</view>
<view class="password-tips" wx:if="{{themeDetailData.join_rule_type == 2}}">密码加入</view> <view class="password-tips" wx:if="{{themeDetailData.join_rule_type == 3}}">密码加入</view>
<view class="line-item"> <view class="line-item">
<view class="num-box">1位好友参与</view> <view class="num-box">1位好友参与</view>
......
...@@ -441,7 +441,11 @@ Page({ ...@@ -441,7 +441,11 @@ Page({
return { return {
title: shareObj.title, title: shareObj.title,
path: shareObj.path path: shareObj.path,
imageUrl: imagify(
this.data.themeSelect.land_content.cover ||
"https://cdn.img.shangjiadao.cn/qingxiao/daka/images/2c/sharemoretheme/newunlockbg.png"
),
} }
}, },
judgeIsSchoolStudent (sid) { judgeIsSchoolStudent (sid) {
......
...@@ -80,7 +80,7 @@ ...@@ -80,7 +80,7 @@
<view class="section clock-section"> <view class="section clock-section">
<view class="title">已打卡<text class="static">{{clockTotal + selfcount}}</text>人</view> <view class="title">已打卡<text class="static">{{clockTotal + selfcount}}</text>人</view>
<block wx:if="{{themeSelect.is_cheat == 0 || (themeSelect.is_cheat == 1 && isClock) || (themeSelect.is_cheat == 1 && !isSchoolStudent) || (clockTotal + selfcount) == 0}}"> <block wx:if="{{themeSelect.is_cheat == 0 || (themeSelect.is_cheat == 1 && isClock) || (themeSelect.is_cheat == 1 && isSchoolStudent) }}">
<view class="clock-list" wx:if="{{!emptyPage}}"> <view class="clock-list" wx:if="{{!emptyPage}}">
<block wx:for="{{clockList}}" wx:key="bigindex" wx:for-index="bigindex" wx:for-item="bigitem"> <block wx:for="{{clockList}}" wx:key="bigindex" wx:for-index="bigindex" wx:for-item="bigitem">
<view class="clock-item" wx:key="index" wx:for="{{bigitem}}"> <view class="clock-item" wx:key="index" wx:for="{{bigitem}}">
......
...@@ -96,7 +96,6 @@ page { ...@@ -96,7 +96,6 @@ page {
transform: translateY(-50%); transform: translateY(-50%);
} */ } */
.instro-box .media-box { .instro-box .media-box {
margin-top: -12rpx;
} }
/* 头部banner+介绍 end*/ /* 头部banner+介绍 end*/
......
...@@ -271,7 +271,7 @@ Page({ ...@@ -271,7 +271,7 @@ Page({
return { return {
title: shareObj.title, title: shareObj.title,
imageUrl: imagify( imageUrl: imagify(
this.data.themeSelect.banner || this.data.themeSelect.land_content.cover ||
"https://cdn.img.shangjiadao.cn/qingxiao/daka/images/2c/sharemoretheme/newunlockbg.png" "https://cdn.img.shangjiadao.cn/qingxiao/daka/images/2c/sharemoretheme/newunlockbg.png"
), ),
path: shareObj.path path: shareObj.path
......
...@@ -23,7 +23,8 @@ import { ...@@ -23,7 +23,8 @@ import {
commonwaitjobGet commonwaitjobGet
} from '../service/business/common.js'; } from '../service/business/common.js';
import { import {
bTokenExchange bTokenExchange,
authLogin
} from '../service/common.js' } from '../service/common.js'
import { import {
getActivities, getActivities,
...@@ -105,6 +106,7 @@ Page({ ...@@ -105,6 +106,7 @@ Page({
this.setData({ this.setData({
loginCode: res.code loginCode: res.code
}) })
console.log(res,this.data.loginCode,'水水飞洒')
}) })
// app.getCurrentSchoolStudentId({ // app.getCurrentSchoolStudentId({
// source_id: this.data.sid, // source_id: this.data.sid,
...@@ -302,7 +304,8 @@ Page({ ...@@ -302,7 +304,8 @@ Page({
this.log('loginToManager') this.log('loginToManager')
const visitor = LocalStorage.getItem('visitor') || {}; const visitor = LocalStorage.getItem('visitor') || {};
let user = LocalStorage.getItem('user'); let user = LocalStorage.getItem('user');
console.log(user,'user') // console.log(user,'user');
// if(user && user.token){ // if(user && user.token){
// wx.navigateTo({ // wx.navigateTo({
// url: `/business/pages/exchangebusiness/index?from=1` // url: `/business/pages/exchangebusiness/index?from=1`
...@@ -310,13 +313,16 @@ Page({ ...@@ -310,13 +313,16 @@ Page({
// return // return
// } // }
const { encryptedData, iv } = e.detail; const { encryptedData, iv } = e.detail;
console.log(that.data.loginCode,iv,encryptedData,)
if (e.detail.errMsg == 'getPhoneNumber:fail user deny') { //用户点击拒绝 if (e.detail.errMsg == 'getPhoneNumber:fail user deny') { //用户点击拒绝
wx.showToast({ wx.showToast({
title: '获取手机号失败', title: '获取手机号失败',
icon: 'none' icon: 'none'
}) })
} else { //允许授权执行跳转 } else { //允许授权执行跳转
bTokenExchange({ console.log(22232322)
authLogin({
type: 5, type: 5,
mobile_code: that.data.loginCode, mobile_code: that.data.loginCode,
mobile_iv: iv, mobile_iv: iv,
......
...@@ -120,25 +120,41 @@ ...@@ -120,25 +120,41 @@
<text class="desc"></text> <text class="desc"></text>
</view> </view>
<view class="menu-item" bindtap="loginToManager"> <!-- <view class="menu-item" bindtap="loginToManager">
<loginbtn loginCode="{{loginCode}}"/> <loginbtn loginCode="{{loginCode}}"/>
<image class="menuicon" src="{{imageRoot}}2c/ucenter2/icon_tologin.png?{{imageVersion}}"></image> <image class="menuicon" src="{{imageRoot}}2c/ucenter2/icon_tologin.png?{{imageVersion}}"></image>
<text class="title">机构登录</text> <text class="title">机构登录</text>
<text class="desc">老师/校长在这里登录</text> <text class="desc">老师/校长在这里登录</text>
</view> -->
<view class="menu-item">
<loginbtn loginCode="{{loginCode}}"/>
<view class="menu-item-inner" bindtap="loginToManager" wx:if="{{ storageUser && storageUser.token }}">
<image class="menuicon" src="{{imageRoot}}2c/ucenter2/icon_tologin.png?{{imageVersion}}"></image>
<text class="title">机构登录(新)</text>
<text class="desc">老师/校长在这里登录</text>
</view>
<button class="menu-item-inner" open-type="getPhoneNumber" bindgetphonenumber="getPhoneNumber" wx:else>
<image class="menuicon" src="{{imageRoot}}2c/ucenter2/icon_tologin.png?{{imageVersion}}"></image>
<text class="title">机构登录(新)</text>
<text class="desc">老师/校长在这里登录</text>
</button>
</view> </view>
<view class="menu-item" bindtap="loginToManager" wx:if="{{ storageUser && storageUser.token }}">
<!-- <view class="menu-item" bindtap="loginToManager" wx:if="{{ storageUser && storageUser.token }}">
<loginbtn loginCode="{{loginCode}}"/> <loginbtn loginCode="{{loginCode}}"/>
<image class="menuicon" src="{{imageRoot}}2c/ucenter2/icon_tologin.png?{{imageVersion}}"></image> <image class="menuicon" src="{{imageRoot}}2c/ucenter2/icon_tologin.png?{{imageVersion}}"></image>
<text class="title">新登录</text> <text class="title">新登录</text>
<text class="desc"></text> <text class="desc"></text>
</view> </view>
<button open-type="getPhoneNumber" bindgetphonenumber="getPhoneNumber" class="menu-item" wx:else> <button class="menu-item" open-type="getPhoneNumber" bindgetphonenumber="getPhoneNumber" wx:else>
<!-- <loginbtn loginCode="{{loginCode}}"/> --> <loginbtn loginCode="{{loginCode}}"/>
<image class="menuicon" src="{{imageRoot}}2c/ucenter2/icon_tologin.png?{{imageVersion}}"></image> <image class="menuicon" src="{{imageRoot}}2c/ucenter2/icon_tologin.png?{{imageVersion}}"></image>
<text class="title">新登录</text> <text class="title">新登录</text>
<text class="desc"></text> <text class="desc"></text>
</button> </button> -->
<view class="menu-item" bindtap="loginToManagerWaitDel"> <view class="menu-item" bindtap="loginToManagerWaitDel">
<loginbtn loginCode="{{loginCode}}"/> <loginbtn loginCode="{{loginCode}}"/>
<image class="menuicon" src="{{imageRoot}}2c/ucenter2/icon_tologin.png?{{imageVersion}}"></image> <image class="menuicon" src="{{imageRoot}}2c/ucenter2/icon_tologin.png?{{imageVersion}}"></image>
......
...@@ -363,4 +363,13 @@ page{ ...@@ -363,4 +363,13 @@ page{
font-weight: bold; font-weight: bold;
border-radius: 20rpx; border-radius: 20rpx;
margin: 14rpx 0; margin: 14rpx 0;
}
.menu-item-inner{
width:100%;
display:flex;
align-items:center;
flex-direction:column;
position:relative;
margin:0;
background:#fff;
} }
\ No newline at end of file
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