# Component interface

Name Function explaination
Product Detail Users click on the relevant products, jump to the Mini Store product details page
Shopping bags shoppingCart Control users Skip to Mini Store Shopping Bag page
Order list Order List Control the user jump to the Mini Store order list page, default activation of the "all" tab, display all order data, can be set to activate the "to pay," "to receive" and "refund."/After-sales” label
Order Details order Detail Control the user to jump to the Mini Store order details page
After-sales single details refundDetail Control the user to jump to the details page of the Mini Store

All of the above are listed below. How to Skip to a Different Page

# I. Product Details Component

# (Note: To use this component, you need to introduce the widget component in the project first)


Component explaination: Users click on the shelf of the Mini Program goods, will be in accordance with the developer's settings, jump to the corresponding Mini Store merchandise details page.

const productId = [Goods id ] // Fill in specific product Id

    wx.navigateTo({

              url: 'plugin-private://wx34345ae5855f892d/pages/productDetail/productDetail?productId=${productId}',

     })

The sample renderings are as follows:

# Custom Shop/Home on


Because of the Mini Store product details page, there are jump to the shop and the on home page, components provide a custom jump way.

Add the following code to the apagejs of the Mini Program

const miniShopPlugin = requirePlugin('mini-shop-plugin')

miniShopPlugin.initHomePath('your home page path')   //  Like '/pages/index/index'

# Shopping bag components

# (Note: To use this component, you need to introduce the widget component in the project first)


Component explaination: The user clicks the shopping bag, will according to the developer's setting, will jump to the corresponding Mini Store shopping bag page.

 wx.navigateTo({

          url: 'plugin-private://wx34345ae5855f892d/pages/shoppingCart/shoppingCart',

})

The sample renderings are as follows:

# Third, the order list component

# (Note: To use this component, you need to introduce the widget component in the project first)


Component Dxplaination: Users click on the order list page, will follow the developer's settings, jump to the Mini Store orders list page.

// Jump to the order page, activate the "All" tab by default, show all order data

     wx.navigateTo({

       url: 'plugin-private://wx34345ae5855f892d/pages/OrderList/OrderList',

     })



// Jump to the order page and activate the Pending tab

    const tabId = 'pendingPay'

     wx.navigateTo({

       url: `plugin-private://wx34345ae5855f892d/pages/OrderList/orderList?tabId=${tabId}`,

     })

Order list: The tabId valid value is as follows:

Pass value label data
pendingPay Outstanding Pending orders
pendingRecevied Pending receipt Awaiting shipment/Orders awaiting receipt
afterSale to refund/After-sales All sales orders

The sample renderings are as follows:


# IV. Order Details Component

# (Note: To use this component, you need to introduce the widget component in the project first)


Component Dxplaination: When the user clicks on the order details, the user will follow the developer's settings, jump to the corresponding Mini Store merchandise order details pages.
const orderId = [Order Id] // Corresponding Order Id

    wx.navigateTo({

       url: `plugin-private://wx34345ae5855f892d/pages/orderDetail/orderDetail?orderId=${orderId}`,

    })

The sample renderings are as follows:

" height = "812" align=center />

# Five, the details of the after-sales single component

# (Note: To use this component, you need to introduce the widget component in the project first)


Component Dxplaination: User click on the after-sales, will be set in accordance with the developer, jump to the corresponding Mini Store product after-sales page.
const orderId = [Sales Order Id] // Sales Order Id

        wx.navigateTo({

          url: `plugin-private://wx34345ae5855f892d/pages/refundDetail/refundDetail?orderId=${orderId}`,

        })

The sample renderings are as follows:

" height = "812" align=center />