Commit 0e97ecd0 by 张立顺

bugfix

2 parents ca26721c d153b831
...@@ -13,6 +13,14 @@ Component({ ...@@ -13,6 +13,14 @@ Component({
outClassName:String, outClassName:String,
tab: Array, tab: Array,
openScroll: Boolean, openScroll: Boolean,
tabHeight: {
type: Boolean,
value: false
},
productHeight: {
type: Boolean,
value: false
},
index: { index: {
type: Number, type: Number,
observer: function (n) { observer: function (n) {
......
...@@ -10,28 +10,32 @@ ...@@ -10,28 +10,32 @@
show-scrollbar="{{false}}"> show-scrollbar="{{false}}">
<block wx:for="{{tab}}" wx:key="index"> <block wx:for="{{tab}}" wx:key="index">
<view <view
class="tab {{index==count?'active':''}}" class="tab {{index==count?'active':''}}"
bindtap="click" bindtap="click"
data-count="{{index}}" data-count="{{index}}"
id="to-{{index}}"> id="to-{{index}}"
<view class="text">{{item}}</view> >
<view class="text" style="{{productHeight ? 'height: 60rpx;' : ''}}">{{item}}</view>
<!-- <view class="text" style="width:{{38 * item.length + 20}}rpx;">{{item}}</view> --> <!-- <view class="text" style="width:{{38 * item.length + 20}}rpx;">{{item}}</view> -->
<view class="line" /> <view class="line" style="{{productHeight ? 'height: 4rpx;' : ''}}" />
</view> </view>
</block> </block>
</scroll-view> </scroll-view>
</block> </block>
<block wx:else> <block wx:else>
<view class="tab-box flex"> <view class="tab-box flex" style="{{tabHeight ? 'height: 60rpx;' : ''}}">
<block wx:for="{{tab}}" wx:key="index"> <block wx:for="{{tab}}" wx:key="index">
<view <view
class="tab {{index==count?'active':''}}" class="tab {{index==count?'active':''}}"
style="width:{{itemWidth}}" style="width:{{itemWidth}}"
bindtap="click" bindtap="click"
data-count="{{index}}"> data-count="{{index}}"
<view class="text text-center">{{item}}</view> >
<view class="line" style="lineStyle" /> <view class="text text-center" style="{{tabHeight ? 'height: 60rpx;' : ''}}">
<!-- --> {{item}}
</view>
<view class="line" style="lineStyle" style="{{tabHeight ? 'margin-top: 6rpx;' : ''}}" />
<!-- -->
<view wx:if="{{filterUtils.hasRedpoint(unreadClueCount)}}" class="redpoint" /> <view wx:if="{{filterUtils.hasRedpoint(unreadClueCount)}}" class="redpoint" />
</view> </view>
</block> </block>
......
...@@ -68,7 +68,6 @@ Page({ ...@@ -68,7 +68,6 @@ Page({
setTimeout(() => { setTimeout(() => {
wx.$router.back(page => { wx.$router.back(page => {
page.getClueInit && page.getClueInit() page.getClueInit && page.getClueInit()
// this.getClueInit()
}) })
}, 1000) }, 1000)
} }
......
// pages/checkProduct/checkProduct.js // pages/checkProduct/checkProduct.js
// const navStyle = "background-color: transparent;"; // const navStyle = "background-color: transparent;";
const navStyle = "background-color: #fff"; const navStyle = "background-color: #fff";
import { import { senceData } from "~/pages/tab/index/constant/data";
senceData import { IMG_URL } from "~/utils/constantData.js";
} from "~/pages/tab/index/constant/data";
import {
IMG_URL
} from "~/utils/constantData.js";
import Draw from "~/utils/Draw.js"; import Draw from "~/utils/Draw.js";
import { import { createQrCodeApi, sceneByIdApi } from "~/api/checkProduct.js";
createQrCodeApi,
sceneByIdApi
} from "~/api/checkProduct.js";
import utils from "~/utils/util.js"; import utils from "~/utils/util.js";
Page({ Page({
...@@ -26,18 +19,19 @@ Page({ ...@@ -26,18 +19,19 @@ Page({
// 模态框 // 模态框
isShow: true, isShow: true,
// IMG_URL: `${IMG_URL}index`, // IMG_URL: `${IMG_URL}index`,
btnList: [{ btnList: [
src: `${IMG_URL}index/wechat.png`, {
name: "微信转发", src: `${IMG_URL}index/wechat.png`,
}, name: "微信转发",
// { },
// src: `${IMG_URL}index/moments.png`, // {
// name: "朋友圈分享", // src: `${IMG_URL}index/moments.png`,
// }, // name: "朋友圈分享",
{ // },
src: `${IMG_URL}index/down.png`, {
name: "下载为海报", src: `${IMG_URL}index/down.png`,
}, name: "下载为海报",
},
], ],
// 4种场景下图片所有的高 (单位 rpx) // 4种场景下图片所有的高 (单位 rpx)
imgHeightArr: [ imgHeightArr: [
...@@ -52,8 +46,9 @@ Page({ ...@@ -52,8 +46,9 @@ Page({
isShare: false, isShare: false,
// 是否授权昵称 // 是否授权昵称
hasUserInfo: false, hasUserInfo: false,
phone: '', //授权手机号 phone: "", //授权手机号
userInfo: '' userInfo: "",
isAuthphone: true, //授权昵称弹窗显示,更多按钮显示
}, },
observers: { observers: {
actNum: function (actNum) { actNum: function (actNum) {
...@@ -77,10 +72,7 @@ Page({ ...@@ -77,10 +72,7 @@ Page({
}, },
// navbar高度设置 // navbar高度设置
navbarReady(e) { navbarReady(e) {
let { let { height, statusBarHeight } = e.detail;
height,
statusBarHeight
} = e.detail;
this.setData({ this.setData({
headerHeight: height / 2 + statusBarHeight, headerHeight: height / 2 + statusBarHeight,
// headerHeight: height / 2 + statusBarHeight, // headerHeight: height / 2 + statusBarHeight,
...@@ -111,23 +103,29 @@ Page({ ...@@ -111,23 +103,29 @@ Page({
actNum, actNum,
activeNavIdx, activeNavIdx,
apiData, apiData,
outshowVideo outshowVideo,
// origin //跳转来源 home // origin //跳转来源 home
} = options; } = options;
// if(actNum&&activeNavIdx)return // if(actNum&&activeNavIdx)return
// 设置标题
this.shareTitle = `给你分享一个${senceData[actNum]?.productList[activeNavIdx].proName}~`;
this.setData({ this.setData({
actNum, actNum,
activeNavIdx, activeNavIdx,
apiData, apiData,
outshowVideo outshowVideo,
// origin // origin
// isShare // isShare
}); });
let apiDataJson = JSON.stringify(apiData); let apiDataJson = JSON.stringify(apiData);
let item = apiData[actNum]?.productList[activeNavIdx]; let item = apiData[actNum]?.productList[activeNavIdx];
this.shareQuery = `sceneCode=${apiData[actNum].sceneCode}&productCode=${item?.productCode this.shareQuery = `sceneCode=${apiData[actNum].sceneCode}&productCode=${
}&isShare=${true}&productDesc=${item?.productName}&category=${item?.category item?.productCode
}&actNum=${actNum}&activeNavIdx=${activeNavIdx}&apiData=${apiDataJson}`; }&isShare=${true}&productDesc=${item?.productName}&category=${
item?.category
}&actNum=${actNum}&activeNavIdx=${activeNavIdx}&apiData=${apiDataJson}`;
this.shareTrackData = { this.shareTrackData = {
sceneCode: apiData[actNum]?.sceneCode, sceneCode: apiData[actNum]?.sceneCode,
productCode: item?.productCode, productCode: item?.productCode,
...@@ -141,9 +139,7 @@ Page({ ...@@ -141,9 +139,7 @@ Page({
}, },
// 分享按钮 // 分享按钮
handleClick(e) { handleClick(e) {
let { let { index } = e.currentTarget.dataset;
index
} = e.currentTarget.dataset;
switch (index) { switch (index) {
case 0: case 0:
this.wechatFn(); this.wechatFn();
...@@ -160,11 +156,7 @@ Page({ ...@@ -160,11 +156,7 @@ Page({
}, },
// 下载海报 // 下载海报
async download() { async download() {
let { let { actNum, activeNavIdx, imgHeightArr } = this.data;
actNum,
activeNavIdx,
imgHeightArr
} = this.data;
let wx_user_info = wx.$storage.get("wx_user_info"); let wx_user_info = wx.$storage.get("wx_user_info");
// console.log('wx_user_info: ', wx_user_info.appId); // console.log('wx_user_info: ', wx_user_info.appId);
let params = { let params = {
...@@ -195,8 +187,9 @@ Page({ ...@@ -195,8 +187,9 @@ Page({
let _this = this; let _this = this;
wx.getImageInfo({ wx.getImageInfo({
src: `https://img02.glsx.com.cn/weapp/resource/saas/business-assistant/index/longpic${actNum + 1 src: `https://img02.glsx.com.cn/weapp/resource/saas/business-assistant/index/longpic${
}.png`, actNum + 1
}.png`,
success: async () => { success: async () => {
// // console.log("imgAllHeight: ", imgAllHeight); // // console.log("imgAllHeight: ", imgAllHeight);
// let drawFun = new Draw({ // let drawFun = new Draw({
...@@ -227,25 +220,27 @@ Page({ ...@@ -227,25 +220,27 @@ Page({
// ]; // ];
let arr = [456, 222, 0, 496]; let arr = [456, 222, 0, 496];
let imgList = [{ let imgList = [
x: 0, {
y: 0, x: 0,
width: _this.data.imgWidth, y: 0,
height: _this.data.imgHeight, width: _this.data.imgWidth,
url: `https://img02.glsx.com.cn/weapp/resource/saas/business-assistant/index/longpic${actNum + 1 height: _this.data.imgHeight,
url: `https://img02.glsx.com.cn/weapp/resource/saas/business-assistant/index/longpic${
actNum + 1
}.png`, }.png`,
}, },
{ {
// x: 245 * 2, // x: 245 * 2,
// y: erCodeHeight + 30, // y: erCodeHeight + 30,
// width: 120 * 2, // width: 120 * 2,
// height: 120 * 2, // height: 120 * 2,
x: _this.data.imgWidth - 64, x: _this.data.imgWidth - 64,
y: _this.data.imgHeight - arr[actNum] - 64, y: _this.data.imgHeight - arr[actNum] - 64,
width: 64, width: 64,
height: 64, height: 64,
url: res.data, //二维码 url: res.data, //二维码
}, },
]; ];
// console.log(imgList) // console.log(imgList)
let posterUrl = await drawFun.begin({ let posterUrl = await drawFun.begin({
...@@ -289,9 +284,11 @@ Page({ ...@@ -289,9 +284,11 @@ Page({
let res = e.detail; let res = e.detail;
this.onLoad(null); this.onLoad(null);
wx.nextTick(() => { wx.nextTick(() => {
//储存手机号
// console.log("储存手机号",res.phone)
wx.$storage.set("authphone", res.phone);
this.setData({ this.setData({
// isShare: res.isShare, // isShare: res.isShare,
phone: res.phone, phone: res.phone,
}); });
}); });
...@@ -303,6 +300,8 @@ Page({ ...@@ -303,6 +300,8 @@ Page({
console.log("分享options12255565: ", options); console.log("分享options12255565: ", options);
// actNum,activeNavIdx isShare // actNum,activeNavIdx isShare
if (!options || utils.isEmptyObj(options)) return; if (!options || utils.isEmptyObj(options)) return;
// this.analysisOption();
// 解析二维码参数 // 解析二维码参数
if (options.scene) { if (options.scene) {
this.setData({ this.setData({
...@@ -313,11 +312,7 @@ Page({ ...@@ -313,11 +312,7 @@ Page({
} }
// 扫码进来 // 扫码进来
let { let { actNum, activeNavIdx, isShare } = options;
actNum,
activeNavIdx,
isShare
} = options;
if (isShare == "true") { if (isShare == "true") {
this.setData({ this.setData({
isShow: false, isShow: false,
...@@ -332,14 +327,16 @@ Page({ ...@@ -332,14 +327,16 @@ Page({
actNum, actNum,
activeNavIdx, activeNavIdx,
isShare: true, isShare: true,
outshowVideo:false, //显示视频列表 outshowVideo: false, //显示视频列表
}); });
// 发请求 // 发请求
let senceItem = senceData[actNum]; let senceItem = senceData[actNum];
let item = senceData[actNum]?.productList[activeNavIdx]; let item = senceData[actNum]?.productList[activeNavIdx];
this.shareQuery = `sceneCode=${senceItem?.sceneCode}&productCode=${item?.productCode this.shareQuery = `sceneCode=${senceItem?.sceneCode}&productCode=${
}&isShare=${true}&productDesc=${item?.productName}&category=${item?.category item?.productCode
}&actNum=${actNum}&activeNavIdx=${activeNavIdx}`; }&isShare=${true}&productDesc=${item?.productName}&category=${
item?.category
}&actNum=${actNum}&activeNavIdx=${activeNavIdx}`;
this.shareTrackData = { this.shareTrackData = {
sceneCode: senceItem?.sceneCode, sceneCode: senceItem?.sceneCode,
productCode: item?.productCode, productCode: item?.productCode,
...@@ -349,12 +346,26 @@ Page({ ...@@ -349,12 +346,26 @@ Page({
// actNum, // actNum,
// activeNavIdx, // activeNavIdx,
}; };
// 有手机号就不用再一次授权昵称,手机号
let phone = wx.$storage.get("authphone");
console.log("储存手机号", phone);
if (phone) {
this.setData({
isAuthphone: false,
outshowVideo: true,
isShare:false,
});
}
}, },
// 解析二维码回调
async analysisOption() {},
// 解析扫码进来参数 // 解析扫码进来参数
async analysisQRcode(str) { async analysisQRcode(str) {
let id = str.split("%3D")[1]; let id = str.split("%3D")[1];
let res = await sceneByIdApi({ let res = await sceneByIdApi({
id id,
}); });
// console.log('res: ', res); // console.log('res: ', res);
return res; return res;
...@@ -372,17 +383,17 @@ Page({ ...@@ -372,17 +383,17 @@ Page({
// console.log('res: ', res.userInfo.nickName); // console.log('res: ', res.userInfo.nickName);
// userInfo.nickName // userInfo.nickName
this.setData({ this.setData({
userInfo: res.userInfo userInfo: res.userInfo,
}) });
let wx_user_info = wx.$storage.get('wx_user_info') let wx_user_info = wx.$storage.get("wx_user_info");
// console.log('wx_user_info: ', wx_user_info); // console.log('wx_user_info: ', wx_user_info);
let obj ={ let obj = {
...wx_user_info, ...wx_user_info,
nickName:res.userInfo.nickName, nickName: res.userInfo.nickName,
avatarUrl:res.userInfo.avatarUrl, avatarUrl: res.userInfo.avatarUrl,
} };
// console.log('obj',obj) // console.log('obj',obj)
wx.$storage.set('wx_user_info', obj) wx.$storage.set("wx_user_info", obj);
// this.onLoad(null); // this.onLoad(null);
}, },
}); });
...@@ -391,40 +402,40 @@ Page({ ...@@ -391,40 +402,40 @@ Page({
/** /**
* 生命周期函数--监听页面初次渲染完成 * 生命周期函数--监听页面初次渲染完成
*/ */
onReady() { }, onReady() {},
/** /**
* 生命周期函数--监听页面显示 * 生命周期函数--监听页面显示
*/ */
onShow(options) { }, onShow(options) {},
/** /**
* 生命周期函数--监听页面隐藏 * 生命周期函数--监听页面隐藏
*/ */
onHide() { }, onHide() {},
/** /**
* 生命周期函数--监听页面卸载 * 生命周期函数--监听页面卸载
*/ */
onUnload() { }, onUnload() {},
/** /**
* 页面相关事件处理函数--监听用户下拉动作 * 页面相关事件处理函数--监听用户下拉动作
*/ */
onPullDownRefresh() { }, onPullDownRefresh() {},
/** /**
* 页面上拉触底事件的处理函数 * 页面上拉触底事件的处理函数
*/ */
onReachBottom() { }, onReachBottom() {},
/** /**
* 用户点击右上角分享 * 用户点击右上角分享
*/ */
onShareAppMessage() { }, onShareAppMessage() {},
/** /**
* 浏览埋点 * 浏览埋点
*/ */
onShareTimeline() { }, onShareTimeline() {},
onViewTrack: true, onViewTrack: true,
});
\ No newline at end of file \ No newline at end of file
});
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
</view> --> </view> -->
<product stickyTop="{{headerHeight}}" class="productCon" style="padding-top:{{headerHeight}}px" actNum="{{actNum}}" wrapactiveNavIdx="{{activeNavIdx}}" outshowVideo="{{outshowVideo}}" senceData="{{senceData}}" outshowVideo="{{outshowVideo}}" isShare="{{isShare}}" bindauthorized="authorizedFn" /> <product stickyTop="{{headerHeight}}" class="productCon" style="padding-top:{{headerHeight}}px" isAuthphone="{{isAuthphone}}" actNum="{{actNum}}" wrapactiveNavIdx="{{activeNavIdx}}" senceData="{{senceData}}" outshowVideo="{{outshowVideo}}" isShare="{{isShare}}" bindauthorized="authorizedFn" />
<!-- 分享弹框 --> <!-- 分享弹框 -->
<!-- <shareModel actNum="{{actNum}}" isShow="{{isShow}}" bindmodelclose="modelcloseFn" /> --> <!-- <shareModel actNum="{{actNum}}" isShow="{{isShow}}" bindmodelclose="modelcloseFn" /> -->
<view class="share-wrap" wx:if="{{isShow}}"> <view class="share-wrap" wx:if="{{isShow}}">
...@@ -36,4 +36,4 @@ ...@@ -36,4 +36,4 @@
</view> </view>
<!-- 授权昵称 --> <!-- 授权昵称 -->
<!-- !hasUserInfo && !isShow --> <!-- !hasUserInfo && !isShow -->
<view wx:if="{{!hasUserInfo && isShare}}" class="user-profile" bindtap="getUserProfile"></view> <view wx:if="{{!hasUserInfo && isShare && isAuthphone}}" class="user-profile" bindtap="getUserProfile"></view>
/* pages/tab/index/components/likeToast/likeToast.wxss */ /* pages/tab/index/components/likeToast/likeToast.wxss */
.toast-box { .toast-box {
position: absolute; position: fixed;
left: 0; left: 0;
top: 0; top: 0;
width: 100%; width: 100%;
......
...@@ -25,6 +25,7 @@ Component({ ...@@ -25,6 +25,7 @@ Component({
type: Boolean, type: Boolean,
value: true, value: true,
}, //显示视频列表 }, //显示视频列表
isAuthphone:Boolean
}, },
/** /**
...@@ -75,7 +76,8 @@ Component({ ...@@ -75,7 +76,8 @@ Component({
}, },
}, },
observers: { observers: {
actNum: function () { actNum: function (newval, oldval) {
console.log('newval, oldval: ', newval, oldval);
let navList; let navList;
let tab = [ let tab = [
"场景说明", "场景说明",
......
...@@ -3,19 +3,18 @@ ...@@ -3,19 +3,18 @@
background-color: #f8fafb; background-color: #f8fafb;
} }
.prod-wrap .big-title { .prod-wrap .big-title {
margin-left: 40rpx; margin-left: 32rpx;
font-family: PingFangSC-S0pxibold; font-family: PingFangSC-Medium;
font-weight: 600; font-weight: 600;
font-size: 36rpx; font-size: 32rpx;
color: #1b233d; color: #323436;
line-height: 56rpx;
} }
.prod-wrap .nav-wrap { .prod-wrap .nav-wrap {
white-space: nowrap; white-space: nowrap;
box-sizing: border-box; box-sizing: border-box;
margin-top: 24rpx; margin-top: 28rpx;
margin-bottom: 32rpx; margin-bottom: 16rpx;
padding: 0 20rpx; padding-left: 32rpx;
} }
.prod-wrap .nav-wrap .nav { .prod-wrap .nav-wrap .nav {
display: inline-block; display: inline-block;
......
...@@ -37,6 +37,7 @@ ...@@ -37,6 +37,7 @@
tab="{{tab}}" tab="{{tab}}"
index="{{curTabIdx}}" index="{{curTabIdx}}"
bindclick="changeTab" bindclick="changeTab"
productHeight
/> />
</view> </view>
<!-- style="{height:{{allHeight}}px}" --> <!-- style="{height:{{allHeight}}px}" -->
...@@ -66,7 +67,7 @@ ...@@ -66,7 +67,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 && !getMoreBtn && actNum != 2 && index == 4}}" wx:if="{{ isShare && isAuthphone && !getMoreBtn && actNum != 2 && index == 4}}"
class="more-btn" class="more-btn"
data-index="{{index}}" data-index="{{index}}"
bindgetphonenumber="getUserInfo" bindgetphonenumber="getUserInfo"
......
...@@ -256,16 +256,16 @@ Page({ ...@@ -256,16 +256,16 @@ Page({
this.data.senceData.forEach((item, index) => { this.data.senceData.forEach((item, index) => {
item.productList.forEach((i, lastIndex) => { item.productList.forEach((i, lastIndex) => {
if (i.profit) { if (i.profit) {
let sale = `senceData[${index}].productList[${lastIndex}].sale` let sale = `senceData[${index}].productList[${lastIndex}].sale`;
let name = `senceData[${index}].productList[${lastIndex}].profit` let name = `senceData[${index}].productList[${lastIndex}].profit`;
let flowKey = `senceData[${index}].productList[${lastIndex}].flow` let flowKey = `senceData[${index}].productList[${lastIndex}].flow`;
let profit = _this.formula(i.productType, sales, flow) let profit = _this.formula(i.productType, sales, flow);
console.log(name, profit) console.log(name, profit);
this.setData({ this.setData({
[name]: profit, [name]: profit,
[sale]: sales, [sale]: sales,
[flowKey]: flow [flowKey]: flow,
}) });
} }
}) })
}) })
......
page { page {
height: 100vh; height: 100vh;
width: 100vw; width: 100vw;
background-color: #fff; background-color: #F2F3F7 !important;
} }
.reclaim { .reclaim {
.header-wrap { .header-wrap {
...@@ -9,7 +9,7 @@ page { ...@@ -9,7 +9,7 @@ page {
top: 0; top: 0;
width: 100%; width: 100%;
background-size: 100% 100%; background-size: 100% 100%;
margin-bottom: 16px; margin-bottom: 32rpx;
z-index: 1; z-index: 1;
.header { .header {
position: absolute; position: absolute;
...@@ -76,7 +76,7 @@ page { ...@@ -76,7 +76,7 @@ page {
// position: relative; // position: relative;
// } // }
.clue { .clue {
padding: 8px 10px 0; padding: 0px 10px 0;
background-color: #f2f3f7; background-color: #f2f3f7;
.types { .types {
margin-bottom: 8px; margin-bottom: 8px;
...@@ -200,6 +200,21 @@ page { ...@@ -200,6 +200,21 @@ page {
line-height: 24px; line-height: 24px;
} }
} }
.noDataImg {
width: 512rpx;
height: 512rpx;
margin-left: 100rpx;
position: relative;
.noDataTxt {
font-family: PingFangSC-Regular;
font-size: 24rpx;
color: #CCCED1;
position: absolute;
bottom: 32rpx;
left: 50%;
transform: translateX(-50%);
}
}
.shop { .shop {
.name-wrap { .name-wrap {
display: flex; display: flex;
...@@ -300,7 +315,7 @@ page { ...@@ -300,7 +315,7 @@ page {
width: 100%; width: 100%;
height: 100%; height: 100%;
.guide-img { .guide-img {
position: absolute; position: fixed;
top: 0; top: 0;
left: 0; left: 0;
width: 100%; width: 100%;
......
<wxs src="./index.wxs" module="filterUtils" /> <wxs src="./index.wxs" module="filterUtils" />
<navigation-bar bindnavbarReady="navbarReady" navStyle="{{navStyle}}">拓客户</navigation-bar> <navigation-bar bindnavbarReady="navbarReady" navStyle="{{navStyle}}">拓客户</navigation-bar>
<view class="reclaim"> <view class="reclaim" style="{{tabIndx == 1 ? 'background: #fff;' : ''}}">
<!-- 头部 --> <!-- 头部 -->
<view class="header-wrap" style="height:{{headerHeight}}rpx; background-image: url('{{IMG_URL}}index/head.png')"> <view class="header-wrap" style="height:{{headerHeight}}rpx; background-image: url('{{IMG_URL}}index/head.png')">
<view class="header"> <view class="header">
<tab tab="{{navList}}" itemWidth="{{'35%'}}" index="{{tabIndx}}" unreadClueCount="{{unreadClueCount}}" bindclick="changeTabIndx" class="tabContainer" /> <tab tab="{{navList}}" itemWidth="{{'35%'}}" index="{{tabIndx}}" tabHeight unreadClueCount="{{unreadClueCount}}" bindclick="changeTabIndx" class="tabContainer" />
<view class="right" data-type="shop" bindtap="gotoApply"> <view class="right" data-type="shop" bindtap="gotoApply">
<image class="img" src="{{IMG_URL}}index/apply.png" /> <image class="img" src="{{IMG_URL}}index/apply.png" />
<view class="apply">申请业务</view> <view class="apply">申请业务</view>
...@@ -40,7 +40,7 @@ ...@@ -40,7 +40,7 @@
<view class="name-wrap"> <view class="name-wrap">
<view class="name" hover-class="none" hover-stop-propagation="false"> <view class="name" hover-class="none" hover-stop-propagation="false">
{{item.nickName}} {{item.nickName}}
<image class="avatar" src="{{IMG_URL}}index/avatar.png" /> <image class="avatar" src="{{IMG_URL}}index/avatar.png" wx:if="{{item.clueType != 3}}" />
</view> </view>
<view class="source" hover-class="none" hover-stop-propagation="false">通过门店助手申请</view> <view class="source" hover-class="none" hover-stop-propagation="false">通过门店助手申请</view>
</view> </view>
...@@ -78,11 +78,11 @@ ...@@ -78,11 +78,11 @@
</view> </view>
<!-- 生意助手 --> <!-- 生意助手 -->
<view wx:else> <view wx:else>
<image class="like" wx:if="{{item.starTag == 1}}" src="{{IMG_URL}}index/like.png" data-type="like" data-outidx="{{index}}" data-item="{{item}}" bindtap="showToast" /> <image class="like" wx:if="{{item.clueType == 1 && item.starTag == 1}}" src="{{IMG_URL}}index/like.png" data-type="like" data-outidx="{{index}}" data-item="{{item}}" bindtap="showToast" />
<image class="like" wx:else src="{{IMG_URL}}index/dislike.png" data-type="dislike" data-outidx="{{index}}" data-item="{{item}}" bindtap="showToast" /> <image class="like" wx:if="{{item.clueType == 1 && item.starTag == 0}}" src="{{IMG_URL}}index/dislike.png" data-type="dislike" data-outidx="{{index}}" data-item="{{item}}" bindtap="showToast" />
<view class="name" hover-class="none" hover-stop-propagation="false"> <view class="name" hover-class="none" hover-stop-propagation="false">
{{item.nickName}} {{item.nickName}}
<image class="avatar" src="{{IMG_URL}}index/avatar.png" /> <image class="avatar" src="{{IMG_URL}}index/avatar.png" wx:if="{{item.clueType != 3}}" />
</view> </view>
<view class="line" hover-class="none" hover-stop-propagation="false" /> <view class="line" hover-class="none" hover-stop-propagation="false" />
<view class="want-more" style="height:{{item.getMoreFlag? 100: 'auto'}}px"> <view class="want-more" style="height:{{item.getMoreFlag? 100: 'auto'}}px">
...@@ -113,13 +113,17 @@ ...@@ -113,13 +113,17 @@
</view> </view>
</view> </view>
</view> </view>
<view class="noDataImg" wx:if="{{!clueList.length}}">
<image src="{{IMG_URL}}index/trEmpty.png " />
<text class="noDataTxt">没有符合条件的线索~</text>
</view>
</view> </view>
</view> </view>
</view> </view>
<!-- 收藏、取消提示框 --> <!-- 收藏、取消提示框 -->
<vas-toast isShow="{{true}}" id='toast' /> <vas-toast isShow="{{true}}" id='toast' />
<!-- 引导图 --> <!-- 引导图 -->
<view class="guide" wx:if="{{guideShow}}"> <view class="guide" wx:if="{{guideShow}}" style="overflow-y:hidden;">
<image bindtap="guideFn" class="guide-img" src="{{IMG_URL}}index/guide{{guideSrcIndex}}.png" /> <image bindtap="guideFn" class="guide-img" src="{{IMG_URL}}index/guide{{guideSrcIndex}}.png" />
</view> </view>
<!-- 在线客服 --> <!-- 在线客服 -->
...@@ -131,8 +135,8 @@ ...@@ -131,8 +135,8 @@
<view class="dialog-box"> <view class="dialog-box">
<form bindsubmit="submit"> <form bindsubmit="submit">
<view class="dialog-header"> <view class="dialog-header">
<view hidden="{{isReset}}" class="header-btn btn-gray" bindtap="showCalculate">取消</view> <view wx:if="{{!isReset}}" class="header-btn btn-gray" bindtap="showCalculate">取消</view>
<view hidden="{{!isReset}}" class="header-btn btn-gray" bindtap="reset">重置</view> <view wx:if="{{isReset}}" class="header-btn btn-gray" bindtap="reset">重置</view>
<button class="header-btn btn-primary" form-type="submit">确定</button> <button class="header-btn btn-primary" form-type="submit">确定</button>
</view> </view>
<view class="dialog-content"> <view class="dialog-content">
......
...@@ -13,5 +13,6 @@ export const STORAGE_OBJECTkEY = { ...@@ -13,5 +13,6 @@ export const STORAGE_OBJECTkEY = {
auto_login_object: 'auto_login_object', auto_login_object: 'auto_login_object',
wx_user_info: 'wx_user_info', wx_user_info: 'wx_user_info',
userPhone: 'userPhone', userPhone: 'userPhone',
firstLogin:'firstLogin' firstLogin:'firstLogin',
authphone:'authphone'
} }
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!