|
|
@@ -23,19 +23,19 @@
|
|
|
<view class="jg"></view>
|
|
|
<!-- 分类 start-->
|
|
|
<view class="cate-section flex">
|
|
|
- <view class="cate-item flex" @click="gozx">
|
|
|
- <view class="img-wrapper flex">
|
|
|
- <image src="../../static/icon/c1.png" mode=""></image>
|
|
|
- </view>
|
|
|
- <view class="item-title">易博甄选</view>
|
|
|
- </view>
|
|
|
<view class="cate-item flex" @click="goCp()">
|
|
|
<view class="img-wrapper flex">
|
|
|
<image src="../../static/icon/c2.png" mode=""></image>
|
|
|
</view>
|
|
|
<view class="item-title">环球国际</view>
|
|
|
</view>
|
|
|
- <view class="cate-item flex" @click="openGg()">
|
|
|
+ <view class="cate-item flex" @click="gozx">
|
|
|
+ <view class="img-wrapper flex">
|
|
|
+ <image src="../../static/icon/c1.png" mode=""></image>
|
|
|
+ </view>
|
|
|
+ <view class="item-title">易博甄选</view>
|
|
|
+ </view>
|
|
|
+ <view class="cate-item flex" @click="openGg()" v-if="isAndroid">
|
|
|
<view class="img-wrapper flex">
|
|
|
<image src="../../static/icon/c3.png" mode=""></image>
|
|
|
</view>
|
|
|
@@ -59,12 +59,13 @@
|
|
|
<view class="sbkh-wrap">
|
|
|
<image src="../../static/img/sbkh.jpg" mode=""></image>
|
|
|
<view class="sbkh-xfzq" @click.stop="nav('/pages/index/xfqzq')">
|
|
|
-
|
|
|
+
|
|
|
</view>
|
|
|
<view class="sbkh-jfzq" @click="nav('/pages/index/bdzq')">
|
|
|
-
|
|
|
+
|
|
|
</view>
|
|
|
</view>
|
|
|
+ <!-- 魔方 -->
|
|
|
<!-- <view class="zq-wrap flex">
|
|
|
<view class="zq-item" @click="nav('/pages/index/xfqzq')">
|
|
|
<view class="zq-tit">
|
|
|
@@ -124,12 +125,29 @@
|
|
|
</view>
|
|
|
</view>
|
|
|
<uni-load-more :status="loadingType"></uni-load-more>
|
|
|
- </view>
|
|
|
|
|
|
+ </view>
|
|
|
+ <view class="page-btm" style="padding-top: 20rpx;">
|
|
|
+ ©2022 浙江易博网络科技有限公司 版权所有
|
|
|
+ </view>
|
|
|
+ <view class="page-btm" @click="gocx" style="padding-bottom: 10rpx;">
|
|
|
+ 浙ICP备2021013190号-9
|
|
|
+ </view>
|
|
|
</view>
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
+ import {
|
|
|
+ orderData,
|
|
|
+ getUserInfo
|
|
|
+ } from '@/api/user.js';
|
|
|
+ import {
|
|
|
+ saveUrl,
|
|
|
+ interceptor
|
|
|
+ } from '@/utils/loginUtils.js';
|
|
|
+ import {
|
|
|
+ isAndroid
|
|
|
+ } from '@/utils/platform.js'
|
|
|
import {
|
|
|
loadIndexs,
|
|
|
groom1,
|
|
|
@@ -145,12 +163,17 @@
|
|
|
export default {
|
|
|
data() {
|
|
|
return {
|
|
|
+
|
|
|
dataList: '',
|
|
|
carouselList: [], //轮播图列表
|
|
|
page: 1,
|
|
|
limit: 10,
|
|
|
list: [],
|
|
|
- loadingType: 'more'
|
|
|
+ loadingType: 'more',
|
|
|
+ // #ifdef H5
|
|
|
+ isAndroid: false,
|
|
|
+ // #endif
|
|
|
+
|
|
|
};
|
|
|
},
|
|
|
onLoad() {
|
|
|
@@ -159,6 +182,13 @@
|
|
|
},
|
|
|
onShow() {
|
|
|
console.log(this.$dsbridge, 'dsbridge+++++++++++++')
|
|
|
+ // #ifdef H5
|
|
|
+ this.isAndroid = isAndroid()
|
|
|
+ // #endif
|
|
|
+ // #ifdef APP-PLUS
|
|
|
+ this.isAndroid = true
|
|
|
+ // #endif
|
|
|
+ console.log(this.isAndroid,'this.isAndroid')
|
|
|
},
|
|
|
onHide() {
|
|
|
|
|
|
@@ -167,7 +197,7 @@
|
|
|
this.getProduct()
|
|
|
},
|
|
|
computed: {
|
|
|
- ...mapState('user', ['userInfo'])
|
|
|
+ ...mapState('user', ['userInfo', 'hasLogin'])
|
|
|
},
|
|
|
// 用户下拉刷新
|
|
|
async onPullDownRefresh() {
|
|
|
@@ -178,27 +208,33 @@
|
|
|
uni.stopPullDownRefresh()
|
|
|
},
|
|
|
methods: {
|
|
|
+ ...mapMutations('user', ['setUserInfo']),
|
|
|
openGg() {
|
|
|
- console.log(this.$dsbridge, 'this.$dsbridge')
|
|
|
- this.$dsbridge.call("fnAds.onShowRewardVideoAD", {}, function(result) {
|
|
|
- // alert(result);
|
|
|
- // 奖励状态返回
|
|
|
- // if(result.event)
|
|
|
- let res = JSON.parse(result)
|
|
|
- if (res.event == 'onReward') {
|
|
|
-
|
|
|
- advertisement({
|
|
|
- task: '1'
|
|
|
- }).then(e => {
|
|
|
- // alert('已观看')
|
|
|
- // alert('奖励已发放')
|
|
|
- // uni.showToast({
|
|
|
- // title:'奖励已发放',
|
|
|
- // duration:2000
|
|
|
- // });
|
|
|
- }).catch(err => {})
|
|
|
- }
|
|
|
- });
|
|
|
+ getUserInfo().then(({
|
|
|
+ data
|
|
|
+ }) => {
|
|
|
+ this.setUserInfo(data);
|
|
|
+ this.$dsbridge.call("fnAds.onShowRewardVideoAD", {}, function(result) {
|
|
|
+ // alert(result);
|
|
|
+ // 奖励状态返回
|
|
|
+ // if(result.event)
|
|
|
+ let res = JSON.parse(result)
|
|
|
+ if (res.event == 'onReward') {
|
|
|
+
|
|
|
+ advertisement({
|
|
|
+ task: '1'
|
|
|
+ }).then(e => {
|
|
|
+ // alert('已观看')
|
|
|
+ // alert('奖励已发放')
|
|
|
+ // uni.showToast({
|
|
|
+ // title:'奖励已发放',
|
|
|
+ // duration:2000
|
|
|
+ // });
|
|
|
+ }).catch(err => {})
|
|
|
+ }
|
|
|
+ });
|
|
|
+ })
|
|
|
+
|
|
|
},
|
|
|
goCp() {
|
|
|
window.location.href = 'http://web.mall.hqgjsmc.com/'
|
|
|
@@ -222,6 +258,7 @@
|
|
|
.catch(e => {});
|
|
|
},
|
|
|
nav(url) {
|
|
|
+
|
|
|
uni.navigateTo({
|
|
|
url,
|
|
|
fail() {
|
|
|
@@ -230,6 +267,8 @@
|
|
|
});
|
|
|
}
|
|
|
});
|
|
|
+
|
|
|
+
|
|
|
},
|
|
|
// 點擊搜索框
|
|
|
clickSearch() {
|
|
|
@@ -257,6 +296,9 @@
|
|
|
obj.loadingType = 'noMore'
|
|
|
}
|
|
|
})
|
|
|
+ },
|
|
|
+ gocx() {
|
|
|
+ window.location.href = 'https://www.miit.gov.cn/'
|
|
|
}
|
|
|
|
|
|
}
|
|
|
@@ -596,18 +638,58 @@
|
|
|
width: 750rpx;
|
|
|
height: 362rpx;
|
|
|
}
|
|
|
- .sbkh-xfzq ,.sbkh-jfzq{
|
|
|
+
|
|
|
+ .sbkh-xfzq,
|
|
|
+ .sbkh-jfzq {
|
|
|
width: 340rpx;
|
|
|
height: 300rpx;
|
|
|
position: absolute;
|
|
|
}
|
|
|
+
|
|
|
.sbkh-xfzq {
|
|
|
top: 40rpx;
|
|
|
left: 27rpx;
|
|
|
}
|
|
|
+
|
|
|
.sbkh-jfzq {
|
|
|
top: 40rpx;
|
|
|
right: 27rpx;
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
+ .mf-wrap {
|
|
|
+ .mf {
|
|
|
+ transform-style: prserve-3d;
|
|
|
+ perspective: 500;
|
|
|
+ position: relative;
|
|
|
+ height: 200rpx;
|
|
|
+ width: 200rpx;
|
|
|
+ background-color: #bfa;
|
|
|
+ }
|
|
|
+
|
|
|
+ image {
|
|
|
+ position: absolute;
|
|
|
+ width: 100rpx;
|
|
|
+ height: 100rpx;
|
|
|
+ }
|
|
|
+
|
|
|
+ .top {
|
|
|
+ transform: rotateX(90deg);
|
|
|
+ transform-origin: 0 0;
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
+ .bottom {
|
|
|
+ transform: rotateX(90deg);
|
|
|
+ transform-origin: 0 100%;
|
|
|
+ }
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
+ .page-btm {
|
|
|
+ background-color: #f5f5f5;
|
|
|
+ font-size: 20rpx;
|
|
|
+ text-align: center;
|
|
|
+ color: #d6d6d8;
|
|
|
+ }
|
|
|
</style>
|