|
@@ -37,7 +37,7 @@
|
|
|
<userInfoHead :userData="userData"></userInfoHead>
|
|
|
</topbar>
|
|
|
<!-- #endif -->
|
|
|
-
|
|
|
+
|
|
|
<view>
|
|
|
<swiper :indicator-dots="false" style="height: 200rpx">
|
|
|
<swiper-item class="swiperBanner">
|
|
@@ -527,33 +527,31 @@ export default {
|
|
|
|
|
|
async mounted() {
|
|
|
this.loading = false;
|
|
|
-
|
|
|
-
|
|
|
- this.$nextTick(() => {
|
|
|
- // 需要延迟
|
|
|
-
|
|
|
- api.user.getInfo().then((res) => {
|
|
|
- uni.setStorageSync("userInfo", res.data);
|
|
|
- this.$store.commit("SET_USERINFO", res.data);
|
|
|
- this.$store.dispatch("GetRoadExamVip");
|
|
|
- // if (!res.data.nickName) {
|
|
|
- // uni.showModal({
|
|
|
- // title: "新用户更新信息",
|
|
|
- // confirmText: "去更新",
|
|
|
- // success: function (res) {
|
|
|
- // if (res.confirm) {
|
|
|
- // uni.navigateTo({
|
|
|
- // url:"/otherPages/userInfoAuth/index"
|
|
|
- // })
|
|
|
- // } else if (res.cancel) {
|
|
|
-
|
|
|
- // }
|
|
|
- // }
|
|
|
- // })
|
|
|
- });
|
|
|
- });
|
|
|
-
|
|
|
|
|
|
+ this.$nextTick(() => {
|
|
|
+ // 需要延迟
|
|
|
+
|
|
|
+ api.user.getInfo().then((res) => {
|
|
|
+ uni.setStorageSync("userInfo", res.data);
|
|
|
+ this.$store.commit("SET_USERINFO", res.data);
|
|
|
+ this.$store.dispatch("GetRoadExamVip");
|
|
|
+ this.$store.dispatch("GetRoadExamIsAllFree");
|
|
|
+ // if (!res.data.nickName) {
|
|
|
+ // uni.showModal({
|
|
|
+ // title: "新用户更新信息",
|
|
|
+ // confirmText: "去更新",
|
|
|
+ // success: function (res) {
|
|
|
+ // if (res.confirm) {
|
|
|
+ // uni.navigateTo({
|
|
|
+ // url:"/otherPages/userInfoAuth/index"
|
|
|
+ // })
|
|
|
+ // } else if (res.cancel) {
|
|
|
+
|
|
|
+ // }
|
|
|
+ // }
|
|
|
+ // })
|
|
|
+ });
|
|
|
+ });
|
|
|
|
|
|
// api.user.getInfo().then(res => {
|
|
|
// uni.setStorageSync("userInfo", res.data);
|
|
@@ -579,15 +577,16 @@ export default {
|
|
|
// this.selectComponent("#tabs").resize();
|
|
|
// });
|
|
|
},
|
|
|
-onShareAppMessage(res) {
|
|
|
- if (res.from === 'button') {// 来自页面内分享按钮
|
|
|
- console.log(res.target)
|
|
|
+ onShareAppMessage(res) {
|
|
|
+ if (res.from === "button") {
|
|
|
+ // 来自页面内分享按钮
|
|
|
+ console.log(res.target);
|
|
|
}
|
|
|
- let userInfo = uni.getStorageSync('userInfo')
|
|
|
+ let userInfo = uni.getStorageSync("userInfo");
|
|
|
return {
|
|
|
- title: '自定义分享标题',
|
|
|
- path: `/pages/carVideo/index?pUnionId=${userInfo.unionId}`
|
|
|
- }
|
|
|
+ title: "自定义分享标题",
|
|
|
+ path: `/pages/carVideo/index?pUnionId=${userInfo.unionId}`,
|
|
|
+ };
|
|
|
},
|
|
|
methods: {
|
|
|
clickCell(carVideoList) {
|