Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas_plus
/
business-assistant
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 9cd3ff6c
authored
Nov 30, 2022
by
luyt
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
faet:联调申请业务完成
1 parent
a72974f6
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
15 additions
and
7 deletions
packagesList/apply/pages/apply.js
packagesList/applyProd/pages/apply.js
packagesList/applyProd/pages/apply.scss
packagesList/applyProd/pages/apply.wxml
packagesList/apply/pages/apply.js
View file @
9cd3ff6
...
...
@@ -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
(()
=>
{
...
...
packagesList/applyProd/pages/apply.js
View file @
9cd3ff6
...
...
@@ -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
})
...
...
packagesList/applyProd/pages/apply.scss
View file @
9cd3ff6
...
...
@@ -282,3 +282,7 @@ page {
}
}
.list-sheet-wrap
{
max-height
:
60vh
;
overflow-y
:
auto
;
}
packagesList/applyProd/pages/apply.wxml
View file @
9cd3ff6
...
...
@@ -16,7 +16,7 @@
您的产品名称
<text class="point">*</text>
</view>
<input class="inp" placeholder-class="inp-placeholder" model:value="{{prodName}}" maxlength="{{
3
0}}" placeholder="请输入产品名称" />
<input class="inp" placeholder-class="inp-placeholder" model:value="{{prodName}}" maxlength="{{
1
0}}" 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
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment