Commit 9140404b by 李嘉林

完善信息领奖励

parent 7258a268
...@@ -100,5 +100,9 @@ export default { ...@@ -100,5 +100,9 @@ export default {
//查看回放评论 //查看回放评论
queryPlaybackComments(options){ queryPlaybackComments(options){
return requestPOST(`${process.env.OLSHOP_URL}/liveBroadcastInfo/getLiveGuestAndLikeNumById`,options); return requestPOST(`${process.env.OLSHOP_URL}/liveBroadcastInfo/getLiveGuestAndLikeNumById`,options);
} },
//查询活动配置信息
getCustomerPerfectRewardDetail() {
return requestGET(`${process.env.OLSHOP_URL}/user/getCustomerPerfectRewardDetail`)
},
}; };
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
</div> </div>
<div class="title">完善信息领奖励</div> <div class="title">完善信息领奖励</div>
<div class="banner"> <div class="banner">
xxx <image :src="cusInfo.bannerUrl" mode="aspectFit"></image>
</div> </div>
<div class="bottom"> <div class="bottom">
<div class="bottom__left"> <div class="bottom__left">
...@@ -23,6 +23,7 @@ ...@@ -23,6 +23,7 @@
</template> </template>
<script type="text/ecmascript-6"> <script type="text/ecmascript-6">
import live from "@/api/live";
const app = getApp() const app = getApp()
export default { export default {
name: "ImproveInformation", name: "ImproveInformation",
...@@ -30,21 +31,41 @@ export default { ...@@ -30,21 +31,41 @@ export default {
return { return {
show: false, // 弹窗显示 show: false, // 弹窗显示
notPromptFlag: false, notPromptFlag: false,
cusInfo: {
bannerUrl: "",
},
} }
}, },
components: {}, components: {},
computed: {}, computed: {},
onShow() {
console.log('ImproveInformation-onShow->')
this.init();
},
created() { created() {
this.open(); this.init();
console.log('ImproveInformation-created->', wx.getStorageSync('sessionid'))
}, },
mounted() { }, mounted() { },
methods: { methods: {
open() { async init() {
if (wx.getStorageSync('notPromptFlag')) { if (wx.getStorageSync('notPromptFlag')) {
this.show = false; this.show = false;
return; return;
} }
if (wx.getStorageSync('sessionid')) {
let res = await live.getUserInfo();
if (res.data.code == 200) {
let { disableDialogPerfectCustomerInfoFlag, obtainPerfectCustomerInfoRewardFlag } = res.data.data;
if (disableDialogPerfectCustomerInfoFlag == "false" || obtainPerfectCustomerInfoRewardFlag == "false") {
let res2 = await live.getCustomerPerfectRewardDetail();
if (res2.data.code == 200) {
this.cusInfo = res2.data.data;
}
this.show = true; this.show = true;
}
}
}
}, },
notPrompt() { notPrompt() {
this.notPromptFlag = !this.notPromptFlag; this.notPromptFlag = !this.notPromptFlag;
...@@ -59,9 +80,9 @@ export default { ...@@ -59,9 +80,9 @@ export default {
confirm() { confirm() {
app.$themeToLink({ app.$themeToLink({
type: 1, type: 1,
link: `/personalCenter/userInfo`, link: `/personalCenter/userInfo?perfectCustomerInfo=1`,
}) })
this.close(); // this.close();
} }
} }
} }
...@@ -121,8 +142,6 @@ export default { ...@@ -121,8 +142,6 @@ export default {
.banner { .banner {
margin-top: 20px; margin-top: 20px;
background: #333;
height: 100px;
} }
.bottom { .bottom {
......
...@@ -152,6 +152,8 @@ ...@@ -152,6 +152,8 @@
<TwoBAddCart></TwoBAddCart> <TwoBAddCart></TwoBAddCart>
<!-- 麦贝思-客户选择标签 --> <!-- 麦贝思-客户选择标签 -->
<SWQUserSelectTag ref="SWQUserSelectTag"></SWQUserSelectTag> <SWQUserSelectTag ref="SWQUserSelectTag"></SWQUserSelectTag>
<!-- 完善信息领取奖励 -->
<ImproveInformation ref="ImproveInformation"></ImproveInformation>
</div> </div>
</template> </template>
...@@ -188,6 +190,7 @@ import GoodsFliters from "../../components/common/GoodsFliters"; ...@@ -188,6 +190,7 @@ import GoodsFliters from "../../components/common/GoodsFliters";
import SelectGoods from "../../components/common/SelectGoods"; import SelectGoods from "../../components/common/SelectGoods";
import TwoBAddCart from "../../components/common/TwoBAddCart"; import TwoBAddCart from "../../components/common/TwoBAddCart";
import SWQUserSelectTag from "../../components/common/SWQUserSelectTag"; import SWQUserSelectTag from "../../components/common/SWQUserSelectTag";
import ImproveInformation from "../../components/common/ImproveInformation";
import { setTabBarActive, checkTabbarPage,themeColor, checkShowConditionIds, setStoreInfo, getStoreInfo } from "../../utils/mayi.js"; import { setTabBarActive, checkTabbarPage,themeColor, checkShowConditionIds, setStoreInfo, getStoreInfo } from "../../utils/mayi.js";
import indexApi from "@/api/index.js"; import indexApi from "@/api/index.js";
import { throttle, concatUrl } from "../../utils/index.js" import { throttle, concatUrl } from "../../utils/index.js"
...@@ -273,7 +276,8 @@ export default { ...@@ -273,7 +276,8 @@ export default {
StoreAddr, StoreAddr,
pageLoading, pageLoading,
CustomNav, CustomNav,
SWQUserSelectTag SWQUserSelectTag,
ImproveInformation
}, },
computed: { computed: {
applySucessEntryFlag() { applySucessEntryFlag() {
......
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