diff --git a/app.js b/app.js
index a1152df..b158098 100644
--- a/app.js
+++ b/app.js
@@ -25,7 +25,7 @@ App({
version_number: '1.0.0',
},
console: function (msg) {
- console.log(msg);
+ // 日志输出已隐藏
},
tip: function (params) {
var that = this;
@@ -95,12 +95,12 @@ App({
content: '请先登录',
success(res) {
if (res.confirm) {
- console.log('用户点击确定')
+ // 用户点击确定
wx.switchTab({
url: '/pages/my/my'
})
} else if (res.cancel) {
- console.log('用户点击取消')
+ // 用户点击取消
}
}
})
diff --git a/app.json b/app.json
index 31e2fcb..2e3dbec 100644
--- a/app.json
+++ b/app.json
@@ -1,10 +1,8 @@
{
"pages": [
"pages/home/home",
-
"pages/order/order",
"pages/my/my",
- "pages/news/news-details",
"pages/guanyu/guanyu",
"pages/ghdCalculator/ghdCalculator",
"pages/webpage/webpage",
diff --git a/pages/heightSdsCalculator/heightSdsCalculator.js b/pages/heightSdsCalculator/heightSdsCalculator.js
index e39e3a9..5262f2e 100644
--- a/pages/heightSdsCalculator/heightSdsCalculator.js
+++ b/pages/heightSdsCalculator/heightSdsCalculator.js
@@ -205,14 +205,7 @@ Page({
throw new Error('计算结果无效');
}
- // 添加计算过程日志
- console.log('SDS计算过程:', {
- 个体身高: height.toFixed(1),
- 平均身高: mean.toFixed(1),
- 标准差: sd.toFixed(1),
- 计算公式: `(${height.toFixed(1)} - ${mean.toFixed(1)}) / ${sd.toFixed(1)}`,
- 计算结果: sds.toFixed(2)
- });
+ // 计算过程已隐藏
return sds;
},
diff --git a/pages/news/news-details.js b/pages/news/news-details.js
deleted file mode 100644
index a341250..0000000
--- a/pages/news/news-details.js
+++ /dev/null
@@ -1,66 +0,0 @@
-// pages/news/news-details.js
-Page({
-
- /**
- * 页面的初始数据
- */
- data: {
-
- },
-
- /**
- * 生命周期函数--监听页面加载
- */
- onLoad(options) {
-
- },
-
- /**
- * 生命周期函数--监听页面初次渲染完成
- */
- onReady() {
-
- },
-
- /**
- * 生命周期函数--监听页面显示
- */
- onShow() {
-
- },
-
- /**
- * 生命周期函数--监听页面隐藏
- */
- onHide() {
-
- },
-
- /**
- * 生命周期函数--监听页面卸载
- */
- onUnload() {
-
- },
-
- /**
- * 页面相关事件处理函数--监听用户下拉动作
- */
- onPullDownRefresh() {
-
- },
-
- /**
- * 页面上拉触底事件的处理函数
- */
- onReachBottom() {
-
- },
-
- /**
- * 用户点击右上角分享
- */
- onShareAppMessage() {
-
- }
-})
\ No newline at end of file
diff --git a/pages/news/news-details.wxml b/pages/news/news-details.wxml
deleted file mode 100644
index 89e85a1..0000000
--- a/pages/news/news-details.wxml
+++ /dev/null
@@ -1,2 +0,0 @@
-
-
diff --git a/pages/order/order.js b/pages/order/order.js
index 33b0584..7695bdb 100644
--- a/pages/order/order.js
+++ b/pages/order/order.js
@@ -47,17 +47,17 @@ Page({
content: '是否删除',
success(res) {
if (res.confirm) {
- console.log('用户点击确定')
+ // 用户点击确定
that.go_delete(e)
} else if (res.cancel) {
- console.log('用户点击取消')
+ // 用户点击取消
}
}
})
},
//删除点击
go_delete(e) {
- console.log("列表条目的index==" + e.currentTarget.dataset.index)
+ // 列表条目的index
//去订单详情页
// if (e.currentTarget.dataset.item != 0) {
// let item = JSON.stringify(e.currentTarget.dataset.item);
@@ -66,7 +66,7 @@ Page({
// url: "/pages/orderdetail/orderdetail?item=" + item,
// });
// }
- console.log("列表条目的item==" + e.currentTarget.dataset.item.id)
+ // 列表条目的item
this.deleteRecord(e.currentTarget.dataset.item.id)
},
deleteRecord(itemid) {
@@ -166,7 +166,7 @@ Page({
* 页面上拉触底事件的处理函数
*/
onReachBottom: function () {
- console.log("==页面上拉触底事件的处理函数==")
+ // 页面上拉触底事件的处理函数
this.getOrderList();
},
@@ -193,10 +193,10 @@ Page({
var resp = res.data;
if (res.data.erro == 0) {
if (res.data.currentPage == 1) {
- console.log("xxxe==" + res.data.currentPage)
+ // 当前页码
// 检查列表数量是否等于30
if (this.data.order_list.length === 30){
- console.log("列表数量等于30")
+ // 列表数量等于30
that.setData({
order_list: resp.lists,
pageNum: res.data.currentPage + 1
@@ -206,9 +206,9 @@ Page({
order_list: resp.lists,
});
}
- console.log("xxxe=pageNum=" + this.data.pageNum)
+ // 页码更新
} else {
- console.log("dddddddddd==")
+ // 加载更多数据
that.setData({
order_list: this.data.order_list.concat(resp.lists),
pageNum: res.data.currentPage + 1
diff --git a/pages/order/re_orderdetail.js b/pages/order/re_orderdetail.js
deleted file mode 100644
index 3e67ee2..0000000
--- a/pages/order/re_orderdetail.js
+++ /dev/null
@@ -1,190 +0,0 @@
-//获取应用实例
-var app = getApp();
-Page({
-
- /**
- * 页面的初始数据
- */
- data: {
- dingdan_msg:false,
- order_id:0,
- goods_id:'',
- type:'',
- fileListtwo: [],
- refund_remark:'',
- voucher_img:[]
- },
-
- afterReadtwo(event) {
- var that = this;
- const { file } = event.detail;
- // 当设置 mutiple 为 true 时, file 为数组格式,否则为对象格式
-
- wx.uploadFile({
- url: app.buildUrl("/app/Agentwechat/uploadImg"),
- filePath: file.url,
- name: 'file',
- formData: {
- uid:app.getCache('uid'),
- token:app.getCache('token'),
- file:file.url
- },
-
- success: (res)=> {
- var resp = res.data;
- var rstObj = JSON.parse(resp); //字符串转为对象
- if(rstObj.erro==0){
- app.console(rstObj.file_path+'cccccccc')
-
- // 上传完成需要更新 fileList
- const { fileListtwo = [] } = that.data;
- fileListtwo.push({ ...file, url: rstObj.file_path});
- that.setData({ fileListtwo });
- }else{
- wx.showToast({ title: rstObj.msg, icon: 'none' });
- return;
- }
- },
- });
- },
- deletetwo(event){
- app.console(event.detail.index+"================="+222),
- this.data.fileListtwo.splice([event.detail.index],1)
- this.setData({fileListtwo:this.data.fileListtwo});
- },
- /**
- * 生命周期函数--监听页面加载
- */
- onLoad: function (options) {
- console.log(options.type)
- console.log(options.id)
- if(options.type==2){
- this.setData({
- order_id:options.id,
- type:2
- })
- }
- if(options.type==3){
- this.setData({
- order_id:options.id,
- type:3
- })
- }
- },
-
-
-
- onClickLeft() {
- wx.navigateBack()
- },
- /**
- * 生命周期函数--监听页面初次渲染完成
- */
- onReady: function () {
-
- },
-
- /**
- * 生命周期函数--监听页面显示
- */
- onShow: function () {
- this.getRefundOrderDetail();
- },
-
- //退款订单详情
- getRefundOrderDetail: function () {
- var that = this;
- wx.request({
- url: app.buildUrl("/app/Goddesswechat/getOrderDetail"),
- header: app.getRequestHeader(),
- method:'POST',
- data: {
- version_number: this.data.version_number,
- uid:wx.getStorageSync('uid'),
- token:wx.getStorageSync('token'),
- order_id:this.data.order_id
- },
- success: function (res) {
- var resp = res.data;
- if(resp.erro==0){
- that.setData({
- detail:resp.detail,
- order:resp.order,
- goods_id:resp.detail.goods_id,
- id:resp.detail.id,
- refund:resp.detail.refund,
- charge_phone:resp.detail.charge_phone
-
- });
-
- console.log("上传的图片路径================="+that.data.voucher_img)
- if(that.data.voucher_img.length>0){
- that.data.voucher_img.forEach(item => {
- app.console('长度=item================'+item)
- const { fileListtwo = [] } = that.data;
- fileListtwo.push({ url: item });
- that.setData({ fileListtwo });
- })
- }
- }
- }
- });
-},
-
-tongyi(){
-this.handleRefundOrder()
-},
-jujue(){
- this.handleRefundOrderr()
-},
- //退款审核
- handleRefundOrder: function () {
- var that = this;
- wx.request({
- url: app.buildUrl("/app/Agentwechat/handleRefundOrder"),
- header: app.getRequestHeader(),
- method:'POST',
- data: {
- version_number: app.globalData.version_number,
- uid:wx.getStorageSync('uid'),
- token:wx.getStorageSync('token'),
- id:this.data.order_id,
- status:1,
- reject:''
- },
- success: function (res) {
- var resp = res.data;
- if(resp.erro==0){
- wx.showToast({ title: resp.msg, icon: 'none' });
- setTimeout(function () {
- //要延时执行的代码
- wx.navigateBack()
- }, 2000) //延迟时间 这里是2秒
- }
- }
- });
-},
- //退款审核
- handleRefundOrderr: function () {
- var that = this;
- wx.request({
- url: app.buildUrl("/app/Agentwechat/handleRefundOrder"),
- header: app.getRequestHeader(),
- method:'POST',
- data: {
- version_number: this.data.version_number,
- uid:wx.getStorageSync('uid'),
- token:wx.getStorageSync('token'),
- id:this.data.order_id,
- status:2,
- reject:''
- },
- success: function (res) {
- var resp = res.data;
- if(resp.erro==0){
- wx.showToast({ title: resp.msg, icon: 'none' });
- }
- }
- });
-},
-})
\ No newline at end of file
diff --git a/pages/order/re_orderdetail.json b/pages/order/re_orderdetail.json
deleted file mode 100644
index 7249a3c..0000000
--- a/pages/order/re_orderdetail.json
+++ /dev/null
@@ -1,7 +0,0 @@
-{
- "usingComponents": {
- "van-nav-bar":"/miniprogram/miniprogram_npm/@vant/weapp/nav-bar/index",
- "van-uploader": "/miniprogram/miniprogram_npm/@vant/weapp/uploader/index"
- },
- "navigationBarTitleText": "订单详情"
-}
\ No newline at end of file
diff --git a/pages/order/re_orderdetail.wxml b/pages/order/re_orderdetail.wxml
deleted file mode 100644
index 07212db..0000000
--- a/pages/order/re_orderdetail.wxml
+++ /dev/null
@@ -1,96 +0,0 @@
-
-
-
-
- 待退款
- 退款成功
- 申请驳回
-
-
-
-
- {{detail.goods_name}}
- 数量x{{detail.num}}
- 实付款:¥{{detail.total_money}}
-
-
-
-
-
-
-
- 订单信息
-
-
- 订单合计
- ¥{{order.total_money}}
-
-
- 商品数量
- {{order.num}}
-
-
- 订单时间
- {{order.time}}
-
-
- 订单编号
- {{order.order_id}}
-
-
- 手机号码
- {{order.phone}}
-
-
- 付款时间
- {{order.time}}
-
-
-
-
-
-
-
-
-
-
-
- 退款信息
-
-
-
- 退款原因:
- {{refund_infro.refund_reason}}
-
-
-
- 退款金额:
- ¥{{refund_infro.refund_money}}
-
-
- 不可修改,最多¥99
-
-
-
- 退款说明:
- 选填
-
-
-
-
-
-
-
-
- 上传凭证
-
-
-
-
-
-
-
-拒绝退款
-同意退款
-
diff --git a/pages/webpage/webpage.js b/pages/webpage/webpage.js
index f207fdd..d9e8875 100644
--- a/pages/webpage/webpage.js
+++ b/pages/webpage/webpage.js
@@ -5,7 +5,7 @@ Page({
},
onLoad(options) {
- console.log("列表条目的index==" + options.url)
+ // 获取URL参数
if(options.url){
this.setData({
url: decodeURIComponent(options.url) // 如果url后面还有参数需要转码一下否则会丢失
diff --git a/project.config.json b/project.config.json
index 8ebad66..3168d0e 100644
--- a/project.config.json
+++ b/project.config.json
@@ -1,78 +1,78 @@
-{
- "description": "项目配置文件",
- "setting": {
- "urlCheck": false,
- "es6": true,
- "enhance": true,
- "postcss": true,
- "preloadBackgroundData": false,
- "minified": true,
- "newFeature": false,
- "coverView": true,
- "nodeModules": true,
- "autoAudits": false,
- "showShadowRootInWxmlPanel": true,
- "scopeDataCheck": false,
- "uglifyFileName": false,
- "checkInvalidKey": true,
- "checkSiteMap": false,
- "uploadWithSourceMap": true,
- "compileHotReLoad": false,
- "lazyloadPlaceholderEnable": false,
- "useMultiFrameRuntime": true,
- "babelSetting": {
- "ignore": [],
- "disablePlugins": [],
- "outputPath": ""
- },
- "enableEngineNative": false,
- "useIsolateContext": false,
- "userConfirmedBundleSwitch": false,
- "packNpmManually": true,
- "packNpmRelationList": [
- {
- "packageJsonPath": "./package.json",
- "miniprogramNpmDistDir": "./miniprogram/"
- }
- ],
- "minifyWXSS": true,
- "disableUseStrict": false,
- "minifyWXML": true,
- "showES6CompileOption": false,
- "useCompilerPlugins": false,
- "condition": false,
- "ignoreUploadUnusedFiles": true
- },
- "compileType": "miniprogram",
- "condition": {
- "search": {
- "list": []
- },
- "conversation": {
- "list": []
- },
- "game": {
- "list": []
- },
- "plugin": {
- "list": []
- },
- "gamePlugin": {
- "list": []
- },
- "miniprogram": {
- "list": []
- }
- },
- "editorSetting": {
- "tabIndent": "insertSpaces",
- "tabSize": 2
- },
- "libVersion": "2.21.0",
- "packOptions": {
- "ignore": [],
- "include": []
- },
- "appid": "wxa75a76964ae7ce73",
- "simulatorPluginLibVersion": {}
+{
+ "description": "项目配置文件",
+ "setting": {
+ "urlCheck": false,
+ "es6": true,
+ "enhance": true,
+ "postcss": true,
+ "preloadBackgroundData": false,
+ "minified": true,
+ "newFeature": false,
+ "coverView": true,
+ "nodeModules": true,
+ "autoAudits": false,
+ "showShadowRootInWxmlPanel": true,
+ "scopeDataCheck": false,
+ "uglifyFileName": false,
+ "checkInvalidKey": true,
+ "checkSiteMap": false,
+ "uploadWithSourceMap": true,
+ "compileHotReLoad": false,
+ "lazyloadPlaceholderEnable": false,
+ "useMultiFrameRuntime": true,
+ "babelSetting": {
+ "ignore": [],
+ "disablePlugins": [],
+ "outputPath": ""
+ },
+ "enableEngineNative": false,
+ "useIsolateContext": false,
+ "userConfirmedBundleSwitch": false,
+ "packNpmManually": true,
+ "packNpmRelationList": [
+ {
+ "packageJsonPath": "./package.json",
+ "miniprogramNpmDistDir": "./miniprogram/"
+ }
+ ],
+ "minifyWXSS": true,
+ "disableUseStrict": false,
+ "minifyWXML": true,
+ "showES6CompileOption": false,
+ "useCompilerPlugins": false,
+ "condition": false,
+ "ignoreUploadUnusedFiles": true
+ },
+ "compileType": "miniprogram",
+ "condition": {
+ "search": {
+ "list": []
+ },
+ "conversation": {
+ "list": []
+ },
+ "game": {
+ "list": []
+ },
+ "plugin": {
+ "list": []
+ },
+ "gamePlugin": {
+ "list": []
+ },
+ "miniprogram": {
+ "list": []
+ }
+ },
+ "editorSetting": {
+ "tabIndent": "insertSpaces",
+ "tabSize": 2
+ },
+ "libVersion": "3.10.0",
+ "packOptions": {
+ "ignore": [],
+ "include": []
+ },
+ "appid": "wxa75a76964ae7ce73",
+ "simulatorPluginLibVersion": {}
}
\ No newline at end of file
diff --git a/subPackages/pages/withdrawal/withdrawal.js b/subPackages/pages/withdrawal/withdrawal.js
deleted file mode 100644
index 7de737d..0000000
--- a/subPackages/pages/withdrawal/withdrawal.js
+++ /dev/null
@@ -1,66 +0,0 @@
-// subPackages/pages/withdrawal/withdrawal.js
-Page({
-
- /**
- * 页面的初始数据
- */
- data: {
-
- },
-
- /**
- * 生命周期函数--监听页面加载
- */
- onLoad: function (options) {
-
- },
-
- /**
- * 生命周期函数--监听页面初次渲染完成
- */
- onReady: function () {
-
- },
-
- /**
- * 生命周期函数--监听页面显示
- */
- onShow: function () {
-
- },
-
- /**
- * 生命周期函数--监听页面隐藏
- */
- onHide: function () {
-
- },
-
- /**
- * 生命周期函数--监听页面卸载
- */
- onUnload: function () {
-
- },
-
- /**
- * 页面相关事件处理函数--监听用户下拉动作
- */
- onPullDownRefresh: function () {
-
- },
-
- /**
- * 页面上拉触底事件的处理函数
- */
- onReachBottom: function () {
-
- },
-
- /**
- * 用户点击右上角分享
- */
- onShareAppMessage: function () {
-
- }
-})
\ No newline at end of file
diff --git a/subPackages/pages/withdrawal/withdrawal.json b/subPackages/pages/withdrawal/withdrawal.json
deleted file mode 100644
index 8835af0..0000000
--- a/subPackages/pages/withdrawal/withdrawal.json
+++ /dev/null
@@ -1,3 +0,0 @@
-{
- "usingComponents": {}
-}
\ No newline at end of file
diff --git a/subPackages/pages/withdrawal/withdrawal.wxml b/subPackages/pages/withdrawal/withdrawal.wxml
deleted file mode 100644
index d0d56b6..0000000
--- a/subPackages/pages/withdrawal/withdrawal.wxml
+++ /dev/null
@@ -1,2 +0,0 @@
-
-subPackages/pages/withdrawal/withdrawal.wxml
diff --git a/subPackages/pages/withdrawal/withdrawal.wxss b/subPackages/pages/withdrawal/withdrawal.wxss
deleted file mode 100644
index da8d0a8..0000000
--- a/subPackages/pages/withdrawal/withdrawal.wxss
+++ /dev/null
@@ -1 +0,0 @@
-/* subPackages/pages/withdrawal/withdrawal.wxss */
\ No newline at end of file