Commit 49957239 by 谢中龙

优化签到

parent b94524ee
...@@ -447,6 +447,7 @@ wxService.page({ ...@@ -447,6 +447,7 @@ wxService.page({
this.data.productInfo.hasPromotionTag = markTagInfo ? true : false; this.data.productInfo.hasPromotionTag = markTagInfo ? true : false;
let tagPrice = this.data.productInfo.minSalePrice; let tagPrice = this.data.productInfo.minSalePrice;
if(this.data.productInfo.hasPromotionTag){ if(this.data.productInfo.hasPromotionTag){
this.data.productInfo.markTagInfo = data.markTagInfo;
this.data.productInfo.tagPic = this.data.productInfo.markTagInfo.tagPicUrl; this.data.productInfo.tagPic = this.data.productInfo.markTagInfo.tagPicUrl;
if(this.data.productInfo.markTagInfo.tagType == 2){ if(this.data.productInfo.markTagInfo.tagType == 2){
tagPrice = this.data.productInfo.minSalePrice; tagPrice = this.data.productInfo.minSalePrice;
......
...@@ -7,6 +7,7 @@ ...@@ -7,6 +7,7 @@
"urlCheck": false, "urlCheck": false,
"es6": true, "es6": true,
"postcss": true, "postcss": true,
"preloadBackgroundData": false,
"minified": true, "minified": true,
"newFeature": true, "newFeature": true,
"coverView": true, "coverView": true,
...@@ -21,7 +22,8 @@ ...@@ -21,7 +22,8 @@
"disablePlugins": [], "disablePlugins": [],
"outputPath": "" "outputPath": ""
}, },
"useCompilerModule": true "useCompilerModule": true,
"userConfirmedUseCompilerModuleSwitch": false
}, },
"compileType": "miniprogram", "compileType": "miniprogram",
"libVersion": "2.8.2", "libVersion": "2.8.2",
......
...@@ -145,6 +145,10 @@ wxService.page({ ...@@ -145,6 +145,10 @@ wxService.page({
pageSize = this.data.pageSize; pageSize = this.data.pageSize;
// wxService.post(`/sale/product/buyer/listPageByCategoryId?pageNo=${pageNo}&pageSize=${pageSize}`, this.data.form).then(res => { // wxService.post(`/sale/product/buyer/listPageByCategoryId?pageNo=${pageNo}&pageSize=${pageSize}`, this.data.form).then(res => {
this.data.form.state = 1; this.data.form.state = 1;
if(this.data.form.sortType == 'recommend'){
this.data.form.order = 'desc';
}
wxService.post(`/sale/product/mallCategory/listPageProductByMallCategoryIdAndItsSons?pageNo=${pageNo}&pageSize=${pageSize}`, this.data.form).then(res => { wxService.post(`/sale/product/mallCategory/listPageProductByMallCategoryIdAndItsSons?pageNo=${pageNo}&pageSize=${pageSize}`, this.data.form).then(res => {
const { result, data } = res.data const { result, data } = res.data
if (result == 0 && data.content) { if (result == 0 && data.content) {
......
...@@ -3,7 +3,7 @@ const wxService = require('../../../../utils/wxService') ...@@ -3,7 +3,7 @@ const wxService = require('../../../../utils/wxService')
const utils = require('../../../../utils/util') const utils = require('../../../../utils/util')
import { Integer } from '../../../../utils/integerDigitalConvertion' import { Integer } from '../../../../utils/integerDigitalConvertion'
const app = getApp(); const app = getApp();
let livePlayer = requirePlugin('live-player-plugin') // let livePlayer = requirePlugin('live-player-plugin')
wxService.page({ wxService.page({
...@@ -24,18 +24,6 @@ wxService.page({ ...@@ -24,18 +24,6 @@ wxService.page({
this.setData({ this.setData({
room_id : this.data.room_id room_id : this.data.room_id
}); });
livePlayer.getLiveStatus({room_id : this.data.room_id}).then(res => {
console.log(res)
})
setTimeout(() => {
wx.createSelectorQuery().select('.live-player-subscribe__btn').boundingClientRect().exec((res) =>{
console.log(res)
});
},1000);
}, },
//点击事件 //点击事件
......
...@@ -8,6 +8,7 @@ wxService.page({ ...@@ -8,6 +8,7 @@ wxService.page({
* 页面的初始数据 * 页面的初始数据
*/ */
data: { data: {
webviewSignUrl : '',
}, },
/** /**
...@@ -15,6 +16,19 @@ wxService.page({ ...@@ -15,6 +16,19 @@ wxService.page({
*/ */
onLoad: function (options) { onLoad: function (options) {
wx.hideShareMenu(); wx.hideShareMenu();
let token = wx.getStorageSync('token');
if(token){
this.data.webviewSignUrl = `${this.data.signUrl}&wx_minProgram_token=${token}`
this.setData({
webviewSignUrl : this.data.webviewSignUrl
});
}
else{
wx.showToast({
title: '请选登录!',
icon : 'none'
});
}
}, },
/** /**
......
<!--subPackageMarketing/page/pages/sign/sign.wxml--> <!--subPackageMarketing/page/pages/sign/sign.wxml-->
<view class="main-page"> <view class="main-page">
<web-view src="{{signUrl}}"></web-view> <web-view src="{{webviewSignUrl}}"></web-view>
</view> </view>
\ 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