1、大部分页面新增用户分享,绑定关系;2、全局域名配置

master
chen 2022-02-09 08:52:28 +08:00
parent 766220ad29
commit ed15c415e1
55 changed files with 308 additions and 80 deletions

28
App.vue
View File

@ -1,11 +1,37 @@
<script> <script>
import toolAll from '@/jsFile/tools.js'; import toolAll from '@/jsFile/tools.js';
import requst from '@/jsFile/requst.js';
export default { export default {
//
globalData:{
// domainName:'https://hengmei.scdxtc.cn/api/',
domainName:'https://hm.hmzfyy.cn/api/',
},
onLaunch: function() { onLaunch: function() {
toolAll.tools.clearClog();// toolAll.tools.clearClog();//
//
// toolAll.tools.zhuColorT();
uni.request({
url: `${this.globalData.domainName}index/mini-program-setting`,
method: 'GET',
data: '',
header: {
'Content-Type': 'application/json; charset=UTF-8',
'Authorization': 'Bearer '+uni.getStorageSync('token') || ''
},
success: res => {
// console.log('===>',res);
if (res.statusCode == 200) {
if (res.data.code == 0) {
uni.setStorageSync('publicColor', res.data.data.mainColor) //#3875F6 #2E8B57
// uni.setStorageSync('publicColor', '#2E8B57') //#3875F6 #2E8B57
}
}
}
})
}, },
onShow: function() { onShow: function() {
toolAll.tools.zhuColorT();
// uni.clearStorageSync() // uni.clearStorageSync()
if(uni.getStorageSync('token')!='') { if(uni.getStorageSync('token')!='') {
toolAll.tools.daoTime(); toolAll.tools.daoTime();

View File

@ -71,16 +71,22 @@
isAnimation:0, isAnimation:0,
visible:false, visible:false,
userInfo_mobile:true, userInfo_mobile:true,
currentPage:''//
}; };
}, },
mounted() { mounted() {
console.log(this.optionObj); console.log(this.optionObj,'参数');
if(uni.getStorageSync('is_active')!=1){this.visible = true;} if(uni.getStorageSync('is_active')!=1){this.visible = true;}
if(this.optionObj.invite_code!='' && this.optionObj.invite_code!=undefined){ if(this.optionObj.invite_code!='' && this.optionObj.invite_code!=undefined){
this.loginEv(this.optionObj.invite_code); this.loginEv(this.optionObj.invite_code);
} else if(this.optionObj.source_code!='' && this.optionObj.source_code!=undefined){ } else if(this.optionObj.source_code!='' && this.optionObj.source_code!=undefined){
this.loginEv('',this.optionObj.source_code,this.optionObj.channel); this.loginEv('',this.optionObj.source_code,this.optionObj.channel);
} }
//
let pages = getCurrentPages(); //
let currentPage = pages[pages.length - 1]; //
this.currentPage = currentPage.route ;//url
console.log(this.currentPage,'当前页面路径');
}, },
methods:{ methods:{
loginEv(invite_code='',source='',channel=''){ loginEv(invite_code='',source='',channel=''){
@ -119,7 +125,7 @@
if(index==0){// if(index==0){//
// this.tiaoZ() // this.tiaoZ()
uni.navigateTo({ uni.navigateTo({
url:'/pages/tabbar/pagehome/pagehome' url:`/${this.currentPage}`
}) })
this.isOk = false this.isOk = false
} else { } else {
@ -202,7 +208,7 @@
this.$toolAll.tools.showToast('手机号绑定成功','success'); this.$toolAll.tools.showToast('手机号绑定成功','success');
this.visible = false; this.visible = false;
uni.reLaunch({ uni.reLaunch({
url:'/pages/tabbar/my/staffDuan' url:`/${this.currentPage}`
}) })
} }
},error=>{}) },error=>{})

View File

@ -4,8 +4,7 @@ console.log('当前环境', process.env.NODE_ENV)
const apiHub = { const apiHub = {
//开发环境 //开发环境
development: { development: {
// BASE_URL: `https://hengmei.scdxtc.cn/api/`, BASE_URL: `${getApp().globalData.domainName}`,
BASE_URL: "https://hm.hmzfyy.cn/api/",
IMG_URL: "https://xx", IMG_URL: "https://xx",
BASE_UPLOAD_URL: "", BASE_UPLOAD_URL: "",
}, },

View File

@ -73,14 +73,14 @@ export function reportBuriedPoint(data){//上报埋点事件
// console.log('埋点的数据:',data); // console.log('埋点的数据:',data);
return requst.post('statistics/report',data).then(res=>{},error=>{}) return requst.post('statistics/report',data).then(res=>{},error=>{})
} }
export function zhuColor(){//查询主题色 // export function zhuColor(){//查询主题色
return requst.post('index/mini-program-setting').then(res=>{ // return requst.post('index/mini-program-setting').then(res=>{
if(res.code==0){ // if(res.code==0){
uni.setStorageSync('publicColor', res.data.mainColor) //#3875F6 #2E8B57 // uni.setStorageSync('publicColor', res.data.mainColor) //#3875F6 #2E8B57
// uni.setStorageSync('publicColor', '#2E8B57') //#3875F6 #2E8B57 // // uni.setStorageSync('publicColor', '#2E8B57') //#3875F6 #2E8B57
} // }
},error=>{}) // },error=>{})
} // }
export function checkSwip(){//查询主题色 export function checkSwip(){//查询主题色
return requst.post('common/slide-positions').then(res=>{ return requst.post('common/slide-positions').then(res=>{
if(res.code==0){ if(res.code==0){

View File

@ -1,5 +1,3 @@
// const domainName = 'https://hengmei.scdxtc.cn/api/'//域名配置
const domainName = 'https://hm.hmzfyy.cn/api/'//域名配置
// 统一给参数 // 统一给参数
const dataObj = (url, params) => { const dataObj = (url, params) => {
let options = params let options = params
@ -80,7 +78,7 @@ const request = (method, url, options) => {
} }
return new Promise((resolve, reject) => { return new Promise((resolve, reject) => {
uni.request({ uni.request({
url: `${domainName}${url}`, url: `${getApp().globalData.domainName}${url}`,
method: methods, method: methods,
data: dataObj(url, options), data: dataObj(url, options),
header: headers, header: headers,
@ -114,7 +112,7 @@ const uploadFile = (url, options) => {
uni.showLoading({title: "上传中..."}) uni.showLoading({title: "上传中..."})
return new Promise((resolve, reject) => { return new Promise((resolve, reject) => {
uni.uploadFile({ uni.uploadFile({
url: `${domainName}${url}`, url: `${getApp().globalData.domainName}${url}`,
filePath: tempData.file, filePath: tempData.file,
name: 'image', name: 'image',
fileType:'image', fileType:'image',

View File

@ -291,8 +291,7 @@ const tools = {
language:obj.language language:obj.language
} }
uni.request({ uni.request({
// url: `https://hengmei.scdxtc.cn/api/user/login`, url: `${getApp().globalData.domainName}user/login`,
url: `https://hm.hmzfyy.cn/api/user/login`,
method: 'post', method: 'post',
data: params, data: params,
header: { header: {
@ -384,8 +383,7 @@ const tools = {
}, },
isVedio(){//是否显示视频内容 isVedio(){//是否显示视频内容
uni.request({ uni.request({
// url: `https://hengmei.scdxtc.cn/api/index/base-config`, url: `${getApp().globalData.domainName}index/base-config`,
url: `https://hm.hmzfyy.cn/api/index/base-config`,
method: 'get', method: 'get',
header: { header: {
'Content-Type': 'application/json; charset=UTF-8', 'Content-Type': 'application/json; charset=UTF-8',

View File

@ -35,8 +35,7 @@ Vue.prototype.$requst = requst;
// 域名专治后台仔没有返回http/https的图片 // 域名专治后台仔没有返回http/https的图片
// Vue.prototype.$http = 'https://hm.hmzfyy.cn' // Vue.prototype.$http = 'https://hm.hmzfyy.cn'
Vue.prototype.$http = 'https://oss.hmzfyy.cn'; Vue.prototype.$http = 'https://oss.hmzfyy.cn';
// Vue.prototype.$newUrl = 'https://hengmei.scdxtc.cn/api/'; Vue.prototype.$hostapi = 'https://hengmei.scdxtc.cn/api/';
// Vue.prototype.$hostapi = 'https://hm.hmzfyy.cn/api/';
const {log} = console; const {log} = console;
Vue.prototype.$log = log Vue.prototype.$log = log

View File

@ -135,6 +135,8 @@
<foot-tab :titleList="titleList" :imgList="imgList" :newcurrent='1'></foot-tab> <foot-tab :titleList="titleList" :imgList="imgList" :newcurrent='1'></foot-tab>
<!-- 返回顶部 --> <!-- 返回顶部 -->
<!-- <back-top :showTop="showTop" @backTop="backTop"></back-top> --> <!-- <back-top :showTop="showTop" @backTop="backTop"></back-top> -->
<!-- 弹框授权 -->
<auth-userInfo-mobile :optionObj="optionObj"></auth-userInfo-mobile>
</view> </view>
</template> </template>
@ -177,7 +179,8 @@
dataShopList:[], dataShopList:[],
timeList:[], timeList:[],
isHot:false, isHot:false,
isAutoPlay:false isAutoPlay:false,
optionObj:{}
} }
}, },
onPageScroll(e) { onPageScroll(e) {
@ -200,7 +203,14 @@
onHide() { onHide() {
this.isAutoPlay = false; this.isAutoPlay = false;
}, },
onLoad() { onShareAppMessage() {
var shareObj = {
path: `/pages/tabbar/cate/cate?invite_code=${uni.getStorageSync('invite_code')}`, // /
};
return shareObj;
},
onLoad(options) {
this.optionObj = options;
this.checkBZ()// this.checkBZ()//
let maiOjb = { let maiOjb = {
e:7,// e:7,//
@ -210,12 +220,50 @@
this.checkSwi() this.checkSwi()
}, },
onShow() { onShow() {
this.titleList = uni.getStorageSync('footTitle')
this.imgList = uni.getStorageSync('footimg')
this.$toolAll.tools.isLogin() this.$toolAll.tools.isLogin()
// console.log(this.category_id); // console.log(this.category_id);
if(this.category_id!='') this.checkCate(this.category_id)// if(this.category_id!='') this.checkCate(this.category_id)//
this.isAutoPlay = true; this.isAutoPlay = true;
this.$requst.post('index/mini-program-setting').then(res=>{
// log('',res);
if(res.code==0){
if(res.data.length!=0){
if(res.data.footBar.length!=0){//
res.data.footBar.forEach(item=>{
let newName = item.name
let newObj = {
iconPath:this.$http + item.icon[0],
selectedIconPath:this.$http + item.icon[1],
}
if(item.key=="home"){
this.imgList[0] = newObj
this.titleList[0] = newName
}
if(item.key=="category"){
this.imgList[1] = newObj
this.titleList[1] = newName
}
if(item.key=="service"){
this.imgList[2] = newObj
this.titleList[2] = newName
}
if(item.key=="shop"){
this.imgList[3] = newObj
this.titleList[3] = newName
}
if(item.key=="my"){
this.imgList[4] = newObj
this.titleList[4] = newName
}
})
uni.setStorageSync('footTitle',this.titleList)
uni.setStorageSync('footimg',this.imgList)
this.titleList = uni.getStorageSync('footTitle')
this.imgList = uni.getStorageSync('footimg')
}
}
}
},error=>{})
}, },
methods: { methods: {
checkSwi(){ checkSwi(){
@ -412,8 +460,7 @@
is_hot:1 is_hot:1
} }
uni.request({ uni.request({
// url:`https://hengmei.scdxtc.cn/api/spu/list`, url:`${getApp().globalData.domainName}spu/list`,
url:`https://hm.hmzfyy.cn/api/spu/list`,
data:params, data:params,
method:'post', method:'post',
header:{ header:{

View File

@ -146,10 +146,11 @@
</view> </view>
<!-- 底部tab --> <!-- 底部tab -->
<foot-tab :titleList="titleList" :imgList="imgList" :newcurrent='4'></foot-tab> <foot-tab :titleList="titleList" :imgList="imgList" :newcurrent='4'></foot-tab>
<!-- 弹框授权 --> <!-- 签到弹框 -->
<view v-if="isQian" class="sigin-box"> <view v-if="isQian" class="sigin-box">
<view>{{contentVal}}</view> <view>{{contentVal}}</view>
</view> </view>
<!-- 弹框授权 -->
<auth-userInfo-mobile :optionObj="optionObj"></auth-userInfo-mobile> <auth-userInfo-mobile :optionObj="optionObj"></auth-userInfo-mobile>
</view> </view>
</template> </template>
@ -286,6 +287,12 @@
// //
this.closeqr(); this.closeqr();
}, },
onShareAppMessage() {
var shareObj = {
path: `/pages/tabbar/my/staffDuan?invite_code=${uni.getStorageSync('invite_code')}`, // /
};
return shareObj;
},
onLoad(options) { onLoad(options) {
this.optionObj = options; this.optionObj = options;
uni.setStorageSync('channel',options.channel); uni.setStorageSync('channel',options.channel);

View File

@ -145,6 +145,8 @@
</view> </view>
</view> </view>
</navigator> </navigator>
<!-- 弹框授权 -->
<auth-userInfo-mobile :optionObj="optionObj"></auth-userInfo-mobile>
</view> </view>
</template> </template>
@ -186,16 +188,22 @@
search_result:false, search_result:false,
bingVal:'', bingVal:'',
doctorVal:'', doctorVal:'',
activityVal:'' activityVal:'',
optionObj:{},
} }
}, },
onShow() { onShow() {
this.$toolAll.tools.isLogin(); this.$toolAll.tools.isLogin();
this.cartNumEv();// this.cartNumEv();//
}, },
onLoad() { onShareAppMessage() {
this.titleList = uni.getStorageSync('footTitle'); var shareObj = {
this.imgList = uni.getStorageSync('footimg'); path: `/pages/tabbar/shop/shop?invite_code=${uni.getStorageSync('invite_code')}`, // /
};
return shareObj;
},
onLoad(options) {
this.optionObj = options;
// + // +
const query = wx.createSelectorQuery() const query = wx.createSelectorQuery()
query.select('.search-input-box').boundingClientRect((rect) => { query.select('.search-input-box').boundingClientRect((rect) => {
@ -207,7 +215,47 @@
e:12,// e:12,//
t:new Date().getTime()// t:new Date().getTime()//
} }
this.$toolAll.tools.maiDian(maiOjb) this.$toolAll.tools.maiDian(maiOjb);
this.$requst.post('index/mini-program-setting').then(res=>{
// log('',res);
if(res.code==0){
if(res.data.length!=0){
if(res.data.footBar.length!=0){//
res.data.footBar.forEach(item=>{
let newName = item.name
let newObj = {
iconPath:this.$http + item.icon[0],
selectedIconPath:this.$http + item.icon[1],
}
if(item.key=="home"){
this.imgList[0] = newObj
this.titleList[0] = newName
}
if(item.key=="category"){
this.imgList[1] = newObj
this.titleList[1] = newName
}
if(item.key=="service"){
this.imgList[2] = newObj
this.titleList[2] = newName
}
if(item.key=="shop"){
this.imgList[3] = newObj
this.titleList[3] = newName
}
if(item.key=="my"){
this.imgList[4] = newObj
this.titleList[4] = newName
}
})
uni.setStorageSync('footTitle',this.titleList)
uni.setStorageSync('footimg',this.imgList)
this.titleList = uni.getStorageSync('footTitle')
this.imgList = uni.getStorageSync('footimg')
}
}
}
},error=>{})
}, },
methods: { methods: {
chooseDoctor(index){// chooseDoctor(index){//
@ -311,8 +359,7 @@
disease_id:this.disease_id//ID disease_id:this.disease_id//ID
} }
uni.request({ uni.request({
// url:`https://hengmei.scdxtc.cn/api/spu/list`, url:`${getApp().globalData.domainName}spu/list`,
url:`https://hm.hmzfyy.cn/api/spu/list`,
data:params, data:params,
method:'post', method:'post',
header:{ header:{

View File

@ -67,6 +67,8 @@
</view> </view>
</view> </view>
</view> </view>
<!-- 弹框授权 -->
<auth-userInfo-mobile :optionObj="optionObj"></auth-userInfo-mobile>
</view> </view>
</template> </template>
@ -82,15 +84,22 @@
activityList:[],// activityList:[],//
isNum:0, isNum:0,
siginVal:'立即签到', siginVal:'立即签到',
partakeVal:'立即完成' partakeVal:'立即完成',
optionObj:{},
} }
}, },
onShow() { onShow() {
this.$toolAll.tools.isLogin(); this.$toolAll.tools.isLogin();
this.checkList(); this.checkList();
}, },
onLoad() { onShareAppMessage() {
var shareObj = {
path: `/pages/tabbar/shop/shop?invite_code=${uni.getStorageSync('invite_code')}`, // /
};
return shareObj;
},
onLoad(options) {
this.optionObj = options;
}, },
methods: { methods: {
btnEv(index){ btnEv(index){

View File

@ -520,8 +520,7 @@
this.$toolAll.tools.showToast('正在调起支付','loading',1500); this.$toolAll.tools.showToast('正在调起支付','loading',1500);
} }
uni.request({ uni.request({
// url:`https://hengmei.scdxtc.cn/api/order/create`, url:`${getApp().globalData.domainName}order/create`,
url:`https://hm.hmzfyy.cn/api/order/create`,
data:parmas, data:parmas,
method:'post', method:'post',
header:{ header:{

View File

@ -90,6 +90,12 @@
this.isZanw = false this.isZanw = false
} }
}, },
onShareAppMessage() {
var shareObj = {
path: `/pagesA/integralManage/integralManage?invite_code=${uni.getStorageSync('invite_code')}`, // /
};
return shareObj;
},
onLoad(options) { onLoad(options) {
if(uni.getStorageSync('is_active')!=1){this.vision = true;} if(uni.getStorageSync('is_active')!=1){this.vision = true;}
if(options.invite_code!='' && options.invite_code!=undefined){ if(options.invite_code!='' && options.invite_code!=undefined){

View File

@ -75,6 +75,12 @@
isShowP:false, isShowP:false,
} }
}, },
onShareAppMessage() {
var shareObj = {
path: `/pagesA/member/member?invite_code=${uni.getStorageSync('invite_code')}`, // /
};
return shareObj;
},
onLoad(options) { onLoad(options) {
if(uni.getStorageSync('is_active')!=1){this.vision = true;} if(uni.getStorageSync('is_active')!=1){this.vision = true;}
if(options.invite_code!='' && options.invite_code!=undefined){ if(options.invite_code!='' && options.invite_code!=undefined){

View File

@ -103,6 +103,12 @@
this.isZanw = false this.isZanw = false
} }
}, },
onShareAppMessage() {
var shareObj = {
path: `/pagesA/peacockCoin/peacockCoin?invite_code=${uni.getStorageSync('invite_code')}`, // /
};
return shareObj;
},
onLoad(options) { onLoad(options) {
if(uni.getStorageSync('is_active')!=1){this.vision = true;} if(uni.getStorageSync('is_active')!=1){this.vision = true;}
if(options.invite_code!='' && options.invite_code!=undefined){ if(options.invite_code!='' && options.invite_code!=undefined){

View File

@ -74,6 +74,12 @@
this.$toolAll.tools.isLogin(); this.$toolAll.tools.isLogin();
this.cartNumEv(); this.cartNumEv();
}, },
onShareAppMessage() {
var shareObj = {
path: `/pagesA/pointsMall/pointsMall?invite_code=${uni.getStorageSync('invite_code')}`, // /
};
return shareObj;
},
onLoad(options) { onLoad(options) {
if(uni.getStorageSync('is_active')!=1){this.vision = true;} if(uni.getStorageSync('is_active')!=1){this.vision = true;}
if(options.invite_code!='' && options.invite_code!=undefined){ if(options.invite_code!='' && options.invite_code!=undefined){

View File

@ -89,6 +89,12 @@
this.$toolAll.tools.isLogin(); this.$toolAll.tools.isLogin();
uni.removeStorageSync('orderList'); uni.removeStorageSync('orderList');
}, },
onShareAppMessage() {
var shareObj = {
path: `/pagesA/shopCart/shopCart?invite_code=${uni.getStorageSync('invite_code')}`, // /
};
return shareObj;
},
onLoad(options) { onLoad(options) {
if(uni.getStorageSync('is_active')!=1){this.vision = true;} if(uni.getStorageSync('is_active')!=1){this.vision = true;}
if(options.invite_code!='' && options.invite_code!=undefined){ if(options.invite_code!='' && options.invite_code!=undefined){

View File

@ -80,6 +80,12 @@
this.isZanw = false this.isZanw = false
} }
}, },
onShareAppMessage() {
var shareObj = {
path: `/pagesA/signIn/signIn?invite_code=${uni.getStorageSync('invite_code')}`, // /
};
return shareObj;
},
onLoad(options) { onLoad(options) {
if(uni.getStorageSync('is_active')!=1){this.vision = true;} if(uni.getStorageSync('is_active')!=1){this.vision = true;}
if(options.invite_code!='' && options.invite_code!=undefined){ if(options.invite_code!='' && options.invite_code!=undefined){

View File

@ -98,6 +98,12 @@
onHide() { onHide() {
this.isAutoPlay = false; this.isAutoPlay = false;
}, },
onShareAppMessage() {
var shareObj = {
path: `/pagesB/aboutUs/aboutUs?invite_code=${uni.getStorageSync('invite_code')}`, // /
};
return shareObj;
},
onLoad(options) { onLoad(options) {
if(uni.getStorageSync('is_active')!=1){this.vision = true;this.whereCome = 2;} else {this.$toolAll.tools.isLogin();} if(uni.getStorageSync('is_active')!=1){this.vision = true;this.whereCome = 2;} else {this.$toolAll.tools.isLogin();}
if(options.invite_code!='' && options.invite_code!=undefined){ if(options.invite_code!='' && options.invite_code!=undefined){

View File

@ -79,6 +79,12 @@
onShow() { onShow() {
this.$toolAll.tools.isLogin() this.$toolAll.tools.isLogin()
}, },
onShareAppMessage() {
var shareObj = {
path: `/pagesB/customerCheck/customerCheck?invite_code=${uni.getStorageSync('invite_code')}`, // /
};
return shareObj;
},
onLoad(options) { onLoad(options) {
if(uni.getStorageSync('is_active')!=1){this.vision = true;} if(uni.getStorageSync('is_active')!=1){this.vision = true;}
if(options.invite_code!='' && options.invite_code!=undefined){ if(options.invite_code!='' && options.invite_code!=undefined){

View File

@ -65,6 +65,12 @@
isShowP:false, isShowP:false,
} }
}, },
onShareAppMessage() {
var shareObj = {
path: `/pagesB/doctor/doctor?invite_code=${uni.getStorageSync('invite_code')}`, // /
};
return shareObj;
},
onPageScroll(e) { onPageScroll(e) {
e.scrollTop > 360 ? this.showTop = true : this.showTop = false e.scrollTop > 360 ? this.showTop = true : this.showTop = false
}, },

View File

@ -91,8 +91,15 @@
peopleJian:'', peopleJian:'',
vision:false, vision:false,
isShowP:false, isShowP:false,
doctorId:''//id
} }
}, },
onShareAppMessage() {
var shareObj = {
path: `/pagesB/doctorDetail/doctorDetail?invite_code=${uni.getStorageSync('invite_code')}&doctor_id=${this.doctorId}`, // /
};
return shareObj;
},
onPageScroll(e) { onPageScroll(e) {
e.scrollTop > 360 ? this.showTop = true : this.showTop = false e.scrollTop > 360 ? this.showTop = true : this.showTop = false
if((this.chuTop - this.statusHNH) - e.scrollTop*1 <= 0) this.isTop = true if((this.chuTop - this.statusHNH) - e.scrollTop*1 <= 0) this.isTop = true
@ -113,7 +120,8 @@
this.checkConList(this.category_id) this.checkConList(this.category_id)
}, },
onLoad(options) { onLoad(options) {
this.checkDoD(options.doctor_id) this.doctorId = options.doctor_id;
this.checkDoD(this.doctorId)
if(uni.getStorageSync('is_active')!=1){this.vision = true;} else {this.$toolAll.tools.isLogin()} if(uni.getStorageSync('is_active')!=1){this.vision = true;} else {this.$toolAll.tools.isLogin()}
if(options.invite_code!='' && options.invite_code!=undefined){ if(options.invite_code!='' && options.invite_code!=undefined){
this.loginEv(options.invite_code); this.loginEv(options.invite_code);

View File

@ -188,6 +188,12 @@
this.checkConList(this.category_id); this.checkConList(this.category_id);
this.shopCollection(); this.shopCollection();
}, },
onShareAppMessage() {
var shareObj = {
path: `/pagesB/myCollection/myCollection?invite_code=${uni.getStorageSync('invite_code')}`, // /
};
return shareObj;
},
onLoad(options) { onLoad(options) {
if(uni.getStorageSync('is_active')!=1){this.vision = true;} else {this.$toolAll.tools.isLogin()} if(uni.getStorageSync('is_active')!=1){this.vision = true;} else {this.$toolAll.tools.isLogin()}
if(options.invite_code!='' && options.invite_code!=undefined){ if(options.invite_code!='' && options.invite_code!=undefined){
@ -237,8 +243,7 @@
if(index==1){ if(index==1){
this.isWen = false; this.isWen = false;
uni.request({ uni.request({
// url:`https://hengmei.scdxtc.cn/api/spu/collection`, url:`${getApp().globalData.domainName}spu/collection`,
url:`https://hm.hmzfyy.cn/api/spu/collection`,
data:{page:this.page,size:this.size}, data:{page:this.page,size:this.size},
method:'post', method:'post',
header:{ header:{

View File

@ -83,6 +83,12 @@
this.isZanw = false this.isZanw = false
} }
}, },
onShareAppMessage() {
var shareObj = {
path: `/pagesB/mysharer/mysharer?invite_code=${uni.getStorageSync('invite_code')}`, // /
};
return shareObj;
},
onLoad(options) { onLoad(options) {
if(uni.getStorageSync('is_active')!=1){this.vision = true;} else {this.$toolAll.tools.isLogin()} if(uni.getStorageSync('is_active')!=1){this.vision = true;} else {this.$toolAll.tools.isLogin()}
if(options.invite_code!='' && options.invite_code!=undefined){ if(options.invite_code!='' && options.invite_code!=undefined){

View File

@ -55,6 +55,12 @@
isShowP:false, isShowP:false,
} }
}, },
onShareAppMessage() {
var shareObj = {
path: `/pagesB/personalPoster/personalPoster?invite_code=${uni.getStorageSync('invite_code')}`, // /
};
return shareObj;
},
onLoad(options) { onLoad(options) {
if(uni.getStorageSync('is_active')!=1){this.vision = true;} else {this.$toolAll.tools.isLogin() ;this.haved = true;} if(uni.getStorageSync('is_active')!=1){this.vision = true;} else {this.$toolAll.tools.isLogin() ;this.haved = true;}
if(options.invite_code!='' && options.invite_code!=undefined){ if(options.invite_code!='' && options.invite_code!=undefined){

View File

@ -104,6 +104,12 @@
onUnload() { onUnload() {
uni.removeStorageSync('cateList') uni.removeStorageSync('cateList')
}, },
onShareAppMessage() {
var shareObj = {
path: `/pagesB/searchPage/searchPage?invite_code=${uni.getStorageSync('invite_code')}`, // /
};
return shareObj;
},
onLoad(options) { onLoad(options) {
if(uni.getStorageSync('is_active')!=1){this.vision = true;} if(uni.getStorageSync('is_active')!=1){this.vision = true;}
if(options.invite_code!='' && options.invite_code!=undefined){ if(options.invite_code!='' && options.invite_code!=undefined){

View File

@ -496,8 +496,7 @@
}, },
checkPTList(id){// checkPTList(id){//
uni.request({ uni.request({
// url:`https://hengmei.scdxtc.cn/api/spu/group-list`, url:`${getApp().globalData.domainName}spu/group-list`,
url:`https://hm.hmzfyy.cn/api/spu/group-list`,
data:{id:id}, data:{id:id},
method:'post', method:'post',
header:{ header:{
@ -676,8 +675,7 @@
checkDetail(newId,is_activity){ checkDetail(newId,is_activity){
console.log(newId,is_activity,'参数'); console.log(newId,is_activity,'参数');
uni.request({ uni.request({
// url:`https://hengmei.scdxtc.cn/api/spu/detail`, url:`${getApp().globalData.domainName}spu/detail`,
url:`https://hm.hmzfyy.cn/api/spu/detail`,
data:{id:newId,is_activity:is_activity}, data:{id:newId,is_activity:is_activity},
method:'post', method:'post',
header:{ header:{
@ -821,8 +819,7 @@
disease_id:''//ID disease_id:''//ID
} }
uni.request({ uni.request({
// url:`https://hengmei.scdxtc.cn/api/spu/list`, url:`${getApp().globalData.domainName}spu/list`,
url:`https://hm.hmzfyy.cn/api/spu/list`,
data:params, data:params,
method:'post', method:'post',
header:{ header:{

View File

@ -198,6 +198,12 @@
},10000) },10000)
// } // }
}, },
onShareAppMessage() {
var shareObj = {
path: `/pagesB/shopSearch/shopSearch?invite_code=${uni.getStorageSync('invite_code')}`, // /
};
return shareObj;
},
onLoad(options) { onLoad(options) {
if(options.keyWorld!=undefined && options.keyWorld!='') { if(options.keyWorld!=undefined && options.keyWorld!='') {
this.searchVal = options.keyWorld; this.searchVal = options.keyWorld;
@ -272,8 +278,7 @@
size:this.size, size:this.size,
} }
uni.request({ uni.request({
// url:`https://hengmei.scdxtc.cn/api/spu/list`, url:`${getApp().globalData.domainName}spu/list`,
url:`https://hm.hmzfyy.cn/api/spu/list`,
data:params, data:params,
method:'post', method:'post',
header:{ header:{

View File

@ -72,6 +72,12 @@
onShow() { onShow() {
this.$toolAll.tools.isLogin() this.$toolAll.tools.isLogin()
}, },
onShareAppMessage() {
var shareObj = {
path: `/pagesB/userFootprint/userFootprint?invite_code=${uni.getStorageSync('invite_code')}`, // /
};
return shareObj;
},
onLoad(options) { onLoad(options) {
if(uni.getStorageSync('is_active')!=1){this.vision = true;} if(uni.getStorageSync('is_active')!=1){this.vision = true;}
if(options.invite_code!='' && options.invite_code!=undefined){ if(options.invite_code!='' && options.invite_code!=undefined){

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long