Commit 59afe212 by 匡雅琴

3.11.1上线封版

1 parent 00f383e8
......@@ -14,7 +14,7 @@ const target = ["ip", "dev", "uat", "beta", "prod"];
3预发布
4生产
*/
const index = 2;
const index = 4;
const secretKey = {
ip: {},
dev: {
......
......@@ -10,9 +10,9 @@
"integrity": "sha512-hFJ48SCSvRgcwT/9TcxwNnNnWSpy2BpaBfwQwVdU6uwgFH+2OqGL435VQN7EDpIMH8YjHbiM84hueTyxAzIPqQ=="
},
"glsx-applet-component": {
"version": "1.1.13",
"resolved": "https://registry.npmjs.org/glsx-applet-component/-/glsx-applet-component-1.1.13.tgz",
"integrity": "sha512-erZj/7TIXcckvf2h+Mlr5rMt6YHQLUq9LysgkgbbYA/u6OCVY6pQcT70HBl0WwsoFT4CMbPZ+4gqUKWOP2RocA=="
"version": "1.1.16",
"resolved": "https://registry.npmjs.org/glsx-applet-component/-/glsx-applet-component-1.1.16.tgz",
"integrity": "sha512-XlBqP5ja4TqGB0nTW4dW6fdSQ9m/hAspbBKTJZ9CNUGVCKorkyjv/RfY85ta4OU5PiQCKTFZBbTELtz5MoxaVQ=="
}
}
}
......@@ -5,7 +5,7 @@
"main": "app.js",
"dependencies": {
"@vant/weapp": "^1.10.9",
"glsx-applet-component": "^1.1.13"
"glsx-applet-component": "^1.1.16"
},
"devDependencies": {},
"scripts": {
......
......@@ -184,13 +184,19 @@ Page({
// 获取场景
let systemItem = this.data.systemData.find(item => item.sceneCode == e.detail.sceneCode)
let productItem = this.data.productData.find(item => item.sceneCode == e.detail.sceneCode)
const id = systemItem?.productList[0].id || productItem?.productList[0].id
// let id = ''
// const itemList = systemItem ? systemItem : productItem
// const subList = itemList.subList.length ? itemList.subList[0] : null
// const productList = subList ? subList.productList : itemList.productList
// id = productList.length ? productList[0]?.id : ''
let obj = systemItem || productItem
const id = obj?.subList.length ? obj?.subList[0]?.productList[0]?.id : obj?.productList[0]?.id
if (!id) return
wx.$router.go('/packagesList/pages/productDetail/productDetail', { hasPhoneNumber, id })
},
// 获取全部活动列表
getActivityRecord() {
entmicroApi.getActivityRecord({}).then(({ data, code, message }) => {
entmicroApi.getActivityRecord({}).then(({ data, code, message }) => {meifaxi
if (code == -1) {
wx.showToast({
title: message,
......@@ -209,6 +215,18 @@ Page({
*/
onLoad(options) {
const app = getApp()
app.getBaseData().then(res => {
const productData = res[0].subList
const systemData = res[1].subList
this.setData({
[`tabList[0].name`]: res[0].name,
[`tabList[1]name`]: res[1].name,
systemData,
systemDataId: res[1].id,
productData,
productDataId: res[0].id,
})
})
app.login()
.then(({ data }) => {
if (data && data.phone) {
......@@ -281,18 +299,18 @@ Page({
*/
onShow() {
const app = getApp()
app.getBaseData().then(res => {
const productData = res[0].list
const systemData = res[1].list
this.setData({
[`tabList[0].name`]: res[0].name,
[`tabList[1]name`]: res[1].name,
systemData,
systemDataId: res[1].id,
productData,
productDataId: res[0].id,
})
})
// app.getBaseData().then(res => {
// const productData = res[0].subList
// const systemData = res[1].subList
// this.setData({
// [`tabList[0].name`]: res[0].name,
// [`tabList[1]name`]: res[1].name,
// systemData,
// systemDataId: res[1].id,
// productData,
// productDataId: res[0].id,
// })
// })
const userInfo = wx.$util.getUserInfo()
this.setData({
hasPhoneNumber: !!(userInfo && userInfo.phone)
......
......@@ -22,7 +22,6 @@
<view class="main-content">
<block wx:if="{{curTabIndex == 0}}">
<!-- 增值转化 -->
<!-- <gl-scenario currentScenIndex="{{1}}" productData="{{productData}}" senceData="{{senceData}}" activityList="{{activityList}}" data-name="增值转化" bindactivityClick="activityClick" bind:proClick="proClick" bind:videoClick="videoClick" bind:senceClick="senceClick" bindcurrentScen="getCurrentScen" /> -->
<gl-scenario list="{{productData}}" activityList="{{activityList}}" bindactivityClick="activityClick" bindproClick="proClick" bind:videoClick="videoClick" bindsenceClick="senceClick" bindleftClick="leftClick" bindcurrentScen="getCurrentScen"></gl-scenario>
</block>
<block wx:if="{{curTabIndex == 1}}">
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!