Commit 29aa4f55 by 前端

Merge branch 'master' into v3.5.0

2 parents d969808e d3d5bb95
...@@ -124,7 +124,7 @@ class Request { ...@@ -124,7 +124,7 @@ class Request {
} }
getMock() { getMock() {
let url = 'https://oss-config.dev.glsx.com.cn/mock/6264ff4760f415276f6dfe62/aicard-config' let url = 'https://oss-config.dev.glsx.com.cn/mock/6264ff4760f415276f6dfe62/aicard-config'
if (index == 4) url = 'https://oss-config.test.glsx.com.cn/mock/6274e3050da5034a58680aa6/aicard-config' if (index == 4 || index == 3) url = 'https://oss-config.test.glsx.com.cn/mock/6274e3050da5034a58680aa6/aicard-config'
return new Promise((resolve) => { return new Promise((resolve) => {
wx.request({ wx.request({
url, url,
......
...@@ -20,7 +20,6 @@ const $Storage = new Storage() ...@@ -20,7 +20,6 @@ const $Storage = new Storage()
App({ App({
onLaunch: function (options) { onLaunch: function (options) {
console.log(options)
/**挂载到wx对象 */ /**挂载到wx对象 */
this.autoUpdate() this.autoUpdate()
wx.$storage = $Storage /** 挂载全局缓存方法 */ wx.$storage = $Storage /** 挂载全局缓存方法 */
...@@ -42,7 +41,6 @@ App({ ...@@ -42,7 +41,6 @@ App({
} }
wx.showMeasure = !!(options.query && options.query.scene) wx.showMeasure = !!(options.query && options.query.scene)
wx.onMemoryWarning(function () { wx.onMemoryWarning(function () {
console.log('onMemoryWarningReceive')
}) })
}, },
login(returnResponse) { login(returnResponse) {
...@@ -68,7 +66,6 @@ App({ ...@@ -68,7 +66,6 @@ App({
_this.getScene(wx.$trackData.scene).then(res => { _this.getScene(wx.$trackData.scene).then(res => {
wx.$trackData.merchant = res.merchantId wx.$trackData.merchant = res.merchantId
wx.$trackData.cardId = res.cardId wx.$trackData.cardId = res.cardId
console.log('wx.$trackData.cardId', wx.$trackData.cardId)
wx.$storage.set('scene', { wx.$storage.set('scene', {
merchant: res.merchantId, merchant: res.merchantId,
cardId: res.cardId cardId: res.cardId
...@@ -98,22 +95,6 @@ App({ ...@@ -98,22 +95,6 @@ App({
resolve(result) resolve(result)
}) })
} }
// ssoApi
// .getUserInfo({
// openId
// })
// .then(result => {
// if (returnResponse) {
// resolve(result)
// } else {
// if (result.code == 0) {
// util.setUserInfo(result.data)
// } else {
// util.showToast(result.message || '网络异常')
// }
// resolve(result)
// }
// })
}) })
.catch(() => { .catch(() => {
wx.$authStatus = true wx.$authStatus = true
...@@ -124,7 +105,6 @@ App({ ...@@ -124,7 +105,6 @@ App({
}) })
}, },
getUserInfo(openId, returnResponse) { getUserInfo(openId, returnResponse) {
console.log('openId', openId)
return new Promise((resolve) => { return new Promise((resolve) => {
ssoApi ssoApi
.getUserInfo({ .getUserInfo({
...@@ -160,14 +140,13 @@ App({ ...@@ -160,14 +140,13 @@ App({
}) })
}) })
}, },
/** /**
* 下载小程序新版本并重启应用 * 下载小程序新版本并重启应用
*/ */
autoUpdate: function () { autoUpdate: function () {
const updateManager = wx.getUpdateManager() const updateManager = wx.getUpdateManager()
updateManager.onCheckForUpdate(function (res) { updateManager.onCheckForUpdate(function (res) {
// 请求完新版本信息的回调
console.log(res.hasUpdate)
}) })
updateManager.onUpdateReady(function () { updateManager.onUpdateReady(function () {
wx.showModal({ wx.showModal({
...@@ -203,7 +182,6 @@ App({ ...@@ -203,7 +182,6 @@ App({
}, },
globalData: {}, globalData: {},
onPageNotFound(res) { onPageNotFound(res) {
console.log(res, '不存在的页面')
setTimeout(() => { setTimeout(() => {
wx.$router.go('/pages/tab/index/index', res.query) wx.$router.go('/pages/tab/index/index', res.query)
}, 1000) }, 1000)
......
...@@ -116,7 +116,6 @@ Component({ ...@@ -116,7 +116,6 @@ Component({
}, },
/**授权手机号 */ /**授权手机号 */
getPhoneNumber({ detail }) { getPhoneNumber({ detail }) {
console.log(detail)
this.triggerEvent('getphonenumber', detail) this.triggerEvent('getphonenumber', detail)
} }
}, },
......
...@@ -45,7 +45,6 @@ Component({ ...@@ -45,7 +45,6 @@ Component({
*/ */
methods: { methods: {
selectTab(e) { selectTab(e) {
console.log(e.currentTarget.dataset.index);
this.setData({ this.setData({
tabIndex: e.currentTarget.dataset.index, tabIndex: e.currentTarget.dataset.index,
}); });
...@@ -53,7 +52,6 @@ Component({ ...@@ -53,7 +52,6 @@ Component({
}, },
// 合作方式切换 // 合作方式切换
applyChange(e) { applyChange(e) {
console.log(e.detail.value);
this.setData({ this.setData({
selectApply: e.detail.value, selectApply: e.detail.value,
}); });
...@@ -67,7 +65,6 @@ Component({ ...@@ -67,7 +65,6 @@ Component({
}, },
// 表单验证规则 // 表单验证规则
initValidate() { initValidate() {
console.log(123123);
const rules = { const rules = {
applyType: { applyType: {
required: true, required: true,
...@@ -164,7 +161,6 @@ Component({ ...@@ -164,7 +161,6 @@ Component({
attached: function () { attached: function () {
if (util.getUserInfo() && util.getUserInfo().phone) { if (util.getUserInfo() && util.getUserInfo().phone) {
this.setPhone(util.getUserInfo().phone) this.setPhone(util.getUserInfo().phone)
console.log(this.data.applyForm)
} }
} }
}, },
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
* @Author: huyue * @Author: huyue
* @Date: 2022-12-09 13:58:15 * @Date: 2022-12-09 13:58:15
* @LastEditors: huyue * @LastEditors: huyue
* @LastEditTime: 2022-12-13 10:36:15 * @LastEditTime: 2023-01-11 14:41:24
*/ */
// components/Login/Login.js // components/Login/Login.js
import { ssoApi } from "../../api/api"; import { ssoApi } from "../../api/api";
...@@ -77,8 +77,6 @@ Component({ ...@@ -77,8 +77,6 @@ Component({
} }
}, },
jump() { jump() {
// this.triggerEvent('toApplication')
console.log(333);
wx.$router.go("/packagesList/pages/activityApply/activityApply"); wx.$router.go("/packagesList/pages/activityApply/activityApply");
}, },
forward() { forward() {
...@@ -92,7 +90,6 @@ Component({ ...@@ -92,7 +90,6 @@ Component({
if (res.confirm) { if (res.confirm) {
that.triggerEvent('videodown') that.triggerEvent('videodown')
} else if (res.cancel) { } else if (res.cancel) {
console.log('用户点击取消')
} }
} }
}) })
......
/*
* @Description:
* @Author: huyue
* @Date: 2022-12-09 14:13:50
* @LastEditors: huyue
* @LastEditTime: 2023-01-11 15:14:15
*/
// components/Tab/Tab.js // components/Tab/Tab.js
// behaviors: [LocationBehavior], // behaviors: [LocationBehavior],
// import { imgUrlMixin } from '~/mixins/index' // import { imgUrlMixin } from '~/mixins/index'
...@@ -51,11 +58,6 @@ Component({ ...@@ -51,11 +58,6 @@ Component({
to: '', to: '',
// IMGURL: // IMGURL:
}, },
// lifetimes:{
// attached: function() {
// console.log('unreadClueCount',this.data.unreadClueCount)
// }
// },
/** /**
* 组件的方法列表 * 组件的方法列表
......
/*
* @Description:
* @Author: huyue
* @Date: 2022-12-15 15:58:30
* @LastEditors: huyue
* @LastEditTime: 2023-01-11 14:41:27
*/
// components/customer/customer.js // components/customer/customer.js
import { import {
componentsMixin componentsMixin
...@@ -26,7 +33,6 @@ Component({ ...@@ -26,7 +33,6 @@ Component({
methods: { methods: {
// 关闭客服弹框 // 关闭客服弹框
closeQR() { closeQR() {
console.log(333);
this.triggerEvent('closeQR') this.triggerEvent('closeQR')
} }
} }
......
...@@ -58,18 +58,12 @@ Component({ ...@@ -58,18 +58,12 @@ Component({
methods: { methods: {
getInfo() { getInfo() {
let { activeNavIdx, actNum } = this.data let { activeNavIdx, actNum } = this.data
console.log(actNum)
console.log(activeNavIdx)
const spcList = [99, 4] // 订阅模块需要特殊处理 const spcList = [99, 4] // 订阅模块需要特殊处理
console.log(productData1, 'productData')
const senceList = productData1[actNum].filter(item => item.name != '全部') const senceList = productData1[actNum].filter(item => item.name != '全部')
console.log(senceList)
for (let i = 0; i < senceList.length; i++) { for (let i = 0; i < senceList.length; i++) {
let item = senceList[i] let item = senceList[i]
let proIdList = item?.productList.map(k => k.id) let proIdList = item?.productList.map(k => k.id)
if (proIdList.includes(activeNavIdx)) { if (proIdList.includes(activeNavIdx)) {
console.log(item, 'item----')
//console.log(item.productList.find(k => k.id == activeNavIdx))
let proInfo = item.productList.find(k => k.id == activeNavIdx) let proInfo = item.productList.find(k => k.id == activeNavIdx)
this.setData({ this.setData({
proInfo, proInfo,
...@@ -77,8 +71,6 @@ Component({ ...@@ -77,8 +71,6 @@ Component({
tabList: spcList.includes(actNum) ? proInfo.tabList : norTabList, tabList: spcList.includes(actNum) ? proInfo.tabList : norTabList,
prodItemVideo: item.videoList.length ? spcList.includes(actNum) ?item.videoList[proInfo.currentIndex] : item.videoList[activeNavIdx] : item.noVideoPicture[0] prodItemVideo: item.videoList.length ? spcList.includes(actNum) ?item.videoList[proInfo.currentIndex] : item.videoList[activeNavIdx] : item.noVideoPicture[0]
}) })
console.log(this.data.productImgs, proInfo)
// console.log(this.data.prodItemVideo, 'prodItemVideo--------')
break break
} }
} }
...@@ -96,8 +88,6 @@ Component({ ...@@ -96,8 +88,6 @@ Component({
.selectAll('.img-item') .selectAll('.img-item')
.boundingClientRect(react => { .boundingClientRect(react => {
react.forEach((item, index) => { react.forEach((item, index) => {
//44 tab的高度
// console.log('item',item)
s = item.top - 44 + scrollTop s = item.top - 44 + scrollTop
imgTopArr.push(s) imgTopArr.push(s)
}) })
...@@ -106,22 +96,15 @@ Component({ ...@@ -106,22 +96,15 @@ Component({
}) })
}) })
.exec() .exec()
// setTimeout(() => {
// console.log('imgTopArr',this.data.imgTopArr)
// },500)
}, },
// 1.3查看活动详情按钮 // 1.3查看活动详情按钮
checkActive() { checkActive() {
// 跳转
// console.log('跳转')
let { activeUrl } = this.data let { activeUrl } = this.data
wx.$router.jumpH5(activeUrl); wx.$router.jumpH5(activeUrl);
}, },
onClickTab(event) { onClickTab(event) {
// console.log('event: ', event);
let { index } = event.detail let { index } = event.detail
// console.log('index: ', index);
this.setData({ this.setData({
tabAct: index tabAct: index
}) })
...@@ -157,7 +140,17 @@ Component({ ...@@ -157,7 +140,17 @@ Component({
let { actnum, index } = e.target.dataset let { actnum, index } = e.target.dataset
// 膨胀金活动,合作方式 // 膨胀金活动,合作方式
if (actnum == 4 && index == 4) { if (actnum == 4 && index == 4) {
wx.$router.jumpH5('https://scrm.glsx.com.cn/frontpdf/expand_agreement.pdf'); wx.downloadFile({
url: 'https://scrm.glsx.com.cn/frontpdf/expand_agreement.pdf',
success: function (res) {
const filePath = res.tempFilePath
wx.openDocument({
filePath: filePath,
success: function (res) {
}
})
}
})
} }
} }
} }
......
...@@ -285,7 +285,7 @@ page { ...@@ -285,7 +285,7 @@ page {
height: 1564rpx; height: 1564rpx;
} }
.img-item41 { .img-item41 {
height: 1224rpx; height: 1144rpx;
} }
.img-item42 { .img-item42 {
height: 1148rpx; height: 1148rpx;
...@@ -294,7 +294,7 @@ page { ...@@ -294,7 +294,7 @@ page {
height: 3504rpx; height: 3504rpx;
} }
.img-item44 { .img-item44 {
height: 2220rpx; height: 3188rpx;
} }
.img-item45 { .img-item45 {
height: 1092rpx; height: 1092rpx;
......
...@@ -224,13 +224,10 @@ Component({ ...@@ -224,13 +224,10 @@ Component({
// 选择业务场景产品 // 选择业务场景产品
selectScenePro(e) { selectScenePro(e) {
console.log(e.currentTarget.dataset, this.properties.selectApply);
var index = e.currentTarget.dataset.index; var index = e.currentTarget.dataset.index;
var item = this.properties.selectApply == 0 ? this.data.productList[this.data.sceneName][index] : this.data.productSubscibList[this.data.sceneName][index]; var item = this.properties.selectApply == 0 ? this.data.productList[this.data.sceneName][index] : this.data.productSubscibList[this.data.sceneName][index];
item.isSelect = !item.isSelect; item.isSelect = !item.isSelect;
if (this.properties.selectApply == 0) { if (this.properties.selectApply == 0) {
// let newProductList = `productListt.${this.data.sceneName}[0]`
// console.log(newProductList, item);
this.setData({ this.setData({
productList: this.data.productList, productList: this.data.productList,
}); });
...@@ -245,12 +242,10 @@ Component({ ...@@ -245,12 +242,10 @@ Component({
// 合作方式切换重置场景以及选择的产品 // 合作方式切换重置场景以及选择的产品
resetScene() { resetScene() {
if (!this.data.sceneName) return if (!this.data.sceneName) return
console.log(this.properties.selectApply, this.data.sceneName, this.data.sceneNum);
if (this.properties.selectApply == 1) { if (this.properties.selectApply == 1) {
this.data.productList[this.data.sceneName].map((item) => { this.data.productList[this.data.sceneName].map((item) => {
if (item.isSelect) item.isSelect = false if (item.isSelect) item.isSelect = false
}) })
console.log(this.data.productList[this.data.sceneName]);
this.setData({ this.setData({
productList: this.data.productList, productList: this.data.productList,
}) })
...@@ -258,7 +253,6 @@ Component({ ...@@ -258,7 +253,6 @@ Component({
this.data.productSubscibList[this.data.sceneName].map((item) => { this.data.productSubscibList[this.data.sceneName].map((item) => {
if (item.isSelect) item.isSelect = false if (item.isSelect) item.isSelect = false
}) })
console.log(this.data.productSubscibList[this.data.sceneName]);
this.setData({ this.setData({
productSubscibList: this.data.productSubscibList, productSubscibList: this.data.productSubscibList,
}) })
...@@ -271,7 +265,6 @@ Component({ ...@@ -271,7 +265,6 @@ Component({
// 提交获取业务场景以及选择的产品 // 提交获取业务场景以及选择的产品
getSceneItems() { getSceneItems() {
console.log(111);
// 如果选择了业务场景 // 如果选择了业务场景
if (!this.data.sceneName) return if (!this.data.sceneName) return
let selectFlag = 0; let selectFlag = 0;
......
/*
* @Description:
* @Author: huyue
* @Date: 2022-12-11 15:27:46
* @LastEditors: huyue
* @LastEditTime: 2023-01-11 15:14:25
*/
module.exports = Behavior({ module.exports = Behavior({
methods: { methods: {
/** 跳转门店助手 */ /** 跳转门店助手 */
toStoreMiniProgram () { toStoreMiniProgram () {
wx.$util.getMockConfig().then(({storeParams, storeappId}) => { wx.$util.getMockConfig().then(({storeParams, storeappId}) => {
console.log(storeParams, storeappId)
wx.navigateToMiniProgram({ wx.navigateToMiniProgram({
appId: storeappId, appId: storeappId,
path: 'packageStoreAssistant/packageAuth/pages/authentication/loading/loading', path: 'packageStoreAssistant/packageAuth/pages/authentication/loading/loading',
extraData: storeParams, extraData: storeParams,
envVersion: 'trial', envVersion: 'trial',
success(res) { success(res) {
console.log(res, storeParams)
// 打开成功 // 打开成功
} }
}) })
...@@ -19,7 +24,6 @@ module.exports = Behavior({ ...@@ -19,7 +24,6 @@ module.exports = Behavior({
/** 跳转生意助手 */ /** 跳转生意助手 */
toBusinessMiniProgram (){ toBusinessMiniProgram (){
wx.$util.getMockConfig().then(({businessParams, businessappId}) => { wx.$util.getMockConfig().then(({businessParams, businessappId}) => {
console.log(businessParams, businessappId)
wx.navigateToMiniProgram({ wx.navigateToMiniProgram({
appId: businessappId, appId: businessappId,
path: 'login/loading/loading', path: 'login/loading/loading',
......
...@@ -11,8 +11,8 @@ ...@@ -11,8 +11,8 @@
}, },
"glsx-applet-component": { "glsx-applet-component": {
"version": "1.0.44", "version": "1.0.44",
"resolved": "https://registry.npmjs.org/glsx-applet-component/-/glsx-applet-component-1.0.44.tgz", "resolved": "https://registry.npmjs.org/glsx-applet-component/-/glsx-applet-component-1.0.40.tgz",
"integrity": "sha512-GEgRy/WYEFjWljh1CAkleW2gRy3/Ss1dk1+z+0O0M29euwR++KS0jwlh3unEIm72c04D3u0FwYiE2vPmgR8qwQ==" "integrity": "sha512-ZqThscIToW/UfNWN1XYRa/+9C0P5J0UJYAuF0kiLjfyQx0ToaBEwfsXOO66EXZKxmDf9mOh+GoDEddLxcJ/6/w=="
} }
} }
} }
...@@ -17,7 +17,6 @@ Page({ ...@@ -17,7 +17,6 @@ Page({
submitApply() { submitApply() {
wx.$util.showLoading("提交中..."); wx.$util.showLoading("提交中...");
let validFlag = this.selectComponent("#applyForm").validateForm(); let validFlag = this.selectComponent("#applyForm").validateForm();
console.log(validFlag);
if (!validFlag) return if (!validFlag) return
let params = JSON.parse(JSON.stringify(validFlag)) let params = JSON.parse(JSON.stringify(validFlag))
params.cardId = wx.$storage.get("scene").cardId; params.cardId = wx.$storage.get("scene").cardId;
...@@ -26,7 +25,6 @@ Page({ ...@@ -26,7 +25,6 @@ Page({
wx.$storage.get("scene").merchantId; wx.$storage.get("scene").merchantId;
params.openId = wx.$storage.get("aicard_info").openId; params.openId = wx.$storage.get("aicard_info").openId;
params.unionId = wx.$storage.get("aicard_info").unionId; params.unionId = wx.$storage.get("aicard_info").unionId;
console.log(params);
entmicroApi.activityApply(params).then(({ entmicroApi.activityApply(params).then(({
data, data,
code, code,
...@@ -57,12 +55,10 @@ Page({ ...@@ -57,12 +55,10 @@ Page({
*/ */
onLoad(options) { onLoad(options) {
if (util.getUserInfo() && util.getUserInfo().phone) { if (util.getUserInfo() && util.getUserInfo().phone) {
console.log(util.getUserInfo().phone)
let params = { let params = {
phone: util.getUserInfo().phone phone: util.getUserInfo().phone
} }
entmicroApi.checkPhone(params).then(res => { entmicroApi.checkPhone(params).then(res => {
console.log(res);
this.setData({ this.setData({
isStaff: res.data isStaff: res.data
}) })
......
...@@ -13,15 +13,12 @@ Page({ ...@@ -13,15 +13,12 @@ Page({
}, },
toActivity(){ toActivity(){
// wx.$util.getMockConfig().then(({businessParams, businessappId}) => {
// console.log(businessParams, businessappId)
const { activityInfo } = this.data const { activityInfo } = this.data
wx.navigateToMiniProgram({ wx.navigateToMiniProgram({
appId: 'wxe10067a63c1856ac', appId: 'wxe10067a63c1856ac',
path: 'pages/crowdfunding/index/index?id=' + activityInfo.crowdFundActivityId + '&merchantId=' + activityInfo.merchantNo, path: 'pages/crowdfunding/index/index?id=' + activityInfo.crowdFundActivityId + '&merchantId=' + activityInfo.merchantNo,
envVersion: 'trial', envVersion: 'trial',
success(res) { success(res) {
console.log(res, storeParams)
// 打开成功 // 打开成功
} }
}) })
...@@ -31,7 +28,6 @@ Page({ ...@@ -31,7 +28,6 @@ Page({
* 生命周期函数--监听页面加载 * 生命周期函数--监听页面加载
*/ */
onLoad(options) { onLoad(options) {
console.log(options)
if (options && options.id) { if (options && options.id) {
wx.$trackData = options wx.$trackData = options
wx.$storage.set('scene', options) wx.$storage.set('scene', options)
...@@ -41,7 +37,6 @@ Page({ ...@@ -41,7 +37,6 @@ Page({
}) })
} else { } else {
wx.$router.getData(res => { wx.$router.getData(res => {
console.log(res)
this.getActivityDetail(res.id) this.getActivityDetail(res.id)
this.setData({ this.setData({
hasPhoneNumber: res.hasPhoneNumber hasPhoneNumber: res.hasPhoneNumber
...@@ -52,7 +47,6 @@ Page({ ...@@ -52,7 +47,6 @@ Page({
getActivityDetail(id) { getActivityDetail(id) {
entmicroApi.getActivityDetail({id}).then(res => { entmicroApi.getActivityDetail({id}).then(res => {
console.log(wx.$util.iosTimeFormat(res.beginTime), new Date(wx.$util.iosTimeFormat(res.beginTime)).format('yyyy年MM月dd日'))
res.beginTime = new Date(wx.$util.iosTimeFormat(res.beginTime)).format('yyyy年MM月dd日') res.beginTime = new Date(wx.$util.iosTimeFormat(res.beginTime)).format('yyyy年MM月dd日')
res.endTime = new Date(wx.$util.iosTimeFormat(res.endTime)).format('yyyy年MM月dd日') res.endTime = new Date(wx.$util.iosTimeFormat(res.endTime)).format('yyyy年MM月dd日')
wx.$Track.sendTrack({ wx.$Track.sendTrack({
......
...@@ -35,7 +35,6 @@ Page({ ...@@ -35,7 +35,6 @@ Page({
// } // }
// } // }
if (!this.data.isDisabled) { if (!this.data.isDisabled) {
console.log(this.data.checkArray)
let checkArray = [] let checkArray = []
this.data.measureList.forEach(item => { this.data.measureList.forEach(item => {
item.product.forEach(i => { item.product.forEach(i => {
...@@ -44,9 +43,7 @@ Page({ ...@@ -44,9 +43,7 @@ Page({
} }
}) })
}) })
console.log(checkArray)
const params = Object.assign({checkArray}, this.data.formData) const params = Object.assign({checkArray}, this.data.formData)
console.log(params)
wx.$router.go("/packagesList/pages/measure/measureResult/measureResult", params); wx.$router.go("/packagesList/pages/measure/measureResult/measureResult", params);
} }
}, },
...@@ -58,13 +55,11 @@ Page({ ...@@ -58,13 +55,11 @@ Page({
const name = `measureList[${index}].product[${productIndex}].isCheck` const name = `measureList[${index}].product[${productIndex}].isCheck`
const val = this.data.measureList[index].product[productIndex].isCheck const val = this.data.measureList[index].product[productIndex].isCheck
!val ? checkMap.set(value, !val) : checkMap.delete(value) !val ? checkMap.set(value, !val) : checkMap.delete(value)
console.log(checkMap)
this.setData({ this.setData({
[name]: !val, [name]: !val,
checkArray: [...checkMap.keys()] checkArray: [...checkMap.keys()]
}) })
this.validForm() this.validForm()
console.log(this.data.checkArray)
}, },
// 必填校验 // 必填校验
...@@ -80,7 +75,6 @@ Page({ ...@@ -80,7 +75,6 @@ Page({
handleInput(e) { handleInput(e) {
let name = e.currentTarget.dataset.name let name = e.currentTarget.dataset.name
let val = this.validateNumber(e.detail.value) let val = this.validateNumber(e.detail.value)
console.log(val)
const form = `formData.${name}` const form = `formData.${name}`
this.setData({ this.setData({
[form]: val [form]: val
...@@ -90,7 +84,6 @@ Page({ ...@@ -90,7 +84,6 @@ Page({
// 输入正整数校验 // 输入正整数校验
validateNumber(val) { validateNumber(val) {
console.log(val, val.replace(/\D/g, ''))
return val == 0 ? '' : val.replace(/\D/g, '') return val == 0 ? '' : val.replace(/\D/g, '')
}, },
......
...@@ -27,10 +27,8 @@ Page({ ...@@ -27,10 +27,8 @@ Page({
// 计算公式 // 计算公式
formula(name, item, list) { formula(name, item, list) {
console.log(name, item)
const {storeNumber, carNumber, customNumber} = this.data.formData const {storeNumber, carNumber, customNumber} = this.data.formData
const {rate, averagePrice, flowCost, serviceDividendRatio, typeIndex} = item const {rate, averagePrice, flowCost, serviceDividendRatio, typeIndex} = item
console.log(storeNumber, carNumber, customNumber)
let value = 0 let value = 0
switch(name) { switch(name) {
// 增值产量(总) // 增值产量(总)
...@@ -149,7 +147,6 @@ Page({ ...@@ -149,7 +147,6 @@ Page({
} else { } else {
const {countList} = this.data const {countList} = this.data
const countData = {} const countData = {}
console.log(checkList)
checkList.forEach(i => { checkList.forEach(i => {
countList.forEach(j => { countList.forEach(j => {
const value = this.formula(j, i, checkList) const value = this.formula(j, i, checkList)
...@@ -161,9 +158,7 @@ Page({ ...@@ -161,9 +158,7 @@ Page({
}, },
// 编辑 // 编辑
toEdit(e) { toEdit(e) {
console.log(e)
const {item, index} = e.currentTarget.dataset const {item, index} = e.currentTarget.dataset
console.log(item)
this.setData({ this.setData({
visible: true, visible: true,
'dialogData.rate': (item.rate * 10000 / 100).toFixed(2), 'dialogData.rate': (item.rate * 10000 / 100).toFixed(2),
...@@ -177,7 +172,6 @@ Page({ ...@@ -177,7 +172,6 @@ Page({
}) })
}, },
clickDialog(e) { clickDialog(e) {
console.log(e.changedTouches[0].clientY);
if (e.changedTouches[0].clientY < 451) { if (e.changedTouches[0].clientY < 451) {
this.setData({ this.setData({
visible: false visible: false
...@@ -185,11 +179,7 @@ Page({ ...@@ -185,11 +179,7 @@ Page({
} }
}, },
submit(e) { submit(e) {
console.log(e, this.data.dialogData)
const {rate, averagePrice, index} = this.data.dialogData const {rate, averagePrice, index} = this.data.dialogData
console.log(index)
// const reg = /^[1-9]\d*$/
// const reg1 = /^[1-9]{0,1}\d{1}(.\d{0,2})$/
if (!rate) { if (!rate) {
wx.showToast({ wx.showToast({
title: '请输入转化率', title: '请输入转化率',
...@@ -211,10 +201,8 @@ Page({ ...@@ -211,10 +201,8 @@ Page({
[`checkList[${index}].averagePrice`]: averagePrice, [`checkList[${index}].averagePrice`]: averagePrice,
visible: false visible: false
}) })
console.log(this.data)
const checkList = this.getCalculate(this.data.checkList) const checkList = this.getCalculate(this.data.checkList)
const countData = this.getCalculate(this.data.checkList, true) const countData = this.getCalculate(this.data.checkList, true)
console.log(checkList, countData)
this.setData({ this.setData({
checkList, checkList,
countData countData
...@@ -222,12 +210,10 @@ Page({ ...@@ -222,12 +210,10 @@ Page({
}, },
// 输入框输入 // 输入框输入
handleInput(e) { handleInput(e) {
console.log(e)
let value = e.detail.value let value = e.detail.value
const name = e.target.dataset.name const name = e.target.dataset.name
const reg = /^[1-9]\d*$/ const reg = /^[1-9]\d*$/
const reg1 = /^[1-9]{0,1}\d{1}(.\d{0,2})$/ const reg1 = /^[1-9]{0,1}\d{1}(.\d{0,2})$/
console.log(value <100 && value > 0, (reg.test(value) || reg1.test(value)))
if (name == 'rate') { if (name == 'rate') {
if (value <= 0) { if (value <= 0) {
value = null value = null
...@@ -241,13 +227,11 @@ Page({ ...@@ -241,13 +227,11 @@ Page({
value = integer + '.' + decimal value = integer + '.' + decimal
} }
} else { } else {
console.log(value)
value = value.slice(0, value.length - 1) value = value.slice(0, value.length - 1)
} }
} else { } else {
value = this.validateNumber(value) value = this.validateNumber(value)
} }
console.log(value)
const form = `dialogData.${name}` const form = `dialogData.${name}`
this.setData({ this.setData({
[form]: value [form]: value
...@@ -259,7 +243,6 @@ Page({ ...@@ -259,7 +243,6 @@ Page({
// 输入正整数校验 // 输入正整数校验
validateNumber(val) { validateNumber(val) {
console.log(val, val.replace(/\D/g, ''))
return val == 0 ? '' : val.replace(/\D/g, '') return val == 0 ? '' : val.replace(/\D/g, '')
}, },
...@@ -268,19 +251,16 @@ Page({ ...@@ -268,19 +251,16 @@ Page({
*/ */
onLoad(options) { onLoad(options) {
wx.$router.getData(res => { wx.$router.getData(res => {
console.log(res)
const list = Util.deepClone(res) const list = Util.deepClone(res)
this.setData({ this.setData({
formData: list formData: list
}) })
const checkList = this.getCalculate(list.checkArray) const checkList = this.getCalculate(list.checkArray)
const countData = this.getCalculate(list.checkArray, true) const countData = this.getCalculate(list.checkArray, true)
console.log(checkList)
this.setData({ this.setData({
checkList, checkList,
countData, countData,
}) })
console.log(countData)
}) })
}, },
......
...@@ -77,7 +77,6 @@ Page({ ...@@ -77,7 +77,6 @@ Page({
//接受跳转的路由参数(小程序页面跳转) //接受跳转的路由参数(小程序页面跳转)
onRoute(options) { onRoute(options) {
console.log( options);
if (!options || utils.isEmptyObj(options)) return if (!options || utils.isEmptyObj(options)) return
let { let {
actNum = 0, activeNavIdx = 0, phone, hasPhoneNumber, name, proName actNum = 0, activeNavIdx = 0, phone, hasPhoneNumber, name, proName
...@@ -105,8 +104,6 @@ Page({ ...@@ -105,8 +104,6 @@ Page({
onPageScroll: (function () { onPageScroll: (function () {
let timer = null; let timer = null;
return function (e) { return function (e) {
// console.log(e)
// console.log("在滚动");
// 监听页面的滚动开始和结束 // 监听页面的滚动开始和结束
clearTimeout(timer); clearTimeout(timer);
timer = setTimeout(() => { timer = setTimeout(() => {
...@@ -147,7 +144,6 @@ Page({ ...@@ -147,7 +144,6 @@ Page({
* 生命周期函数--监听页面加载 * 生命周期函数--监听页面加载
*/ */
onLoad(options) { onLoad(options) {
console.log(options)
this.getActiveApiFn() this.getActiveApiFn()
if (options && options.cardId) { if (options && options.cardId) {
wx.$trackData = options wx.$trackData = options
...@@ -164,7 +160,6 @@ Page({ ...@@ -164,7 +160,6 @@ Page({
getApp() getApp()
.login() .login()
.then(({ data }) => { .then(({ data }) => {
console.log(data, '------')
this.setData({ this.setData({
isLoadding: false isLoadding: false
}) })
...@@ -238,7 +233,6 @@ Page({ ...@@ -238,7 +233,6 @@ Page({
// merchantId 兼容旧链接 // merchantId 兼容旧链接
const merchant = wx.$storage.get('scene').merchant || wx.$storage.get('scene').merchantId const merchant = wx.$storage.get('scene').merchant || wx.$storage.get('scene').merchantId
const shareType = 'SHARE_PRO' const shareType = 'SHARE_PRO'
console.log('cardId', cardId, 'merchant', merchant)
const {actNum, activeNavIdx, pageName, proName} = this.data const {actNum, activeNavIdx, pageName, proName} = this.data
return { return {
title: `给你分享一个活动,戳我参与~`, title: `给你分享一个活动,戳我参与~`,
...@@ -248,7 +242,6 @@ Page({ ...@@ -248,7 +242,6 @@ Page({
// 更新手机号码 // 更新手机号码
updatePhoneNumber(e) { updatePhoneNumber(e) {
console.log(e.detail)
this.setData({ this.setData({
hasPhoneNumber: e.detail ? true : false hasPhoneNumber: e.detail ? true : false
}) })
...@@ -259,7 +252,6 @@ Page({ ...@@ -259,7 +252,6 @@ Page({
let params = { let params = {
cardId: scene.cardId cardId: scene.cardId
} }
console.log(params)
entmicroApi.getCardDetail(params).then(({ data, code, message }) => { entmicroApi.getCardDetail(params).then(({ data, code, message }) => {
if (code == -1) { if (code == -1) {
wx.showToast({ wx.showToast({
...@@ -269,7 +261,6 @@ Page({ ...@@ -269,7 +261,6 @@ Page({
}) })
} }
const cardInfo = data || this.data.defaultInfo const cardInfo = data || this.data.defaultInfo
console.log(data, cardInfo)
this.setData( this.setData(
{ {
cardInfo cardInfo
......
...@@ -60,10 +60,8 @@ Page({ ...@@ -60,10 +60,8 @@ Page({
//接受跳转的路由参数(小程序页面跳转) //接受跳转的路由参数(小程序页面跳转)
onRoute(options) { onRoute(options) {
console.log(options)
if (!options || utils.isEmptyObj(options)) return if (!options || utils.isEmptyObj(options)) return
let { actNum = 0, activeNavIdx = 0, phone, hasPhoneNumber } = options let { actNum = 0, activeNavIdx = 0, phone, hasPhoneNumber } = options
// wx.$Track.sendTrack()
this.setData({ this.setData({
actNum, //选中的场景下标 actNum, //选中的场景下标
activeNavIdx, //选中的产品 activeNavIdx, //选中的产品
...@@ -71,7 +69,6 @@ Page({ ...@@ -71,7 +69,6 @@ Page({
hasPhoneNumber:hasPhoneNumber hasPhoneNumber:hasPhoneNumber
}) })
wx.$Track.sendTrack(this.data.trackList[this.data.actNum]) wx.$Track.sendTrack(this.data.trackList[this.data.actNum])
// console.log(this.data.senceData, 'senceData-----')
const senceList = productData[this.data.actNum].filter(item => item.name != '全部') const senceList = productData[this.data.actNum].filter(item => item.name != '全部')
var proInfo = {} var proInfo = {}
for(let i = 0; i< senceList.length; i++) { for(let i = 0; i< senceList.length; i++) {
...@@ -86,8 +83,6 @@ Page({ ...@@ -86,8 +83,6 @@ Page({
proInfo proInfo
}) })
// console.log(this.data.proInfo, '---------proInfo')
// 设置转发标题 // 设置转发标题
let userInfoObj = wx.$storage.get("userInfo") let userInfoObj = wx.$storage.get("userInfo")
// #服务商账号#取该分享者商户的联系人字段,无则取商户简称,无则取商户全称 // #服务商账号#取该分享者商户的联系人字段,无则取商户简称,无则取商户全称
...@@ -96,7 +91,6 @@ Page({ ...@@ -96,7 +91,6 @@ Page({
//分享数据 //分享数据
let item = proInfo let item = proInfo
// console.log('title2',item.productName)
setTimeout(() => { setTimeout(() => {
utils.setNavigationBarTitle(this.data.scenarList[actNum]) utils.setNavigationBarTitle(this.data.scenarList[actNum])
},100) },100)
...@@ -104,8 +98,6 @@ Page({ ...@@ -104,8 +98,6 @@ Page({
onPageScroll: (function () { onPageScroll: (function () {
let timer = null; let timer = null;
return function (e) { return function (e) {
// console.log(e)
// console.log("在滚动");
// 监听页面的滚动开始和结束 // 监听页面的滚动开始和结束
clearTimeout(timer); clearTimeout(timer);
timer = setTimeout(() => { timer = setTimeout(() => {
...@@ -129,7 +121,6 @@ Page({ ...@@ -129,7 +121,6 @@ Page({
* 生命周期函数--监听页面加载 * 生命周期函数--监听页面加载
*/ */
onLoad(options) { onLoad(options) {
console.log(options)
this.getActiveApiFn() this.getActiveApiFn()
if (options && options.cardId) { if (options && options.cardId) {
wx.$trackData = options wx.$trackData = options
...@@ -195,7 +186,6 @@ Page({ ...@@ -195,7 +186,6 @@ Page({
const merchant = wx.$storage.get('scene').merchant || wx.$storage.get('scene').merchantId const merchant = wx.$storage.get('scene').merchant || wx.$storage.get('scene').merchantId
const shareType = 'SHARE_SCEN' const shareType = 'SHARE_SCEN'
const {actNum} = this.data const {actNum} = this.data
console.log('cardId', cardId, 'merchant', merchant)
return { return {
title: `给你分享一个合作场景介绍,戳我了解~`, title: `给你分享一个合作场景介绍,戳我了解~`,
path: `packagesList/pages/scenarioDetail/scenarioDetail?cardId=${cardId}&merchant=${merchant}&shareType=${shareType}&actNum=${actNum}` path: `packagesList/pages/scenarioDetail/scenarioDetail?cardId=${cardId}&merchant=${merchant}&shareType=${shareType}&actNum=${actNum}`
......
...@@ -35,14 +35,11 @@ Page({ ...@@ -35,14 +35,11 @@ Page({
* 生命周期函数--监听页面加载 * 生命周期函数--监听页面加载
*/ */
onLoad(options) { onLoad(options) {
console.log(options)
if (options && options.cardId) { if (options && options.cardId) {
wx.$trackData = options wx.$trackData = options
wx.$storage.set('scene', options) wx.$storage.set('scene', options)
console.log(productData[+options.scenIndex])
const spcList = [99] const spcList = [99]
const {videoIndex, scenIndex, name, leftMenuIndex, videoName } = options const {videoIndex, scenIndex, name, leftMenuIndex, videoName } = options
console.logscenIndex
const res = { const res = {
index: videoIndex, index: videoIndex,
scenIndex: scenIndex, scenIndex: scenIndex,
...@@ -52,7 +49,6 @@ Page({ ...@@ -52,7 +49,6 @@ Page({
videoList: spcList.includes(+scenIndex) ? subscriptionSystemData[leftMenuIndex].videoList : productData[scenIndex][0].videoList, videoList: spcList.includes(+scenIndex) ? subscriptionSystemData[leftMenuIndex].videoList : productData[scenIndex][0].videoList,
videoUrl: spcList.includes(+scenIndex) ? subscriptionSystemData[leftMenuIndex].videoList[+videoIndex].videoUrl : productData[scenIndex][0].videoList[+videoIndex].videoUrl videoUrl: spcList.includes(+scenIndex) ? subscriptionSystemData[leftMenuIndex].videoList[+videoIndex].videoUrl : productData[scenIndex][0].videoList[+videoIndex].videoUrl
} }
console.log(res)
this.setData({ this.setData({
videoItem: res videoItem: res
}) })
...@@ -67,7 +63,6 @@ Page({ ...@@ -67,7 +63,6 @@ Page({
getApp() getApp()
.login() .login()
.then(({ data }) => { .then(({ data }) => {
console.log(data)
if (data && data.phone) { if (data && data.phone) {
this.setData({ this.setData({
hasPhoneNumber: true, hasPhoneNumber: true,
...@@ -78,7 +73,6 @@ Page({ ...@@ -78,7 +73,6 @@ Page({
// wx.$Track.sendTrack(this.data.trackList[scenIndex][res.index]) // wx.$Track.sendTrack(this.data.trackList[scenIndex][res.index])
} else { } else {
wx.$router.getData(res => { wx.$router.getData(res => {
console.log(res)
this.setData({ this.setData({
videoItem: res, videoItem: res,
isLoadding: false isLoadding: false
...@@ -132,21 +126,17 @@ Page({ ...@@ -132,21 +126,17 @@ Page({
}, },
chooseVideo(e) { chooseVideo(e) {
console.log(e)
const {index, info: {name}} = e.detail const {index, info: {name}} = e.detail
const {videoItem} = this.data const {videoItem} = this.data
console.log(videoItem)
if (videoItem.name == '系统订阅') { if (videoItem.name == '系统订阅') {
this.setData({ this.setData({
'videoItem.index': index 'videoItem.index': index
}) })
console.log(this.data.videoItem)
wx.$Track.sendTrack(this.data.systemTrackList[videoItem.leftMenuIndex][index]) wx.$Track.sendTrack(this.data.systemTrackList[videoItem.leftMenuIndex][index])
} else if (videoItem.name == '增值转化') { } else if (videoItem.name == '增值转化') {
this.setData({ this.setData({
'videoItem.index': index 'videoItem.index': index
}) })
console.log(this.data.videoItem)
wx.$Track.sendTrack(this.data.trackList[videoItem.scenIndex][index]) wx.$Track.sendTrack(this.data.trackList[videoItem.scenIndex][index])
} }
setTimeout(() => { setTimeout(() => {
...@@ -204,9 +194,7 @@ Page({ ...@@ -204,9 +194,7 @@ Page({
// merchantId 兼容旧链接 // merchantId 兼容旧链接
const merchant = wx.$storage.get('scene').merchant || wx.$storage.get('scene').merchantId const merchant = wx.$storage.get('scene').merchant || wx.$storage.get('scene').merchantId
const shareType = 'SHARE_VIDEO' const shareType = 'SHARE_VIDEO'
console.log('cardId', cardId, 'merchant', merchant)
const {index, scenIndex, videoUrl, name, leftMenuIndex, videoName} = this.data.videoItem const {index, scenIndex, videoUrl, name, leftMenuIndex, videoName} = this.data.videoItem
console.log(this.data.videoItem)
return { return {
title: `您好,我向你分享了一个视频`, title: `您好,我向你分享了一个视频`,
path: `packagesList/pages/videoDetal/videoDetal?cardId=${cardId}&merchant=${merchant}&shareType=${shareType}&scenIndex=${scenIndex}&videoIndex=${index}&name=${name}&leftMenuIndex=${leftMenuIndex}&videoName=${videoName}` path: `packagesList/pages/videoDetal/videoDetal?cardId=${cardId}&merchant=${merchant}&shareType=${shareType}&scenIndex=${scenIndex}&videoIndex=${index}&name=${name}&leftMenuIndex=${leftMenuIndex}&videoName=${videoName}`
......
...@@ -41,7 +41,6 @@ Component({ ...@@ -41,7 +41,6 @@ Component({
*/ */
methods: { methods: {
toActivity(e) { toActivity(e) {
console.log(this.data.current, e.target.dataset)
const {activityId} = e.target.dataset const {activityId} = e.target.dataset
wx.$router.go('/packagesList/pages/activityDetail/activityDetail',{hasPhoneNumber: this.properties.hasPhoneNumber}) wx.$router.go('/packagesList/pages/activityDetail/activityDetail',{hasPhoneNumber: this.properties.hasPhoneNumber})
} }
......
...@@ -45,7 +45,6 @@ Component({ ...@@ -45,7 +45,6 @@ Component({
}) })
}, },
tapBanner(e) { tapBanner(e) {
console.log(e)
let current = e.target.dataset.current let current = e.target.dataset.current
this.setData({ this.setData({
awardCurrent: current awardCurrent: current
......
...@@ -11,10 +11,7 @@ Component({ ...@@ -11,10 +11,7 @@ Component({
type: Object type: Object
}, },
productData: { productData: {
type: Object, type: Object
observer(n) {
console.log(n)
}
}, },
hasPhoneNumber: { hasPhoneNumber: {
type: Boolean, type: Boolean,
...@@ -35,7 +32,6 @@ Component({ ...@@ -35,7 +32,6 @@ Component({
*/ */
methods: { methods: {
selectScenario(e) { selectScenario(e) {
console.log(e)
const { index } = e.target.dataset const { index } = e.target.dataset
this.setData({ this.setData({
currentScen: index, currentScen: index,
...@@ -47,11 +43,9 @@ Component({ ...@@ -47,11 +43,9 @@ Component({
wx.$router.go('/packagesList/pages/productDetail/productDetail') wx.$router.go('/packagesList/pages/productDetail/productDetail')
}, },
videoClick(e) { videoClick(e) {
console.log(e)
const { index, info: {videoUrl} } = e.detail const { index, info: {videoUrl} } = e.detail
const {currentScen, productData} = this.data const {currentScen, productData} = this.data
const videoList = productData[currentScen][0].videoList const videoList = productData[currentScen][0].videoList
console.log(videoList)
wx.$router.go('/packagesList/pages/videoDetal/videoDetal', { wx.$router.go('/packagesList/pages/videoDetal/videoDetal', {
index, index,
videoList, videoList,
......
...@@ -426,15 +426,15 @@ const scenario_3 = [ ...@@ -426,15 +426,15 @@ const scenario_3 = [
] ]
// 膨胀金 // 膨胀金
const sceneImgs4 = [`${IMG_URL}index/productImgs/product60.webp`, `${IMG_URL}index/productImgs/product61.webp`, `${IMG_URL}index/productImgs/product62.webp`, `${IMG_URL}index/productImgs/product63.webp`, `${IMG_URL}index/productImgs/product64.webp`, `${IMG_URL}index/productImgs/product65.webp`] const sceneImgs4 = [`${IMG_URL}index/productImgs/product70.webp`, `${IMG_URL}index/productImgs/product71.webp`, `${IMG_URL}index/productImgs/product72.webp`, `${IMG_URL}index/productImgs/product73.webp`, `${IMG_URL}index/productImgs/product74.webp`, `${IMG_URL}index/productImgs/product75.webp`]
const productImgs4 = [`${IMG_URL}index/productImgs/product60.webp`, `${IMG_URL}index/productImgs/product61.webp`, `${IMG_URL}index/productImgs/product62.webp`, `${IMG_URL}index/productImgs/product63.webp`, `${IMG_URL}index/productImgs/product64.webp`, `${IMG_URL}index/productImgs/product65.webp`] const productImgs4 = [`${IMG_URL}index/productImgs/product70.webp`, `${IMG_URL}index/productImgs/product71.webp`, `${IMG_URL}index/productImgs/product72.webp`, `${IMG_URL}index/productImgs/product73.webp`, `${IMG_URL}index/productImgs/product74.webp`, `${IMG_URL}index/productImgs/product75.webp`]
const videoList4 = [ const videoList4 = [
{ {
videoUrl: `${videoBaseUrl}video/expansive_activity.mp4`, videoUrl: `${videoBaseUrl}video/expansive.mp4`,
posterUrl: `${IMG_URL}index/poster/expansive_activity.png`, posterUrl: `${IMG_URL}index/poster/expansive_activity.png`,
name: '如何利用膨胀金服务帮助门店锁客返厂', name: '数字化营销增值服务-膨胀金活动',
manufacturer: '嘀加智慧', manufacturer: '嘀加智慧',
view: 188 view: 3298
} }
] ]
const scenario_4 = [ const scenario_4 = [
......
...@@ -13,14 +13,14 @@ const videoList0 = [ ...@@ -13,14 +13,14 @@ const videoList0 = [
posterUrl: `${IMG_URL}index/poster/customer_auto.png`, posterUrl: `${IMG_URL}index/poster/customer_auto.png`,
name: '门店企微福利官实现客户活跃自动化', name: '门店企微福利官实现客户活跃自动化',
manufacturer: '嘀加智慧', manufacturer: '嘀加智慧',
view: 188 view: 1324
}, },
{ {
videoUrl: `${IMG_URL2}video/fix_insurance.mp4`, videoUrl: `${IMG_URL2}video/fix_insurance.mp4`,
posterUrl: `${IMG_URL}index/poster/fix_insurance.png`, posterUrl: `${IMG_URL}index/poster/fix_insurance.png`,
name: '定保数字化招揽,助力定保招揽返厂率提升10%', name: '定保数字化招揽,助力定保招揽返厂率提升10%',
manufacturer: '嘀加智慧云', manufacturer: '嘀加智慧云',
view: 188 view: 1546
} }
] ]
const videoList1 = [ const videoList1 = [
...@@ -44,7 +44,7 @@ const subscriptionSystemData = [ ...@@ -44,7 +44,7 @@ const subscriptionSystemData = [
id: 0, id: 0,
currentIndex: 0, currentIndex: 0,
img: 'product-img1', img: 'product-img1',
proName: '私域用户活跃代运营', proName: '客户活跃代运营',
price: '100', price: '100',
profit: '1200000', profit: '1200000',
type: 'service', type: 'service',
...@@ -54,7 +54,7 @@ const subscriptionSystemData = [ ...@@ -54,7 +54,7 @@ const subscriptionSystemData = [
varType: 0, varType: 0,
flow: 10000, flow: 10000,
productCode: 'PC011', productCode: 'PC011',
productName: '私域用户活跃代运营', productName: '客户活跃代运营',
category: '代运营', category: '代运营',
prodImg: `${IMG_URL2}/prod2/prod4-0.webp`, prodImg: `${IMG_URL2}/prod2/prod4-0.webp`,
sceneImgs: [ sceneImgs: [
...@@ -77,7 +77,7 @@ const subscriptionSystemData = [ ...@@ -77,7 +77,7 @@ const subscriptionSystemData = [
id: 1, id: 1,
currentIndex: 1, currentIndex: 1,
img: 'product-img1', img: 'product-img1',
proName: '定保/续保数字化招揽', proName: '定保数字化招揽',
price: '100', price: '100',
profit: '1200000', profit: '1200000',
type: 'service', type: 'service',
...@@ -87,7 +87,7 @@ const subscriptionSystemData = [ ...@@ -87,7 +87,7 @@ const subscriptionSystemData = [
varType: 0, varType: 0,
flow: 10000, flow: 10000,
productCode: 'PC012', productCode: 'PC012',
productName: '定保/续保数字化招揽', productName: '定保数字化招揽',
category: '招揽', category: '招揽',
prodImg: `${IMG_URL}index/prod2/prod4-1.webp`, prodImg: `${IMG_URL}index/prod2/prod4-1.webp`,
sceneImgs: [ sceneImgs: [
......
...@@ -138,7 +138,6 @@ Page({ ...@@ -138,7 +138,6 @@ Page({
proClick(e) { proClick(e) {
const { name } = e.target.dataset const { name } = e.target.dataset
let { detail } = e let { detail } = e
console.log(detail)
let obj = { let obj = {
name, name,
actNum: isNaN(detail.scenIndex) ? 99 : detail.scenIndex, //选中的场景 没有就是订阅系统的 actNum: isNaN(detail.scenIndex) ? 99 : detail.scenIndex, //选中的场景 没有就是订阅系统的
...@@ -150,7 +149,6 @@ Page({ ...@@ -150,7 +149,6 @@ Page({
}, },
// 跳转视频详情 // 跳转视频详情
videoClick(e) { videoClick(e) {
console.log(e)
const { name } = e.target.dataset const { name } = e.target.dataset
const { const {
index, index,
...@@ -159,7 +157,6 @@ Page({ ...@@ -159,7 +157,6 @@ Page({
list list
} = e.detail } = e.detail
const videoList = list const videoList = list
console.log(scenIndex)
const obj = { const obj = {
index, index,
videoList, videoList,
...@@ -488,9 +485,7 @@ Page({ ...@@ -488,9 +485,7 @@ Page({
/** 系统订阅 */ /** 系统订阅 */
sysMenuClick(e) { sysMenuClick(e) {
console.log(e)
const {id} = e.detail const {id} = e.detail
leftMenuIndex = id leftMenuIndex = id
console.log(1111, leftMenuIndex)
} }
}) })
...@@ -34,7 +34,7 @@ ...@@ -34,7 +34,7 @@
"scene": null "scene": null
}, },
{ {
"name": "", "name": "测试",
"pathName": "pages/tab/index/index", "pathName": "pages/tab/index/index",
"query": "scene=sceneId%3D3275", "query": "scene=sceneId%3D3275",
"launchMode": "default", "launchMode": "default",
...@@ -74,6 +74,20 @@ ...@@ -74,6 +74,20 @@
"query": "cardId=38&merchant=44210895", "query": "cardId=38&merchant=44210895",
"launchMode": "default", "launchMode": "default",
"scene": null "scene": null
},
{
"name": "预发布",
"pathName": "pages/tab/index/index",
"query": "scene=sceneId%3D408",
"launchMode": "default",
"scene": null
},
{
"name": "生产",
"pathName": "pages/tab/index/index",
"query": "scene=sceneId%3D5116",
"launchMode": "default",
"scene": null
} }
] ]
} }
......
...@@ -153,9 +153,7 @@ class Router { ...@@ -153,9 +153,7 @@ class Router {
* 保留当前页面,跳转到应用内的某个页面。但是不能跳到 tabbar 页面。使用 $router.back() 可以返回到原页面。小程序中页面栈最多十层 * 保留当前页面,跳转到应用内的某个页面。但是不能跳到 tabbar 页面。使用 $router.back() 可以返回到原页面。小程序中页面栈最多十层
*/ */
go(route, events) { go(route, events) {
// console.log(route, events)
let { routerMapItem, query } = this.checkRouter(route, events) let { routerMapItem, query } = this.checkRouter(route, events)
// console.log(routerMapItem)
if (routerMapItem.isTab) { if (routerMapItem.isTab) {
wx.switchTab({ wx.switchTab({
url: routerMapItem.url url: routerMapItem.url
......
...@@ -394,7 +394,6 @@ class Draw { ...@@ -394,7 +394,6 @@ class Draw {
}) })
} }
base64src(url).then(img => { base64src(url).then(img => {
console.log('img', img)
createLocalImg(img, callBack) createLocalImg(img, callBack)
}) })
} }
...@@ -413,7 +412,6 @@ const createLocalImg = (url, callBack) => { ...@@ -413,7 +412,6 @@ const createLocalImg = (url, callBack) => {
fail() { fail() {
wx.$util.showToast('图片生成失败,请稍后再试') wx.$util.showToast('图片生成失败,请稍后再试')
wx.hideLoading() wx.hideLoading()
console.error(`图片转换本地失败,${url}`)
} }
}) })
} }
......
...@@ -244,7 +244,6 @@ class Draw { ...@@ -244,7 +244,6 @@ class Draw {
padding, padding,
fontSize fontSize
} = params } = params
console.log(params)
let topX, topY, rightX, rightY, bottomX, bottomY, leftX, leftY, paddingX, paddingY let topX, topY, rightX, rightY, bottomX, bottomY, leftX, leftY, paddingX, paddingY
// if(padding && padding.length>1) // if(padding && padding.length>1)
...@@ -433,7 +432,6 @@ const createLocalImg = (url, callBack) => { ...@@ -433,7 +432,6 @@ const createLocalImg = (url, callBack) => {
icon: 'none' icon: 'none'
}) })
wx.hideLoading() wx.hideLoading()
console.error(`图片转换本地失败,${url}`)
} }
}) })
} }
......
...@@ -67,18 +67,10 @@ class TRACK { ...@@ -67,18 +67,10 @@ class TRACK {
} }
/**设置埋点数据 */ /**设置埋点数据 */
setTrack(params, act_id = 1) { setTrack(params, act_id = 1) {
console.log('---------------- 获取小程序启动时的参数 ----------------', wx.getLaunchOptionsSync())
let userInfo = wx.$storage.get('aicard_user_info') let userInfo = wx.$storage.get('aicard_user_info')
console.log(this.getPageTitle(), userInfo)
// if (this.getPageTitle() == '广联数科智能名片') {
// console.log()
// this.sendTrack(trackData.HOME)
// }
} }
/**发送埋点数据 */ /**发送埋点数据 */
sendTrack(p, info) { sendTrack(p, info) {
console.log(info)
console.log(wx.$trackData);
const systemInfo = wx.$storage.get('aicard_system_info') const systemInfo = wx.$storage.get('aicard_system_info')
let params = { let params = {
method: 'entmicro.api.business.card.cardRecord', method: 'entmicro.api.business.card.cardRecord',
...@@ -101,14 +93,12 @@ class TRACK { ...@@ -101,14 +93,12 @@ class TRACK {
} }
params = Object.assign(params, userInfo, p) params = Object.assign(params, userInfo, p)
console.log(params)
api.reportTrack(params).then(({ api.reportTrack(params).then(({
code, code,
data, data,
message message
}) => { }) => {
if (code == 0) { if (code == 0) {
console.log('埋点设置成功')
} }
}) })
} }
......
...@@ -56,8 +56,6 @@ class Storage { ...@@ -56,8 +56,6 @@ class Storage {
// 判断值是否是指定的对象值 // 判断值是否是指定的对象值
let tmpKey = this.checkKeyType(key, 1) let tmpKey = this.checkKeyType(key, 1)
let isObjectKey = STORAGE_OBJECTkEY[tmpKey] let isObjectKey = STORAGE_OBJECTkEY[tmpKey]
// console.log(key)
// console.log(isObjectKey)
if (isObjectKey) { if (isObjectKey) {
return this.getObjectKeyValue(isObjectKey) return this.getObjectKeyValue(isObjectKey)
} else { } else {
...@@ -112,7 +110,6 @@ class Storage { ...@@ -112,7 +110,6 @@ class Storage {
wx.setStorageSync(tmpKey, tmpData) wx.setStorageSync(tmpKey, tmpData)
resolve(sucMsg) resolve(sucMsg)
} catch (err) { } catch (err) {
console.log(err)
reject(errMsg) reject(errMsg)
} }
} else { } else {
...@@ -123,7 +120,6 @@ class Storage { ...@@ -123,7 +120,6 @@ class Storage {
resolve(sucMsg) resolve(sucMsg)
}, },
fail: err => { fail: err => {
console.log(err)
reject(errMsg) reject(errMsg)
} }
}) })
...@@ -149,7 +145,6 @@ class Storage { ...@@ -149,7 +145,6 @@ class Storage {
wx.clearStorageSync() wx.clearStorageSync()
resolve(sucMsg) resolve(sucMsg)
} catch (err) { } catch (err) {
console.log(err)
reject(errMsg) reject(errMsg)
} }
} else { } else {
...@@ -158,7 +153,6 @@ class Storage { ...@@ -158,7 +153,6 @@ class Storage {
resolve(sucMsg) resolve(sucMsg)
}, },
fail: err => { fail: err => {
console.log(err)
reject(errMsg) reject(errMsg)
} }
}) })
...@@ -170,7 +164,6 @@ class Storage { ...@@ -170,7 +164,6 @@ class Storage {
wx.removeStorageSync(tmpKey) wx.removeStorageSync(tmpKey)
resolve(sucMsg) resolve(sucMsg)
} catch (err) { } catch (err) {
console.log(err)
reject(errMsg) reject(errMsg)
} }
} else { } else {
...@@ -180,7 +173,6 @@ class Storage { ...@@ -180,7 +173,6 @@ class Storage {
resolve(sucMsg) resolve(sucMsg)
}, },
fail: err => { fail: err => {
console.log(err)
reject(errMsg) reject(errMsg)
} }
}) })
...@@ -195,7 +187,6 @@ class Storage { ...@@ -195,7 +187,6 @@ class Storage {
* @returns {String} 拼接后的值 * @returns {String} 拼接后的值
*/ */
addEvnToKey = key => { addEvnToKey = key => {
// return // console.log(this.environment)
return `${this.environment}_${key}` return `${this.environment}_${key}`
} }
} }
......
// 实例化对象存储 // 实例化对象存储
import { Storage } from './storage' import { Storage } from './storage'
const $Storage = new Storage() const $Storage = new Storage()
// console.log($Storage)
/** */ /** */
export function getSessionId() { export function getSessionId() {
return $Storage.get('sessionId') return $Storage.get('sessionId')
...@@ -13,7 +12,6 @@ export function getUserInfo() { ...@@ -13,7 +12,6 @@ export function getUserInfo() {
return $Storage.get('userInfo') return $Storage.get('userInfo')
} }
export function setUserInfo(data) { export function setUserInfo(data) {
console.log(data)
$Storage.set('userInfo', data) $Storage.set('userInfo', data)
} }
export function removeSystemStorage() { export function removeSystemStorage() {
......
...@@ -165,11 +165,11 @@ const trackData = { ...@@ -165,11 +165,11 @@ const trackData = {
}, },
SYSUSER: { SYSUSER: {
pageKey: 42, pageKey: 42,
pageName: "私域用户活跃代运营" pageName: "客户活跃代运营"
}, },
SYSNUMBER: { SYSNUMBER: {
pageKey: 43, pageKey: 43,
pageName: "定保/续保数字化招揽" pageName: "定保数字化招揽"
}, },
SYSCAR: { SYSCAR: {
pageKey: 44, pageKey: 44,
......
...@@ -129,7 +129,6 @@ const onReachBottom = (obj, callBack) => { ...@@ -129,7 +129,6 @@ const onReachBottom = (obj, callBack) => {
nothing nothing
} = obj } = obj
if (!total && !pageNum) { if (!total && !pageNum) {
console.error('total&&pageNum为必传')
return return
} }
if (!pageSize) pageSize = 10 if (!pageSize) pageSize = 10
...@@ -451,14 +450,8 @@ const deepClone = (target) => { ...@@ -451,14 +450,8 @@ const deepClone = (target) => {
const setNavigationBarTitle = (title) =>{ const setNavigationBarTitle = (title) =>{
wx.getSystemInfo({ wx.getSystemInfo({
success: (res) => { success: (res) => {
// console.log('++++++++++++++', res);
// console.log('title length',title.length)
let width = res.safeArea.width / res.fontSizeSetting; let width = res.safeArea.width / res.fontSizeSetting;
// console.log('width: ', width);
let space = ''; let space = '';
// for (let i = 0; i <= width+4; i++) {
// space = space + ' ';
// }
width = width-(title.length)/2 width = width-(title.length)/2
...@@ -489,13 +482,10 @@ const setNavigationBarTitle = (title) =>{ ...@@ -489,13 +482,10 @@ const setNavigationBarTitle = (title) =>{
}; };
// 解析参数成对象 "actNum=1&activeNavIdx=0&isShare=true" // 解析参数成对象 "actNum=1&activeNavIdx=0&isShare=true"
const parseString = (str) => { const parseString = (str) => {
// console.log('str: ', str);
if (!str) return; if (!str) return;
let obj = {}; let obj = {};
let strArr = str.split("&"); let strArr = str.split("&");
// console.log('strArr: ', strArr);
strArr.forEach((item) => { strArr.forEach((item) => {
// console.log("item: ", item);
let keyArr = item.split("="); let keyArr = item.split("=");
obj[keyArr[0]] = keyArr[1]; obj[keyArr[0]] = keyArr[1];
}); });
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!