Commit a72974f6 by luyt

feat:产品申请调整

1 parent 301ecb78
...@@ -125,18 +125,23 @@ Page({ ...@@ -125,18 +125,23 @@ Page({
* 生命周期函数--监听页面加载 * 生命周期函数--监听页面加载
*/ */
onLoad(options) { onLoad(options) {
this.getMerchantListFn()
}, },
onRoute(params) { onRoute(params) {
// console.log('params: ', params.scene) // console.log('params: ', params.scene)
this.setData({ this.setData({
scene:params.scene scene:params.scene
}) })
this.getMerchantListFn()
}, },
//获取门店 //获取门店
async getMerchantListFn(){ async getMerchantListFn(){
let {scene} = this.data let {scene} = this.data
let params = {scene} let userInfo = wx.$storage.get('userInfo')
let params = {
scene,
serviceMerchantId:userInfo.merchantId
}
let {code,data} = await getMerchantListApi(params) let {code,data} = await getMerchantListApi(params)
if(code== 0 && data.length != 0){ if(code== 0 && data.length != 0){
data = data.map(item=>item.name = item.merchantName ) data = data.map(item=>item.name = item.merchantName )
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!