Commit 9cd3ff6c by luyt

faet:联调申请业务完成

1 parent a72974f6
......@@ -68,7 +68,7 @@ Page({
// 提交信息
applyFn() {
let { name } = this.data.carObj
console.log('name: ', name)
// console.log('name: ', name)
if (!name) {
wx.pro.showToast({
title: '请输入开店名称',
......@@ -103,7 +103,7 @@ Page({
applyApi
.merchantApply(params)
.then(result => {
console.log(result)
// console.log(result)
if (result) {
wx.$api.showToast('申请成功')
setTimeout(() => {
......
......@@ -88,7 +88,7 @@ Page({
coProduct:prodName
}
let res = await addCoProductApi(params)
let {code} = await addCoProductApi(params)
// console.log('res: ', res);
if(code == 0){
wx.$api.showToast('申请成功')
......@@ -139,12 +139,16 @@ Page({
let {scene} = this.data
let userInfo = wx.$storage.get('userInfo')
let params = {
scene,
// scene,
serviceMerchantId:userInfo.merchantId
}
let {code,data} = await getMerchantListApi(params)
if(code== 0 && data.length != 0){
data = data.map(item=>item.name = item.merchantName )
data = data.map(item=>{
item.name = item.merchantName
return item
} )
// console.log('data: ', data);
this.setData({
actions:data
})
......
......@@ -282,3 +282,7 @@ page {
}
}
.list-sheet-wrap{
max-height: 60vh;
overflow-y: auto;
}
......@@ -16,7 +16,7 @@
您的产品名称
<text class="point">*</text>
</view>
<input class="inp" placeholder-class="inp-placeholder" model:value="{{prodName}}" maxlength="{{30}}" placeholder="请输入产品名称" />
<input class="inp" placeholder-class="inp-placeholder" model:value="{{prodName}}" maxlength="{{10}}" placeholder="请输入产品名称" />
</view>
<view class="inp-wrap">
<!-- <view class="title" hover-class="none" hover-stop-propagation="false">
......@@ -40,5 +40,5 @@
<button class="btn" bindtap="applyFn">申请合作产品</button>
</view>
<view>
<van-action-sheet show="{{ storeShow }}" cancel-text="取消" actions="{{ actions }}" bind:cancel="onStoreClose" bind:close="onStoreClose" bind:select="onStoreSelect" />
<van-action-sheet show="{{ storeShow }}" cancel-text="取消" actions="{{ actions }}" list-class="list-sheet-wrap" bind:cancel="onStoreClose" bind:close="onStoreClose" bind:select="onStoreSelect" />
</view>
\ No newline at end of file
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!