Commit 9140404b by 李嘉林

完善信息领奖励

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