1、大部分页面新增用户分享,绑定关系;2、全局域名配置
parent
766220ad29
commit
ed15c415e1
28
App.vue
28
App.vue
|
@ -1,11 +1,37 @@
|
|||
<script>
|
||||
import toolAll from '@/jsFile/tools.js';
|
||||
import requst from '@/jsFile/requst.js';
|
||||
export default {
|
||||
// 全局域名配置
|
||||
globalData:{
|
||||
// domainName:'https://hengmei.scdxtc.cn/api/',
|
||||
domainName:'https://hm.hmzfyy.cn/api/',
|
||||
},
|
||||
onLaunch: function() {
|
||||
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() {
|
||||
toolAll.tools.zhuColorT();
|
||||
|
||||
// uni.clearStorageSync()
|
||||
if(uni.getStorageSync('token')!='') {
|
||||
toolAll.tools.daoTime();
|
||||
|
|
|
@ -71,16 +71,22 @@
|
|||
isAnimation:0,
|
||||
visible:false,
|
||||
userInfo_mobile:true,
|
||||
currentPage:''//当前页面路径
|
||||
};
|
||||
},
|
||||
mounted() {
|
||||
console.log(this.optionObj);
|
||||
console.log(this.optionObj,'参数');
|
||||
if(uni.getStorageSync('is_active')!=1){this.visible = true;}
|
||||
if(this.optionObj.invite_code!='' && this.optionObj.invite_code!=undefined){
|
||||
this.loginEv(this.optionObj.invite_code);
|
||||
} else if(this.optionObj.source_code!='' && this.optionObj.source_code!=undefined){
|
||||
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:{
|
||||
loginEv(invite_code='',source='',channel=''){
|
||||
|
@ -119,7 +125,7 @@
|
|||
if(index==0){//暂不授权
|
||||
// this.tiaoZ()
|
||||
uni.navigateTo({
|
||||
url:'/pages/tabbar/pagehome/pagehome'
|
||||
url:`/${this.currentPage}`
|
||||
})
|
||||
this.isOk = false
|
||||
} else {
|
||||
|
@ -202,7 +208,7 @@
|
|||
this.$toolAll.tools.showToast('手机号绑定成功','success');
|
||||
this.visible = false;
|
||||
uni.reLaunch({
|
||||
url:'/pages/tabbar/my/staffDuan'
|
||||
url:`/${this.currentPage}`
|
||||
})
|
||||
}
|
||||
},error=>{})
|
||||
|
|
|
@ -4,8 +4,7 @@ console.log('当前环境', process.env.NODE_ENV)
|
|||
const apiHub = {
|
||||
//开发环境
|
||||
development: {
|
||||
// BASE_URL: `https://hengmei.scdxtc.cn/api/`,
|
||||
BASE_URL: "https://hm.hmzfyy.cn/api/",
|
||||
BASE_URL: `${getApp().globalData.domainName}`,
|
||||
IMG_URL: "https://xx",
|
||||
BASE_UPLOAD_URL: "",
|
||||
},
|
||||
|
|
|
@ -73,14 +73,14 @@ export function reportBuriedPoint(data){//上报埋点事件
|
|||
// console.log('埋点的数据:',data);
|
||||
return requst.post('statistics/report',data).then(res=>{},error=>{})
|
||||
}
|
||||
export function zhuColor(){//查询主题色
|
||||
return requst.post('index/mini-program-setting').then(res=>{
|
||||
if(res.code==0){
|
||||
uni.setStorageSync('publicColor', res.data.mainColor) //#3875F6 #2E8B57
|
||||
// uni.setStorageSync('publicColor', '#2E8B57') //#3875F6 #2E8B57
|
||||
}
|
||||
},error=>{})
|
||||
}
|
||||
// export function zhuColor(){//查询主题色
|
||||
// return requst.post('index/mini-program-setting').then(res=>{
|
||||
// if(res.code==0){
|
||||
// uni.setStorageSync('publicColor', res.data.mainColor) //#3875F6 #2E8B57
|
||||
// // uni.setStorageSync('publicColor', '#2E8B57') //#3875F6 #2E8B57
|
||||
// }
|
||||
// },error=>{})
|
||||
// }
|
||||
export function checkSwip(){//查询主题色
|
||||
return requst.post('common/slide-positions').then(res=>{
|
||||
if(res.code==0){
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
// const domainName = 'https://hengmei.scdxtc.cn/api/'//域名配置
|
||||
const domainName = 'https://hm.hmzfyy.cn/api/'//域名配置
|
||||
// 统一给参数
|
||||
const dataObj = (url, params) => {
|
||||
let options = params
|
||||
|
@ -80,7 +78,7 @@ const request = (method, url, options) => {
|
|||
}
|
||||
return new Promise((resolve, reject) => {
|
||||
uni.request({
|
||||
url: `${domainName}${url}`,
|
||||
url: `${getApp().globalData.domainName}${url}`,
|
||||
method: methods,
|
||||
data: dataObj(url, options),
|
||||
header: headers,
|
||||
|
@ -114,7 +112,7 @@ const uploadFile = (url, options) => {
|
|||
uni.showLoading({title: "上传中..."})
|
||||
return new Promise((resolve, reject) => {
|
||||
uni.uploadFile({
|
||||
url: `${domainName}${url}`,
|
||||
url: `${getApp().globalData.domainName}${url}`,
|
||||
filePath: tempData.file,
|
||||
name: 'image',
|
||||
fileType:'image',
|
||||
|
|
|
@ -291,8 +291,7 @@ const tools = {
|
|||
language:obj.language
|
||||
}
|
||||
uni.request({
|
||||
// url: `https://hengmei.scdxtc.cn/api/user/login`,
|
||||
url: `https://hm.hmzfyy.cn/api/user/login`,
|
||||
url: `${getApp().globalData.domainName}user/login`,
|
||||
method: 'post',
|
||||
data: params,
|
||||
header: {
|
||||
|
@ -384,8 +383,7 @@ const tools = {
|
|||
},
|
||||
isVedio(){//是否显示视频内容
|
||||
uni.request({
|
||||
// url: `https://hengmei.scdxtc.cn/api/index/base-config`,
|
||||
url: `https://hm.hmzfyy.cn/api/index/base-config`,
|
||||
url: `${getApp().globalData.domainName}index/base-config`,
|
||||
method: 'get',
|
||||
header: {
|
||||
'Content-Type': 'application/json; charset=UTF-8',
|
||||
|
|
3
main.js
3
main.js
|
@ -35,8 +35,7 @@ Vue.prototype.$requst = requst;
|
|||
// 域名,专治后台仔没有返回http/https的图片
|
||||
// Vue.prototype.$http = 'https://hm.hmzfyy.cn'
|
||||
Vue.prototype.$http = 'https://oss.hmzfyy.cn';
|
||||
// Vue.prototype.$newUrl = 'https://hengmei.scdxtc.cn/api/';
|
||||
// Vue.prototype.$hostapi = 'https://hm.hmzfyy.cn/api/';
|
||||
Vue.prototype.$hostapi = 'https://hengmei.scdxtc.cn/api/';
|
||||
|
||||
const {log} = console;
|
||||
Vue.prototype.$log = log
|
||||
|
|
|
@ -135,6 +135,8 @@
|
|||
<foot-tab :titleList="titleList" :imgList="imgList" :newcurrent='1'></foot-tab>
|
||||
<!-- 返回顶部 -->
|
||||
<!-- <back-top :showTop="showTop" @backTop="backTop"></back-top> -->
|
||||
<!-- 弹框授权 -->
|
||||
<auth-userInfo-mobile :optionObj="optionObj"></auth-userInfo-mobile>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
|
@ -177,7 +179,8 @@
|
|||
dataShopList:[],
|
||||
timeList:[],
|
||||
isHot:false,
|
||||
isAutoPlay:false
|
||||
isAutoPlay:false,
|
||||
optionObj:{}
|
||||
}
|
||||
},
|
||||
onPageScroll(e) {
|
||||
|
@ -200,7 +203,14 @@
|
|||
onHide() {
|
||||
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()//调用病种列表事件
|
||||
let maiOjb = {
|
||||
e:7,//进入分类
|
||||
|
@ -210,12 +220,50 @@
|
|||
this.checkSwi()
|
||||
},
|
||||
onShow() {
|
||||
this.titleList = uni.getStorageSync('footTitle')
|
||||
this.imgList = uni.getStorageSync('footimg')
|
||||
this.$toolAll.tools.isLogin()
|
||||
// console.log(this.category_id);
|
||||
if(this.category_id!='') this.checkCate(this.category_id)//调用左侧列表点击事件
|
||||
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: {
|
||||
checkSwi(){
|
||||
|
@ -412,8 +460,7 @@
|
|||
is_hot:1
|
||||
}
|
||||
uni.request({
|
||||
// url:`https://hengmei.scdxtc.cn/api/spu/list`,
|
||||
url:`https://hm.hmzfyy.cn/api/spu/list`,
|
||||
url:`${getApp().globalData.domainName}spu/list`,
|
||||
data:params,
|
||||
method:'post',
|
||||
header:{
|
||||
|
|
|
@ -146,10 +146,11 @@
|
|||
</view>
|
||||
<!-- 底部tab -->
|
||||
<foot-tab :titleList="titleList" :imgList="imgList" :newcurrent='4'></foot-tab>
|
||||
<!-- 弹框授权 -->
|
||||
<!-- 签到弹框 -->
|
||||
<view v-if="isQian" class="sigin-box">
|
||||
<view>{{contentVal}}</view>
|
||||
</view>
|
||||
<!-- 弹框授权 -->
|
||||
<auth-userInfo-mobile :optionObj="optionObj"></auth-userInfo-mobile>
|
||||
</view>
|
||||
</template>
|
||||
|
@ -286,6 +287,12 @@
|
|||
// 关闭我的二维码弹框
|
||||
this.closeqr();
|
||||
},
|
||||
onShareAppMessage() {
|
||||
var shareObj = {
|
||||
path: `/pages/tabbar/my/staffDuan?invite_code=${uni.getStorageSync('invite_code')}`, // 默认是当前页面,必须是以‘/’开头的完整路径
|
||||
};
|
||||
return shareObj;
|
||||
},
|
||||
onLoad(options) {
|
||||
this.optionObj = options;
|
||||
uni.setStorageSync('channel',options.channel);
|
||||
|
|
|
@ -145,6 +145,8 @@
|
|||
</view>
|
||||
</view>
|
||||
</navigator>
|
||||
<!-- 弹框授权 -->
|
||||
<auth-userInfo-mobile :optionObj="optionObj"></auth-userInfo-mobile>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
|
@ -186,16 +188,22 @@
|
|||
search_result:false,
|
||||
bingVal:'',
|
||||
doctorVal:'',
|
||||
activityVal:''
|
||||
activityVal:'',
|
||||
optionObj:{},
|
||||
}
|
||||
},
|
||||
onShow() {
|
||||
this.$toolAll.tools.isLogin();
|
||||
this.cartNumEv();//查询购物车数量
|
||||
},
|
||||
onLoad() {
|
||||
this.titleList = uni.getStorageSync('footTitle');
|
||||
this.imgList = uni.getStorageSync('footimg');
|
||||
onShareAppMessage() {
|
||||
var shareObj = {
|
||||
path: `/pages/tabbar/shop/shop?invite_code=${uni.getStorageSync('invite_code')}`, // 默认是当前页面,必须是以‘/’开头的完整路径
|
||||
};
|
||||
return shareObj;
|
||||
},
|
||||
onLoad(options) {
|
||||
this.optionObj = options;
|
||||
// 缓存状态栏+标题栏的高度
|
||||
const query = wx.createSelectorQuery()
|
||||
query.select('.search-input-box').boundingClientRect((rect) => {
|
||||
|
@ -207,7 +215,47 @@
|
|||
e:12,//进入商城
|
||||
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: {
|
||||
chooseDoctor(index){//选择医生
|
||||
|
@ -311,8 +359,7 @@
|
|||
disease_id:this.disease_id//病种ID
|
||||
}
|
||||
uni.request({
|
||||
// url:`https://hengmei.scdxtc.cn/api/spu/list`,
|
||||
url:`https://hm.hmzfyy.cn/api/spu/list`,
|
||||
url:`${getApp().globalData.domainName}spu/list`,
|
||||
data:params,
|
||||
method:'post',
|
||||
header:{
|
||||
|
|
|
@ -67,6 +67,8 @@
|
|||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<!-- 弹框授权 -->
|
||||
<auth-userInfo-mobile :optionObj="optionObj"></auth-userInfo-mobile>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
|
@ -82,15 +84,22 @@
|
|||
activityList:[],//活动列表
|
||||
isNum:0,
|
||||
siginVal:'立即签到',
|
||||
partakeVal:'立即完成'
|
||||
partakeVal:'立即完成',
|
||||
optionObj:{},
|
||||
}
|
||||
},
|
||||
onShow() {
|
||||
this.$toolAll.tools.isLogin();
|
||||
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: {
|
||||
btnEv(index){
|
||||
|
|
|
@ -520,8 +520,7 @@
|
|||
this.$toolAll.tools.showToast('正在调起支付','loading',1500);
|
||||
}
|
||||
uni.request({
|
||||
// url:`https://hengmei.scdxtc.cn/api/order/create`,
|
||||
url:`https://hm.hmzfyy.cn/api/order/create`,
|
||||
url:`${getApp().globalData.domainName}order/create`,
|
||||
data:parmas,
|
||||
method:'post',
|
||||
header:{
|
||||
|
|
|
@ -90,6 +90,12 @@
|
|||
this.isZanw = false
|
||||
}
|
||||
},
|
||||
onShareAppMessage() {
|
||||
var shareObj = {
|
||||
path: `/pagesA/integralManage/integralManage?invite_code=${uni.getStorageSync('invite_code')}`, // 默认是当前页面,必须是以‘/’开头的完整路径
|
||||
};
|
||||
return shareObj;
|
||||
},
|
||||
onLoad(options) {
|
||||
if(uni.getStorageSync('is_active')!=1){this.vision = true;}
|
||||
if(options.invite_code!='' && options.invite_code!=undefined){
|
||||
|
|
|
@ -75,6 +75,12 @@
|
|||
isShowP:false,
|
||||
}
|
||||
},
|
||||
onShareAppMessage() {
|
||||
var shareObj = {
|
||||
path: `/pagesA/member/member?invite_code=${uni.getStorageSync('invite_code')}`, // 默认是当前页面,必须是以‘/’开头的完整路径
|
||||
};
|
||||
return shareObj;
|
||||
},
|
||||
onLoad(options) {
|
||||
if(uni.getStorageSync('is_active')!=1){this.vision = true;}
|
||||
if(options.invite_code!='' && options.invite_code!=undefined){
|
||||
|
|
|
@ -103,6 +103,12 @@
|
|||
this.isZanw = false
|
||||
}
|
||||
},
|
||||
onShareAppMessage() {
|
||||
var shareObj = {
|
||||
path: `/pagesA/peacockCoin/peacockCoin?invite_code=${uni.getStorageSync('invite_code')}`, // 默认是当前页面,必须是以‘/’开头的完整路径
|
||||
};
|
||||
return shareObj;
|
||||
},
|
||||
onLoad(options) {
|
||||
if(uni.getStorageSync('is_active')!=1){this.vision = true;}
|
||||
if(options.invite_code!='' && options.invite_code!=undefined){
|
||||
|
|
|
@ -74,6 +74,12 @@
|
|||
this.$toolAll.tools.isLogin();
|
||||
this.cartNumEv();
|
||||
},
|
||||
onShareAppMessage() {
|
||||
var shareObj = {
|
||||
path: `/pagesA/pointsMall/pointsMall?invite_code=${uni.getStorageSync('invite_code')}`, // 默认是当前页面,必须是以‘/’开头的完整路径
|
||||
};
|
||||
return shareObj;
|
||||
},
|
||||
onLoad(options) {
|
||||
if(uni.getStorageSync('is_active')!=1){this.vision = true;}
|
||||
if(options.invite_code!='' && options.invite_code!=undefined){
|
||||
|
|
|
@ -89,6 +89,12 @@
|
|||
this.$toolAll.tools.isLogin();
|
||||
uni.removeStorageSync('orderList');
|
||||
},
|
||||
onShareAppMessage() {
|
||||
var shareObj = {
|
||||
path: `/pagesA/shopCart/shopCart?invite_code=${uni.getStorageSync('invite_code')}`, // 默认是当前页面,必须是以‘/’开头的完整路径
|
||||
};
|
||||
return shareObj;
|
||||
},
|
||||
onLoad(options) {
|
||||
if(uni.getStorageSync('is_active')!=1){this.vision = true;}
|
||||
if(options.invite_code!='' && options.invite_code!=undefined){
|
||||
|
|
|
@ -80,6 +80,12 @@
|
|||
this.isZanw = false
|
||||
}
|
||||
},
|
||||
onShareAppMessage() {
|
||||
var shareObj = {
|
||||
path: `/pagesA/signIn/signIn?invite_code=${uni.getStorageSync('invite_code')}`, // 默认是当前页面,必须是以‘/’开头的完整路径
|
||||
};
|
||||
return shareObj;
|
||||
},
|
||||
onLoad(options) {
|
||||
if(uni.getStorageSync('is_active')!=1){this.vision = true;}
|
||||
if(options.invite_code!='' && options.invite_code!=undefined){
|
||||
|
|
|
@ -98,6 +98,12 @@
|
|||
onHide() {
|
||||
this.isAutoPlay = false;
|
||||
},
|
||||
onShareAppMessage() {
|
||||
var shareObj = {
|
||||
path: `/pagesB/aboutUs/aboutUs?invite_code=${uni.getStorageSync('invite_code')}`, // 默认是当前页面,必须是以‘/’开头的完整路径
|
||||
};
|
||||
return shareObj;
|
||||
},
|
||||
onLoad(options) {
|
||||
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){
|
||||
|
|
|
@ -79,6 +79,12 @@
|
|||
onShow() {
|
||||
this.$toolAll.tools.isLogin()
|
||||
},
|
||||
onShareAppMessage() {
|
||||
var shareObj = {
|
||||
path: `/pagesB/customerCheck/customerCheck?invite_code=${uni.getStorageSync('invite_code')}`, // 默认是当前页面,必须是以‘/’开头的完整路径
|
||||
};
|
||||
return shareObj;
|
||||
},
|
||||
onLoad(options) {
|
||||
if(uni.getStorageSync('is_active')!=1){this.vision = true;}
|
||||
if(options.invite_code!='' && options.invite_code!=undefined){
|
||||
|
|
|
@ -65,6 +65,12 @@
|
|||
isShowP:false,
|
||||
}
|
||||
},
|
||||
onShareAppMessage() {
|
||||
var shareObj = {
|
||||
path: `/pagesB/doctor/doctor?invite_code=${uni.getStorageSync('invite_code')}`, // 默认是当前页面,必须是以‘/’开头的完整路径
|
||||
};
|
||||
return shareObj;
|
||||
},
|
||||
onPageScroll(e) {
|
||||
e.scrollTop > 360 ? this.showTop = true : this.showTop = false
|
||||
},
|
||||
|
|
|
@ -91,8 +91,15 @@
|
|||
peopleJian:'',
|
||||
vision: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) {
|
||||
e.scrollTop > 360 ? this.showTop = true : this.showTop = false
|
||||
if((this.chuTop - this.statusHNH) - e.scrollTop*1 <= 0) this.isTop = true
|
||||
|
@ -113,7 +120,8 @@
|
|||
this.checkConList(this.category_id)
|
||||
},
|
||||
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(options.invite_code!='' && options.invite_code!=undefined){
|
||||
this.loginEv(options.invite_code);
|
||||
|
|
|
@ -188,6 +188,12 @@
|
|||
this.checkConList(this.category_id);
|
||||
this.shopCollection();
|
||||
},
|
||||
onShareAppMessage() {
|
||||
var shareObj = {
|
||||
path: `/pagesB/myCollection/myCollection?invite_code=${uni.getStorageSync('invite_code')}`, // 默认是当前页面,必须是以‘/’开头的完整路径
|
||||
};
|
||||
return shareObj;
|
||||
},
|
||||
onLoad(options) {
|
||||
if(uni.getStorageSync('is_active')!=1){this.vision = true;} else {this.$toolAll.tools.isLogin()}
|
||||
if(options.invite_code!='' && options.invite_code!=undefined){
|
||||
|
@ -237,8 +243,7 @@
|
|||
if(index==1){
|
||||
this.isWen = false;
|
||||
uni.request({
|
||||
// url:`https://hengmei.scdxtc.cn/api/spu/collection`,
|
||||
url:`https://hm.hmzfyy.cn/api/spu/collection`,
|
||||
url:`${getApp().globalData.domainName}spu/collection`,
|
||||
data:{page:this.page,size:this.size},
|
||||
method:'post',
|
||||
header:{
|
||||
|
|
|
@ -83,6 +83,12 @@
|
|||
this.isZanw = false
|
||||
}
|
||||
},
|
||||
onShareAppMessage() {
|
||||
var shareObj = {
|
||||
path: `/pagesB/mysharer/mysharer?invite_code=${uni.getStorageSync('invite_code')}`, // 默认是当前页面,必须是以‘/’开头的完整路径
|
||||
};
|
||||
return shareObj;
|
||||
},
|
||||
onLoad(options) {
|
||||
if(uni.getStorageSync('is_active')!=1){this.vision = true;} else {this.$toolAll.tools.isLogin()}
|
||||
if(options.invite_code!='' && options.invite_code!=undefined){
|
||||
|
|
|
@ -55,6 +55,12 @@
|
|||
isShowP:false,
|
||||
}
|
||||
},
|
||||
onShareAppMessage() {
|
||||
var shareObj = {
|
||||
path: `/pagesB/personalPoster/personalPoster?invite_code=${uni.getStorageSync('invite_code')}`, // 默认是当前页面,必须是以‘/’开头的完整路径
|
||||
};
|
||||
return shareObj;
|
||||
},
|
||||
onLoad(options) {
|
||||
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){
|
||||
|
|
|
@ -104,6 +104,12 @@
|
|||
onUnload() {
|
||||
uni.removeStorageSync('cateList')
|
||||
},
|
||||
onShareAppMessage() {
|
||||
var shareObj = {
|
||||
path: `/pagesB/searchPage/searchPage?invite_code=${uni.getStorageSync('invite_code')}`, // 默认是当前页面,必须是以‘/’开头的完整路径
|
||||
};
|
||||
return shareObj;
|
||||
},
|
||||
onLoad(options) {
|
||||
if(uni.getStorageSync('is_active')!=1){this.vision = true;}
|
||||
if(options.invite_code!='' && options.invite_code!=undefined){
|
||||
|
|
|
@ -496,8 +496,7 @@
|
|||
},
|
||||
checkPTList(id){//查询正在拼团的人数
|
||||
uni.request({
|
||||
// url:`https://hengmei.scdxtc.cn/api/spu/group-list`,
|
||||
url:`https://hm.hmzfyy.cn/api/spu/group-list`,
|
||||
url:`${getApp().globalData.domainName}spu/group-list`,
|
||||
data:{id:id},
|
||||
method:'post',
|
||||
header:{
|
||||
|
@ -676,8 +675,7 @@
|
|||
checkDetail(newId,is_activity){
|
||||
console.log(newId,is_activity,'参数');
|
||||
uni.request({
|
||||
// url:`https://hengmei.scdxtc.cn/api/spu/detail`,
|
||||
url:`https://hm.hmzfyy.cn/api/spu/detail`,
|
||||
url:`${getApp().globalData.domainName}spu/detail`,
|
||||
data:{id:newId,is_activity:is_activity},
|
||||
method:'post',
|
||||
header:{
|
||||
|
@ -821,8 +819,7 @@
|
|||
disease_id:''//病种ID
|
||||
}
|
||||
uni.request({
|
||||
// url:`https://hengmei.scdxtc.cn/api/spu/list`,
|
||||
url:`https://hm.hmzfyy.cn/api/spu/list`,
|
||||
url:`${getApp().globalData.domainName}spu/list`,
|
||||
data:params,
|
||||
method:'post',
|
||||
header:{
|
||||
|
|
|
@ -198,6 +198,12 @@
|
|||
},10000)
|
||||
// }
|
||||
},
|
||||
onShareAppMessage() {
|
||||
var shareObj = {
|
||||
path: `/pagesB/shopSearch/shopSearch?invite_code=${uni.getStorageSync('invite_code')}`, // 默认是当前页面,必须是以‘/’开头的完整路径
|
||||
};
|
||||
return shareObj;
|
||||
},
|
||||
onLoad(options) {
|
||||
if(options.keyWorld!=undefined && options.keyWorld!='') {
|
||||
this.searchVal = options.keyWorld;
|
||||
|
@ -272,8 +278,7 @@
|
|||
size:this.size,
|
||||
}
|
||||
uni.request({
|
||||
// url:`https://hengmei.scdxtc.cn/api/spu/list`,
|
||||
url:`https://hm.hmzfyy.cn/api/spu/list`,
|
||||
url:`${getApp().globalData.domainName}spu/list`,
|
||||
data:params,
|
||||
method:'post',
|
||||
header:{
|
||||
|
|
|
@ -72,6 +72,12 @@
|
|||
onShow() {
|
||||
this.$toolAll.tools.isLogin()
|
||||
},
|
||||
onShareAppMessage() {
|
||||
var shareObj = {
|
||||
path: `/pagesB/userFootprint/userFootprint?invite_code=${uni.getStorageSync('invite_code')}`, // 默认是当前页面,必须是以‘/’开头的完整路径
|
||||
};
|
||||
return shareObj;
|
||||
},
|
||||
onLoad(options) {
|
||||
if(uni.getStorageSync('is_active')!=1){this.vision = true;}
|
||||
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
Loading…
Reference in New Issue