Commit 8bdb4fd5 by 程默

init

parent ea92cb7c
...@@ -166,8 +166,12 @@ export default { ...@@ -166,8 +166,12 @@ export default {
let len = res.target.data.length - 1; let len = res.target.data.length - 1;
console.log(res, "h5消息", res.target.data[len]); console.log(res, "h5消息", res.target.data[len]);
this.shareShopName = res.target.data[len].shareShopName || ""; this.shareShopName = res.target.data[len].shareShopName || "";
this.shareLogoUrl = DFSImg(res.target.data[len].shareLogoUrl, 500, 400); this.shareLogoUrl = res.target.data[len].shareLogoUrl;
// this.shareLogoUrl = DFSImg(res.target.data[len].shareLogoUrl, 500, 400);
// console.log()
console.log(this.shareLogoUrl,'logourl');
} }
}, },
onUnload() { onUnload() {
......
<template> <template>
<div class="domain"> <div class="domain">
<div class="toCLogin"> <div class="toCLogin">
<image class="img" mode="aspectFit" :src="logoUrl"></image> <image class="img" mode="aspectFit" :src="logoUrl"/>
<p class="shopName" v-if="shopName">{{shopName}}</p> <p class="shopName" v-if="shopName">{{shopName}}</p>
<div class="btn_info"> <div class="btn_info">
<button class="btn" lang="zh_CN" open-type="getUserInfo" @getuserinfo="getUserInfo">微信一键登录</button> <button class="btn" lang="zh_CN" open-type="getUserInfo" @getuserinfo="getUserInfo">微信一键登录</button>
...@@ -120,11 +120,11 @@ export default { ...@@ -120,11 +120,11 @@ export default {
}); });
}, },
getUserInfo: function(e) { getUserInfo: function(e) {
// wx.showLoading({ wx.showLoading({
// title: "加载中" title: "加载中"
// }); });
if (e.target.errMsg == "getUserInfo:ok" && this.isShow) { if (e.target.errMsg == "getUserInfo:ok" && this.isShow) {
// wx.hideLoading(); wx.hideLoading();
if (this.isHaveUnion) { if (this.isHaveUnion) {
//是会员 直接登录 //是会员 直接登录
wx.reLaunch({ wx.reLaunch({
...@@ -174,6 +174,8 @@ export default { ...@@ -174,6 +174,8 @@ export default {
this.isShowPhone = true; this.isShowPhone = true;
} }
} }
} else {
wx.hideLoading();
} }
}, },
getPhoneNumber(e) { getPhoneNumber(e) {
...@@ -214,7 +216,7 @@ export default { ...@@ -214,7 +216,7 @@ export default {
if (this.$store.state.spokesmanGroupId != "") { if (this.$store.state.spokesmanGroupId != "") {
query.spokesmanRelId=this.$store.state.spokesmanRelId; query.spokesmanRelId=this.$store.state.spokesmanRelId;
query.spokesmanGroupId=this.$store.state.spokesmanGroupId; query.spokesmanGroupId=this.$store.state.spokesmanGroupId;
query.spokesmanShopId=this.$store.state.spokesmanShopId; query.spokesmanShopId=this.$store.state.spokesmanShopId;
} }
console.log(query,'query') console.log(query,'query')
......
...@@ -36,7 +36,7 @@ export function serialize(obj) { ...@@ -36,7 +36,7 @@ export function serialize(obj) {
//获取url参数 //获取url参数
export function getQueryVariable(query,variable) { export function getQueryVariable(query,variable) {
// var query = window.location.search.substring(1); // var query = window.location.search.substring(1);
var vars = query.split("&"); var vars = query.split("&");
for (var i = 0; i < vars.length; i++) { for (var i = 0; i < vars.length; i++) {
var pair = vars[i].split("="); var pair = vars[i].split("=");
...@@ -56,7 +56,9 @@ export function DFSImg(path, w, h) { // ...@@ -56,7 +56,9 @@ export function DFSImg(path, w, h) { //
if (w) style += ',w_' + w; if (w) style += ',w_' + w;
if (h) style += ',h_' + h; if (h) style += ',h_' + h;
if (style.length > 0) { if (style.length > 0) {
path += '?x-oss-process=image/resize,m_pad,limit_0' + style if(path.indexOf('?x-oss-process') == -1){
path += '?x-oss-process=image/resize,m_pad,limit_0' + style
}
} }
if (path.indexOf('http') == 0) { if (path.indexOf('http') == 0) {
return path; return path;
...@@ -74,4 +76,4 @@ export function DFSImg(path, w, h) { // ...@@ -74,4 +76,4 @@ export function DFSImg(path, w, h) { //
} }
return baseImg[Math.floor(Math.random() * 100) % baseImg.length] + path; return baseImg[Math.floor(Math.random() * 100) % baseImg.length] + path;
} }
} }
\ No newline at end of file
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