diff --git a/.env.prod b/.env.prod
index 6fed58f..54ce788 100644
--- a/.env.prod
+++ b/.env.prod
@@ -2,16 +2,16 @@
NODE_ENV = 'production'
// 入口地址
-VUE_APP_BASE_URL = 'https://cdn.xglpa.com/tcubic/pdf/'
+VUE_APP_BASE_URL = 'https://wealthplus.cmschina.com'
// 业务接口
-VUE_APP_API = 'https://cdn.xglpa.com/tcubic/pdf/'
+VUE_APP_API = 'https://wealthplus.cmschina.com'
// CDN地址
-VUE_APP_CDN = 'https://cdn.xglpa.com/tcubic/pdf/'
+VUE_APP_CDN = './'
// XGL授权接口
-VUE_APP_XGL_DOMAIN = https://wealth.newone.com.cn
+VUE_APP_XGL_DOMAIN = https://wealthplus.cmschina.com
// 招商证券授权接口
-VUE_APP_ZS_DOMAIN = https://wealth.newone.com.cn
\ No newline at end of file
+VUE_APP_ZS_DOMAIN = https://wealthplus.cmschina.com
\ No newline at end of file
diff --git a/src/assets/img/update_btn.png b/src/assets/img/update_btn.png
new file mode 100644
index 0000000..0356796
Binary files /dev/null and b/src/assets/img/update_btn.png differ
diff --git a/src/components/ServiceList.vue b/src/components/ServiceList.vue
index a7adf5f..4047de0 100644
--- a/src/components/ServiceList.vue
+++ b/src/components/ServiceList.vue
@@ -7,16 +7,20 @@
+
-
-
@@ -61,6 +65,13 @@ const redpacketId = ref(0); //奖品Id
const moneyNum = ref(""); //奖品金额
const isBingo = ref(false); //是否中过奖
+const noPrize = ref(false); //未中奖
+
+// 刷新添加状态
+const updateStaus = () => {
+ getIsAddService();
+};
+
// 页面挂载前
onBeforeMount(() => {
if (store.state.userAccount.isAddCustomer == 1) {
@@ -95,6 +106,13 @@ onMounted(() => {
autoAlpha: 0,
delay: 0.1,
});
+
+ gsap.from(".update", {
+ duration: 0.3,
+ y: 20,
+ autoAlpha: 0,
+ delay: 0.3,
+ });
gsap.from(".service_cls_btn", {
duration: 0.3,
y: 20,
@@ -128,10 +146,20 @@ const draw = () => {
})
.then((res) => {
console.log("添加企微-抽取红包结果:", res);
- redpacketId.value = res.data.data.id;
- moneyNum.value = res.data.data.amount;
+ let data = res.data;
getMyPrizeRecored();
+
+ if (data.code == 0) {
+ isadd.value = true;
+ redpacketId.value = data.data.id;
+ moneyNum.value = data.data.amount;
+ if (data.data.amount == 0) {
+ noPrize.value = true;
+ }
+ } else {
+ Toast(data.msg);
+ }
});
};
@@ -170,6 +198,36 @@ const getMyPrizeRecored = () => {
});
});
};
+
+// 查询是否添加了企微: isInActivityDate 0否 1是
+const getIsAddService = () => {
+ let isInActivityDate = 1;
+ return service
+ .post(
+ process.env.VUE_APP_API +
+ "/cms-activity/cms88/qywx/isadded/" +
+ isInActivityDate,
+ {}
+ )
+ .then((res) => {
+ console.log("是否添加了企微", res.data);
+ // store.state.userAccount.isBirthMon = res.data.data
+ store.commit({
+ type: "updateIsAddCustomer",
+ isAddCustomer: res.data.data,
+ });
+
+ let data = res.data;
+
+ if (data.data == 1) {
+ draw();
+ }
+
+ if (data.data == 0) {
+ Toast("您还未添加企微,请扫码添加");
+ }
+ });
+};