Commit 3dd4ac0f by chenwq

详情手机号,tab值,冗余代码

1 parent d197aa50
...@@ -31,11 +31,11 @@ ...@@ -31,11 +31,11 @@
<!-- 第一张图的点击拨打电话事件 --> <!-- 第一张图的点击拨打电话事件 -->
<block wx:if="{{ index == 0}}"> <block wx:if="{{ index == 0}}">
<view class="phone" bindtap="phoneCall" data-phone="{{proDetail.phone}}"> <view class="phone" bindtap="phoneCall" data-phone="{{sharephone}}">
<image src="{{IMGURL}}share-phone.png?v={{img_version}}" class="icon"></image> <image src="{{IMGURL}}share-phone.png?v={{img_version}}" class="icon"></image>
<glsx-image webp src="index/phone.png" class="icon" /> <glsx-image webp src="index/phone.png" class="icon" />
请联系我 请联系我
<view style="color:#3666fe">{{proDetail.phone}}</view> <view style="color:#3666fe">{{sharephone}}</view>
</view> </view>
</block> </block>
......
...@@ -117,7 +117,6 @@ Page({ ...@@ -117,7 +117,6 @@ Page({
// this.shareQuery = `sceneCode=${sceneObj.sceneCode}&productCode=${proInfo?.productCode}&isShare=${true}&productDesc=${proInfo?.productName}&category=${proInfo?.category}&actNum=${actNum}&activeNavIdx=${activeNavIdx}&sharephone=${sharephone}` // this.shareQuery = `sceneCode=${sceneObj.sceneCode}&productCode=${proInfo?.productCode}&isShare=${true}&productDesc=${proInfo?.productName}&category=${proInfo?.category}&actNum=${actNum}&activeNavIdx=${activeNavIdx}&sharephone=${sharephone}`
this.shareQuery = `id=${id}&sceneCode=${sceneCode}&productCode=${proData?.productCode}&isShare=${true}&sharephone=${sharephone}` this.shareQuery = `id=${id}&sceneCode=${sceneCode}&productCode=${proData?.productCode}&isShare=${true}&sharephone=${sharephone}`
console.log(this.shareQuery, 'onload----')
this.shareTrackData = { this.shareTrackData = {
sceneCode: sceneObj.sceneCode, sceneCode: sceneObj.sceneCode,
productCode: proInfo?.productCode, productCode: proInfo?.productCode,
......
...@@ -265,13 +265,6 @@ Page({ ...@@ -265,13 +265,6 @@ Page({
openBus() { openBus() {
wx.$router.go("/packagesList/apply/pages/apply"); wx.$router.go("/packagesList/apply/pages/apply");
}, },
// 开通产品
// openPro() {
// let obj = {
// scene:3
// }
// wx.$router.go("/packagesList/applyProd/pages/apply",obj);
// },
// 预估产值 // 预估产值
showCalculate() { showCalculate() {
wx.$router.go("measure"); wx.$router.go("measure");
...@@ -280,143 +273,6 @@ Page({ ...@@ -280,143 +273,6 @@ Page({
// isReset: false // isReset: false
// }) // })
}, },
// clickDialog(e) {
// // console.log(e.changedTouches[0].clientY)
// if (e.changedTouches[0].clientY < 352) {
// this.setData({
// visible: false,
// isReset: false,
// formData: this.data.lastFormData
// })
// }
// },
// 提交测算
// submit(e) {
// let sales = e ? +e.detail.value.sales : this.data.formData.sales
// let flow = e ? +e.detail.value.flow : this.data.formData.flow
// // console.log('flow', sales, flow)
// const reg = /^[1-9]\d*$/
// // console.log(reg.test(sales), flow, '---')
// if (!reg.test(sales)) {
// wx.showToast({
// title: '门店月平均新车销量应为正整数',
// icon: 'none',
// duration: 2000
// })
// return
// }
// if (!reg.test(flow)) {
// wx.showToast({
// title: '3年内售后存量用户应为正整数',
// icon: 'none',
// duration: 2000
// })
// return
// }
// this.setData({
// 'lastFormData.sales': sales,
// 'lastFormData.flow': flow
// })
// const _this = this
// this.data.senceData.forEach((item, index) => {
// item.productList.forEach((i, lastIndex) => {
// if (i.profit) {
// let sale = `senceData[${index}].productList[${lastIndex}].sale`
// let name = `senceData[${index}].productList[${lastIndex}].profit`
// let flowKey = `senceData[${index}].productList[${lastIndex}].flow`
// let profit = _this.formula(i.productType, sales, flow)
// // console.log(name, profit)
// this.setData({
// [name]: profit,
// [sale]: sales,
// [flowKey]: flow
// })
// }
// })
// })
// // 触发自定义事件 利润 数量
// // this.triggerEvent('countProfit', profit, sales)
// // let type = this.getProductType(sceneIndex, tabIndex);
// // let profit = this.formula(type, sales, flow);
// // console.log('profit: ', profit);
// this.setData({
// visible: false
// })
// // this.showCase();
// // if (!this.data.isFirst) {
// wx.showToast({
// title: '测算结果已在页面内同步展示',
// icon: 'none',
// duration: 2000
// })
// // } else {
// // this.setData({
// // isFirst: false
// // })
// // }
// },
// // 获取场景下的产品类型
// getProductType(sceneIndex, tabIndex) {
// let typeArray = [
// ["benefitCard"], //数字无忧权益卡
// ["sunMembrane"], //汽车太阳膜
// ["protectMembrane", "colorMembrane"], //'漆面保护膜','改色膜'
// ["digitBeauty", "chair", "ar", "lamp", "navigation"], //'数字化美容','座椅通风','AR导航','氛围灯','360全景导航'
// ];
// return typeArray[sceneIndex][tabIndex];
// },
// 计算公式,参数:productType
// formula(productType, sales, flow) {
// let profit = 0
// switch (productType) {
// case 'benefitCard':
// // 数字无忧权益卡
// profit = (sales * 0.5 * 2000 * 12).toFixed(0)
// break
// case 'sunMembrane':
// // 汽车太阳膜
// profit = (sales * 0.8 * 0.7 * 1500 * 12).toFixed(0)
// break
// case 'protectMembrane':
// // 漆面保护膜
// profit = (sales * 0.05 * 3000 * 12).toFixed(0)
// break
// case 'colorMembrane':
// // 改色膜
// profit = (sales * 0.05 * 5000 * 12).toFixed(0)
// break
// case 'digitBeauty':
// // 数字化美容
// profit = (sales * 0.2 * 300 * 12).toFixed(0)
// break
// case 'chair':
// // 座椅通风
// profit = (flow * 2580 * 0.9 * 0.01).toFixed(0)
// break
// case 'ar':
// // AR导航
// profit = (flow * 1680 * 0.9 * 0.015).toFixed(0)
// break
// case 'lamp':
// // 氛围灯
// profit = (flow * 2680 * 0.9 * 0.015).toFixed(0)
// break
// case 'navigation':
// // 360全景导航
// profit = (flow * 2880 * 0.9 * 0.015).toFixed(0)
// break
// }
// // console.log(profit.length)
// // console.log(productType, sales, flow, profit)
// if (profit.length > 9) {
// return (profit / 10000).toFixed(0) + '万'
// } else {
// return profit
// }
// },
// reset() { // reset() {
// this.setData({ // this.setData({
// isReset: false, // isReset: false,
...@@ -451,7 +307,8 @@ Page({ ...@@ -451,7 +307,8 @@ Page({
const systemData = res[1].list const systemData = res[1].list
this.setData({ this.setData({
systemData, systemData,
productData productData,
['navList[1]']: res[1].name || '客户数字化'
}) })
}) })
// console.log('options: ', options); // console.log('options: ', options);
......
...@@ -51,47 +51,6 @@ ...@@ -51,47 +51,6 @@
<!-- 加微 --> <!-- 加微 -->
<service wx:if="{{isShowService}}" isFixed="{{false}}"></service> <service wx:if="{{isShowService}}" isFixed="{{false}}"></service>
</view> </view>
<!-- 预估产值弹框 -->
<!-- <view class="dialog-wrapper" bindtap="clickDialog" hidden="{{!visible}}">
<view class="dialog-box">
<form bindsubmit="submit">
<view class="dialog-header">
<view wx:if="{{!isReset}}" class="header-btn btn-gray" bindtap="showCalculate">取消</view>
<view wx:if="{{isReset}}" class="header-btn btn-gray" bindtap="reset">重置</view>
<button class="header-btn btn-primary" form-type="submit">确定</button>
</view>
<view class="dialog-content">
<view class="dialog-title">输入您门店的基本情况</view>
<view class="dialog-form">
<view class="form-item">
<view class="form-label">门店月平均新车销量</view>
<input
class="form-input"
bindfocus="focus"
maxlength="8"
name="sales"
cursor-spacing="10"
value="{{formData.sales}}"
type="number" />
</view>
<view class="form-item">
<view class="form-label">3年内售后存量用户</view>
<input
class="form-input"
bindfocus="focus"
maxlength="8"
name="flow"
type="number"
cursor-spacing="10"
value="{{formData.flow}}" />
</view>
<button class="dialog-btn" form-type="submit">提交测算</button>
</view>
</view>
</form>
</view>
</view> -->
<!-- -->
<crowdfund-poster wx:if="{{!guideShow}}" item="{{posterItem}}" /> <crowdfund-poster wx:if="{{!guideShow}}" item="{{posterItem}}" />
<!-- 全屏视频组件 --> <!-- 全屏视频组件 -->
<!-- <FullscreenVideo id="videocomp" src="{{videoSrc}}" title="{{videoTitle}}" /> --> <!-- <FullscreenVideo id="videocomp" src="{{videoSrc}}" title="{{videoTitle}}" /> -->
\ No newline at end of file \ No newline at end of file
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!