瀏覽代碼

init: 代码整理

From-wh 2 年之前
父節點
當前提交
872ecd06e8
共有 25 個文件被更改,包括 6690 次插入6633 次删除
  1. 0 3
      template/uni-app/App.vue
  2. 0 5
      template/uni-app/components/easy-loadimage/easy-loadimage.vue
  3. 0 3
      template/uni-app/components/payment/index.vue
  4. 0 17
      template/uni-app/libs/login.js
  5. 1 2
      template/uni-app/mixins/sharePoster.js
  6. 0 1
      template/uni-app/pages/activity/goods_combination_details/index.vue
  7. 0 1
      template/uni-app/pages/activity/presell/index.vue
  8. 0 1
      template/uni-app/pages/activity/presell_details/index.vue
  9. 5803 5656
      template/uni-app/pages/admin/components/ucharts/ucharts.js
  10. 0 2
      template/uni-app/pages/admin/custom_date/index.vue
  11. 0 1
      template/uni-app/pages/admin/statistics/index.vue
  12. 0 1
      template/uni-app/pages/annex/components/verify/verifyPoint/verifyPoint.vue
  13. 0 2
      template/uni-app/pages/annex/components/verify/verifySlider/verifySliderPc.vue
  14. 0 1
      template/uni-app/pages/annex/web_view/index.vue
  15. 0 1
      template/uni-app/pages/goods/lottery/grids/record.vue
  16. 0 2
      template/uni-app/pages/goods/order_details/index.vue
  17. 0 2
      template/uni-app/pages/goods_cate/goods_cate3.vue
  18. 1 3
      template/uni-app/pages/goods_details/index.vue
  19. 0 1
      template/uni-app/pages/index/index.vue
  20. 0 1
      template/uni-app/pages/index/visualization/index.vue
  21. 862 862
      template/uni-app/pages/points_mall/integral_order_details.vue
  22. 0 1
      template/uni-app/pages/users/components/verify/verifyPoint/verifyPoint.vue
  23. 22 59
      template/uni-app/pages/users/components/verify/verifySlider/verifySliderPc.vue
  24. 0 2
      template/uni-app/pages/users/user_invoice_form/index.vue
  25. 1 3
      template/uni-app/utils/util.js

+ 0 - 3
template/uni-app/App.vue

@@ -81,7 +81,6 @@
 			}
 		},
 		onShow() {
-			console.log(this.globalData.cccc)
 			const queryData = uni.getEnterOptionsSync() // uni-app版本 3.5.1+ 支持
 			if (queryData.query.spread) {
 				this.$Cache.set('spread', queryData.query.spread);
@@ -98,8 +97,6 @@
 			// #ifdef MP
 			if (queryData.query.scene) {
 				let param = this.$util.getUrlParams(decodeURIComponent(queryData.query.scene))
-				console.log(queryData.query.scene)
-				console.log(param)
 				if (param.pid) {
 					this.$Cache.set('spread', param.pid);
 					this.globalData.spid = param.pid;

+ 0 - 5
template/uni-app/components/easy-loadimage/easy-loadimage.vue

@@ -75,17 +75,12 @@
 				this.$nextTick(this.onScroll)
 			},
 			handleImgLoad(e) {
-				// console.log('success');
 				this.showImg = true;
-				// this.$nextTick(function(){
-				//     this.showTransition = true
-				// })
 				setTimeout(() => {
 					this.showTransition = true
 				}, 50)
 			},
 			handleImgError(e) {
-				// console.log('fail');
 				this.isLoadError = true;
 			},
 			onScroll() {

+ 0 - 3
template/uni-app/components/payment/index.vue

@@ -119,7 +119,6 @@
 				});
 			},
 			goPay: function(number, paytype) {
-				console.log(paytype)
 				if (this.isCall) {
 					return this.$emit('onChangeFun', {
 						action: 'payCheck',
@@ -145,7 +144,6 @@
 						complete: () => {}
 					});
 				}
-				console.log('11111')
 				orderPay({
 					uni: that.order_id,
 					paytype: paytype,
@@ -168,7 +166,6 @@
 					// #endif
 				}).then(res => {
 					let jsConfig = res.data.result.jsConfig;
-					console.log(paytype)
 					if (res.data.status == 'ALLINPAY_PAY') {
 						uni.hideLoading();
 						// #ifdef MP

+ 0 - 17
template/uni-app/libs/login.js

@@ -75,13 +75,6 @@ function _toLogin(push, pathLogin) {
 		} else {
 			urlData += '?go_longin=1';
 		}
-		// if (!Cache.has('snsapiKey')) {
-		// 	auth.oAuth('snsapi_base', urlData);
-		// } else {
-		// 	uni.navigateTo({
-		// 		url: '/pages/users/wechat_login/index',
-		// 	});
-		// }
 		uni.navigateTo({
 			url: '/pages/users/wechat_login/index',
 		});
@@ -97,16 +90,6 @@ function _toLogin(push, pathLogin) {
 	uni.navigateTo({
 		url: '/pages/users/wechat_login/index'
 	})
-	// Routine.getCode()
-	// 	.then(code => {
-	// 		console.log(code)
-	// 		Routine.silenceAuth(code).then(res => {
-	// 			console.log(res)
-	// 		})
-	// 	})
-	// 	.catch(err => {
-	// 		uni.hideLoading();
-	// 	});
 	// #endif
 
 	// #ifdef APP-PLUS

+ 1 - 2
template/uni-app/mixins/sharePoster.js

@@ -189,8 +189,7 @@ export const sharePoster = {
 				});
 			// #endif
 			// #ifdef H5 || APP-PLUS
-			arr2 = [that.posterbackgd, that.storeImageBase64, that.PromotionCode];
-			console.log(arr2)
+			arr2 = [that.posterbackgd, that.storeImageBase64, that.PromotionCode];
 			if (!that.storeImageBase64)
 				return that.$util.Tips({
 					title: i18n.t(`正在下载海报,请稍后再试`),

+ 0 - 1
template/uni-app/pages/activity/goods_combination_details/index.vue

@@ -671,7 +671,6 @@
 					}, 500);
 
 				}).catch(function(err) {
-					console.log(err)
 					that.$util.Tips({
 						title: err
 					}, {

+ 0 - 1
template/uni-app/pages/activity/presell/index.vue

@@ -188,7 +188,6 @@
 				if (that.pageloading) return;
 				this.pageloading = true
 				getPresellList(data).then(res => {
-					console.log(res);
 					var presellList = res.data.list;
 					var loadend = presellList.length < that.limit;
 					that.page++;

+ 0 - 1
template/uni-app/pages/activity/presell_details/index.vue

@@ -706,7 +706,6 @@
 							let obj = res.data.productValue[key];
 							that.skuArr.push(obj);
 						}
-						console.log(that.skuArr)
 						that.$set(that, "selectSku", that.skuArr[0]);
 						var navList = [that.$t(`商品`), that.$t(`评价`), that.$t(`详情`)];
 						if (goodArray.length) {

File diff suppressed because it is too large
+ 5803 - 5656
template/uni-app/pages/admin/components/ucharts/ucharts.js


+ 0 - 2
template/uni-app/pages/admin/custom_date/index.vue

@@ -22,8 +22,6 @@
 		},
 		methods: {
 			change(e) {
-				console.log(e)
-				
 				const {
 					before,
 					after

+ 0 - 1
template/uni-app/pages/admin/statistics/index.vue

@@ -184,7 +184,6 @@
 		},
 		onLoad: function(options) {
 			this.type = options.type;
-			console.log(options)
 			if (options.before) {
 				this.before = options.before;
 			}

+ 0 - 1
template/uni-app/pages/annex/components/verify/verifyPoint/verifyPoint.vue

@@ -236,7 +236,6 @@
             }
         },
 		mounted() {
-			console.log(this.defaultImg)
 		}
   }
 </script>

+ 0 - 2
template/uni-app/pages/annex/components/verify/verifySlider/verifySliderPc.vue

@@ -177,7 +177,6 @@ export default {
     this.$el.onselectstart = function() {
       return false;
     };
-    console.log(this.defaultImg);
   },
   methods: {
     init() {
@@ -226,7 +225,6 @@ export default {
 
     // 鼠标按下
     start: function(e) {
-			console.log(e)
       e.preventDefault();
       e = e || window.event;
       if (!e.touches.length) {

+ 0 - 1
template/uni-app/pages/annex/web_view/index.vue

@@ -17,7 +17,6 @@
 			}
 		},
 		onLoad(option) {
-			console.log(option)
 			this.url = option.url;
 			try {
 				const res = uni.getSystemInfoSync();

+ 0 - 1
template/uni-app/pages/goods/lottery/grids/record.vue

@@ -86,7 +86,6 @@
 		},
 		filters: {
 			typeName(type) {
-				console.log(type)
 				if (type == 2) {
 					return '积分'
 				} else if (type == 3) {

+ 0 - 2
template/uni-app/pages/goods/order_details/index.vue

@@ -605,7 +605,6 @@
 				this.getUserInfo();
 				this.getCustomerType();
 				let opt = wx.getEnterOptionsSync();
-				console.log(opt)
 				if (opt.scene == '1038' && opt.referrerInfo.appId == 'wxef277996acc166c3') {
 					// 代表从收银台小程序返回
 					let extraData = opt.referrerInfo.extraData;
@@ -702,7 +701,6 @@
 			},
 			openSubcribe(e) {
 				let page = e;
-				console.log(page)
 				// #ifndef MP
 				uni.navigateTo({
 					url: page,

+ 0 - 2
template/uni-app/pages/goods_cate/goods_cate3.vue

@@ -473,7 +473,6 @@
 				let list = this.cartData.cartList;
 				let num = list[index];
 				let stock = list[index].trueStock;
-				console.log(num, list[index].productInfo.limit_num)
 				if (changeValue && list[index].productInfo.limit_type == 1 && num.cart_num >= list[index].productInfo
 					.limit_num) {
 					this.$set(num, 'cart_num', list[index].productInfo.limit_num)
@@ -604,7 +603,6 @@
 						}
 					})
 					.catch(err => {
-						console.log(that.attr)
 						that.attr.productSelect.cart_num = that.attr.productSelect.limit_num
 						return that.$util.Tips({
 							title: err

+ 1 - 3
template/uni-app/pages/goods_details/index.vue

@@ -955,7 +955,6 @@
 			 */
 			ChangeAttr: function(res) {
 				let productSelect = this.productValue[res];
-				// console.log(productSelect)
 				if (!productSelect) {
 					this.$util.Tips({
 						title: this.$t(`重新选择`),
@@ -1479,7 +1478,6 @@
 						that.attr.productSelect.unique : "",
 					virtual_type: that.storeInfo.virtual_type,
 				};
-				// console.log(q)
 				postCartAdd(q)
 					.then(function(res) {
 						that.isOpen = false;
@@ -1557,6 +1555,7 @@
 			 */
 			listenerActionSheet() {
 				this.currentPage = false
+				this.downloadFilePromotionCode();
 				if (this.isLogin === false) {
 					toLogin();
 				} else {
@@ -1569,7 +1568,6 @@
 						// this.ShareInfo()
 						this.weixinStatus = true;
 					}
-					this.downloadFilePromotionCode();
 					// #endif
 					// #ifdef MP
 					// this.downloadFilePromotionCode();

+ 0 - 1
template/uni-app/pages/index/index.vue

@@ -41,7 +41,6 @@
 			getVersion(name) {
 				uni.$emit('uploadFooter')
 				getVersion(name).then(res => {
-					console.log(res, '11')
 					this.version = res.data.version
 					this.isDiy = res.data.is_diy
 					this.loading = true

+ 0 - 1
template/uni-app/pages/index/visualization/index.vue

@@ -502,7 +502,6 @@
 			diyData() {
 				let that = this;
 				getDiy().then((res) => {
-					console.log('222', res)
 					let data = res.data;
 					that.headerSerch = data.headerSerch;
 					that.swiperBg = data.swiperBg;

File diff suppressed because it is too large
+ 862 - 862
template/uni-app/pages/points_mall/integral_order_details.vue


+ 0 - 1
template/uni-app/pages/users/components/verify/verifyPoint/verifyPoint.vue

@@ -236,7 +236,6 @@
             }
         },
 		mounted() {
-			console.log(this.defaultImg)
 		}
   }
 </script>

File diff suppressed because it is too large
+ 22 - 59
template/uni-app/pages/users/components/verify/verifySlider/verifySliderPc.vue


+ 0 - 2
template/uni-app/pages/users/user_invoice_form/index.vue

@@ -386,12 +386,10 @@
 						switch (that.from) {
 							case 'order_confirm':
 								if (that.id) {
-									console.log(that.from, that.id, that.urlQuery, formData.type);
 									uni.navigateTo({
 										url: `/pages/goods/order_confirm/index${that.urlQuery}&invoice_id=${that.id}&invoice_type=${formData.type}`
 									})
 								} else {
-									console.log(that.from, that.id, '2');
 									uni.navigateTo({
 										url: `/pages/goods/order_confirm/index${that.urlQuery}&invoice_id=${res.data.id}&invoice_type=${formData.type}`
 									})

+ 1 - 3
template/uni-app/utils/util.js

@@ -1011,9 +1011,7 @@ export default {
 				success: res => {
 					console.log("打开成功", res);
 				},
-				fail: err => {
-					console.log('sgdhgf', err);
-				}
+				fail: err => {}
 			})
 			//#endif
 			//#ifndef MP