Commit bee2533c by 李嘉林

暂存

parent 1b332577
......@@ -16,7 +16,10 @@ export default {
if (JSON.stringify(extConfig) == "{}") {
let shopItem = {
development: { mixid: "antgood", "shopid": 67},
production: { "mixid":"qiyeCT", "shopid": 1045 },
// production: { "mixid":"qiyeCT", "shopid": 1045 }, // 道可
// production: { "mixid":"5I5Dyk", "shopid": 1306 }, // 星期八
production: { "mixid":"RON", "shopid": 1503 }, // 荣恩
// production: { "mixid":"ant", "shopid": 6 }, // 小工蚁
xhyx_uat: { "mixid":"xhyxshop", "shopid": 1 },
xhyx_prod: { "mixid":"antgood", "shopid": 67 },
}
......
<template>
<div class="bottomCont">
<template v-if="shopInfo.showPowerByAntFlag">
<div class="bc1 flex">
<i></i>
<p @click="showVConsoles">底线在此,不能更低了</p>
......@@ -18,11 +19,11 @@
@click="showCookie"
>{{this.$store.state.sceneModule.songCopyright.some(item=>item==shopInfo.shopCode)?'送颂科技提供技术支持':'小工蚁(上股交N板企业300258)提供平台服务'}}</p> -->
</div>
<div class="height7"></div>
<div class="hide-wrap" v-if="showHideWrap" @click="showActionSheet">
<i class="ant-fenlei-line" style="font-size:22px"></i>
</div>
</template>
<div class="height7"></div>
<div class="hide-wrap" v-if="showHideWrap" @click="showActionSheet">
<i class="ant-fenlei-line" style="font-size:22px"></i>
</div>
</div>
</template>
......@@ -34,7 +35,8 @@ export default {
data() {
return {
shopInfo: {
logoUrl:''
logoUrl: '',
showPowerByAntFlag: true,
},
showVConsole : 0,
showHideWrap : false,
......@@ -50,11 +52,14 @@ export default {
globalDataShopInfo:{
handler(newVal,oldVal){
if(newVal){
console.log(newVal,oldVal,'------------------globalDataShopInfo')
console.log(newVal,'------------------globalDataShopInfo')
this.shopInfo = this.mpApp.globalData.shopInfo
if(this.shopInfo && this.shopInfo.logoUrl) {
this.shopInfo.logoUrl = DFSImg(this.shopInfo.logoUrl, 400, 400)
}
if(this.shopInfo) {
this.shopInfo.showPowerByAntFlag = !(this.shopInfo.hidePowerByAntFlag == 1)
}
console.log(this.shopInfo,'this.shopInfo')
}
},
......@@ -69,6 +74,7 @@ export default {
if(wx.getStorageSync('workBox')){
this.showHideWrap = true
}
this.mpApp.showActionSheet = this.showActionSheet;
},
onLoad() {
console.log('bottomCont-------onLoad');
......@@ -101,6 +107,7 @@ export default {
},
showActionSheet(){
this.showHideWrap = true
let vm = this
let accountInfo = wx.getAccountInfoSync();
let version = accountInfo.miniProgram.version; // 1.0.0 小程序版本号
......
......@@ -143,7 +143,6 @@ export default {
}
},
onLoad(options) {
// this.getLocationHandle();
console.log(options,'---options')
if(wx.getStorageSync("sessionid")) {
......@@ -453,11 +452,12 @@ export default {
// var query = options.query.dentistId; // 参数二维码传递过来的场景参数
}
// this.newPageUrl = this.pageUrl;
this.newPageUrl = this.pageUrl;
this.init();
},
onShow(){
console.log('index页面------onShow')
this.withoutScene = true;
console.log(this.withoutScene,this.newPageUrl,'index页面------onShow')
log.info('index页面------onShow')
},
methods: {
......@@ -489,22 +489,6 @@ export default {
// this.params += "&logOut=true";
}
},
getLocationHandle() {
let _this = this;
wx.getLocation({
type: "wgs84",
success: res => {
// latitude longitude speed accuracy
this.locationObj = res;
log.info("~~~~~~~~~1~~~~~~~", res);
console.log("~~~~~~~~~1~~~~~~~", res);
},
fail: res => {
log.info("++++++++++2++++++", res);
console.log("++++++++++2++++++", res);
}
});
},
async getSpokesman() {
await spokesman.getSpokesmanidByShare().then(res => {
log.info('onShareAppMessage-getSpokesmanidByShare',res)
......
......@@ -17,7 +17,8 @@ Component({
show: true,
mainColor: "",
showFlag: "up",
cartNum: 0
cartNum: 0,
showVConsole : 0,
},
attached() {
this.init()
......@@ -95,6 +96,17 @@ Component({
},
switchTab(e) {
const { index } = e.currentTarget.dataset;
this.setData({
showVConsole: this.data.showVConsole++,
})
this.data.showVConsole++;
if (this.data.showVConsole >= 10) {
this.setData({
showVConsole: 0,
})
wx.setStorageSync('workBox','1')
app.showActionSheet();
}
if (index == this.data.selected) return
app.$themeToLink(this.data.list[index]["link"], 1);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment