From bcc07479067795433a7efd8d448aa095d51a2b0d Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E5=90=B4=E6=98=8A=E5=A4=A9?= <442384644@qq.com>
Date: Tue, 6 Dec 2022 14:10:35 +0800
Subject: [PATCH] =?UTF-8?q?=E3=80=90=E6=A8=A1=E7=89=88=E7=9B=AE=E5=BD=95?=
=?UTF-8?q?=E3=80=91=E6=9B=B4=E6=96=B0=E7=A7=BB=E5=8A=A8=E7=AB=AF=E9=A1=B5?=
=?UTF-8?q?=E9=9D=A2=E6=BA=90=E7=A0=81?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
template/uni-app/App.vue | 2 -
.../uni-app/components/couponWindow/index.vue | 2 +-
.../components/cusPreviewImg/index.vue | 301 ++---
.../uni-app/components/goodClass/index.vue | 1 -
template/uni-app/components/menuIcon.vue | 1 -
.../uni-app/components/orderGoods/index.vue | 2 -
.../uni-app/components/pageFooter/index.vue | 3 +-
.../components/shareRedPackets/index.vue | 1 -
.../uni-app/components/update/app-update.vue | 2 -
.../verify/verifyPoint/verifyPoint.vue | 1081 ++++++++---------
template/uni-app/libs/chat.js | 2 -
template/uni-app/mixins/sharePoster.js | 19 +-
.../goods_combination_details/index.vue | 6 +-
.../activity/goods_seckill_details/index.vue | 7 +-
.../pages/activity/presell_details/index.vue | 4 -
.../uni-app/pages/admin/orderDetail/index.vue | 14 +-
.../uni-app/pages/admin/orderList/index.vue | 1 -
.../uni-app/pages/admin/statistics/index.vue | 1 -
.../pages/annex/applicationRecord/index.vue | 2 -
.../uni-app/pages/annex/settled/index.vue | 2 -
.../uni-app/pages/annex/special/index.vue | 3 -
.../pages/extension/customer_list/chat.vue | 1 -
.../pages/goods/goods_return/index.vue | 5 +
.../uni-app/pages/goods_cate/goods_cate1.vue | 2 +-
.../uni-app/pages/goods_cate/goods_cate2.vue | 1 -
.../uni-app/pages/goods_cate/goods_cate3.vue | 2 -
.../uni-app/pages/goods_details/index.vue | 20 +-
.../index/diy/components/articleList.vue | 1 -
template/uni-app/pages/index/diy/index.vue | 9 +-
.../pages/index/visualization/index.vue | 2 -
.../pages/order_addcart/order_addcart.vue | 13 +-
.../points_mall/integral_goods_details.vue | 2 -
template/uni-app/pages/user/index.vue | 3 +-
.../verify/verifyPoint/verifyPoint.vue | 1080 ++++++++--------
.../users/message_center/messageDetail.vue | 1 -
.../pages/users/payment_on_behalf/index.vue | 1 -
.../users/payment_on_behalf/pay_status.vue | 1 -
.../pages/users/promoter-order/index.vue | 3 -
.../uni-app/pages/users/staff_list/index.vue | 1 -
.../pages/users/user_address/index.vue | 1 -
.../pages/users/user_address_list/index.vue | 2 -
.../uni-app/pages/users/user_cash/index.vue | 1 -
.../users/user_distribution_level/index.vue | 1 -
.../users/user_goods_collection/index.vue | 5 -
.../uni-app/pages/users/user_info/index.vue | 1 -
.../pages/users/user_pwd_edit/index.vue | 1 -
.../pages/users/wechat_login/index.vue | 51 +-
template/uni-app/utils/util.js | 2 -
48 files changed, 1320 insertions(+), 1350 deletions(-)
diff --git a/template/uni-app/App.vue b/template/uni-app/App.vue
index 58463e559..c863fb258 100644
--- a/template/uni-app/App.vue
+++ b/template/uni-app/App.vue
@@ -188,7 +188,6 @@
const startParamObj = wx.getEnterOptionsSync();
if (wx.canIUse('getUpdateManager') && startParamObj.scene != 1154) {
const updateManager = wx.getUpdateManager()
- console.log(updateManager);
updateManager.onCheckForUpdate(function(res) {
// 请求完新版本信息的回调
// console.log(res.hasUpdate)
@@ -234,7 +233,6 @@
that.globalData.navH = menuButtonInfo.top * 2 + menuButtonInfo.height / 2;
const version = uni.getSystemInfoSync().SDKVersion
if (Routine.compareVersion(version, '2.21.3') >= 0) {
- console.log(version)
that.$Cache.set('MP_VERSION_ISNEW', true)
} else {
that.$Cache.set('MP_VERSION_ISNEW', false)
diff --git a/template/uni-app/components/couponWindow/index.vue b/template/uni-app/components/couponWindow/index.vue
index 9b8756627..f8b5e7129 100644
--- a/template/uni-app/components/couponWindow/index.vue
+++ b/template/uni-app/components/couponWindow/index.vue
@@ -15,7 +15,7 @@
- {{$t(`立即领取`)}}
+ {{$t(`立即领取`)}}
diff --git a/template/uni-app/components/cusPreviewImg/index.vue b/template/uni-app/components/cusPreviewImg/index.vue
index de537d64c..fe644b169 100644
--- a/template/uni-app/components/cusPreviewImg/index.vue
+++ b/template/uni-app/components/cusPreviewImg/index.vue
@@ -1,143 +1,160 @@
-
-
-
-
-
-
-
- {{src.suk}}
- {{$t(`¥`)}}{{src.price}}
-
-
-
-
- {{ Number(currentIndex) + 1 }} / {{ list.length }}
-
-
-
-
-
-
-
-
-
diff --git a/template/uni-app/components/goodClass/index.vue b/template/uni-app/components/goodClass/index.vue
index 179c193ff..afee5c143 100644
--- a/template/uni-app/components/goodClass/index.vue
+++ b/template/uni-app/components/goodClass/index.vue
@@ -89,7 +89,6 @@
this.$emit('ChangeCartNumDan', false, index, item);
},
CartNumAdd(index, item) {
- console.log('2')
if (this.addIng) return
this.addIng = true
this.$emit('ChangeCartNumDan', true, index, item);
diff --git a/template/uni-app/components/menuIcon.vue b/template/uni-app/components/menuIcon.vue
index e4b3729c6..b17b657da 100644
--- a/template/uni-app/components/menuIcon.vue
+++ b/template/uni-app/components/menuIcon.vue
@@ -104,7 +104,6 @@
// #ifdef MP
this.menuButton = uni.getMenuButtonBoundingClientRect();
const query = uni.createSelectorQuery().in(this);
- console.log(this.menuButton)
query
.select('#home')
.boundingClientRect(data => {
diff --git a/template/uni-app/components/orderGoods/index.vue b/template/uni-app/components/orderGoods/index.vue
index 657cf0897..2205dcd70 100644
--- a/template/uni-app/components/orderGoods/index.vue
+++ b/template/uni-app/components/orderGoods/index.vue
@@ -174,7 +174,6 @@
nVal.forEach((item, index) => {
num += item.cart_num
})
- console.log(num)
this.totalNmu = num
}
},
@@ -184,7 +183,6 @@
this.cartInfo.forEach((item, index) => {
num += item.cart_num
})
- console.log(num)
this.$set(this, 'totalNmu', num)
})
diff --git a/template/uni-app/components/pageFooter/index.vue b/template/uni-app/components/pageFooter/index.vue
index dd82cd7de..a7c8360d3 100644
--- a/template/uni-app/components/pageFooter/index.vue
+++ b/template/uni-app/components/pageFooter/index.vue
@@ -103,7 +103,6 @@
let that = this
uni.hideTabBar()
this.newData = this.$store.state.app.pageFooter
- console.log(this.newData)
if (this.isLogin) {
this.getCartNum()
}
@@ -169,7 +168,7 @@
justify-content: center;
flex-direction: column;
position: relative;
-
+ width: 100%;
.count-num {
position: absolute;
display: flex;
diff --git a/template/uni-app/components/shareRedPackets/index.vue b/template/uni-app/components/shareRedPackets/index.vue
index 559044fba..8de1f9135 100644
--- a/template/uni-app/components/shareRedPackets/index.vue
+++ b/template/uni-app/components/shareRedPackets/index.vue
@@ -50,7 +50,6 @@
this.$emit('closeChange');
},
goShare: function() {
- console.log(this.isAnimate)
if (this.isAnimate) {
this.$emit('listenerActionSheet');
} else {
diff --git a/template/uni-app/components/update/app-update.vue b/template/uni-app/components/update/app-update.vue
index 62bf4cd2c..97cc04905 100644
--- a/template/uni-app/components/update/app-update.vue
+++ b/template/uni-app/components/update/app-update.vue
@@ -121,7 +121,6 @@
//向后台发起请求,获取最新版本号
getUpdateInfo(this.platform === "ios" ? 2 : 1)
.then((res) => {
- console.log(res)
if(Array.isArray(res.data)){
return this.$emit('isNew')
}
@@ -146,7 +145,6 @@
})
.catch((err) => {
vm.popup_show = false
- console.log(err);
});
},
// 检查是否更新
diff --git a/template/uni-app/components/verify/verifyPoint/verifyPoint.vue b/template/uni-app/components/verify/verifyPoint/verifyPoint.vue
index 9adc43209..c0cdc9397 100644
--- a/template/uni-app/components/verify/verifyPoint/verifyPoint.vue
+++ b/template/uni-app/components/verify/verifyPoint/verifyPoint.vue
@@ -1,542 +1,541 @@
-
-
-
-
-
-
-
-
-
- {{index + 1}}
-
-
-
-
-
- {{text}}
-
-
-
-
-
-
diff --git a/template/uni-app/libs/chat.js b/template/uni-app/libs/chat.js
index c81d70d2e..118b5c4d9 100644
--- a/template/uni-app/libs/chat.js
+++ b/template/uni-app/libs/chat.js
@@ -40,8 +40,6 @@ Socket.prototype = {
},
onOpen() {
this.init();
- console.log('创建连接了!')
-
this.send({
type: "login",
data: $store.state.app.token
diff --git a/template/uni-app/mixins/sharePoster.js b/template/uni-app/mixins/sharePoster.js
index 853d57805..0f97f005c 100644
--- a/template/uni-app/mixins/sharePoster.js
+++ b/template/uni-app/mixins/sharePoster.js
@@ -11,8 +11,12 @@ import {
imageBase64
} from "@/api/public";
import {
- getProductCode
+ getProductCode, // 普通商品小程序code
} from "@/api/store.js";
+import {
+ scombinationCode, // 拼团code
+ seckillCode // 秒杀
+} from '@/api/activity.js';
import i18n from '../utils/lang.js';
let sysHeight = uni.getSystemInfoSync().statusBarHeight + 'px';
export const sharePoster = {
@@ -148,14 +152,15 @@ export const sharePoster = {
/**
* 生成海报
*/
- async goPoster() {
+ async goPoster(type) {
let that = this;
that.posters = false;
that.$set(that, "canvasStatus", true);
let arr2
// #ifdef MP
- getProductCode(that.id)
- .then((res) => {
+ let met = type === 'scombination' ? scombinationCode(that.id) : type === 'seckill' ? seckillCode(that
+ .id) : getProductCode(that.id)
+ met.then((res) => {
uni.downloadFile({
url: that.setDomain(res.data.code),
success: function(res) {
@@ -182,16 +187,12 @@ export const sharePoster = {
// #endif
// #ifdef H5 || APP-PLUS
arr2 = [that.posterbackgd, that.storeImageBase64, that.PromotionCode];
- console.log(arr2)
if (!that.storeImageBase64)
return that.$util.Tips({
title: i18n.t(`正在下载海报,请稍后再试`),
});
that.initPoster(arr2)
// #endif
- console.log(arr2, 'arr2s')
-
-
},
//替换安全域名
setDomain(url) {
@@ -266,4 +267,4 @@ export const sharePoster = {
// #endif
},
}
-};
+};
diff --git a/template/uni-app/pages/activity/goods_combination_details/index.vue b/template/uni-app/pages/activity/goods_combination_details/index.vue
index c7fbbc06e..d0decf712 100644
--- a/template/uni-app/pages/activity/goods_combination_details/index.vue
+++ b/template/uni-app/pages/activity/goods_combination_details/index.vue
@@ -230,7 +230,7 @@
{{$t(`微信朋友圈`)}}
-