Commit 6ee9c043 by 杨北旺

提交紧急版本内容

1 parent 82cb11bd
import { preReleaseAppId } from '~/config'
const target = ['ip', 'dev', 'uat', 'prod', 'preRelease']
let index = 3
let index = 1
/**
*
......@@ -108,7 +108,7 @@ const defaultMerchantId = {
ip: '44211227',
dev: '44211227',
uat: '44211651',
prod: '44208317',
prod: '44209566',
preRelease: '44209566'
}[target[index]]
......
......@@ -229,4 +229,11 @@ module.exports = {
true
)
},
// 获取门店列表
getStoreList(data) {
return api.post({
method: `scrm.api.shopmall.weapp.merchant.detail.list`,
...data
})
},
};
......@@ -170,7 +170,8 @@
"authorize": "/components/Authorize/Authorize",
"popup": "/components/Popup/Popup",
"goods-action": "/components/GoodsAction/GoodsAction",
"stepper": "/components/Stepper/Stepper"
"stepper": "/components/Stepper/Stepper",
"store-select":"/components/Store/index"
},
"style": "v2",
"resolveAlias": {
......
import { IMG_URL } from '~/config';
import { env } from '~/api/env/index'
import { MERCHANT_STATIC_LIST} from '~/utils/constants'
Component({
properties: {
show:{
type:Boolean,
observer(n) {
if (n) this.getMerchantList()
}
}
},
data: {
storeList: []
},
methods: {
closeModal() {
this.setData({
show: false
})
},
// 检查是否是首次
checkFirst() {
const FIRST = wx.p.storage.get('first_enter_miniprograme')
if (FIRST) {
this.setData({
show: false
})
return true
}
},
// 获取门店信息
async getMerchantList() {
const have_enter = this.checkFirst()
if(have_enter)return
// 获取mock配置门店
const MOCKDATA = wx.p.storage.get("mock_data");
let MerchantList = MERCHANT_STATIC_LIST[env]
if (MOCKDATA && MOCKDATA.add_wuye_merchant) {
const ADD_MERCHANT_LIST = MOCKDATA.add_wuye_merchant[env]
if (ADD_MERCHANT_LIST && ADD_MERCHANT_LIST.length) {
MerchantList = [...MerchantList, ...ADD_MERCHANT_LIST]
}
}
let storeList = [], index = 0
storeList = await this.getMerchantListData(MerchantList)
storeList.forEach((ele, i) => {
ele.merchantId = ele.merchantNo
if (this.defaultMerchant == ele.merchantId) {
index = i
}
})
this.setData({
storeList,
show:true
})
},
// 选择门店
toSelect(e) {
const { item } = e.currentTarget.dataset
wx.p.storage.set('merchant_info', {
merchantId: item.merchantNo,
})
wx.$merchant_id = item.merchantNo
wx.p.storage.set('first_enter_merchantId', item.merchantNo)
wx.p.storage.set('first_enter_miniprograme', true)
this.triggerEvent('freshMerchant')
wx.p.eventbus.emit('STORE')
this.setData({
show: false
})
},
// 获取门店列表
async getMerchantListData(merchantIdList) {
const res = await wx.p.api.shopmallApi.getStoreList({ merchantIdList })
return res || []
},
},
lifetimes: {
attached() {
}
}
})
{
"component": true,
"usingComponents": {}
}
\ No newline at end of file
.modal {
position: fixed;
left: 0;
right: 0;
top: 0;
bottom: 0;
background: rgba($color: #000000, $alpha: 0.6);
z-index: 9999;
}
.pannel {
position: absolute;
left: 50%;
top: 50%;
transform: translate(-50%, -50%);
width: 638rpx;
background: #FFFFFF;
border-radius: 8rpx;
padding-bottom: 30rpx;
.color-bg {
padding: 30rpx;
border-radius: 8rpx;
background-image: linear-gradient(180deg, #E3E8FC 0%, #FFFFFF 100%);
font-weight: 400;
font-size: 32rpx;
color: #333333;
display: flex;
align-items: center;
justify-content: center;
position: relative;
.close {
width: 32rpx;
height: 32rpx;
position: absolute;
right: 15rpx;
top: 50%;
transform: translateY(-50%);
}
}
.list_wrap {
.store_item {
padding: 20rpx 30rpx;
display: flex;
.cover {
width: 104rpx;
height: 104rpx;
transform: translateY(4rpx);
}
.info-wrap {
padding-left: 20rpx;
.title {
font-weight: 600;
font-size: 30rpx;
color: #333333;
margin-bottom: 8rpx;
}
.cell {
display: flex;
align-items: center;
margin-bottom: 4rpx;
.icon {
width: 28rpx;
height: 28rpx;
margin-right: 12rpx;
}
.text {
font-weight: 400;
font-size: 24rpx;
color: #666666;
line-height: 36rpx;
width: 400rpx;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
}
}
}
}
}
}
\ No newline at end of file
<view wx:if="{{show}}" class="modal">
<view wx:if="{{storeList.length}}" class="pannel">
<view class="color-bg">
选择您所在的小区
<!-- <glsx-image class="close" bind:tap="closeModal" webp src="login/close.png"></glsx-image> -->
</view>
<view class="list_wrap">
<block wx:for="{{storeList}}" wx:key="index">
<view bind:tap="toSelect" data-item="{{item}}" class="store_item">
<glsx-image class="cover" webp src="login/banner{{index?'1':'2'}}.png"></glsx-image>
<view class="info-wrap">
<view class="title">{{item.merchantName}}</view>
<view class="cell">
<glsx-image class="icon" webp src="login/phone.png"></glsx-image>
<view class="text">{{item.merchantLegalPersonPhone || '--'}}</view>
</view>
<view class="cell">
<glsx-image class="icon" webp src="login/address.png"></glsx-image>
<view class="text">{{item.merchantAddress || '--'}}</view>
</view>
</view>
</view>
</block>
</view>
</view>
</view>
\ No newline at end of file
......@@ -36,6 +36,7 @@ Page({
buyType,
discoverGoodsSource
} = obj
console.log(obj);
let ids = [], expressFee = 0, goodsNumber = 0
if (obj.deliveryType == 1) {
this.getLocation()
......@@ -365,7 +366,7 @@ Page({
} else {
if (!contactInfo.contactName) {
contactInfo.contactAddress = ' '
contactInfo.contactName = this.data.userInfo.nickName
contactInfo.contactName = this.data.userInfo.nickName || ' '
contactInfo.contactPhone = this.data.userInfo.phone
// wx.p.wxApi.showToast('请选择收货地址')
// return
......@@ -395,13 +396,13 @@ Page({
orderSource,
orderCouponDTO,
contactAddress:contactInfo.contactAddress || ' ',
contactName: contactInfo.contactName,
contactName: contactInfo.contactName || ' ',
contactPhone: contactInfo.contactPhone,
userName: contactInfo.contactName,
userName: contactInfo.contactName || ' ',
userPhone: contactInfo.contactPhone
}
if(deliveryType==0){
query.userName = this.data.userInfo.nickName
query.userName = this.data.userInfo.nickName || this.data.userInfo.phone
query.userPhone = this.data.userInfo.phone
}
wx.p.api.shopmallApi
......
......@@ -14,7 +14,6 @@ Page({
* 生命周期函数--监听页面加载
*/
onLoad: function (options) {
wx.p.routerApi.decodeUrlLink(options)
if (!options.id) {
return
}
......@@ -48,8 +47,8 @@ Page({
showAuthBtn: res.data.phone ? false : true
})
if (res.data.isLogin) {
wx.p.util.setUserInfo(res.data)
wx.p.util.setSessionId(res.data.sessionId)
wx.p.cache.userInfo.setUserInfo(res.data)
wx.p.cache.storageApi.setSessionId(res.data.sessionId)
this.handlerCustomerId()
}
}
......@@ -68,8 +67,8 @@ Page({
wx.hideLoading()
if (code == '0') {
wx.p.authStatus = false
wx.p.util.setUserInfo(data)
wx.p.util.setSessionId(data.sessionId)
wx.p.cache.userInfo.setUserInfo(data)
wx.p.cache.storageApi.setSessionId(data.sessionId)
this.toCreatePackageNum()
this.handlerCustomerId()
} else wx.p.wxApi.showToast(message)
......@@ -152,8 +151,8 @@ Page({
},
// 客户id
handlerCustomerId() {
let customerId = wx.p.storage.get('srcm_shopmall_customer_id')
if (customerId) USERAPI.updataCustomerPhone()
// let customerId = wx.p.storage.get('srcm_shopmall_customer_id')
// if (customerId) USERAPI.updataCustomerPhone()
},
// 价格格式化
// priceFormat(num, point = 2) {
......@@ -173,6 +172,6 @@ Page({
// }
// },
onUnload: function () {
wx.$util.customerbehavior(2)
// wx.$util.customerbehavior(2)
}
})
......@@ -115,8 +115,8 @@
.button-item {
width: 100%;
height: 88rpx;
background: #fc5b32;
border-radius: 8rpx;
background: #3772EC;
border-radius: 48rpx;
display: flex;
align-items: center;
justify-content: center;
......
......@@ -472,11 +472,11 @@ Page({
}
// 配置升级
if (options && options.isUpgrade) {
this.isUpgrade = options.isUpgrade
this.isUpgrade = JSON.parse(options.isUpgrade)
}
// 车主优选
if (options && options.isCarOwner) {
this.isCarOwner = options.isCarOwner
this.isCarOwner = JSON.parse(options.isCarOwner)
}
this.appHide()
},
......
......@@ -218,7 +218,7 @@ Page({
}
let list = []
wx.p.api.mineApi.getOrderList(obj).then((data) => {
wx.hideLoading()
// wx.hideLoading()
data?.list?.map((e) => {
let {
orderGoods,
......
......@@ -31,6 +31,8 @@ Page({
wx.p.storage.set('merchant_info', {
merchantId: options.merchantId,
})
wx.p.storage.set('first_enter_merchantId', options.merchantId)
wx.p.storage.set('first_enter_miniprograme', true)
}
try {
const { code, data, message } = await wx.p.api.userApi.login()
......
......@@ -43,6 +43,10 @@ Page({
onShow() {
let authComponent = this.selectComponent('#authorize')
if (authComponent) authComponent.check()
const FIRST = wx.p.storage.get('first_enter_miniprograme')
this.setData({
showStore:!FIRST
})
},
goMorePage() {
......
......@@ -41,4 +41,4 @@
</view>
<!-- </view> -->
<authorize id="authorize" scopeType="userLocation" isShowCheck="{{false}}" bindfail="authFail" bindsuccess="authSuccess" show="{{showAuth}}"></authorize>
<!-- <glsx-privacy appletName="业主甄选"></glsx-privacy> -->
\ No newline at end of file
<store-select show="{{showStore}}"></store-select>
\ No newline at end of file
const navStyle = "background-color: transparent;";
import { IMG_URL } from '~/config';
import { env } from '~/api/env/index'
import { MERCHANT_STATIC_LIST} from '~/utils/constants'
Page({
data: {
IMG_URL,
......@@ -29,7 +30,7 @@ Page({
let { height } = e.detail;
this.setData({
navBarHeight: height,
user_box_style: `padding-top:${height+10}px`,
user_box_style: `padding-top:${height + 10}px`,
});
},
// 处理滚动事件
......@@ -41,7 +42,14 @@ Page({
},
onLoad(options) {
this.defaultMerchant = wx.$merchant_id
this.getMerchantList()
const FIRST = wx.p.storage.get('first_enter_miniprograme')
if (FIRST) {
this.getMerchantList()
} else {
wx.p.eventbus.on('STORE', () => {
this.getMerchantList()
})
}
this.getStrategyList();
if (options?.jumpH5Url) {
this.setData({
......@@ -54,6 +62,7 @@ Page({
})
}, 1600)
}
},
// 获取省钱攻略
......@@ -81,7 +90,7 @@ Page({
toShowQrCode(e) {
const { url } = e.currentTarget.dataset;
const {currentStore} = this.data
const { currentStore } = this.data
const Name = `${currentStore.merchantId}_${url}`
this.setData({
urlName: Name,
......@@ -112,76 +121,85 @@ Page({
})
this.setData({
currentStore
},()=>{
this.getMerchantIdDetail(currentStore.merchantId)
})
},
// 获取门店列表
getMerchantList() {
const merchantObj = {
'develop': [44211227, 44209845],
'test': [44212577, 44210895, 44212578, 44210956],
'beta': [44211427,44211428],
'production': [44209566, 44209565],
async getMerchantList() {
const HAVE_ENTER = wx.p.storage.get('first_enter_miniprograme')
if (HAVE_ENTER && !this.fresh) {
this.defaultMerchant = wx.p.storage.get('first_enter_merchantId')
}
// 获取mock配置门店
const MOCKDATA = wx.p.storage.get("mock_data");
let MerchantList = merchantObj[env]
if(MOCKDATA&&MOCKDATA.add_wuye_merchant){
let MerchantList = MERCHANT_STATIC_LIST[env]
if (MOCKDATA && MOCKDATA.add_wuye_merchant) {
const ADD_MERCHANT_LIST = MOCKDATA.add_wuye_merchant[env]
if(ADD_MERCHANT_LIST&&ADD_MERCHANT_LIST.length){
MerchantList = [...MerchantList,...ADD_MERCHANT_LIST]
if (ADD_MERCHANT_LIST && ADD_MERCHANT_LIST.length) {
MerchantList = [...MerchantList, ...ADD_MERCHANT_LIST]
}
}
let storeList = [], index = 0
MerchantList.forEach((el, i) => {
wx.$merchant_id = el
wx.p.storage.set('merchant_info', {
merchantId: el,
})
wx.p.api.homeApi.getHomeConfig({ merchantId: el }).then(data => {
let {
merchantName,
noticeContent
} = data
let bannerList = []
if (data.bannerList && data.bannerList.length) bannerList = data.bannerList
storeList.push({
merchantName,
noticeContent,
bannerList,
merchantId: el
})
if (storeList.length > 1) {
storeList.forEach((ele, i) => {
if (this.defaultMerchant == ele.merchantId) {
index = i
}
})
const currentStore = storeList[index]
wx.$merchant_id = currentStore.merchantId
wx.p.storage.set('merchant_info', {
merchantId: currentStore.merchantId,
})
this.setData({
storeList,
currentStore
})
if( this.fresh){
wx.stopPullDownRefresh()
}
}
})
storeList = await this.getMerchantListData(MerchantList)
storeList.forEach((ele, i) => {
ele.merchantId = ele.merchantNo
if (this.defaultMerchant == ele.merchantId) {
index = i
}
})
const currentStore = storeList[index]
wx.$merchant_id = currentStore.merchantId
wx.p.storage.set('merchant_info', {
merchantId: currentStore.merchantId,
})
this.setData({
storeList,
currentStore
}, () => {
this.getMerchantIdDetail(currentStore.merchantId)
})
},
onPullDownRefresh(){
onPullDownRefresh() {
this.fresh = true
this.defaultMerchant = this.getStorageMerchantId()
this.getMerchantList()
this.getStrategyList();
},
onShow() {
const FIRST = wx.p.storage.get('first_enter_miniprograme')
this.setData({
showStore: !FIRST
})
},
// 获取门店id
getStorageMerchantId() {
const {
merchantId
} = wx.p.storage.get('merchant_info')
this.defaultMerchant = merchantId
this.getMerchantList()
this.getStrategyList();
return merchantId
},
// 获取门店列表
async getMerchantListData(merchantIdList) {
const res = await wx.p.api.shopmallApi.getStoreList({ merchantIdList })
return res || []
},
// 获取选择门店的信息
getMerchantIdDetail(merchantId) {
wx.$merchant_id = merchantId
wx.p.api.homeApi.getHomeConfig({ merchantId }).then(data => {
let {
noticeContent
} = data
let bannerList = [], { currentStore } = this.data
if (data.bannerList && data.bannerList.length) bannerList = data.bannerList
currentStore.noticeContent = noticeContent
currentStore.bannerList = bannerList
this.setData({
currentStore
})
})
}
});
......@@ -61,4 +61,4 @@
<image bind:tap="closeModal" class="close_icon" src="{{IMG_URL}}home/close_modal.png" />
</view>
</view>
<!-- <glsx-privacy appletName="业主甄选"></glsx-privacy> -->
\ No newline at end of file
<store-select show="{{showStore}}" bind:freshMerchant="freshMerchant"></store-select>
\ No newline at end of file
......@@ -14,23 +14,23 @@ Component({
*/
properties: {
height: null,
channelID: {
type: Number,
observer: function (val) {
if (val) {
// this.setList(val);
}
},
},
merchantid: {
type: [String, Number],
observer: function (val) {
if (val) {
this.init()
// this.setList(val);
}
},
},
// channelID: {
// type: Number,
// observer: function (val) {
// if (val) {
// // this.setList(val);
// }
// },
// },
// merchantid: {
// type: [String, Number],
// observer: function (val) {
// if (val) {
// this.init()
// // this.setList(val);
// }
// },
// },
},
/**
......@@ -66,8 +66,11 @@ Component({
toSeri: `toCategory-${index}`,
categoryStyle: item.categoryStyle || 0
})
this.triggerEvent('showShoppingCar', item.categoryStyle)
this.getCategoryGoodsList(item.id)
// this.triggerEvent('showShoppingCar', item.categoryStyle)
const {
merchantId
} = wx.p.storage.get('merchant_info')
this.getCategoryGoodsList(item.id,merchantId)
},
//获取分类
getCategoryList() {
......@@ -84,17 +87,18 @@ Component({
categoryList: res,
categoryStyle: res[0].categoryStyle || 0
})
this.triggerEvent('showShoppingCar', res[0].categoryStyle)
// console.log(res[0].id,'res[0].id');
this.getCategoryGoodsList(res[0].id)
this.getCategoryGoodsList(res[0].id,merchantId)
}else{
this.setData({
categoryList:[],
categoryStyle: 0,
goodsList:[]
})
}
})
},
//获取商品列表
async getCategoryGoodsList(categoryId) {
const {
merchantId
} = wx.p.storage.get('merchant_info')
async getCategoryGoodsList(categoryId,merchantId) {
let _para = {
merchantId,
categoryId,
......@@ -157,6 +161,7 @@ Component({
item
} = e.currentTarget.dataset
const B_userInfo = wx.p.storage.get('userInfo')
this.jumpEvent = true
if (B_userInfo && B_userInfo.userType) {
wx.navigateTo({
url: '/pages/Login/Login'
......@@ -212,20 +217,20 @@ Component({
// });
// },
// 获取购物车列表
async getBuyCarList() {
const authStatus = await wx.p.router.intercept(false)
if (authStatus) return
const B_userInfo = wx.p.storage.get('userInfo')
if (B_userInfo && B_userInfo.userType) return;
const {
merchantId
} = wx.p.storage.get('merchant_info')
const res = await shopmallApi.getShoppingcartList({
cartType: 4,
merchantId
})
eventbus.emit('getBuyCarList', res)
},
// async getBuyCarList() {
// const authStatus = await wx.p.router.intercept(false)
// if (authStatus) return
// const B_userInfo = wx.p.storage.get('userInfo')
// if (B_userInfo && B_userInfo.userType) return;
// const {
// merchantId
// } = wx.p.storage.get('merchant_info')
// const res = await shopmallApi.getShoppingcartList({
// cartType: 4,
// merchantId
// })
// eventbus.emit('getBuyCarList', res)
// },
// 加入购物车
async toAddBuuCar(e) {
const {
......@@ -233,6 +238,7 @@ Component({
} = e.currentTarget.dataset
const authStatus = await wx.p.router.intercept()
if (authStatus) return
this.jumpEvent = true
if (this.data.hasCarOwnerCouponFlag) {
wx.p.router.go(`/packageMall/pages/getCoupon/getCoupon?discoverGoodsType=2&from=2`, { notIntercept: true });
return
......@@ -244,12 +250,12 @@ Component({
goodsId: item.id,
}
let _para = {
goodsList:deliveryType==1? goodsListItem:[goodsListItem],
goodsList:[goodsListItem],
isCarOwner: true,
showAddr: deliveryType==0?1:0,
buyType: 'pay',
discoverGoodsSource: item.discoverGoodsSource,
deliveryType:deliveryType
deliveryType:0
}
wx.p.router.go('/packageDiscovery/pages/pay/index', _para)
// const res = await shopmallApi.addShoppingcart(_para)
......@@ -275,7 +281,9 @@ Component({
this.init()
},
init() {
this.getCategoryList()
if(!this.jumpEvent){
this.getCategoryList()
}
// const B_userInfo = wx.p.storage.get('userInfo')
// if (B_userInfo && B_userInfo.userType) return
// this.getBuyCarList()
......
......@@ -82,7 +82,7 @@ page {
.titleBg {
box-sizing: border-box;
width: 750rpx;
width: 722rpx;
height: 160rpx;
margin-left: -20rpx;
background-image: url(https://img02.glsx.com.cn/weapp/resource/miniprogram/wuye/mall/goodsBg.png);
......
......@@ -7,90 +7,92 @@ Page({
}
},
onShow() {
let {
merchantId
} = this.data
const merchantInfo = wx.p.storage.get('merchant_info')
let newMerchantId = merchantInfo.merchantId
// let {
// merchantId
// } = this.data
// const merchantInfo = wx.p.storage.get('merchant_info')
// let newMerchantId = merchantInfo.merchantId
if (newMerchantId != merchantId && newMerchantId ) {
this.setData({
merchantId: newMerchantId
})
this.getDiscoverInfo(newMerchantId, 6)
}
// if (newMerchantId != merchantId && newMerchantId ) {
// this.setData({
// merchantId: newMerchantId
// })
// this.getDiscoverInfo(newMerchantId, 6)
// }
// this.getDiscoverInfo(merchantInfo.merchantId, 6)
this.getComponentPage().onShow && this.getComponentPage().onShow()
},
getDiscoverInfo(merchantId, channel) {
discoveryApi.getDiscoverConfig({
merchantId
}).then(res => {
if (res && res.length) {
// console.log(JSON.stringify(res), channel);
this.handlerDiscoverSetting(JSON.stringify(res), channel)
}
})
},
// 处理发现配置数据
handlerDiscoverSetting(query, channel) {
const list = JSON.parse(query)
let {
currentChannel,
curTabIndex
} = this.data
if (list && list.length) {
if (channel) {
list.forEach((el, index) => {
if (el.channelType == channel) {
curTabIndex = index
currentChannel = el
}
})
} else {
currentChannel = list[0]
}
// this.computeBannerHeight(list.length)
}
const FIRST = wx.p.storage.get('first_enter_miniprograme')
this.setData({
discoverSettingList: list,
showPage: true,
currentChannel,
curTabIndex
showStore:!FIRST
})
},
// getDiscoverInfo(merchantId, channel) {
// discoveryApi.getDiscoverConfig({
// merchantId
// }).then(res => {
// if (res && res.length) {
// // console.log(JSON.stringify(res), channel);
// this.handlerDiscoverSetting(JSON.stringify(res), channel)
// }
// })
// },
// 处理发现配置数据
// handlerDiscoverSetting(query, channel) {
// const list = JSON.parse(query)
// let {
// currentChannel,
// curTabIndex
// } = this.data
// if (list && list.length) {
// if (channel) {
// list.forEach((el, index) => {
// if (el.channelType == channel) {
// curTabIndex = index
// currentChannel = el
// }
// })
// } else {
// currentChannel = list[0]
// }
// // this.computeBannerHeight(list.length)
// }
// this.setData({
// currentChannel,
// })
// },
// 计算高度
computeBannerHeight(len) {
let query = wx.createSelectorQuery().in(this)
query
.select('.banner_wrapper')
.boundingClientRect(res => {
this.setData({
'heightInfo.bannerH': res.height
})
})
.exec()
query
.select('.tab_wrapper')
.boundingClientRect(react => {
if (len == 1) {
this.setData({
'heightInfo.tabH': 20
})
} else {
this.setData({
'heightInfo.tabH': react.height
})
}
})
.exec()
},
// computeBannerHeight(len) {
// let query = wx.createSelectorQuery().in(this)
// query
// .select('.banner_wrapper')
// .boundingClientRect(res => {
// this.setData({
// 'heightInfo.bannerH': res.height
// })
// })
// .exec()
// query
// .select('.tab_wrapper')
// .boundingClientRect(react => {
// if (len == 1) {
// this.setData({
// 'heightInfo.tabH': 20
// })
// } else {
// this.setData({
// 'heightInfo.tabH': react.height
// })
// }
// })
// .exec()
// },
//隐藏购物车
showShoppingCarFn(e) {
this.setData({
showCarFlag: e.detail != 2
})
},
// showShoppingCarFn(e) {
// this.setData({
// showCarFlag: e.detail != 2
// })
// },
navbarReady(e) {
let { height } = e.detail;
this.setData({
......@@ -101,5 +103,8 @@ Page({
getComponentPage() {
return this.selectComponent(`#currentChannel_6`)
},
freshMerchant(){
this.onShow()
}
})
\ No newline at end of file
......@@ -9,4 +9,4 @@
</view>
<carOwner id="currentChannel_6" bindshowShoppingCar="showShoppingCarFn" merchantid="{{merchantId}}" channelID="{{currentChannel.id}}"></carOwner>
</view>
<!-- <glsx-privacy appletName="业主甄选"></glsx-privacy> -->
\ No newline at end of file
<store-select show="{{showStore}}" bind:freshMerchant="freshMerchant"></store-select>
\ No newline at end of file
......@@ -179,7 +179,13 @@ Page({
this.toCheckMember()
this.getUserCarList()
this.getMemberCardData()
const FIRST = wx.p.storage.get('first_enter_miniprograme')
this.setData({
showStore:!FIRST
})
},
freshMerchant(){
this.getMemberCardData()
},
})
\ No newline at end of file
......@@ -159,4 +159,4 @@
<glsx-image bindtap="handleChangeVal" data-attr="isMemberShow" data-val="{{false}}" class="member-close" src="mine/icon-member-close.png"></glsx-image>
</view>
</view>
<!-- <glsx-privacy appletName="业主甄选"></glsx-privacy> -->
\ No newline at end of file
<store-select show="{{showStore}}" bind:freshMerchant="freshMerchant"></store-select>
\ No newline at end of file
......@@ -40,5 +40,11 @@ Page({
id,
notIntercept: true
})
},
onShow(){
const FIRST = wx.p.storage.get('first_enter_miniprograme')
this.setData({
showStore:!FIRST
})
}
});
......@@ -13,3 +13,4 @@
</view>
</view>
</view>
<store-select show="{{showStore}}"></store-select>
\ No newline at end of file
......@@ -18,10 +18,21 @@ export const STORAGE_OBJECTkEY = {
guest_no: 'guest_no',
scrm_shopmall_car_brand_list:"scrm_shopmall_car_brand_list",
shareStaff:"shareStaff",
miaoshatrack:'miaoshatrack'
miaoshatrack:'miaoshatrack',
first_enter_miniprograme:"first_enter_miniprograme",
first_enter_merchantId:"first_enter_merchantId"
}
// 设置默认门店信息
export const MERCHANT_STATIC_LIST = {
'develop': [44211227, 44209845],
'test': [44212577, 44210895, 44212578, 44210956],
'beta': [44211427, 44211428],
'production': [44209566, 44209565],
}
export default{
DEFAULT_GET_STORAGEKEY,
STORAGE_OBJECTkEY
STORAGE_OBJECTkEY,
MERCHANT_STATIC_LIST
}
\ 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!