Commit f9d717ba by 李伟康

Merge branch 'develop' of http://192.168.3.233:8090/saas_plus/business-assistant into develop

2 parents e1b64306 2431f650
<view class="navigation-bar" id="navigation-bar" style="padding-top:{{statusBarHeight}}px;height:{{navigationBarHeight}}px;{{navStyle}}"> <view class="navigation-bar" id="navigation-bar" style="padding-top:{{statusBarHeight}}px;height:{{navigationBarHeight}}px;{{navStyle}}">
<block wx:if="{{!custom}}">
<view class="navigation-bar-box" wx:if="{{showNavBar}}" style="{{navigationBarStyle}}">
<block wx:if="{{SHOWBACK}}">
<view class="back" bindtap="back">
<image src="./images/icon-back.png"></image>
</view>
</block>
<view class="navigation-bar-titleText" style="{{navigationBarTextWidth}}">
<slot></slot>
</view>
</view>
</block>
<block wx:else>
<slot></slot>
</block>
</view>
\ No newline at end of file \ No newline at end of file
<block wx:if="{{!custom}}">
<view class="navigation-bar-box" wx:if="{{showNavBar}}" style="{{navigationBarStyle}}">
<block wx:if="{{SHOWBACK}}">
<view class="back " bindtap="back">
<image class="img" src="./images/icon-back.png" />
</view>
</block>
<view class="navigation-bar-titleText" style="{{navigationBarTextWidth}}">
<slot/>
</view>
</view>
</block>
<block wx:else>
<slot/>
</block>
</view>
/* components/navigationBar/navigationBar.wxss */ /* components/navigationBar/navigationBar.wxss */
.navigation-bar{ .navigation-bar {
position: fixed; position: fixed;
top: 0; top: 0;
left: 0; left: 0;
...@@ -8,16 +8,18 @@ ...@@ -8,16 +8,18 @@
background-color: #fff; background-color: #fff;
transition: all .15s; transition: all .15s;
} }
.navigation-bar-box{
.navigation-bar-box {
position: relative; position: relative;
height: 100%; height: 100%;
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
box-sizing: border-box; box-sizing: border-box;
} }
.navigation-bar-titleText{
.navigation-bar-titleText {
color: #333333; color: #333333;
overflow: hidden; overflow: hidden;
text-overflow: ellipsis; text-overflow: ellipsis;
...@@ -27,18 +29,29 @@ ...@@ -27,18 +29,29 @@
text-align: center; text-align: center;
letter-spacing: 1rpx; letter-spacing: 1rpx;
} }
.back-box{
.back-box {
width: 76rpx; width: 76rpx;
height: 100%; height: 100%;
position: absolute; position: absolute;
left: 0; left: 0;
top: 0; top: 0;
} }
.back{
.back {
position: absolute; position: absolute;
left: 44rpx; left: 0;
top: 50%; top: 50%;
transform: translateY(-50%); transform: translateY(-50%);
width: 100rpx;
/* height: 34rpx; */
height: 100%;
display: flex;
align-items: center;
justify-content: center;
}
.back .img {
width: 16rpx; width: 16rpx;
height: 34rpx; height: 34rpx;
} }
\ No newline at end of file \ No newline at end of file
...@@ -2,7 +2,6 @@ ...@@ -2,7 +2,6 @@
import outputApi from '~/api/outputApi/index' import outputApi from '~/api/outputApi/index'
import { IMG_URL } from '~/utils/constantData' import { IMG_URL } from '~/utils/constantData'
Page({ Page({
/** /**
* 页面的初始数据 * 页面的初始数据
*/ */
...@@ -60,7 +59,7 @@ Page({ ...@@ -60,7 +59,7 @@ Page({
setCurActivity() { setCurActivity() {
this.setData({ this.setData({
activityList: JSON.parse(JSON.stringify(this.data.sceneActivityObj['scene' + (this.data.sceneActive)])) activityList: JSON.parse(JSON.stringify(this.data.sceneActivityObj['scene' + this.data.sceneActive]))
}) })
}, },
...@@ -86,7 +85,8 @@ Page({ ...@@ -86,7 +85,8 @@ Page({
merchantId: this.data.merchantInfo.merchantId, merchantId: this.data.merchantInfo.merchantId,
merchantName: this.data.merchantInfo.merchantName, merchantName: this.data.merchantInfo.merchantName,
sceneCode: this.data.sceneCodeList[this.data.sceneActive - 1], sceneCode: this.data.sceneCodeList[this.data.sceneActive - 1],
productCodes: this.data.activityList.filter(item => item.checked == true).map(item => item.productCode) productCodes: this.data.activityList.filter(item => item.checked == true).map(item => item.productCode),
clueId: this.data.clueId
} }
if (!params.productCodes.length) { if (!params.productCodes.length) {
wx.$api.showToast('请选产品/活动') wx.$api.showToast('请选产品/活动')
...@@ -113,7 +113,8 @@ Page({ ...@@ -113,7 +113,8 @@ Page({
this.setData({ this.setData({
merchantInfo: obj.merchantInfo, merchantInfo: obj.merchantInfo,
sceneActive: obj.sceneActive, sceneActive: obj.sceneActive,
sceneCodeList: obj.sceneCodeList || ['SC001', 'SC002','SC003','SC004'] sceneCodeList: obj.sceneCodeList || ['SC001', 'SC002', 'SC003', 'SC004'],
clueId: obj.clueId
}) })
this.getSceneProStatus(this.data.sceneCodeList[this.data.sceneActive - 1]) this.getSceneProStatus(this.data.sceneCodeList[this.data.sceneActive - 1])
}) })
...@@ -122,49 +123,35 @@ Page({ ...@@ -122,49 +123,35 @@ Page({
/** /**
* 生命周期函数--监听页面初次渲染完成 * 生命周期函数--监听页面初次渲染完成
*/ */
onReady() { onReady() {},
},
/** /**
* 生命周期函数--监听页面显示 * 生命周期函数--监听页面显示
*/ */
onShow() { onShow() {},
},
/** /**
* 生命周期函数--监听页面隐藏 * 生命周期函数--监听页面隐藏
*/ */
onHide() { onHide() {},
},
/** /**
* 生命周期函数--监听页面卸载 * 生命周期函数--监听页面卸载
*/ */
onUnload() { onUnload() {},
},
/** /**
* 页面相关事件处理函数--监听用户下拉动作 * 页面相关事件处理函数--监听用户下拉动作
*/ */
onPullDownRefresh() { onPullDownRefresh() {},
},
/** /**
* 页面上拉触底事件的处理函数 * 页面上拉触底事件的处理函数
*/ */
onReachBottom() { onReachBottom() {},
},
/** /**
* 用户点击右上角分享 * 用户点击右上角分享
*/ */
onShareAppMessage() {
}
})
\ No newline at end of file \ No newline at end of file
onShareAppMessage() {}
})
...@@ -251,7 +251,7 @@ Page({ ...@@ -251,7 +251,7 @@ Page({
// 微信转发 // 微信转发
wechatFn() { wechatFn() {
// this.data.onShareAppMessage() // this.data.onShareAppMessage()
this.modelcloseFn(); // this.modelcloseFn();
}, },
// 下载海报 // 下载海报
async download() { async download() {
...@@ -348,7 +348,7 @@ Page({ ...@@ -348,7 +348,7 @@ Page({
}, },
}); });
} }
_this.modelcloseFn(); // _this.modelcloseFn();
wx.hideLoading() wx.hideLoading()
}, },
}); });
......
...@@ -29,7 +29,8 @@ const listObj = Object.freeze([ ...@@ -29,7 +29,8 @@ const listObj = Object.freeze([
placeholder: '请输入客户门店联系人手机号', placeholder: '请输入客户门店联系人手机号',
editLabel: '手机号', editLabel: '手机号',
maxLength: 11, maxLength: 11,
reg: '/[^d]/g,' reg: '/[^d]/g,',
type: 'number'
}, },
{ {
key: 'mainBrand', key: 'mainBrand',
...@@ -45,7 +46,8 @@ const listObj = Object.freeze([ ...@@ -45,7 +46,8 @@ const listObj = Object.freeze([
placeholder: '请输入客户门店新车月平均销售数', placeholder: '请输入客户门店新车月平均销售数',
editLabel: '新车销量', editLabel: '新车销量',
maxLength: 5, maxLength: 5,
reg: '/[^d]/g,' reg: '/[^d]/g',
type: 'number'
}, },
{ {
key: 'existUserNumber', key: 'existUserNumber',
...@@ -53,10 +55,14 @@ const listObj = Object.freeze([ ...@@ -53,10 +55,14 @@ const listObj = Object.freeze([
placeholder: '请输入客户门店存量用户数', placeholder: '请输入客户门店存量用户数',
editLabel: '存量用户数', editLabel: '存量用户数',
maxLength: 8, maxLength: 8,
reg: '/[^d]/g,' reg: '/[^d]/g',
type: 'number'
} }
]) ])
Component({ Component({
options: {
addGlobalClass: true
},
/** /**
* 组件的属性列表 * 组件的属性列表
*/ */
......
...@@ -36,6 +36,7 @@ page { ...@@ -36,6 +36,7 @@ page {
.name { .name {
font-size: 28rpx; font-size: 28rpx;
color: #323436; color: #323436;
max-width: 90%;
} }
.statusBtn { .statusBtn {
......
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
refresher-triggered="{{triggered}}"> refresher-triggered="{{triggered}}">
<view class="customerBox" wx:for="{{customerList}}" wx:key="index"> <view class="customerBox" wx:for="{{customerList}}" wx:key="index">
<view class="titleCon"> <view class="titleCon">
<view class="name">{{item.actualMerchantName}}</view> <view class="name text-hide">{{item.actualMerchantName}}</view>
<view <view
class="statusBtn" class="statusBtn"
data-index="{{index}}" data-index="{{index}}"
...@@ -36,6 +36,7 @@ ...@@ -36,6 +36,7 @@
requiredAfter requiredAfter
cellHeight="{{false}}" cellHeight="{{false}}"
labelWidth="200rpx"> labelWidth="200rpx">
<!-- type="number" -->
<input <input
placeholder="{{item.isEdit? childItem['placeholder']:''}}" placeholder="{{item.isEdit? childItem['placeholder']:''}}"
class="input" class="input"
...@@ -43,7 +44,7 @@ ...@@ -43,7 +44,7 @@
maxlength="{{childItem.maxLength}}" maxlength="{{childItem.maxLength}}"
value="{{item[childItem['key']] }}" value="{{item[childItem['key']] }}"
bindinput="input" bindinput="input"
type="number" type="{{childItem['type']||''}}"
data-index="{{index}}" data-index="{{index}}"
data-name="{{childItem['key']}}" data-name="{{childItem['key']}}"
data-reg="{{childItem['reg']}}" data-reg="{{childItem['reg']}}"
......
...@@ -171,7 +171,8 @@ Component({ ...@@ -171,7 +171,8 @@ Component({
console.log(listName) console.log(listName)
this.setData({ this.setData({
[listName]: type[typeName].pageNum == 1 ? data : [...this.data[list], ...data], [listName]: type[typeName].pageNum == 1 ? data : [...this.data[list], ...data],
type type,
triggered: false
}) })
}) })
.catch(err => {}) .catch(err => {})
......
...@@ -44,9 +44,6 @@ ...@@ -44,9 +44,6 @@
height: calc(100% - 100rpx); height: calc(100% - 100rpx);
} }
.msgBox {
margin: 8rpx 0;
}
.cell { .cell {
display: flex; display: flex;
......
...@@ -66,7 +66,7 @@ ...@@ -66,7 +66,7 @@
<!-- wx:if="{{isShare && actNum != 2 && index == 4}}" --> <!-- wx:if="{{isShare && actNum != 2 && index == 4}}" -->
<!-- wx:if="{{ isShare && actNum != 2 && index == 4}}" --> <!-- wx:if="{{ isShare && actNum != 2 && index == 4}}" -->
<button <button
wx:if="{{ isShare && isAuthphone && !getMoreBtn && actNum != 2 && index == 4}}" wx:if="{{ isShare && isAuthphone && !getMoreBtn && index == 4}}"
class="more-btn" class="more-btn"
data-index="{{index}}" data-index="{{index}}"
bindgetphonenumber="getUserInfo" bindgetphonenumber="getUserInfo"
......
...@@ -163,6 +163,8 @@ Page({ ...@@ -163,6 +163,8 @@ Page({
gotoApply(e) { gotoApply(e) {
let { type, item } = e.currentTarget.dataset let { type, item } = e.currentTarget.dataset
// let { } = e.currentTarget.dataset // let { } = e.currentTarget.dataset
// console.log(item)
// return
if (type == 'active') { if (type == 'active') {
let { userInfo } = wx.$storage.get() let { userInfo } = wx.$storage.get()
let pMerchantName = userInfo.subLoginUser.merchantName let pMerchantName = userInfo.subLoginUser.merchantName
...@@ -192,7 +194,8 @@ Page({ ...@@ -192,7 +194,8 @@ Page({
merchantId: item.visitList[0].merchantId, merchantId: item.visitList[0].merchantId,
merchantName: item.visitList[0].merchantName merchantName: item.visitList[0].merchantName
}, },
sceneActive sceneActive,
clueId: item.clueId
// sceneCodeList: ['SC001', 'SC002','SC003','SC004'] // sceneCodeList: ['SC001', 'SC002','SC003','SC004']
} }
//申请活动 //申请活动
......
...@@ -4,6 +4,12 @@ page { ...@@ -4,6 +4,12 @@ page {
background-color: #F2F3F7 !important; background-color: #F2F3F7 !important;
} }
::-webkit-scrollbar {
width: 0;
height: 0;
color: transparent;
}
.reclaim { .reclaim {
.header-wrap { .header-wrap {
...@@ -92,6 +98,7 @@ page { ...@@ -92,6 +98,7 @@ page {
padding: 0px 10px 0; padding: 0px 10px 0;
background-color: #f2f3f7; background-color: #f2f3f7;
// margin-top: -16rpx; // margin-top: -16rpx;
// overflow: scroll;
.types { .types {
// margin-bottom: 8px; // margin-bottom: 8px;
...@@ -99,11 +106,11 @@ page { ...@@ -99,11 +106,11 @@ page {
padding: 16rpx 0; padding: 16rpx 0;
display: flex; display: flex;
align-items: center; align-items: center;
position: sticky; // position: sticky;
top: 280rpx; // top: 280rpx;
z-index: 2; z-index: 2;
background-color: #f2f3f7; background-color: #f2f3f7;
margin-top: -32rpx; // margin-top: -32rpx;
.type { .type {
margin-left: 8px; margin-left: 8px;
...@@ -131,6 +138,8 @@ page { ...@@ -131,6 +138,8 @@ page {
} }
.list { .list {
height: calc(100% - 80rpx);
overflow: scroll;
box-sizing: border-box; box-sizing: border-box;
// padding-bottom: 8rpx; // padding-bottom: 8rpx;
...@@ -545,9 +554,4 @@ page { ...@@ -545,9 +554,4 @@ page {
line-height: 48rpx; line-height: 48rpx;
margin-top: 40rpx; margin-top: 40rpx;
} }
}
// .clue {
// flex: 1;
// overflow: hidden;
// }
\ No newline at end of file \ No newline at end of file
}
\ No newline at end of file \ No newline at end of file
...@@ -45,7 +45,7 @@ ...@@ -45,7 +45,7 @@
</scroll-view> </scroll-view>
</view> </view>
<product <product
isShow="{{false}}" isShow="{{false}}"
stickyTop="{{headerHeight}}" stickyTop="{{headerHeight}}"
actNum="{{actNum}}" actNum="{{actNum}}"
senceData="{{senceData}}" senceData="{{senceData}}"
...@@ -55,7 +55,7 @@ ...@@ -55,7 +55,7 @@
<!-- 看线索内容 --> <!-- 看线索内容 -->
<view <view
class="clue" class="clue"
style="height: calc(100vh - {{headerHeight}}px)" style="height: calc(100vh - {{headerHeight/2}}px)"
wx:if="{{tabIndx == 0 }}" wx:if="{{tabIndx == 0 }}"
hover-class="none" hover-class="none"
hover-stop-propagation="false"> hover-stop-propagation="false">
...@@ -141,6 +141,7 @@ ...@@ -141,6 +141,7 @@
hover-stop-propagation="false" hover-stop-propagation="false"
data-type="active" data-type="active"
data-item="{{item}}" data-item="{{item}}"
wx:if="{{item.applyStatus == 0}}"
bindtap="gotoApply"> bindtap="gotoApply">
开通活动 开通活动
</view> </view>
...@@ -285,6 +286,7 @@ ...@@ -285,6 +286,7 @@
bindfocus="focus" bindfocus="focus"
maxlength="8" maxlength="8"
name="sales" name="sales"
cursor-spacing="10"
value="{{formData.sales}}" value="{{formData.sales}}"
type="number" /> type="number" />
<!-- <view class="form-unit">台</view> --> <!-- <view class="form-unit">台</view> -->
...@@ -297,6 +299,7 @@ ...@@ -297,6 +299,7 @@
maxlength="8" maxlength="8"
name="flow" name="flow"
type="number" type="number"
cursor-spacing="10"
value="{{formData.flow}}" /> value="{{formData.flow}}" />
<!-- <view class="form-unit">人</view> --> <!-- <view class="form-unit">人</view> -->
</view> </view>
......
/**app.wxss**/ /**app.wxss**/
/*每个页面公共css */ /*每个页面公共css */
@font-face {
/* 是你封装的名字 */
font-family: "test";
/* 你字体包的位置 */
/* src: url('https://img02.glsx.com.cn/weapp/resource/saas/business-assistant/output/Gotham-Black.otf'); */
src: url('/static/style/font/Gotham-Black.otf');
/* https://img02.glsx.com.cn/weapp/resource/saas/business-assistant/output/Gotham-Black.otf */
/* format('opentype'); */
}
.sticky { .sticky {
position: sticky; position: sticky;
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!