@@ -23,7 +23,8 @@
"pages/h5/h5",
"pages/goods/goods",
"pages/messageDetail/messageDetail",
- "pages/myNews/myNews"
+ "pages/myNews/myNews",
+ "pages/businessInfo/businessInfo"
],
"permission": {
"scope.userLocation": {
@@ -75,4 +76,4 @@
}
]
-}
+}
@@ -24,7 +24,7 @@ module.exports = {
this.refreshOrderList()
})
- }, 2000),
+ }, 1000),
async fetchOrderList() {
const that = this
const isRefresh = that.data.isRefresh
@@ -123,5 +123,10 @@ Page({
if (isRefresh) {
wx.stopPullDownRefresh()
+ },
+ jumpBusinessInfo() {
+ wx.navigateTo({
+ url: '/pages/businessInfo/businessInfo'
+ })
@@ -8,8 +8,29 @@
.user-info {
+ position: relative;
+ left: 0;
+ top: 0;
+ display: flex;
+ align-items: center;
+
+.btn-edit-wrap {
+ position: absolute;
+ right: 0;
display: flex;
+ justify-content: flex-end;
align-items: center;
+ z-index: 1;
+ width: 100rpx;
+ height: 100rpx;
+.btn-edit {
+ display: block;
+ width: 56rpx;
+ height: 56rpx;
.portrait {
@@ -8,6 +8,13 @@
<view class="name">{{shopInfo.user_nickname}}</view>
<view class="account">账号:{{shopInfo.user_phone}}</view>
</view>
+ <view
+ class="btn-edit-wrap"
+ bind:tap="jumpBusinessInfo">
+ <image
+ class="btn-edit"
+ src="../../image/common/edit.png"></image>
+ </view>
<view
@@ -0,0 +1,63 @@
+Page({
+ /**
+ * 页面的初始数据
+ */
+ data: {},
+ * 生命周期函数--监听页面加载
+ onLoad(options) {
+ * 生命周期函数--监听页面初次渲染完成
+ onReady() {
+ * 生命周期函数--监听页面显示
+ onShow() {
+ * 生命周期函数--监听页面隐藏
+ onHide() {
+ * 生命周期函数--监听页面卸载
+ onUnload() {
+ * 页面相关事件处理函数--监听用户下拉动作
+ onPullDownRefresh() {
+ * 页面上拉触底事件的处理函数
+ onReachBottom() {
+ * 用户点击右上角分享
+ onShareAppMessage() {
+ }
+})
@@ -0,0 +1,3 @@
+{
+ "usingComponents": {}
@@ -1,5 +1,5 @@
<view class="home-wrapper">
- <view class="app_page-header-search">
+ <view class="app_page-header-search" wx:if="{{false}}">
<view class="app_page-header-search-warp app_width-690">
<label for="header-search">
<image src="../../image/common/search@2x.png"></image>
@@ -34,7 +34,7 @@
.page-section {
width: 100%;
- margin: 22rpx auto 10rpx;
+ margin: 0 auto 10rpx;
.page-section swiper {