Merge remote-tracking branch 'origin/master'

# Conflicts:
#	api/api.js
#	pages/index/index.vue
#	pages/user/index.vue
This commit is contained in:
邱贞招 2024-02-27 09:51:54 +08:00
commit b630ea73df
5 changed files with 56 additions and 31 deletions

View File

@ -1,12 +1,12 @@
import request from "@/utils/request.js"; import request from "@/utils/request.js";
/** /**
* 公共接口 优惠券接口 , 行业此讯 , 手机号码注册 * 公共接口 优惠券接口 , 行业此讯 , 手机号码注册
* *
*/ */
/** /**
* 获取主页数据 无需授权 * 获取主页数据 无需授权
* *
*/ */
export function getIndexData() { export function getIndexData() {
return request.get("index", {}, { return request.get("index", {}, {
@ -16,7 +16,7 @@ export function getIndexData() {
/** /**
* 获取登录授权login * 获取登录授权login
* *
*/ */
export function getLogo() { export function getLogo() {
return request.get('wechat/getLogo', {}, { return request.get('wechat/getLogo', {}, {
@ -27,7 +27,7 @@ export function getLogo() {
/** /**
* 保存form_id * 保存form_id
* @param string formId * @param string formId
*/ */
export function setFormId(formId) { export function setFormId(formId) {
return request.post("wechat/set_form_id", { return request.post("wechat/set_form_id", {
@ -38,7 +38,7 @@ export function setFormId(formId) {
/** /**
* 领取优惠卷 * 领取优惠卷
* @param int couponId * @param int couponId
* *
*/ */
export function setCouponReceive(couponId) { export function setCouponReceive(couponId) {
return request.post('coupon/receive', { return request.post('coupon/receive', {
@ -65,7 +65,7 @@ export function getUserCoupons(data) {
/** /**
* 文章分类列表 * 文章分类列表
* *
*/ */
export function getArticleCategoryList() { export function getArticleCategoryList() {
return request.get('article/category/list', {}, { return request.get('article/category/list', {}, {
@ -76,7 +76,7 @@ export function getArticleCategoryList() {
/** /**
* 文章列表 * 文章列表
* @param int cid * @param int cid
* *
*/ */
export function getArticleList(cid, data) { export function getArticleList(cid, data) {
return request.get('article/list/' + cid, data, { return request.get('article/list/' + cid, data, {
@ -86,7 +86,7 @@ export function getArticleList(cid, data) {
/** /**
* 文章 热门列表 * 文章 热门列表
* *
*/ */
export function getArticleHotList() { export function getArticleHotList() {
return request.get('article/hot/list', {}, { return request.get('article/hot/list', {}, {
@ -96,7 +96,7 @@ export function getArticleHotList() {
/** /**
* 文章 轮播列表 * 文章 轮播列表
* *
*/ */
export function getArticleBannerList() { export function getArticleBannerList() {
return request.get('article/banner/list', {}, { return request.get('article/banner/list', {}, {
@ -106,8 +106,8 @@ export function getArticleBannerList() {
/** /**
* 文章详情 * 文章详情
* @param int id * @param int id
* *
*/ */
export function getArticleDetails(id) { export function getArticleDetails(id) {
return request.get('article/info', id, { return request.get('article/info', id, {
@ -150,7 +150,7 @@ export function registerVerify(phone) {
/** /**
* 手机号注册 * 手机号注册
* @param object data * @param object data
* *
*/ */
export function phoneRegister(data) { export function phoneRegister(data) {
return request.post('register', data, { return request.post('register', data, {
@ -161,7 +161,7 @@ export function phoneRegister(data) {
/** /**
* 手机号修改密码 * 手机号修改密码
* @param object data * @param object data
* *
*/ */
export function phoneRegisterReset(data) { export function phoneRegisterReset(data) {
return request.post('register/reset', data, { return request.post('register/reset', data, {
@ -172,7 +172,7 @@ export function phoneRegisterReset(data) {
/** /**
* 手机号+密码登录 * 手机号+密码登录
* @param object data * @param object data
* *
*/ */
export function phoneLogin(data) { export function phoneLogin(data) {
return request.post('login', data, { return request.post('login', data, {
@ -205,7 +205,7 @@ export function switchH5Login() {
/** /**
* 换绑手机号 * 换绑手机号
* *
*/ */
export function bindingPhone(data) { export function bindingPhone(data) {
return request.post('update/binding', data); return request.post('update/binding', data);
@ -213,7 +213,7 @@ export function bindingPhone(data) {
/** /**
* 换绑手机号校验 * 换绑手机号校验
* *
*/ */
export function bindingVerify(data) { export function bindingVerify(data) {
return request.post('update/binding/verify', data); return request.post('update/binding/verify', data);
@ -221,7 +221,7 @@ export function bindingVerify(data) {
/** /**
* 退出登錄 * 退出登錄
* *
*/ */
export function logout() { export function logout() {
return request.get('logout'); return request.get('logout');
@ -359,11 +359,19 @@ export function getinstallment(data) {
}); });
} }
// 到首页查询ip地址
// 首页记录ip
export function logoip() { export function getip() {
return request.get(`login/log`, {}, { return request.get('login/log', {
noAuth: true noAuth: true
}); });
} }
// 查询签约是否成功
// export function getqytrue(data) {
// return request.get('order/getSignResult/',data,{
// noAuth: true
// })
// }

View File

@ -450,12 +450,18 @@
.periodization .returnthedate a { .periodization .returnthedate a {
text-decoration: none; text-decoration: none;
display: block; // display: block;
margin-top: 20rpx; margin-top: 20rpx;
border: 1px solid rgb(255, 87, 51); border: 1px solid rgb(255, 87, 51);
color: #000; color: #000;
// width: 100% !important;
padding: 0 20rpx;
padding-right: 40rpx;
box-sizing: border-box;
}
.returnthedate{
width: 100% !important;
} }
.periodization .returnthedate a:nth-of-type(1) { .periodization .returnthedate a:nth-of-type(1) {
width: 198rpx; width: 198rpx;
height: 60rpx; height: 60rpx;

View File

@ -170,6 +170,7 @@
setCouponReceive, setCouponReceive,
getTheme, getTheme,
getAppVersion, getAppVersion,
getip
} from '@/api/api.js'; } from '@/api/api.js';
import { import {
spread spread
@ -370,6 +371,9 @@
this.setTabList() this.setTabList()
}, },
onLoad(options) { onLoad(options) {
this.getipdz()
if (app.globalData.isIframe) { if (app.globalData.isIframe) {
setTimeout(() => { setTimeout(() => {
let active; let active;
@ -420,7 +424,6 @@
let mapeMpQrCodeValue = this.$util.formatMpQrCodeData(qrCodeValue); let mapeMpQrCodeValue = this.$util.formatMpQrCodeData(qrCodeValue);
app.globalData.spread = mapeMpQrCodeValue.spread; app.globalData.spread = mapeMpQrCodeValue.spread;
app.globalData.channelId = mapeMpQrCodeValue.channelId; app.globalData.channelId = mapeMpQrCodeValue.channelId;
} }
if (options.spread) app.globalData.spread = options.spread; //urlidglobalDta if (options.spread) app.globalData.spread = options.spread; //urlidglobalDta
if (options.channelId) app.globalData.channelId = options.channelId; //urlidglobalDta if (options.channelId) app.globalData.channelId = options.channelId; //urlidglobalDta
@ -470,6 +473,14 @@
}) })
}, },
// IP
getipdz(){
getip().then(res => {
console.log(res,111)
})
},
menusTap(url) { menusTap(url) {
goPage().then(res => { goPage().then(res => {
if (url == '/pages/goods_cate/goods_cate') { if (url == '/pages/goods_cate/goods_cate') {

View File

@ -180,7 +180,7 @@
} from '@/utils/setTheme.js' } from '@/utils/setTheme.js'
import animationType from '@/utils/animationType.js' import animationType from '@/utils/animationType.js'
const app = getApp(); const app = getApp();
export default { export default {
computed: mapGetters(['isLogin', 'chatUrl', 'uid']), computed: mapGetters(['isLogin', 'chatUrl', 'uid']),
data() { data() {
@ -274,7 +274,7 @@
that.$set(that, 'pageHeight', app.globalData.windowHeight); that.$set(that, 'pageHeight', app.globalData.windowHeight);
// #endif // #endif
that.$set(that, 'MyMenus', app.globalData.MyMenus); that.$set(that, 'MyMenus', app.globalData.MyMenus);
that.$set(that, 'chatConfig', Cache.getItem('chatConfig')); that.$set(that, 'chatConfig', Cache.getItem('chatConfig'));
// #ifdef H5 // #ifdef H5
that.shareApi(); that.shareApi();
@ -318,7 +318,7 @@
// #endif // #endif
}, },
methods: { methods: {
// //
getidentityq:function(){ getidentityq:function(){
let data = { let data = {
@ -476,7 +476,7 @@
}) })
}, },
/** /**
* *
* 获取个人中心图标 * 获取个人中心图标
*/ */
getMyMenus: function() { getMyMenus: function() {
@ -564,7 +564,7 @@
padding: 10rpx; padding: 10rpx;
box-sizing: border-box; box-sizing: border-box;
border-radius: 20rpx; border-radius: 20rpx;
font-size: 12px; font-size: 12px;
color: #fff; color: #fff;
position: absolute; position: absolute;
top: -10rpx; top: -10rpx;
@ -712,7 +712,7 @@
.num { .num {
font-size: 42rpx; font-size: 42rpx;
font-weight: bold; font-weight: bold;
} }
.txt { .txt {
@ -914,4 +914,4 @@
padding: 0 36rpx; padding: 0 36rpx;
border-radius: 20rpx; border-radius: 20rpx;
} }
</style> </style>

View File

@ -1110,7 +1110,7 @@
uid: this.$store.getters.uid uid: this.$store.getters.uid
} }
getidentity(data).then(res=>{ getidentity(data).then(res=>{
if (res.message == '操作成功') { if (res.message == '操作成功' && res.data != '') {
this.sfxx = '已完成' this.sfxx = '已完成'
this.identification = res.data this.identification = res.data
} }