wangdong 2 months ago
parent 2c47371105
commit 19cb5a64cb
  1. 5
      pages.json
  2. 17
      pages/gamll/index.vue
  3. 35
      pages/member/index.vue
  4. 5
      pages/serve/index.vue
  5. 1
      uni_modules/vk-uview-ui/components/u-sticky/u-sticky.vue

@ -1380,7 +1380,10 @@
"navigationBarBackgroundColor": "#ffffff", "navigationBarBackgroundColor": "#ffffff",
"navigationBarTitleText": "", "navigationBarTitleText": "",
"navigationBarTextStyle": "black", "navigationBarTextStyle": "black",
"backgroundTextStyle": "dark" "backgroundTextStyle": "dark",
"app-plus": {
"titleNView": false
}
}, },
"easycom": { "easycom": {
"autoscan": true, "autoscan": true,

@ -268,7 +268,12 @@
retail: '', retail: '',
wholesale: '', wholesale: '',
scrollTop: 0, scrollTop: 0,
// #ifdef H5
heightTop: 0,
// #endif
// #ifndef H5
heightTop:136, heightTop:136,
// #endif
} }
}, },
onLoad() { onLoad() {
@ -303,7 +308,9 @@
const query = uni.createSelectorQuery().in(this); const query = uni.createSelectorQuery().in(this);
query.select('.navbarHeight ').boundingClientRect(data => { query.select('.navbarHeight ').boundingClientRect(data => {
if (data) { if (data) {
// #ifndef H5
this.heightTop=this.pxToRpx(data.height) this.heightTop=this.pxToRpx(data.height)
// #endif
} }
}).exec(); }).exec();
}, },
@ -577,7 +584,12 @@
let that = this; let that = this;
let pames = { let pames = {
retail_type: this.tabIndex == 0 ? 10 : 20, retail_type: this.tabIndex == 0 ? 10 : 20,
client: 'MP-WEIXIN', // #ifdef H5
client: 'H5'
// #endif
// #ifndef H5
client: 'MP-WEIXIN'
// #endif
} }
let { let {
status, status,
@ -1045,6 +1057,9 @@
width: 10%; width: 10%;
border-top: 1rpx solid #e4e7ed; border-top: 1rpx solid #e4e7ed;
} }
.u-td {
line-height: 2;
}
::v-deep .box_name { ::v-deep .box_name {
background: #D6D6D6; background: #D6D6D6;

@ -235,15 +235,21 @@
} }
}, },
async getMemberInfo(type) { async getMemberInfo(type) {
// #ifdef H5
let params = {
client: 'H5'
}
// #endif
// #ifndef H5
let params = {
client: 'MP-WEIXIN'
}
// #endif
const { const {
status, status,
data, data,
message message
} = (this.type == 'hy' ? await member.info({ } = (this.type == 'hy' ? await member.info(params) : await member.dealerPriceList(params));
client: 'MP-WEIXIN'
}) : await member.dealerPriceList({
client: 'MP-WEIXIN'
}));
if (status == 200) { if (status == 200) {
if (type === 'toast') { if (type === 'toast') {
if (((this.type == 'fx'&& this.personal.user_type == 30) || (this.type == 'hy' && this.personal.user_type == 20)) && this.personal.fx_effective_time !== data.list.personal.fx_effective_time) { if (((this.type == 'fx'&& this.personal.user_type == 30) || (this.type == 'hy' && this.personal.user_type == 20)) && this.personal.fx_effective_time !== data.list.personal.fx_effective_time) {
@ -278,7 +284,12 @@
let params = { let params = {
identity_id: this.info.identity_id, identity_id: this.info.identity_id,
method: 'huifu', method: 'huifu',
// #ifdef H5
client: 'H5'
// #endif
// #ifndef H5
client: 'MP-WEIXIN' client: 'MP-WEIXIN'
// #endif
} }
member.submit(params) member.submit(params)
.then(result => { .then(result => {
@ -297,7 +308,12 @@
data data
} = await member.submit({ } = await member.submit({
method: 'wechat', method: 'wechat',
client: "MP-WEIXIN", // #ifdef H5
client: 'H5',
// #endif
// #ifndef H5
client: 'MP-WEIXIN',
// #endif
identity_id: this.info.identity_id, identity_id: this.info.identity_id,
}) })
if (status == 200) { if (status == 200) {
@ -337,7 +353,12 @@
message message
} = await member.submit({ } = await member.submit({
method: 'balance', method: 'balance',
client: "MP-WEIXIN", // #ifdef H5
client: 'H5',
// #endif
// #ifndef H5
client: 'MP-WEIXIN',
// #endif
identity_id: this.info.identity_id, identity_id: this.info.identity_id,
}) })
if (status == 200) { if (status == 200) {

@ -97,7 +97,12 @@
getMemberList() { getMemberList() {
const that = this; const that = this;
const params = { const params = {
// #ifdef H5
client: 'H5'
// #endif
// #ifndef H5
client: 'MP-WEIXIN' client: 'MP-WEIXIN'
// #endif
} }
member.info(params) member.info(params)
.then(res => { .then(res => {

@ -107,6 +107,7 @@
// #ifndef H5 // #ifndef H5
this.stickyTop = this.offsetTop != 0 ? uni.upx2px(this.offsetTop) : 0; this.stickyTop = this.offsetTop != 0 ? uni.upx2px(this.offsetTop) : 0;
// #endif // #endif
console.log(uni.upx2px(this.offsetTop),this.h5NavHeight, this.stickyTop);
this.disconnectObserver('contentObserver'); this.disconnectObserver('contentObserver');
this.$uGetRect('.' + this.elClass).then((res) => { this.$uGetRect('.' + this.elClass).then((res) => {

Loading…
Cancel
Save