UI修改
This commit is contained in:
parent
35d4dbc55c
commit
f503390094
|
|
@ -50,6 +50,7 @@
|
|||
url: 'open_card',
|
||||
success(res) {
|
||||
// uni.setStorageSync('empty', res.data.userinfo.is_y_quota)
|
||||
console.log('aaaaaaaaaaaaaaaa');
|
||||
if (res.data.data.open_card == 1) {
|
||||
that.list = [{
|
||||
id: 1,
|
||||
|
|
@ -98,25 +99,25 @@
|
|||
},
|
||||
{
|
||||
id: 2,
|
||||
icon: '/static/tabbar/wuxian.png',
|
||||
actIcon: '/static/tabbar/wuxian_sel.png',
|
||||
title: '无限赏',
|
||||
path: '/pages/infinite/index'
|
||||
},
|
||||
{
|
||||
id: 3,
|
||||
icon: '/static/tabbar/shop.png',
|
||||
actIcon: '/static/tabbar/shop_sel.png',
|
||||
title: '商城',
|
||||
path: '/pages/shop/index'
|
||||
},
|
||||
{
|
||||
id: 4,
|
||||
id: 3,
|
||||
icon: '/static/tabbar/hegui.png',
|
||||
actIcon: '/static/tabbar/hegui_sel.png',
|
||||
title: '盒柜',
|
||||
path: '/pages/sangdai/sangdai'
|
||||
},
|
||||
{
|
||||
id: 4,
|
||||
icon: '/static/tabbar/wuxian.png',
|
||||
actIcon: '/static/tabbar/wuxian_sel.png',
|
||||
title: '无限赏',
|
||||
path: '/pages/infinite/index'
|
||||
},
|
||||
{
|
||||
id: 5,
|
||||
icon: '/static/tabbar/mine.png',
|
||||
|
|
|
|||
|
|
@ -3,37 +3,40 @@ Component({
|
|||
selected: 0,
|
||||
color: "#999999",
|
||||
selectedColor: "#FFFFFF",
|
||||
list: [
|
||||
{
|
||||
"pagePath": "/pages/shouye/index",
|
||||
"iconPath": "/static/tabbar/m1.png",
|
||||
"selectedIconPath": "/static/tabbar/s1.png",
|
||||
"text": ""
|
||||
},
|
||||
{
|
||||
"pagePath": "/pages/infinite/index",
|
||||
"iconPath": "/static/tabbar/m2.png",
|
||||
"selectedIconPath": "/static/tabbar/s2.png",
|
||||
"text": ""
|
||||
list: [{
|
||||
"index": 0,
|
||||
"pagePath": "/pages/shouye/index",
|
||||
"iconPath": "/static/tabbar/m1.png",
|
||||
"selectedIconPath": "/static/tabbar/s1.png",
|
||||
// "text": "抽赏"
|
||||
},
|
||||
{
|
||||
"index": 2,
|
||||
"pagePath": "/pages/mall/index",
|
||||
"iconPath": "/static/tabbar/m5.png",
|
||||
"selectedIconPath": "/static/tabbar/s5.png",
|
||||
"text": ""
|
||||
// "text": "商城"
|
||||
},
|
||||
{
|
||||
"pagePath": "/pages/sangdai/sangdai",
|
||||
"iconPath": "/static/tabbar/m3.png",
|
||||
"selectedIconPath": "/static/tabbar/s3.png",
|
||||
"text": ""
|
||||
"index": 3,
|
||||
"pagePath": "/pages/sangdai/sangdai",
|
||||
"iconPath": "/static/tabbar/m3.png",
|
||||
"selectedIconPath": "/static/tabbar/s3.png",
|
||||
// "text": "盒柜"
|
||||
},
|
||||
|
||||
{
|
||||
"pagePath": "/pages/user/index",
|
||||
"iconPath": "/static/tabbar/m4.png",
|
||||
"selectedIconPath": "/static/tabbar/s4.png",
|
||||
"text": ""
|
||||
"index": 1,
|
||||
"pagePath": "/pages/infinite/index",
|
||||
"iconPath": "/static/tabbar/m2.png",
|
||||
"selectedIconPath": "/static/tabbar/s2.png",
|
||||
// "text": "积分赏"
|
||||
},
|
||||
{
|
||||
"index": 4,
|
||||
"pagePath": "/pages/user/index",
|
||||
"iconPath": "/static/tabbar/m4.png",
|
||||
"selectedIconPath": "/static/tabbar/s4.png",
|
||||
// "text": "我的"
|
||||
}
|
||||
]
|
||||
},
|
||||
|
|
@ -42,8 +45,11 @@ Component({
|
|||
switchTab(e) {
|
||||
const data = e.currentTarget.dataset
|
||||
const url = data.path
|
||||
console.log(e,data,url)
|
||||
wx.switchTab({ url })
|
||||
console.log(e, data, url, data.index)
|
||||
wx.switchTab({
|
||||
url
|
||||
})
|
||||
// console.log('aaaaaaaa', this.selected, data.index);
|
||||
this.setData({
|
||||
selected: data.index
|
||||
})
|
||||
|
|
|
|||
|
|
@ -1,9 +1,10 @@
|
|||
<!--miniprogram/custom-tab-bar/index.wxml-->
|
||||
<view class="tab-bar">
|
||||
<view class="tab-bar-border"></view>
|
||||
<view wx:for="{{list}}" wx:key="index" class="tab-bar-item" data-path="{{item.pagePath}}" data-index="{{index}}" bindtap="switchTab"
|
||||
style="display: {{index === -1 ? 'none' : 'flex'}}">
|
||||
<image src="{{selected === index ? item.selectedIconPath : item.iconPath}}"></image>
|
||||
<view style="color: {{selected === index ? selectedColor : color}}">{{item.text}}</view>
|
||||
<view wx:for="{{list}}" wx:key="index" class="tab-bar-item" data-path="{{item.pagePath}}" data-index="{{item.index}}" bindtap="switchTab"
|
||||
style="display: {{item.index === -1 ? 'none' : 'flex'}}">
|
||||
<image src="{{selected === item.index ? item.selectedIconPath : item.iconPath}}"></image>
|
||||
<view style="color: {{selected === item.index ? selectedColor : color}}">{{item.text}}
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
|
|
|
|||
4
main.js
4
main.js
|
|
@ -213,10 +213,10 @@ Vue.prototype.onBridgeReady = function(data) {
|
|||
}
|
||||
// 测试
|
||||
|
||||
// const baseUrl = 'https://api.zpc-xy.com'
|
||||
const baseUrl = 'https://testbaji.onelight.vip'
|
||||
|
||||
// 正式
|
||||
const baseUrl = 'https://bajiapi.onelight.vip'
|
||||
// const baseUrl = 'https://bajiapi.onelight.vip'
|
||||
Vue.prototype.siteBaseUrl = baseUrl + '/api/'
|
||||
|
||||
Vue.prototype.$z_img2 = baseUrl + '/zcq/'
|
||||
|
|
|
|||
24
pages.json
24
pages.json
|
|
@ -404,19 +404,17 @@
|
|||
}
|
||||
},
|
||||
{
|
||||
"path" : "pages/shouye/ranking",
|
||||
"style" :
|
||||
{
|
||||
"path": "pages/shouye/ranking",
|
||||
"style": {
|
||||
"navigationBarTitleText": "",
|
||||
"enablePullDownRefresh": false,
|
||||
"navigationStyle": "custom"
|
||||
}
|
||||
},
|
||||
{
|
||||
"path" : "pages/user/bangdingweb",
|
||||
"style" :
|
||||
{
|
||||
"navigationBarTitleText" : "绑定手机号"
|
||||
"path": "pages/user/bangdingweb",
|
||||
"style": {
|
||||
"navigationBarTitleText": "绑定手机号"
|
||||
}
|
||||
}
|
||||
],
|
||||
|
|
@ -511,12 +509,6 @@
|
|||
"selectedIconPath": "static/tabbar/s1.png"
|
||||
// "text": "抽赏"
|
||||
},
|
||||
{
|
||||
"pagePath": "pages/infinite/index",
|
||||
"iconPath": "static/tabbar/m2.png",
|
||||
"selectedIconPath": "static/tabbar/s2.png"
|
||||
// "text": "积分赏"
|
||||
},
|
||||
{
|
||||
"pagePath": "pages/mall/index",
|
||||
"iconPath": "static/tabbar/m5.png",
|
||||
|
|
@ -529,6 +521,12 @@
|
|||
"selectedIconPath": "static/tabbar/s3.png"
|
||||
// "text": "盒柜"
|
||||
},
|
||||
{
|
||||
"pagePath": "pages/infinite/index",
|
||||
"iconPath": "static/tabbar/m2.png",
|
||||
"selectedIconPath": "static/tabbar/s2.png"
|
||||
// "text": "积分赏"
|
||||
},
|
||||
{
|
||||
"pagePath": "pages/user/index",
|
||||
"iconPath": "static/tabbar/m4.png",
|
||||
|
|
|
|||
|
|
@ -370,7 +370,7 @@
|
|||
</view>
|
||||
<view class="d-list">
|
||||
<view class="d-item">
|
||||
{{ previewData.shang_title }} {{ previewData.pro }}
|
||||
{{ previewData.shang_title }} 概率:{{ previewData.pro }}%
|
||||
</view>
|
||||
|
||||
<view class="d-item">产品类型:{{ optData.type_text }}</view>
|
||||
|
|
@ -685,7 +685,7 @@
|
|||
imgurl: a.imgurl,
|
||||
title: a.title,
|
||||
shang_title: item.shang_title,
|
||||
pro: item.pro
|
||||
pro: a.real_pro
|
||||
}
|
||||
|
||||
console.log(obj)
|
||||
|
|
|
|||
|
|
@ -36,7 +36,7 @@
|
|||
<!-- 推荐上新 -->
|
||||
<view class="flex yqhy" v-if="tuijian.length>0" style="margin-top: 60rpx; position: relative;">
|
||||
<image class="img100" style="position: absolute; display: flex; justify-content: center;"
|
||||
:src="$img1('/image/a6548-pw1cx.gif')"></image>
|
||||
:src="$img1('/image/a6548-pw1cx.webp')"></image>
|
||||
<view class=""
|
||||
style="position: absolute; width: 585rpx; height: 230rpx; margin-left: 85rpx; display: flex; flex-direction: row; align-items: center; justify-content: space-between;overflow: auto;">
|
||||
|
||||
|
|
@ -185,26 +185,26 @@
|
|||
id: 4,
|
||||
title: '吧唧赏'
|
||||
},
|
||||
// {
|
||||
// id: 1,
|
||||
// title: '一番赏'
|
||||
// },
|
||||
// {
|
||||
// id: 12,
|
||||
// title: '连击赏'
|
||||
// },
|
||||
// {
|
||||
// id: 6,
|
||||
// title: '全局赏'
|
||||
// },
|
||||
{
|
||||
id: 1,
|
||||
title: '一番赏'
|
||||
},
|
||||
{
|
||||
id: 12,
|
||||
title: '连击赏'
|
||||
},
|
||||
{
|
||||
id: 6,
|
||||
title: '全局赏'
|
||||
id: 2,
|
||||
title: '无限赏'
|
||||
},
|
||||
{
|
||||
id: 8,
|
||||
title: '领主赏',
|
||||
},
|
||||
// {
|
||||
// id: 2,
|
||||
// title: '小岚赏'
|
||||
// }
|
||||
{
|
||||
id: 3,
|
||||
title: '擂台赏'
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user