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 9512fd1a
authored
Oct 28, 2022
by
胡悦
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'v2.10.5' of
http://192.168.3.233:8090/saas/mini-program/ai-card
into v2.10.5
2 parents
1714dda7
7c7b71a3
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 @
9512fd1
<!--
components/CooperationApply/CooperationApply.wxml
-->
<!--
components/CooperationApply/CooperationApply.wxml
-->
<view>
<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>
<view class="tab-top">
<view wx:for="{{tabData}}" wx:key="index" class="tab-title {{item.value == tabIndex ? 'tab-title-active' : ''}}" bindtap="selectTab" data-index="{{item.value}}">
{{item.name}}
</view>
</view>
<form>
<view class="apply-info">
<view class='info-list'>
<text class="info-lable">门店名称<text class="require"> *</text></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>
</view>
<view class='info-list'>
<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 class="apply-info">
<view class='info-list'>
<text class="info-lable">
门店名称
<text class="require">*</text>
</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>
</view>
</form>
</view>
<view class='info-list'>
<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
pages/activityApplication/activityApplication.js
View file @
9512fd1
...
...
@@ -49,7 +49,7 @@ Page({
{
nameZh
:
"其他"
,
isSelect
:
false
,
}
}
,
],
scene2
:
[
{
...
...
@@ -63,7 +63,7 @@ Page({
{
nameZh
:
"其他"
,
isSelect
:
false
,
}
}
,
],
scene3
:
[
{
...
...
@@ -85,7 +85,7 @@ Page({
{
nameZh
:
"其他"
,
isSelect
:
false
,
}
}
,
],
scene4
:
[
{
...
...
@@ -131,7 +131,7 @@ Page({
{
nameZh
:
"其他"
,
isSelect
:
false
,
}
}
,
],
},
selectItemIndex
:
0
,
...
...
@@ -178,7 +178,7 @@ Page({
if
(
!
selectFlag
)
{
wx
.
showToast
({
title
:
"请至少选择一个产品"
,
icon
:
'none'
,
icon
:
"none"
,
});
wx
.
hideLoading
();
return
;
...
...
@@ -190,7 +190,9 @@ Page({
params
.
productItems
=
productItems
.
join
(
","
);
}
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
.
unionId
=
wx
.
$util
.
getStorageSync
(
"aicard_info"
).
unionId
;
console
.
log
(
params
);
...
...
@@ -205,7 +207,7 @@ Page({
wx
.
hideLoading
();
wx
.
showToast
({
title
:
message
,
icon
:
'none'
,
icon
:
"none"
,
});
}
});
...
...
@@ -221,10 +223,10 @@ Page({
// 跳转产品详情页
goPage
(
e
)
{
let
actNum
=
e
.
currentTarget
.
dataset
.
item
.
actNum
let
activeNavIdx
=
e
.
currentTarget
.
dataset
.
item
.
activeNavIdx
console
.
log
(
actNum
,
activeNavIdx
,
'000'
);
wx
.
$router
.
go
(
'scene'
,{
actNum
,
activeNavIdx
});
let
actNum
=
e
.
currentTarget
.
dataset
.
item
.
actNum
;
let
activeNavIdx
=
e
.
currentTarget
.
dataset
.
item
.
activeNavIdx
;
console
.
log
(
actNum
,
activeNavIdx
,
"000"
);
wx
.
$router
.
go
(
"scene"
,
{
actNum
,
activeNavIdx
});
},
// 展开收起
...
...
@@ -271,8 +273,6 @@ Page({
* 生命周期函数--监听页面加载
*/
onLoad
(
options
)
{
// 初始化验证规则函数
this
.
initValidate
();
// 禁用分享转发
wx
.
hideShareMenu
({
menus
:
[
"shareAppMessage"
,
"shareTimeline"
],
...
...
pages/activityApplication/activityApplication.wxml
View file @
9512fd1
...
...
@@ -7,7 +7,7 @@
<!-- 产品选择tab -->
<view class="product-tab-box">
<!-- 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-title {{item.id == selectItemIndex ? 'product-item-title-active' : ''}}">
{{item.title}}
...
...
@@ -47,7 +47,7 @@
<!-- 业务场景 -->
<view class="fold-title">业务场景</view>
<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':''}}">
<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':''}}">
...
...
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