Commit ddc3769c authored by Damon's avatar Damon
parents 3d34c5a1 c3bd399c
...@@ -194,7 +194,6 @@ export default { ...@@ -194,7 +194,6 @@ export default {
updateManager.onCheckForUpdate(function (res) { updateManager.onCheckForUpdate(function (res) {
// 请求完新版本信息的回调 // 请求完新版本信息的回调
console.log(res.hasUpdate);
}); });
updateManager.onUpdateReady(function (res) { updateManager.onUpdateReady(function (res) {
...@@ -273,7 +272,6 @@ export default { ...@@ -273,7 +272,6 @@ export default {
} }
}, },
initShare(option) { initShare(option) {
console.log(option, "option-initShare");
option = option || {}; option = option || {};
if (AnalysysAgent && option.user_id) { if (AnalysysAgent && option.user_id) {
let shareUserInfo = { let shareUserInfo = {
......
const db = uniCloud.database({
spaceId: 'tcb-nikbzhlwnpd5n913e1c5e-50f4bbo'
})
let cloudRulesApiFun = function(vm){
/* 查询所有产品 废弃*/
let getAllProduct = async () => await db.collection("product").get();
/* 查询产品下的品牌 {product_code:"P0001"} 废弃*/
let getBrand = async (params = {}) => await db.collection("brand").where(params).get();
/* 查询规范项目 {product_code:"P0001"} 废弃*/
let getstandard = async (params = {}) => await db.collection("standard").where(params).get();
/* 查询分组规范项目 废弃*/
let getGroupStandard = async (params = {}) => await uniCloud.callFunction({name: 'getGroupStandard', data: params});
/* 查询类别数据 */
let getClassifyDictionary = async () => await db.collection("dictionary").where({"type":"classify"}).get()
/* 查询有数据的系统 或者 品牌 数据 {"classify_id":"","system_id":"","field":"system_id|brand_id"}*/
let getRelationDictionary = async (params = {}) => await uniCloud.callFunction({name: 'getRelationDictionary', data: params});
let getRelationDictionaryV2 = async () => await uniCloud.callFunction({name: 'getRelationDictionaryV2'});
/* 查询规范 根据 分类、系统、品牌 {"token":"", "classify_id":"","system_id":"","brand_id":""} */
let getGroupStandardV2 = async (params = {}) => await uniCloud.callFunction({name: 'getGroupStandardV2', data: params});
/* 保存图片 {"token":"", "standardId":"", "url":""} */
let saveImage = async (params = {}) => await uniCloud.callFunction({name: 'saveImage', data: params});
/* 获取用户水印,首次返回默认水印 {"token":"", "systemId":""} */
let getUserWatermark = async (params = {}) => await uniCloud.callFunction({name: 'getUserWatermark', data: params});
/* 保存用户水印配置 {"token":"", "watermark": getUserWatemark返回的数据} */
let saveUserWatermark = async (params = {}) => await uniCloud.callFunction({name: 'saveUserWatermark', data: params});
const rulesApi = {
getAllProduct,
getBrand,
getstandard,
getGroupStandard,
// 新接口
getClassifyDictionary,
getRelationDictionary,
getRelationDictionaryV2,
getGroupStandardV2,
saveImage,
getUserWatermark,
saveUserWatermark
}
return rulesApi
}
module.exports = {
cloudRulesApiFun
}
\ No newline at end of file
import {
cloudRulesApiFun
} from "@/common/api/cloud_rules.js"
import { import {
commonApiFun commonApiFun
} from '@/common/api/common.js'; } from '@/common/api/common.js';
...@@ -14,7 +11,6 @@ import {certApiFun} from"@/common/api/cert.js" ...@@ -14,7 +11,6 @@ import {certApiFun} from"@/common/api/cert.js"
let apiFun = function(vm) { let apiFun = function(vm) {
let commonApi = commonApiFun(vm); let commonApi = commonApiFun(vm);
let settledApi = settledApiFun(vm) let settledApi = settledApiFun(vm)
let cloudApi = cloudRulesApiFun(vm)
let learnApi=learnApiFun(vm) let learnApi=learnApiFun(vm)
let assessmentApi = assessmentApiFun(vm) let assessmentApi = assessmentApiFun(vm)
let orderApi=orderApiFun(vm) let orderApi=orderApiFun(vm)
...@@ -22,7 +18,6 @@ let apiFun = function(vm) { ...@@ -22,7 +18,6 @@ let apiFun = function(vm) {
let apiUrl = { let apiUrl = {
...commonApi, ...commonApi,
...settledApi, ...settledApi,
...cloudApi,
...learnApi, ...learnApi,
...orderApi, ...orderApi,
...assessmentApi, ...assessmentApi,
......
import {apiFun} from '@/common/api/index.js'; import {apiFun} from '@/common/api/index.js';
import {
cloudRulesApiFun
} from "@/common/api/cloud_rules.js"
const install = (Vue, vm) => { const install = (Vue, vm) => {
let apiUrls = apiFun(vm) let apiUrls = apiFun(vm)
...@@ -9,10 +7,6 @@ const install = (Vue, vm) => { ...@@ -9,10 +7,6 @@ const install = (Vue, vm) => {
vm.$u.api = { vm.$u.api = {
...apiUrls, ...apiUrls,
}; };
let cloudRules = cloudRulesApiFun(vm)
vm.$u.cloudApi = {
...cloudRules
}
} }
export default { export default {
......
...@@ -32,7 +32,6 @@ ...@@ -32,7 +32,6 @@
} }
const dataValue = this.dataValue const dataValue = this.dataValue
let flag = Array.isArray(dataValue) && dataValue.indexOf(item)>-1 let flag = Array.isArray(dataValue) && dataValue.indexOf(item)>-1
console.log(flag,'flag')
return flag return flag
}, },
setValue(txt) { setValue(txt) {
......
...@@ -156,12 +156,10 @@ ...@@ -156,12 +156,10 @@
// load: false, //(默认 true 说明:本接口是否提示加载动画) // load: false, //(默认 true 说明:本接口是否提示加载动画)
// maxSize: 300000, //(默认 无 说明:上传的文件最大字节数限制,默认不限制) // maxSize: 300000, //(默认 无 说明:上传的文件最大字节数限制,默认不限制)
// onEachUpdate: res => { // onEachUpdate: res => {
// console.log("上传成功返回:",res);
// const value = [uploader.qiniuTokenObj.visitPrefix + res.url] // const value = [uploader.qiniuTokenObj.visitPrefix + res.url]
// this.valueChange(value) // this.valueChange(value)
// }, // },
// Update: res => { // Update: res => {
// console.log("上传进度返回:",res);
// } // }
// } // }
// uploader.qnFileUpload(options) // uploader.qnFileUpload(options)
......
...@@ -64,15 +64,12 @@ ...@@ -64,15 +64,12 @@
}) })
this.dataValue = result this.dataValue = result
this.valueChange(result) this.valueChange(result)
console.log(result,'result')
}, },
columnchange(data){ columnchange(data){
console.log(data,'data')
// 树列改变时进行联动操作 // 树列改变时进行联动操作
const {column ,index} = data const {column ,index} = data
let arr = [9,10,50] let arr = [9,10,50]
this.settings.splice(column+1,1,arr) this.settings.splice(column+1,1,arr)
console.log(this.settings,'this.settings')
}, },
} }
} }
......
...@@ -44,8 +44,6 @@ ...@@ -44,8 +44,6 @@
success: function (res) { success: function (res) {
self.dataValue = res.result self.dataValue = res.result
self.valueChange(res.result) self.valueChange(res.result)
// console.log('条码类型:' + res.scanType);
// console.log('条码内容:' + res.result);
} }
}); });
}, },
......
...@@ -146,12 +146,10 @@ ...@@ -146,12 +146,10 @@
this.valueChange(JSON.stringify(result)) this.valueChange(JSON.stringify(result))
}, },
columnchange(data){ columnchange(data){
// console.log(data,'data')
// // 树列改变时进行联动操作 // // 树列改变时进行联动操作
// const {column ,index} = data // const {column ,index} = data
// let arr = [9,10,50] // let arr = [9,10,50]
// this.settings.splice(column+1,1,arr) // this.settings.splice(column+1,1,arr)
// console.log(this.settings,'this.settings')
}, },
} }
} }
......
...@@ -89,7 +89,6 @@ ...@@ -89,7 +89,6 @@
}, },
computed: { computed: {
itemList() { itemList() {
console.log(this.result)
if (this.result['lowerLeft']) { if (this.result['lowerLeft']) {
var arr = this.result['lowerLeft']['body'] var arr = this.result['lowerLeft']['body']
return arr.filter((item) => { return arr.filter((item) => {
......
...@@ -64,17 +64,14 @@ ...@@ -64,17 +64,14 @@
// let swiperList = JSON.parse(JSON.stringify(val)) // let swiperList = JSON.parse(JSON.stringify(val))
// let len = tabs.length // let len = tabs.length
// let tabList = [{name:'拍照要求'}].concat(Array.from({name:'示意图'},len)) // let tabList = [{name:'拍照要求'}].concat(Array.from({name:'示意图'},len))
// console.log(tabList,'tabList')
} }
}, },
}, },
created() { created() {
// getApp().trackPage('照片预览页') // getApp().trackPage('照片预览页')
// console.log(e, 'e')
// if (e.img) { // if (e.img) {
// this.images = [e.img] // this.images = [e.img]
// } // }
// console.log(this.images, 'this.images')
}, },
mounted(){ mounted(){
this.changeList(this.currentItem.images) this.changeList(this.currentItem.images)
...@@ -112,7 +109,6 @@ ...@@ -112,7 +109,6 @@
}, },
// swiper-item左右移动,通知tabs的滑块跟随移动 // swiper-item左右移动,通知tabs的滑块跟随移动
transition(e) { transition(e) {
// console.log(e.detail,'e.detail-transition')
// let dx = e.detail.dx; // let dx = e.detail.dx;
// this.$refs.uTabs.setDx(dx); // this.$refs.uTabs.setDx(dx);
}, },
...@@ -122,7 +118,6 @@ ...@@ -122,7 +118,6 @@
// 由于swiper的内部机制问题,快速切换swiper不会触发dx的连续变化,需要在结束时重置状态 // 由于swiper的内部机制问题,快速切换swiper不会触发dx的连续变化,需要在结束时重置状态
// swiper滑动结束,分别设置tabs和swiper的状态 // swiper滑动结束,分别设置tabs和swiper的状态
animationfinish(e) { animationfinish(e) {
// console.log(e.detail,'e.detail-animationfinish')
// let current = e.detail.current; // let current = e.detail.current;
// this.$refs.uTabs.setFinishCurrent(current); // this.$refs.uTabs.setFinishCurrent(current);
// this.swiperCurrent = current; // this.swiperCurrent = current;
......
<template> <template>
<view :class="['content', {'fixed': fixed}]"> <view :class="['content', {'fixed': fixed}]">
<view @click="handleClick">
<u-navbar :is-back="false" :is-fixed="false" :background="{ background: 'transparent' }" :border-bottom="false"> <u-navbar :is-back="false" :is-fixed="false" :background="{ background: 'transparent' }" :border-bottom="false">
<text class="title-view">{{title}}</text> <text class="title-view">{{title}}</text>
</u-navbar> </u-navbar>
</view>
<slot></slot> <slot></slot>
</view> </view>
</template> </template>
...@@ -25,7 +27,9 @@ ...@@ -25,7 +27,9 @@
} }
}, },
methods: { methods: {
handleClick() {
this.$emit('click')
}
} }
} }
</script> </script>
......
...@@ -248,7 +248,7 @@ ...@@ -248,7 +248,7 @@
waterInfo.address = i waterInfo.address = i
}, },
fail: function(err) { fail: function(err) {
//console.log(err, 'err') console.log(err, 'err')
} }
}; };
if (waterInfo.latitude && waterInfo.longitude) { if (waterInfo.latitude && waterInfo.longitude) {
...@@ -383,7 +383,6 @@ ...@@ -383,7 +383,6 @@
const waterSetting = this.waterSetting const waterSetting = this.waterSetting
const globalTempPath = getApp().globalData.photo.tempPath const globalTempPath = getApp().globalData.photo.tempPath
const ratio = this.ratio const ratio = this.ratio
console.log(this.ratio,'this.ratio')
// const ratio = 0.5 // const ratio = 0.5
let canvasWidth = this.cameraWidth * ratio let canvasWidth = this.cameraWidth * ratio
let canvasHeight = this.cameraHeight * ratio let canvasHeight = this.cameraHeight * ratio
......
...@@ -84,7 +84,6 @@ export default { ...@@ -84,7 +84,6 @@ export default {
}, },
// 拍照完成或关闭相机 // 拍照完成或关闭相机
closeTake(images) { closeTake(images) {
console.log(images)
this.takeStatus = false this.takeStatus = false
} }
} }
......
...@@ -91,7 +91,6 @@ export default { ...@@ -91,7 +91,6 @@ export default {
} }
qiniuUploader.upload(params, (res) => { qiniuUploader.upload(params, (res) => {
console.log(res,'res')
let inLen = self.maximum - fileList.length let inLen = self.maximum - fileList.length
if (inLen > 0) { if (inLen > 0) {
item.src = file item.src = file
......
...@@ -61,7 +61,6 @@ export default { ...@@ -61,7 +61,6 @@ export default {
uni.chooseImage({ uni.chooseImage({
count: this.selectNum, //默认9 this.selectNum count: this.selectNum, //默认9 this.selectNum
success: (chooseImageRes) => { success: (chooseImageRes) => {
console.log(chooseImageRes,'chooseImageRes')
for (var i = 0; i < chooseImageRes.tempFilePaths.length; i++) { for (var i = 0; i < chooseImageRes.tempFilePaths.length; i++) {
let file = chooseImageRes.tempFilePaths[i]; let file = chooseImageRes.tempFilePaths[i];
let index = file.lastIndexOf('/'); let index = file.lastIndexOf('/');
...@@ -82,7 +81,6 @@ export default { ...@@ -82,7 +81,6 @@ export default {
} }
if (newLen > 0) { if (newLen > 0) {
qiniuUploader.upload(params, (res) => { qiniuUploader.upload(params, (res) => {
console.log(res,'res')
let inLen = this.selectNum - this.imgList.length let inLen = this.selectNum - this.imgList.length
if (inLen > 0) { if (inLen > 0) {
item.src = file item.src = file
......
...@@ -25,7 +25,6 @@ export default { ...@@ -25,7 +25,6 @@ export default {
}; };
}, },
created() { created() {
// console.log(uploader,'uploader')
// this.initQiniu() // this.initQiniu()
}, },
methods: { methods: {
...@@ -129,7 +128,6 @@ export default { ...@@ -129,7 +128,6 @@ export default {
imgList[res.fileIndex] imgList[res.fileIndex]
self.imgList = imgList self.imgList = imgList
// 多文件上传每个文件进度条 // 多文件上传每个文件进度条
//console.log(res,'res---onProgressUpdate')
}, },
onEachUpdate(res){ onEachUpdate(res){
// 多文件上传每个文件上传成功触发 // 多文件上传每个文件上传成功触发
...@@ -138,7 +136,6 @@ export default { ...@@ -138,7 +136,6 @@ export default {
imgList[res.fileIndex].src = uploader.qiniuTokenObj.visitPrefix + res.url imgList[res.fileIndex].src = uploader.qiniuTokenObj.visitPrefix + res.url
} }
self.imgList = imgList self.imgList = imgList
//console.log(res,'res---onEachUpdate')
}, },
cardType: category, cardType: category,
...config ...config
...@@ -146,8 +143,6 @@ export default { ...@@ -146,8 +143,6 @@ export default {
// 不需要进度条等可直接获取 // 不需要进度条等可直接获取
let res = await uploader.qnImgUpload(options) let res = await uploader.qnImgUpload(options)
// console.log(self.imgList,'self.imgList')
// console.log(uploader,uploader.qiniuTokenObj,'qiniuTokenObj')
// let imgList = res.map(item=>{ // let imgList = res.map(item=>{
// return { // return {
// key:item, // key:item,
......
...@@ -91,7 +91,6 @@ export default { ...@@ -91,7 +91,6 @@ export default {
} }
qiniuUploader.upload(params, (res) => { qiniuUploader.upload(params, (res) => {
console.log(res,'res111')
let inLen = self.maximum - fileList.length let inLen = self.maximum - fileList.length
if (inLen > 0) { if (inLen > 0) {
item.src = file item.src = file
......
...@@ -392,15 +392,6 @@ ...@@ -392,15 +392,6 @@
itemClick: function(currentItem, ikey) { itemClick: function(currentItem, ikey) {
this.isSelect = true this.isSelect = true
// console.log('选点点击--处理前--this.currentItem:')
// console.log(this.currentItem)
// console.log('选点点击--处理前--ikey:')
// console.log(ikey)
// console.log('选点点击--处理前--题目类型,1单选,2多选,3简答:')
// console.log(this.currentItem.question.answerType)
//answerType 题目类型,1单选,2多选,3简答, //answerType 题目类型,1单选,2多选,3简答,
for (let i = 0; i < this.currentItem.answerList.length; i++) { for (let i = 0; i < this.currentItem.answerList.length; i++) {
...@@ -434,12 +425,6 @@ ...@@ -434,12 +425,6 @@
//有选答案 //有选答案
this.isSelect = isSelect this.isSelect = isSelect
// console.log('选点点击--处理后--this.currentItem.answerList:')
// console.log(this.currentItem.answerList)
}, },
// 点击下一步 // 点击下一步
handleClick() { handleClick() {
......
<template> <template>
<TabBarPage title="扳手会" :fixed="true"> <TabBarPage title="扳手会" :fixed="true" @click="goTop">
<view class="content-view"> <view class="content-view">
<scroll-view style="height: 100%;" scroll-y @scrolltolower="reachBottom" <scroll-view style="height: 100%;" scroll-y @scrolltolower="reachBottom" :scroll-top="scrollTop" @scroll="scroll"
scroll-anchoring scroll-y="true" refresher-enabled="true" :refresher-triggered="triggered" :refresher-threshold="100" scroll-anchoring scroll-y="true" refresher-enabled="true" :refresher-triggered="triggered" :refresher-threshold="100"
refresher-background="#F4F5F7" @refresherpulling="triggered = true" @refresherrefresh="onRefresh" refresher-background="#F4F5F7" @refresherpulling="triggered = true" @refresherrefresh="onRefresh"
@refresherrestore="onRestore" @refresherabort="onAbort" enable-back-to-top> @refresherrestore="onRestore" @refresherabort="onAbort" enable-back-to-top>
...@@ -117,6 +117,10 @@ ...@@ -117,6 +117,10 @@
triggered: false, triggered: false,
_freshing: false, _freshing: false,
visible: false, visible: false,
scrollTop: 0,
old: {
scrollTop: 0
}
}; };
}, },
watch: { watch: {
...@@ -275,6 +279,15 @@ ...@@ -275,6 +279,15 @@
onRestore() { onRestore() {
this.triggered = 'restore'; // 需要重置 this.triggered = 'restore'; // 需要重置
}, },
scroll(e) {
this.old.scrollTop = e.detail.scrollTop
},
goTop(e) {
this.scrollTop = this.old.scrollTop
this.$nextTick(function() {
this.scrollTop = 0
});
},
/* 立即入驻 */ /* 立即入驻 */
immediatelyIn() { immediatelyIn() {
if (this.vuex_token) { if (this.vuex_token) {
......
...@@ -55,7 +55,6 @@ export default { ...@@ -55,7 +55,6 @@ export default {
res.data[i].name = res.data[i].name.replace(re, ""); res.data[i].name = res.data[i].name.replace(re, "");
} }
this.res = this.res.concat(res.data); this.res = this.res.concat(res.data);
console.log(this.res);
} }
} else { } else {
//接口请求失败的处理 //接口请求失败的处理
......
...@@ -247,7 +247,7 @@ ...@@ -247,7 +247,7 @@
} }
this.loadOrderDetail() this.loadOrderDetail()
this.loadOrderRecord() this.loadOrderRecord()
// this.getLocation() this.getLocation()
this.getSignDistance() this.getSignDistance()
}, },
onHide() { onHide() {
......
...@@ -81,16 +81,6 @@ ...@@ -81,16 +81,6 @@
return shareObj return shareObj
}, },
methods: { methods: {
getRelationDictionaryV2: function() {
this.$u.cloudApi.getRelationDictionaryV2().then(res => {
if (res && res.result) {
this.classifyList = res.result
this.param.classifyId = res.result[0].id
this.systemList = res.result[0].child
}
})
},
//选择 点击 //选择 点击
itemClick: function(type, item, ikey) { itemClick: function(type, item, ikey) {
......
...@@ -144,27 +144,6 @@ ...@@ -144,27 +144,6 @@
} }
}, },
methods: { methods: {
getListData: function() {
this.loading = true
let that = this
this.$u.cloudApi.getGroupStandardV2({
'token': this.vuex_token,
'classify_id': this.classifyId,
'system_id': this.systemId,
'brand_id': this.brandId
}).then(res => {
this.loading = false
if (res && res.result) {
if (res.result.error_code) {
uni.showToast({
title: res.result.error_msg
})
} else {
that.handleData(res.result)
}
}
})
},
getListDataNew() { getListDataNew() {
this.loading = true this.loading = true
let self = this let self = this
...@@ -251,17 +230,6 @@ ...@@ -251,17 +230,6 @@
url: '/pages/photo/take' url: '/pages/photo/take'
}) })
}, },
// 清除图片
handleClickSure: function() {
this.$u.cloudApi.cleanImage({
'token': this.vuex_token,
}).then(res => {
this.isPopShow = false
if (res && res.result) {
this.getListData()
}
})
},
take(item,ikey) { take(item,ikey) {
this.currentItemDate = item this.currentItemDate = item
......
...@@ -138,53 +138,6 @@ ...@@ -138,53 +138,6 @@
self.saveTempToLocal() self.saveTempToLocal()
self.confirmUpload(true) self.confirmUpload(true)
}, },
submitFile() {
let self = this
if(self.keys.length) {
for (let s of self.keys) {
self.$u.cloudApi.saveImage({
"token": self.token,
"standardId": self.standardId,
"url": s,
}).then(async res =>{
console.log(res, "云服务保存图片");
if(res.result.code) {
// TODO 参数是否要来回传递
const photo = getApp().globalData.photo
photo.currentItemLength = photo.currentItemLength + 1
uni.hideLoading()
// 当前项的图片显示
// 拍照项张数目增加 等于10张
if(photo.currentItemLength<10){
uni.navigateBack({
delta:1
})
}else{
uni.navigateBack({
delta:2
})
}
// let timer = setTimeout(()=>{
// if(photo.currentItemLength<10){
// uni.navigateBack({
// delta:1
// })
// }else{
// uni.navigateBack({
// delta:2
// })
// }
// },2000)
} else {
uni.showToast({
title:'图片上传失败 '+ res.result.msg
})
}
})
}
}
},
downloadImages() { downloadImages() {
let self = this; let self = this;
for (let url of this.images) { for (let url of this.images) {
......
...@@ -122,46 +122,8 @@ ...@@ -122,46 +122,8 @@
const globalData = getApp().globalData const globalData = getApp().globalData
this.icon_close_new = globalData.icon_close_new this.icon_close_new = globalData.icon_close_new
this.systemId = globalData.photo.product.systemId this.systemId = globalData.photo.product.systemId
this.getItemList()
}, },
methods: { methods: {
getItemList: function() {
// this.systemId = '79550af260555cc20afb34156c94b32c' // 测试数据
this.loading = true
this.$u.cloudApi.getUserWatermark({
'token': this.vuex_token,
'system_id': this.systemId
}).then(res => {
if (res && res.result) {
if(res.result.error_code){
uni.showToast({title: res.result.error_msg})
}else{
this.result = res.result
}
}else{
uni.showToast({title: '网络异常'})
}
this.loading = false
})
},
saveUserWatermark: function() {
this.loading = true
this.$u.cloudApi.saveUserWatermark({
'token': this.vuex_token,
'watermark': this.result
}).then(res => {
if (res.result.code == true) {
const photo = getApp().globalData.photo
photo.waterSetting = this.result
}else{
uni.showToast({title: res.result.msg})
}
this.loading = false
})
},
//保存原图 开关 //保存原图 开关
handleOrigineChange: function(e) { handleOrigineChange: function(e) {
this.result['hasOrigin'] = !this.result['hasOrigin'] this.result['hasOrigin'] = !this.result['hasOrigin']
......
...@@ -45,8 +45,6 @@ ...@@ -45,8 +45,6 @@
itemClick: function (item, ikey) { itemClick: function (item, ikey) {
this.selected_age = item.title this.selected_age = item.title
this.selected_index = ikey this.selected_index = ikey
console.log(item.title)
console.log(ikey)
}, },
confirmClick: function () { confirmClick: function () {
......
...@@ -344,7 +344,6 @@ ...@@ -344,7 +344,6 @@
...baseInfo, ...baseInfo,
recommender: getApp().globalData.settleRecommend recommender: getApp().globalData.settleRecommend
} }
console.log(params, 'params')
params.service_area = baseInfo.service_area.join(',') params.service_area = baseInfo.service_area.join(',')
const res = await this.$u.api.submitSettleBaseInfo(params) const res = await this.$u.api.submitSettleBaseInfo(params)
this.saving = false; this.saving = false;
......
...@@ -161,7 +161,6 @@ ...@@ -161,7 +161,6 @@
// appid:'wxd1d6eede324b0465' // appid:'wxd1d6eede324b0465'
} }
const response = await this.$u.api.paySettleDeposit(params) const response = await this.$u.api.paySettleDeposit(params)
console.log(response)
if (response.code !== 200) { if (response.code !== 200) {
this.saving = false this.saving = false
uni.showToast({ uni.showToast({
...@@ -188,7 +187,6 @@ ...@@ -188,7 +187,6 @@
}) })
} else if (result == "fail") { } else if (result == "fail") {
// charge 不正确或者微信公众账号/QQ 公众号/支付宝口碑支付失败时会在此处返回 // charge 不正确或者微信公众账号/QQ 公众号/支付宝口碑支付失败时会在此处返回
// console.log(err.msg)
this.showPopView() this.showPopView()
} else if (result == "cancel") { } else if (result == "cancel") {
// 微信公众账号、QQ 公众号、支付宝口碑支付取消支付 // 微信公众账号、QQ 公众号、支付宝口碑支付取消支付
...@@ -210,11 +208,9 @@ ...@@ -210,11 +208,9 @@
cancelText: '失败', cancelText: '失败',
success: ((res) => { success: ((res) => {
if (res.confirm) { if (res.confirm) {
// console.log(res.confirm,'res.confirm')
this.pending() this.pending()
} else if (res.cancel) { } else if (res.cancel) {
this.pending() this.pending()
console.log('用户点击取消');
} }
}) })
}); });
......
...@@ -169,7 +169,6 @@ ...@@ -169,7 +169,6 @@
// const status = 7 // const status = 7
const infoArr = this.promptList.filter(item => { const infoArr = this.promptList.filter(item => {
const itemStatus = item.status const itemStatus = item.status
// console.log(itemStatus,'itemStatus')
let idx = -2 let idx = -2
if (Array.isArray(itemStatus)) { if (Array.isArray(itemStatus)) {
idx = itemStatus.indexOf(status) idx = itemStatus.indexOf(status)
...@@ -229,7 +228,6 @@ ...@@ -229,7 +228,6 @@
// if (res.confirm) { // if (res.confirm) {
// uni.openSetting({ // uni.openSetting({
// success(res) { // success(res) {
// console.log(res.authSetting)
// } // }
// }); // });
// } // }
......
...@@ -28,7 +28,6 @@ let uploader = new request(baseOptions); ...@@ -28,7 +28,6 @@ let uploader = new request(baseOptions);
// 添加获取七牛云token的方法 // 添加获取七牛云token的方法
uploader.getQnToken = function(params) { uploader.getQnToken = function(params) {
//该地址需要开发者自行配置(每个后台的接口风格都不一样) //该地址需要开发者自行配置(每个后台的接口风格都不一样)
// console.log(uploader.get,'uploader.get')
return new Promise((resolve, reject) => { return new Promise((resolve, reject) => {
uploader.post(baseOptions.qiniuUploadUrl, params).then(data => { uploader.post(baseOptions.qiniuUploadUrl, params).then(data => {
/* /*
...@@ -118,13 +117,6 @@ let loginPopupNum = 0; ...@@ -118,13 +117,6 @@ let loginPopupNum = 0;
//所有接口数据处理(可在接口里设置不调用此方法) //所有接口数据处理(可在接口里设置不调用此方法)
//此方法需要开发者根据各自的接口返回类型修改,以下只是模板 //此方法需要开发者根据各自的接口返回类型修改,以下只是模板
uploader.dataFactory = async function(res) { uploader.dataFactory = async function(res) {
console.log("接口请求数据", {
url: res.url,
resolve: res.response,
header: res.header,
data: res.data,
method: res.method,
});
if (res.response.statusCode && res.response.statusCode == 200) { if (res.response.statusCode && res.response.statusCode == 200) {
// let httpData = res.response.data; // let httpData = res.response.data;
let httpData = res.response; let httpData = res.response;
...@@ -132,7 +124,6 @@ uploader.dataFactory = async function(res) { ...@@ -132,7 +124,6 @@ uploader.dataFactory = async function(res) {
httpData = JSON.parse(httpData); httpData = JSON.parse(httpData);
} }
/*********以下只是模板(及共参考),需要开发者根据各自的接口返回类型修改*********/ /*********以下只是模板(及共参考),需要开发者根据各自的接口返回类型修改*********/
console.log(httpData, 'httpData')
//判断数据是否请求成功 //判断数据是否请求成功
if (httpData.statusCode === 200) { if (httpData.statusCode === 200) {
// 返回正确的结果(then接受数据) // 返回正确的结果(then接受数据)
......
...@@ -31,7 +31,6 @@ export default class request { ...@@ -31,7 +31,6 @@ export default class request {
//get请求 //get请求
get(url = '', data = {}, options = {}) { get(url = '', data = {}, options = {}) {
console.log(this.request,'this.request')
return this.request({ return this.request({
method: "GET", method: "GET",
data: data, data: data,
......
...@@ -67,7 +67,6 @@ export const dispatchRequest = function(requestInfo) { ...@@ -67,7 +67,6 @@ export const dispatchRequest = function(requestInfo) {
} }
// #endif // #endif
let requestTask = uni.request(requestData); let requestTask = uni.request(requestData);
console.log(requestTask,requestData,'requestTask')
setTimeout(() => { setTimeout(() => {
if(requestAbort){ if(requestAbort){
requestTask.abort(); requestTask.abort();
......
...@@ -16,7 +16,6 @@ export const randomChar = function(l, url = "") { ...@@ -16,7 +16,6 @@ export const randomChar = function(l, url = "") {
} }
//图片选择 //图片选择
export const chooseImage = function(data) { export const chooseImage = function(data) {
console.log(data,'data-chooseImage')
return new Promise((resolve, reject) => { return new Promise((resolve, reject) => {
uni.chooseImage({ uni.chooseImage({
count: data.count || 9, //默认9 count: data.count || 9, //默认9
...@@ -125,9 +124,6 @@ export const qiniuUpload = function(requestInfo, qnRes) { ...@@ -125,9 +124,6 @@ export const qiniuUpload = function(requestInfo, qnRes) {
uptokenURL: 'UpTokenURL.com/uptoken' // 上传地址 uptokenURL: 'UpTokenURL.com/uptoken' // 上传地址
}, (res) => { }, (res) => {
requestInfo.onProgressUpdate && requestInfo.onProgressUpdate(Object.assign({}, fileData, res)); requestInfo.onProgressUpdate && requestInfo.onProgressUpdate(Object.assign({}, fileData, res));
// console.log('上传进度', res.progress)
// console.log('已经上传的数据长度', res.totalBytesSent)
// console.log('预期需要上传的数据总长度', res.totalBytesExpectedToSend)
}); });
} }
// }); // });
......
...@@ -15,7 +15,6 @@ router.beforeEach((to, from, next) => { ...@@ -15,7 +15,6 @@ router.beforeEach((to, from, next) => {
}); });
// 全局路由后置守卫 // 全局路由后置守卫
router.afterEach((to, from) => { router.afterEach((to, from) => {
console.log('跳转结束')
}) })
export { export {
......
...@@ -77,7 +77,6 @@ function oauth() { ...@@ -77,7 +77,6 @@ function oauth() {
uni.getProvider({ uni.getProvider({
service: 'oauth', service: 'oauth',
success: function (res) { success: function (res) {
console.log(res.provider)
if (~res.provider.indexOf('weixin')) { if (~res.provider.indexOf('weixin')) {
// weixin 微信登录 // weixin 微信登录
login('weixin').then(res=>{resolve(res)}).catch(err=>{reject(err)}) login('weixin').then(res=>{resolve(res)}).catch(err=>{reject(err)})
...@@ -107,7 +106,6 @@ function login(provider) { ...@@ -107,7 +106,6 @@ function login(provider) {
uni.login({ uni.login({
provider: provider, provider: provider,
success(res) { success(res) {
console.log(JSON.stringify(res));
resolve(res); resolve(res);
}, },
fail(err) { fail(err) {
......
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