Commit 7f3ea8df authored by mengcuiguang's avatar mengcuiguang

优化tab组件

parent b2ff7ce5
......@@ -151,7 +151,8 @@
"usingComponents" : true,
"uniStatistics" : {
"enable" : false
}
},
"appid" : "2021004129666486"
},
"mp-baidu" : {
"usingComponents" : true,
......
......@@ -147,7 +147,7 @@ export default {
Object.assign(header, {
// token: app.globalData.token,
token: 'AC8FA7EB65C3074472378362124462E70E762CAB0EAD1C6EABB742EB893A61C05F433703067DF5142735505C42F58997',
token: '2EC2B65B461AFEAB9B9CD8B656432756483D433C42E9B84882577C78642C25CF5F433703067DF5142735505C42F58997',
pkgName: app.globalData.pkgName
})
......
......@@ -8,30 +8,17 @@
}
},
"pages": [
// #ifndef APP-PLUS
// // #ifndef APP-PLUS
// {
// "path": "pages/loading",
// "style": {
// "navigationStyle": "custom",
// "navigationBarBackgroundColor": "#2196f3",
// "navigationBarTextStyle": "black" //用于配置状态栏的字体颜色
// }
// },
// // #endif
{
// "path": "pages/loading",
// "style": {
// "navigationStyle": "custom",
// "navigationBarBackgroundColor": "#2196f3",
// "navigationBarTextStyle": "black" //用于配置状态栏的字体颜色
// }
"path": "pagesC/scan/result",
"style": {
"navigationStyle": "custom",
"navigationBarBackgroundColor": "#2196f3",
"navigationBarTextStyle": "black" //用于配置状态栏的字体颜色
}
},
// #endif
{
"path": "pages/home",
"style": {
"navigationStyle": "custom",
"navigationBarBackgroundColor": "#2196f3",
"navigationBarTextStyle": "black"
}
}, {
"path": "pages/index/index",
"style": {
"navigationStyle": "custom",
......@@ -108,7 +95,7 @@
"network": "all", //在指定网络下预下载,可选值为:all(不限网络)、wifi(仅wifi下预下载)
"packages": ["pagesA"] //进入页面后预下载分包
},
"pages/recommend/recommend": {
"pages/doc/doc": {
"network": "all", //在指定网络下预下载,可选值为:all(不限网络)、wifi(仅wifi下预下载)
"packages": ["pagesC"] //进入页面后预下载分包
},
......@@ -124,6 +111,32 @@
"bounce": "none",
"scrollIndicator": "none"
}
},
"tabBar": {
"color": "#999",
"selectedColor": "#F8425A",
"borderStyle": "black",
"backgroundColor": "#ffffff",
"height": "50px",
"fontSize": "16px",
"iconWidth": "24px",
"spacing": "3px",
"list": [{
"pagePath": "pages/index/index",
"iconPath": "static/tab/index_unselected.png",
"selectedIconPath": "static/tab/index_selected.png",
"text": "首页"
}, {
"pagePath": "pages/doc/doc",
"iconPath": "static/tab/promote_unselected.png",
"selectedIconPath": "static/tab/promote_selected.png",
"text": "文档"
}, {
"pagePath": "pages/my/my",
"iconPath": "static/tab/my_unselected.png",
"selectedIconPath": "static/tab/my_selected.png",
"text": "我的"
}]
},
"condition": { //模式配置,仅开发期间生效
"current": 0, //当前激活的模式(list 的索引项)
......
......@@ -93,8 +93,7 @@
},
onLoad(e) {},
methods: {
hide() {},
show() {
onShow() {
},
queryList(page, size) {
......
......@@ -59,20 +59,8 @@
};
},
methods: {
show() {
// 轮播图
this.post({
url: '/vedio/topTabs',
showLoading: false,
success: ({
data
}) => {
// this.bannerList = data.list;
}
});
},
hide() {
onShow() {
}
}
......
......@@ -3,19 +3,13 @@
<view class="logo">
<image src="@/static/logo-about.png" mode="widthFix" style="border-radius: 20rpx;margin-bottom: 200rpx;" />
<view class="animation">
<text style="animation-delay: 0s;color: black;"></text>
<text style="animation-delay: 0.1s;color: black;"> </text>
<text style="animation-delay: 0.2s;color: black;"> </text>
<text style="animation-delay: 0.3s;color: black;"></text>
<text style="animation-delay: 0.4s;color: black;"> </text>
<text style="animation-delay: 0.4s;color: black;"> </text>
<text style="animation-delay: 0.5s;color: black;"></text>
<text style="animation-delay: 0.6s;color: black;"> </text>
<text style="animation-delay: 0.7s;color: black;"> </text>
<text style="animation-delay: 0.8s;color: black;"></text>
<text style="animation-delay: 0.9s;color: black;"> </text>
<text style="animation-delay: 1s;color: black;"> </text>
<text style="animation-delay: 1.1s;color: black;"></text>
<text style="animation-delay: 0s;color: black;"></text>
<text style="animation-delay: 0.1s;color: black;"></text>
<text style="animation-delay: 0.2s;color: black;"></text>
<text style="animation-delay: 0.3s;color: black;"></text>
<text style="animation-delay: 0.4s;color: black;">M</text>
<text style="animation-delay: 0.4s;color: black;">A</text>
<text style="animation-delay: 0.5s;color: black;">X</text>
</view>
<view style="color: black;margin-top: 40rpx;font-size: 40rpx;">欢迎使用</view>
</view>
......
......@@ -36,10 +36,6 @@
</view>
<view class="infobg" style="margin: 20rpx;">
<!-- <view class="item arrow" @click="handleWatchRecord">
观看记录
<view class="item_bd ellipsis" style="margin-left: 58rpx;"></view>
</view> -->
<view class="item arrow" @click="handlePayRecord">
我的订单
<view class="item_bd ellipsis" style="margin-left: 58rpx;"></view>
......@@ -86,8 +82,7 @@
};
},
methods: {
show() {
// loadData() {
onShow() {
this.post({
url: '/user/baseMsg',
showLoading: false,
......@@ -98,12 +93,6 @@
}
});
},
hide() {
},
handleWatchRecord() {
navigateTo(`/pagesD/watchRecord/watchRecord`)
},
handlePayRecord() {
// navigateTo(`/pagesD/payRecord/payRecord`)
navigateTo(`/pagesC/scan/scan`)
......@@ -112,30 +101,15 @@
navigateTo(`/pagesA/vipPay/vipPay`)
},
handlePhone() {
let that = this
// 联系我们
this.post({
url: '/app/customerServiceNumbers',
showLoading: false,
success: ({
data
}) => {
let datas = data.customerServiceNumbers.split(',')
let corpid = datas[0]
let curl = datas[1]
wx.openCustomerServiceChat({
extInfo: {
url: curl
},
corpId: corpid,
success(res) {},
fail(e) {
console.log(e)
}
})
}
});
wx.makePhoneCall({
phoneNumber: '4000969950',
success: function(res) {
console.log('拨打电话成功!');
},
fail: function(res) {
console.log('拨打电话失败!');
}
})
}
}
};
......
scan/static/logo-about.png

5.94 KB | W: | H:

scan/static/logo-about.png

9.49 KB | W: | H:

scan/static/logo-about.png
scan/static/logo-about.png
scan/static/logo-about.png
scan/static/logo-about.png
  • 2-up
  • Swipe
  • Onion skin
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