Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
mini-program
/
ai-card
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 07da405d
authored
Oct 28, 2022
by
前端
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
报错解决
1 parent
dd010a0c
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
49 additions
and
38 deletions
components/CooperationApply/CooperationApply.wxml
pages/activityApplication/activityApplication.js
pages/activityApplication/activityApplication.wxml
components/CooperationApply/CooperationApply.wxml
View file @
07da405
<!--
components/CooperationApply/CooperationApply.wxml
-->
<!--
components/CooperationApply/CooperationApply.wxml
-->
<view>
<view>
<view class="tab-top">
<view class="tab-top">
<view wx:for="{{tabData}}" class="tab-title {{item.value == tabIndex ? 'tab-title-active' : ''}}" bindtap="selectTab" data-index="{{item.value}}">{{item.name}}</view>
<view wx:for="{{tabData}}" wx:key="index" class="tab-title {{item.value == tabIndex ? 'tab-title-active' : ''}}" bindtap="selectTab" data-index="{{item.value}}">
</view>
{{item.name}}
</view>
</view>
<form>
<form>
<view class="apply-info">
<view class="apply-info">
<view class='info-list'>
<view class='info-list'>
<text class="info-lable">门店名称<text class="require"> *</text></text>
<text class="info-lable">
<input name="applyName" type='text' placeholder-style='font-size:28rpx;color: #9E9EA8;' placeholder='请输入门店名称' value="{{applyForm.merchantName}}" bindinput="handleInput" data-name="merchantName" maxlength="30"></input>
门店名称
</view>
<text class="require">*</text>
<view class='info-list'>
</text>
<text class="info-lable">{{tabIndex == 0 ? '主营品牌' : '合作品牌'}}</text>
<input name="applyName" type='text' placeholder-style='font-size:28rpx;color: #9E9EA8;' placeholder='请输入门店名称' value="{{applyForm.merchantName}}" bindinput="handleInput" data-name="merchantName" maxlength="30"></input>
<input name="telphone" type='text' placeholder-style='font-size:28rpx;color: #9E9EA8;' placeholder='请输入主营车型' value="{{applyForm.carModel}}" bindinput="handleInput" data-name="carModel" maxlength="30"></input>
</view>
<view class='info-list'>
<text class="info-lable">联系人<text class="require"> *</text></text>
<input name="bussinessName" type='text' placeholder-style='font-size:28rpx;color: #9E9EA8;' placeholder='请输入姓名' value="{{applyForm.contactName}}" bindinput="handleInput" data-name="contactName" maxlength="30"></input>
</view>
<view class='info-list'>
<text class="info-lable">手机号<text class="require"> *</text></text>
<input name="bussinessName" type='text' placeholder-style='font-size:28rpx;color: #9E9EA8;' placeholder='请输入手机号' value="{{applyForm.contactPhone}}" bindinput="handleInput" data-name="contactPhone"></input>
</view>
</view>
</view>
</form>
<view class='info-list'>
</view>
<text class="info-lable">{{tabIndex == 0 ? '主营品牌' : '合作品牌'}}</text>
<input name="telphone" type='text' placeholder-style='font-size:28rpx;color: #9E9EA8;' placeholder='请输入主营车型' value="{{applyForm.carModel}}" bindinput="handleInput" data-name="carModel" maxlength="30"></input>
</view>
<view class='info-list'>
<text class="info-lable">
联系人
<text class="require">*</text>
</text>
<input name="bussinessName" type='text' placeholder-style='font-size:28rpx;color: #9E9EA8;' placeholder='请输入姓名' value="{{applyForm.contactName}}" bindinput="handleInput" data-name="contactName" maxlength="30"></input>
</view>
<view class='info-list'>
<text class="info-lable">
手机号
<text class="require">*</text>
</text>
<input name="bussinessName" type='text' placeholder-style='font-size:28rpx;color: #9E9EA8;' placeholder='请输入手机号' value="{{applyForm.contactPhone}}" bindinput="handleInput" data-name="contactPhone"></input>
</view>
</view>
</form>
</view>
\ No newline at end of file
\ No newline at end of file
pages/activityApplication/activityApplication.js
View file @
07da405
...
@@ -49,7 +49,7 @@ Page({
...
@@ -49,7 +49,7 @@ Page({
{
{
nameZh
:
"其他"
,
nameZh
:
"其他"
,
isSelect
:
false
,
isSelect
:
false
,
}
}
,
],
],
scene2
:
[
scene2
:
[
{
{
...
@@ -63,7 +63,7 @@ Page({
...
@@ -63,7 +63,7 @@ Page({
{
{
nameZh
:
"其他"
,
nameZh
:
"其他"
,
isSelect
:
false
,
isSelect
:
false
,
}
}
,
],
],
scene3
:
[
scene3
:
[
{
{
...
@@ -85,7 +85,7 @@ Page({
...
@@ -85,7 +85,7 @@ Page({
{
{
nameZh
:
"其他"
,
nameZh
:
"其他"
,
isSelect
:
false
,
isSelect
:
false
,
}
}
,
],
],
scene4
:
[
scene4
:
[
{
{
...
@@ -131,7 +131,7 @@ Page({
...
@@ -131,7 +131,7 @@ Page({
{
{
nameZh
:
"其他"
,
nameZh
:
"其他"
,
isSelect
:
false
,
isSelect
:
false
,
}
}
,
],
],
},
},
selectItemIndex
:
0
,
selectItemIndex
:
0
,
...
@@ -178,7 +178,7 @@ Page({
...
@@ -178,7 +178,7 @@ Page({
if
(
!
selectFlag
)
{
if
(
!
selectFlag
)
{
wx
.
showToast
({
wx
.
showToast
({
title
:
"请至少选择一个产品"
,
title
:
"请至少选择一个产品"
,
icon
:
'none'
,
icon
:
"none"
,
});
});
wx
.
hideLoading
();
wx
.
hideLoading
();
return
;
return
;
...
@@ -190,7 +190,9 @@ Page({
...
@@ -190,7 +190,9 @@ Page({
params
.
productItems
=
productItems
.
join
(
","
);
params
.
productItems
=
productItems
.
join
(
","
);
}
}
params
.
cardId
=
wx
.
$util
.
getStorageSync
(
"scene"
).
cardId
;
params
.
cardId
=
wx
.
$util
.
getStorageSync
(
"scene"
).
cardId
;
params
.
merchant
=
wx
.
$util
.
getStorageSync
(
"scene"
).
merchant
||
wx
.
$util
.
getStorageSync
(
"scene"
).
merchantId
;
params
.
merchant
=
wx
.
$util
.
getStorageSync
(
"scene"
).
merchant
||
wx
.
$util
.
getStorageSync
(
"scene"
).
merchantId
;
params
.
openId
=
wx
.
$util
.
getStorageSync
(
"aicard_info"
).
openId
;
params
.
openId
=
wx
.
$util
.
getStorageSync
(
"aicard_info"
).
openId
;
params
.
unionId
=
wx
.
$util
.
getStorageSync
(
"aicard_info"
).
unionId
;
params
.
unionId
=
wx
.
$util
.
getStorageSync
(
"aicard_info"
).
unionId
;
console
.
log
(
params
);
console
.
log
(
params
);
...
@@ -205,7 +207,7 @@ Page({
...
@@ -205,7 +207,7 @@ Page({
wx
.
hideLoading
();
wx
.
hideLoading
();
wx
.
showToast
({
wx
.
showToast
({
title
:
message
,
title
:
message
,
icon
:
'none'
,
icon
:
"none"
,
});
});
}
}
});
});
...
@@ -221,10 +223,10 @@ Page({
...
@@ -221,10 +223,10 @@ Page({
// 跳转产品详情页
// 跳转产品详情页
goPage
(
e
)
{
goPage
(
e
)
{
let
actNum
=
e
.
currentTarget
.
dataset
.
item
.
actNum
let
actNum
=
e
.
currentTarget
.
dataset
.
item
.
actNum
;
let
activeNavIdx
=
e
.
currentTarget
.
dataset
.
item
.
activeNavIdx
let
activeNavIdx
=
e
.
currentTarget
.
dataset
.
item
.
activeNavIdx
;
console
.
log
(
actNum
,
activeNavIdx
,
'000'
);
console
.
log
(
actNum
,
activeNavIdx
,
"000"
);
wx
.
$router
.
go
(
'scene'
,{
actNum
,
activeNavIdx
});
wx
.
$router
.
go
(
"scene"
,
{
actNum
,
activeNavIdx
});
},
},
// 展开收起
// 展开收起
...
@@ -271,8 +273,6 @@ Page({
...
@@ -271,8 +273,6 @@ Page({
* 生命周期函数--监听页面加载
* 生命周期函数--监听页面加载
*/
*/
onLoad
(
options
)
{
onLoad
(
options
)
{
// 初始化验证规则函数
this
.
initValidate
();
// 禁用分享转发
// 禁用分享转发
wx
.
hideShareMenu
({
wx
.
hideShareMenu
({
menus
:
[
"shareAppMessage"
,
"shareTimeline"
],
menus
:
[
"shareAppMessage"
,
"shareTimeline"
],
...
...
pages/activityApplication/activityApplication.wxml
View file @
07da405
...
@@ -7,7 +7,7 @@
...
@@ -7,7 +7,7 @@
<!-- 产品选择tab -->
<!-- 产品选择tab -->
<view class="product-tab-box">
<view class="product-tab-box">
<!-- tab栏 -->
<!-- tab栏 -->
<block wx:for="{{productTabList}}">
<block wx:for="{{productTabList}}"
wx:key="index"
>
<view class="product-item {{item.id == selectItemIndex ? 'product-item-active' : ''}}" bindtap="selectProduct" data-item="{{item}}">
<view class="product-item {{item.id == selectItemIndex ? 'product-item-active' : ''}}" bindtap="selectProduct" data-item="{{item}}">
<view class="product-item-title {{item.id == selectItemIndex ? 'product-item-title-active' : ''}}">
<view class="product-item-title {{item.id == selectItemIndex ? 'product-item-title-active' : ''}}">
{{item.title}}
{{item.title}}
...
@@ -47,7 +47,7 @@
...
@@ -47,7 +47,7 @@
<!-- 业务场景 -->
<!-- 业务场景 -->
<view class="fold-title">业务场景</view>
<view class="fold-title">业务场景</view>
<view class="product-tab-box fold-box">
<view class="product-tab-box fold-box">
<view wx:for="{{productTabList}}" class="item-wrap {{item.id == sceneNum ? 'act':''}}" bindtap="selectScene" data-item="{{item}}">
<view wx:for="{{productTabList}}"
wx:key="index"
class="item-wrap {{item.id == sceneNum ? 'act':''}}" bindtap="selectScene" data-item="{{item}}">
<view class="fold-scene-item {{item.id == sceneNum ? 'fold-scene-item-active':''}}">
<view class="fold-scene-item {{item.id == sceneNum ? 'fold-scene-item-active':''}}">
<image class="fold-img" mode="widthFix" webp src="{{IMGURL}}application/{{item.url}}.png?v={{img_version}}"></image>
<image class="fold-img" mode="widthFix" webp src="{{IMGURL}}application/{{item.url}}.png?v={{img_version}}"></image>
<view class="product-item-title {{item.id == sceneNum ? 'product-item-title-active':''}}">
<view class="product-item-title {{item.id == sceneNum ? 'product-item-title-active':''}}">
...
...
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