This commit is contained in:
2023-11-27 13:07:01 +08:00
parent c2a852b371
commit 7e8d599c11
13 changed files with 29 additions and 41 deletions

View File

@@ -91,9 +91,6 @@ const req = (obj, noToken) => {
*/ */
const upload = (obj) => { const upload = (obj) => {
console.log(obj)
// header // header
header.Authorization = wx.getStorageSync("token") || "" header.Authorization = wx.getStorageSync("token") || ""
// 处理上传信息 // 处理上传信息

View File

@@ -132,13 +132,6 @@ Page({
onReady(res) { onReady(res) {
this.videoContext = wx.createVideoContext('myVideo') this.videoContext = wx.createVideoContext('myVideo')
}, },
bindseekcomplete(e) {
console.log(e)
},
videoPause(e){
console.log('暂停了')
},
// 视频更新事件 // 视频更新事件
videoTimeupdated(e) { videoTimeupdated(e) {
let selectVideoItem = this.data.selectVideoItem let selectVideoItem = this.data.selectVideoItem
@@ -163,12 +156,11 @@ Page({
this.setData({ this.setData({
selectVideoItem: selectVideoItem selectVideoItem: selectVideoItem
}) })
console.log('视频更新事件', selectVideoItem.currentSteps)
}, },
// 视频播放结束事件 // 视频播放结束事件
videoEnded() { videoEnded() {
console.log('视频播放结束事件') // console.log('视频播放结束事件')
// 完成弹窗 重置基础数据 // 完成弹窗 重置基础数据
this.setData({ this.setData({
@@ -188,7 +180,7 @@ Page({
// 点击暂停视频 // 点击暂停视频
videoPauseTab() { videoPauseTab() {
console.log('暂停') // console.log('暂停')
let selectVideoItem = this.data.selectVideoItem let selectVideoItem = this.data.selectVideoItem
selectVideoItem.playedState = false selectVideoItem.playedState = false
this.setData({ this.setData({
@@ -199,7 +191,7 @@ Page({
// 点击播放视频 // 点击播放视频
videoPlayTab() { videoPlayTab() {
console.log('播放') // console.log('播放')
let selectVideoItem = this.data.selectVideoItem let selectVideoItem = this.data.selectVideoItem
selectVideoItem.playedState = true selectVideoItem.playedState = true
selectVideoItem.muted = false selectVideoItem.muted = false
@@ -211,13 +203,13 @@ Page({
// 轮播图切换 // 轮播图切换
swiperChange(e) { swiperChange(e) {
console.log(e.detail) // console.log(e.detail)
}, },
// 选择视频教程-点击 // 选择视频教程-点击
selectVideo(e) { selectVideo(e) {
let item = e.currentTarget.dataset.item let item = e.currentTarget.dataset.item
console.log(this.data.selectVideoItem.video_id, item.video_id) // console.log(this.data.selectVideoItem.video_id, item.video_id)
if (this.data.selectVideoItem.video_id == item.video_id) return if (this.data.selectVideoItem.video_id == item.video_id) return
item.playedState = false item.playedState = false
@@ -235,7 +227,7 @@ Page({
// 播放视频 // 播放视频
doPlay(position) { doPlay(position) {
console.log(position) // console.log(position)
this.videoContext.seek(position) this.videoContext.seek(position)
let selectVideoItem = this.data.selectVideoItem let selectVideoItem = this.data.selectVideoItem
selectVideoItem.playedState = true selectVideoItem.playedState = true
@@ -248,9 +240,9 @@ Page({
// 静音非经营处理 // 静音非经营处理
mutedTab(e) { mutedTab(e) {
console.log(e) // console.log(e)
let type = e.target.dataset.type let type = e.target.dataset.type
console.log(type) // console.log(type)
let selectVideoItem = this.data.selectVideoItem let selectVideoItem = this.data.selectVideoItem
if (type == 'open') { if (type == 'open') {
selectVideoItem.muted = false selectVideoItem.muted = false
@@ -322,7 +314,7 @@ Page({
wx.getSetting({ wx.getSetting({
success: (res) => { success: (res) => {
let authSetting = res.authSetting let authSetting = res.authSetting
console.log(res) // console.log(res)
if (!authSetting['scope.camera'] || authSetting['scope.camera'] == undefined) { if (!authSetting['scope.camera'] || authSetting['scope.camera'] == undefined) {
wx.showModal({ wx.showModal({
title: '温馨提示', title: '温馨提示',
@@ -334,8 +326,8 @@ Page({
success: (res) => { success: (res) => {
if (res.confirm) { //允许打开授权页面 if (res.confirm) { //允许打开授权页面
//调起客户端小程序设置界面,返回用户设置的操作结果 //调起客户端小程序设置界面,返回用户设置的操作结果
console.log(JSON.stringify(authSetting['scope.camera']), authSetting['scope.camera'] == undefined) // console.log(JSON.stringify(authSetting['scope.camera']), authSetting['scope.camera'] == undefined)
console.log(authSetting['scope.camera']) // console.log(authSetting['scope.camera'])
if (authSetting['scope.camera'] == undefined) { if (authSetting['scope.camera'] == undefined) {
wx.authorize({ wx.authorize({
scope: 'scope.camera', scope: 'scope.camera',
@@ -353,7 +345,7 @@ Page({
} else { } else {
wx.openSetting({ wx.openSetting({
success: (res) => { success: (res) => {
console.log('res', res) // console.log('res', res)
res.authSetting = { res.authSetting = {
"scope.camera": true "scope.camera": true
} }
@@ -387,7 +379,7 @@ Page({
}, },
getVideos() { getVideos() {
wx.$api.user.videos().then(res => { wx.$api.user.videos().then(res => {
console.log(res) // console.log(res)
this.setData({ this.setData({
videos: res.data.data, videos: res.data.data,
}) })

View File

@@ -98,7 +98,7 @@ Page({
// 预览图片 // 预览图片
preImg(e){ preImg(e){
let current = e.currentTarget.dataset.idx let current = e.currentTarget.dataset.idx
console.log(current) // console.log(current)
let urls = e.currentTarget.dataset.urls let urls = e.currentTarget.dataset.urls
wx.previewImage({ wx.previewImage({
urls, urls,

View File

@@ -31,8 +31,7 @@ Page({
}, },
swiperChange(e){ swiperChange(e){
let { current } = e.detail let { current } = e.detail
// console.log(current)
console.log(current)
let swipers = this.data.swipers let swipers = this.data.swipers
let item = swipers[current] let item = swipers[current]
let type = item.type let type = item.type
@@ -40,7 +39,7 @@ Page({
if(current == 0 || this.data.playId == '' || this.data.playId != item.id){ if(current == 0 || this.data.playId == '' || this.data.playId != item.id){
let id = 'myVideo'+item.id let id = 'myVideo'+item.id
console.log(id) // console.log(id)
let videoContext = wx.createVideoContext(`${id}`) let videoContext = wx.createVideoContext(`${id}`)
videoContext.play() videoContext.play()
this.setData({ this.setData({
@@ -122,7 +121,7 @@ Page({
// 预览图片 // 预览图片
preImg(e){ preImg(e){
let current = e.currentTarget.dataset.idx let current = e.currentTarget.dataset.idx
console.log(current) // console.log(current)
let urls = e.currentTarget.dataset.urls let urls = e.currentTarget.dataset.urls
wx.previewImage({ wx.previewImage({
urls, urls,

View File

@@ -75,7 +75,7 @@ Page({
let { clientY } = e.changedTouches[0] let { clientY } = e.changedTouches[0]
endY = clientY endY = clientY
let clientXY = startY - clientY let clientXY = startY - clientY
console.log(clientXY) // console.log(clientXY)
if(clientXY>60){ if(clientXY>60){
this.onIsDirection('next') this.onIsDirection('next')
}else if(clientXY < -60){ }else if(clientXY < -60){
@@ -86,7 +86,7 @@ Page({
onIsDirection(type){ onIsDirection(type){
let {currentIndex,lists} = this.data let {currentIndex,lists} = this.data
if(type == 'next'){ if(type == 'next'){
console.log('获取下一个') // console.log('获取下一个')
if(currentIndex!=lists.length-1){ if(currentIndex!=lists.length-1){
currentIndex ++ currentIndex ++
this.setData({ this.setData({
@@ -160,7 +160,7 @@ Page({
// 预览图片 // 预览图片
preImg(e){ preImg(e){
let current = e.currentTarget.dataset.idx let current = e.currentTarget.dataset.idx
console.log(current) // console.log(current)
let urls = e.currentTarget.dataset.urls let urls = e.currentTarget.dataset.urls
wx.previewImage({ wx.previewImage({
urls, urls,

View File

@@ -13,7 +13,7 @@ Page({
}, },
onLoad(options) { onLoad(options) {
console.log(options) // console.log(options)
if(options.invite != undefined) { if(options.invite != undefined) {
getApp().globalData.inviteText = options.invite getApp().globalData.inviteText = options.invite
} }

View File

@@ -97,7 +97,7 @@ Page({
* 订单签收 * 订单签收
*/ */
signClick(e) { signClick(e) {
console.log(e.currentTarget.dataset) // console.log(e.currentTarget.dataset)
let payment = e.currentTarget.dataset.payment, let payment = e.currentTarget.dataset.payment,
orderNo = e.currentTarget.dataset.order_no orderNo = e.currentTarget.dataset.order_no
wx.showModal({ wx.showModal({

View File

@@ -19,7 +19,7 @@ Page({
* 生命周期函数--监听页面加载 * 生命周期函数--监听页面加载
*/ */
onLoad(options) { onLoad(options) {
console.log(options) // console.log(options)
this.setData({ this.setData({
orderNo: options.order_no orderNo: options.order_no
}) })

View File

@@ -27,7 +27,7 @@ Page({
*/ */
goodsInfo() { goodsInfo() {
wx.$api.order.refundSee(this.data.refundNo).then(res => { wx.$api.order.refundSee(this.data.refundNo).then(res => {
console.log(res) // console.log(res)
this.setData({ this.setData({
goodsData : res.data, goodsData : res.data,
canState : res.data.can, canState : res.data.can,

View File

@@ -30,7 +30,7 @@ Page({
*/ */
listInfo(page) { listInfo(page) {
wx.$api.recruit.dailyList({page : page || 1}).then(res => { wx.$api.recruit.dailyList({page : page || 1}).then(res => {
console.log(res.data.data) // console.log(res.data.data)
let listArr = this.data.listsArr, let listArr = this.data.listsArr,
newData = [] newData = []
if(page == 1 || page == undefined) listArr = [] if(page == 1 || page == undefined) listArr = []

View File

@@ -46,7 +46,7 @@ Page({
// 省市区三联动 // 省市区三联动
bindRegionChange (e) { bindRegionChange (e) {
console.log(e) // console.log(e)
let { value, postcode } = e.detail let { value, postcode } = e.detail
this.setData({ this.setData({
regions : value, regions : value,
@@ -61,7 +61,7 @@ Page({
wx.$api.recruit.Enroll(id, { wx.$api.recruit.Enroll(id, {
experience_area_id: getApp().globalData.experienceAreaId experience_area_id: getApp().globalData.experienceAreaId
}).then(res => { }).then(res => {
console.log(res) // console.log(res)
// let areas = [ // let areas = [
// { // {
// city: "请选择城市", // city: "请选择城市",

View File

@@ -75,7 +75,7 @@ Page({
rightcheekArea : (res.data.skin_analyze.result.result.oily_intensity.right_cheek.area * 100).toFixed(1), rightcheekArea : (res.data.skin_analyze.result.result.oily_intensity.right_cheek.area * 100).toFixed(1),
suggest:res.data.suggest suggest:res.data.suggest
}) })
console.log(res) // console.log(res)
}).catch(err => { }) }).catch(err => { })
}, },

View File

@@ -12,7 +12,7 @@ Page({
}, },
onLoad(options) { onLoad(options) {
console.log(options) // console.log(options)
// const { // const {
// newData = {} // newData = {}
// } = options; // } = options;