Browse Source

更新下

master
Myth 5 years ago
parent
commit
841058670e
  1. 4
      pages/index/index.js
  2. 5
      pages/index/index.wxml
  3. 7
      pages/index/index.wxss
  4. 331
      pages/info/postProductInfo/index.js
  5. 64
      pages/info/postProductInfo/index.wxml
  6. 126
      pages/info/postProductInfo/index.wxss
  7. 2
      pages/list/sale/index.wxml
  8. 6
      pages/map/index.wxml
  9. 2
      pages/order/postOrder/index.wxml
  10. 2
      project.config.json
  11. 6
      project.private.config.json

4
pages/index/index.js

@ -265,7 +265,7 @@ Page({
if(!this.data.listMore) return;
commonApi._post("search/recommend",{
offset:this.data.list.length,
limit:10,
limit:16,
lon:this.data.lon,
lat:this.data.lat
}).then(res=>{
@ -289,7 +289,7 @@ Page({
})
},
onReachBottom:function(){
this.getList()
// this.getList()
},
gotoDetail:function(e){
let item = e.currentTarget.dataset.item;

5
pages/index/index.wxml

@ -308,7 +308,6 @@
</view>
</view>
</view>
<view wx:else style="text-align:center;line-height:100rpx;font-size:24rpx;color:#666">
暂无更多推荐
</view>
<view wx:if="{{listMore && isTest==false}}" class="more-btn-text" bindtap="getList">查看更多</view>
<view wx:else class="more-btn-text" bindtap="getList">暂无更多推荐</view>
</view>

7
pages/index/index.wxss

@ -465,3 +465,10 @@
.title-header .icon-fanhui1 {
display: none;
}
.more-btn-text {
text-align: center;
line-height: 40rpx;
color: #999;
font-size: 24rpx;
margin-bottom: 20rpx;
}

331
pages/info/postProductInfo/index.js

@ -2,6 +2,7 @@
let device = wx.getSystemInfoSync();
const ratio = device.windowWidth / 750;
import commonApi from "../../../utils/https/common"
import QRCode from '../../../utils/weapp-qrcode.js'
let app = getApp()
Page({
@ -19,19 +20,32 @@ Page({
skuFlag:null,
producNum:1,
skuIndex:0,
retailId:""
aniSkuIndex:-1,
retailId:"",
cartTop:0,
cartImgInfo:null,
cartCount:0,
shareImg:null,
showShareFlag:false
},
/**
* 生命周期函数--监听页面加载
*/
onLoad: function (options) {
let rect = wx.getMenuButtonBoundingClientRect();
let rect = wx.getMenuButtonBoundingClientRect(),that = this;
let height = (rect.top - device.statusBarHeight) * 2 + rect.height + device.statusBarHeight;
this.setData({
top:height,
id:options.id
})
// 获取购物车按钮的位置
wx.createSelectorQuery().select('#cart').boundingClientRect(function(res){
that.setData({
cartTop:res.top
})
}).exec()
if(options.retailId){
this.setData({
retailId:options.retailId
@ -48,6 +62,7 @@ Page({
this.setData({
info:res.data
})
this.drawImg()
this.BroswerRecord()
})
if(wx.getStorageSync("jstrip_token")){
@ -58,6 +73,11 @@ Page({
isLike:res.data
})
})
commonApi.user_post('cart/get_list',{}).then(res=>{
this.setData({
cartCount:res.data.length
})
})
}
// 获取评价列表
commonApi._post("product/product_comment_list",{
@ -160,13 +180,29 @@ Page({
},
showCart:function(){
if(this.data.info.sku.length==0){
wx.showToast({
title: '该产品未设置规格,不能加购',
icon:'none'
})
return;
}
this.setData({
skuFlag:"cart"
})
let that = this
wx.createSelectorQuery().select('#skuImg').boundingClientRect(function(res){
console.log(res)
that.setData({
cartImgInfo:'top:'+res.top+'px;left:'+res.left+'px;'
})
}).exec()
},
hideSku:function(){
this.setData({
skuFlag:null
skuFlag:null,
cartImgInfo:null
})
},
minus:function(){
@ -187,6 +223,13 @@ Page({
})
},
showOrder:function(){
if(this.data.info.sku.length==0){
wx.showToast({
title: '该产品未设置规格,不能购买',
icon:'none'
})
return;
}
this.setData({
skuFlag:'order'
})
@ -212,17 +255,289 @@ Page({
num:this.data.producNum
}).then(res=>{
if(res.code==1){
wx.showToast({
title: '加入购物车成功',
icon:"success"
});
commonApi.user_post('cart/get_list',{}).then(res=>{
this.setData({
cartCount:res.data.length
})
})
// 加动效
this.setData({
skuFlag:null
skuFlag:null,
aniSkuIndex:this.data.skuIndex,
cartImgInfo:null
})
setTimeout(()=>{
this.setData({
aniSkuIndex:-1
})
wx.showModal({
title:"提示",
content:"去购物车结算?",
success:function(res){
if(res.confirm){
wx.navigateTo({
url: '/pages/user/cartlist/list',
})
}
}
})
},650)
}
})
}
},
// 分享
share:function(){
if(!wx.getStorageSync("jstrip_token")){
commonApi.user_post("user/getMyInfo",{}).then(res=>{
})
return;
}
if(!this.data.shareImg){
wx.showToast({
title: '图片生成中,稍后再试',
icon:'none'
})
return;
}
this.setData({
showShareFlag:!this.data.showShareFlag
})
},
// 保存
save(){
let url = this.data.shareImg,that = this;
wx.authorize({
/* 这个就是保存相册的 */
scope: 'scope.writePhotosAlbum',
success() {
wx.saveImageToPhotosAlbum({
filePath:url,
success(res) {
wx.showToast({
title: '保存成功',
icon:"success"
})
that.setData({
showShareFlag:!this.data.showShareFlag
})
},
fail(res){
wx.showToast({
title: '保存失败',
icon:'none'
})
}
})
},
complete(res) {
console.log(res);
/* 这里判断一下如果没有授权重新打开设置选项 */
wx.getSetting({
success(res) {
if (!res.authSetting['scope.writePhotosAlbum']) {
/* 打开设置的方法 */
// opensit();
wx.showToast({
title: '请打开权限后再试',
icon:'none'
})
}
}
});
}
});
},
// 绘制海报
drawImg:function(){
var that = this,userinfo = wx.getStorageSync('jstrip_userInfo');
if(!userinfo){
// 去登录
return false;
}
const ctx = wx.createCanvasContext('imageCanvas');
// const device = wx.getSystemInfoSync();
// const ratio = device.screenWidth / 750;
// 先获取到图片信息
let promise2 = new Promise(function(resolve,reject){
wx.getImageInfo({
src:that.data.info.headimg,
success:function(res){
resolve(res);
},
fail:function(res){
reject(res);
}
})
})
let promise3 = new Promise(function(resolve,reject){
let userid = wx.getStorageSync('jstrip_userid')
new QRCode('myQrcode',{
text: 'https://m.cloud.sz-trip.com/MailMerchandiseDetail?id='+that.data.info.id+'&userId='+userid,
width: 500,
height: 500,
padding: 12, // 生成二维码四周自动留边宽度,不传入默认为0
correctLevel: QRCode.CorrectLevel.H, // 二维码可辨识度
callback: (res) => {
resolve(res);
}
})
})
//成功得到图片信息后,开始绘图
Promise.all([promise2,promise3]).then(imgs=>{
ctx.save();
ctx.beginPath(); //开始绘制
that.handleBorderRect(ctx,0,0,551 * ratio,407 * ratio,25 * ratio,'#ccc')
ctx.clip();//画好了圆 剪切 原始画布中剪切任意形状和尺寸。一旦剪切了某个区域,则所有之后的绘图都会被限制在被剪切的区域内 这也是我们要save上下文的原因
ctx.drawImage(imgs[0].path, 0, 0,551 * ratio,407 * ratio);
ctx.restore();
ctx.save();
that.handleBorderRect2(ctx,0,407 * ratio,551 * ratio,236*ratio,25 * ratio,'#fff')
ctx.restore();
// 绘制二维码
ctx.drawImage(imgs[1].path, 373 * ratio, 495 * ratio,137 * ratio, 137 * ratio);
// 开始文字绘制
ctx.setFillStyle("#000");
ctx.setFontSize(30 * ratio); //字大小
ctx.setTextAlign('left'); //是否居中显示,参考点画布中线
that.drawText(ctx,that.data.info.title, 25*ratio, 450*ratio,480 * ratio,ratio);
// 售价
ctx.setFillStyle("#D62828");
ctx.setFontSize(40 * ratio); //字大小
ctx.setTextAlign('left'); //是否居中显示,参考点画布中线
let price = "¥"+(that.data.info.price/100);
let width = ctx.measureText(price).width;
ctx.fillText(price, 25*ratio, 620*ratio);
// 副标题
ctx.setFillStyle("#999999");
ctx.setFontSize(28 * ratio); //字大小
ctx.setTextAlign('left'); //是否居中显示,参考点画布中线
let subtitle = that.data.info.subtitle;
if(that.data.info.subtitle.length>10){
subtitle = that.data.info.subtitle.substr(0,10)+'...'
}
ctx.fillText(subtitle, 25*ratio, 540*ratio);
// ctx.draw();
// 划线价
ctx.setFillStyle("#999999");
ctx.setFontSize(32 * ratio); //字大小
ctx.setTextAlign('left'); //是否居中显示,参考点画布中线
let market_price = "¥"+(that.data.info.market_price/100)
ctx.fillText(market_price, 40*ratio + width, 620*ratio);
let market_price_width = ctx.measureText(market_price).width;
// 划线
ctx.beginPath()
ctx.setLineWidth(1)
ctx.moveTo(40*ratio + width, 608*ratio)
ctx.lineTo(45*ratio + width + market_price_width, 608*ratio)
ctx.stroke();
// 长按识别二维码
// ctx.setFillStyle("#666");
// ctx.setFontSize(22 * ratio); //字大小
// ctx.setTextAlign('left'); //是否居中显示,参考点画布中线
// ctx.fillText("长按识别二维码", 404*ratio, 710*ratio);
// 长按图片转发或保存
// ctx.setFillStyle("#000");
// ctx.setFontSize(24 * ratio); //字大小
// ctx.setTextAlign('left'); //是否居中显示,参考点画布中线
// ctx.fillText("长按图片保存到本地",(592*ratio - ctx.measureText("长按图片保存到本地").width)/2, 740*ratio);
ctx.draw();
// 转为图片
setTimeout(()=>{
wx.canvasToTempFilePath({
x: 0,
y: 0,
canvasId: 'imageCanvas',
success: function (res) {
that.setData({
shareImg:res.tempFilePath
})
},
fail(err){
console.log('agdgjgdajhg',err)
}
})
},500)
return false;
}).catch(err=>{
console.log("this err",err)
})
},
// 圆角矩形
handleBorderRect(ctx, x, y, w, h, r, color){
ctx.beginPath();
ctx.moveTo(x+w,y+h);
ctx.lineTo(x,y+h)
// 左上角
ctx.arc(x + r, y + r, r, Math.PI, 1.5 * Math.PI);
ctx.moveTo(x + r, y);
ctx.lineTo(x + w - r, y);
ctx.lineTo(x + w, y + r);
// 右上角
ctx.arc(x + w - r, y + r, r, 1.5 * Math.PI, 2 * Math.PI);
ctx.lineTo(x + w, y + h );
ctx.lineTo(x + w - r, y + h);
ctx.fillStyle = color;
ctx.fill();
ctx.closePath();
},
handleBorderRect2(ctx, x, y, w, h, r, color){
ctx.beginPath();
ctx.moveTo(x,y);
ctx.lineTo(x+w,y)
// 右下角
ctx.arc(x + w - r, y + h - r, r, 0, 0.5 * Math.PI);
ctx.lineTo(x + r, y + h);
ctx.lineTo(x, y + h - r);
// 左下角
ctx.arc(x + r, y + h - r, r, 0.5 * Math.PI, Math.PI);
ctx.lineTo(x, y);
ctx.lineTo(x, y);
ctx.fillStyle = color;
ctx.fill();
ctx.closePath();
},
// 绘制两行文字
drawText: function(ctx, str, x, y, canvasWidth,ratio) {
let row = [],temp="",chr=str.split("");
for (var a = 0; a < chr.length; a++) {
if (ctx.measureText(temp).width < canvasWidth) {
temp += chr[a];
}
else {
a--; //这里添加了a-- 是为了防止字符丢失,效果图中有对比
row.push(temp);
temp = "";
}
}
row.push(temp);
//如果数组长度大于2 则截取前两个
if (row.length > 2) {
var rowCut = row.slice(0, 2);
var rowPart = rowCut[1];
var test = "";
var empty = [];
for (var a = 0; a < rowPart.length; a++) {
if (ctx.measureText(test).width < canvasWidth - 30 * ratio) {
test += rowPart[a];
}
else {
break;
}
}
empty.push(test);
var group = empty[0] + "..."//这里只显示两行,超出的用...表示
rowCut.splice(1, 1, group);
row = rowCut;
}
for (var b = 0; b < row.length; b++) {
ctx.fillText(row[b], x, y + b * 40 * ratio, canvasWidth);
}
},
/**
* 生命周期函数--监听页面初次渲染完成
*/

64
pages/info/postProductInfo/index.wxml

@ -1,7 +1,8 @@
<!--pages/info/hotelProductInfo/index.wxml-->
<wxs src="../../../utils/filter.wxs" module="tool" />
<title title="产品详情"></title>
<view class="iconfont {{isLike==1?'icon-shoucang':'icon-xin'}}" bindtap="like"></view>
<view class="iconfont icon-fenxiang" bindtap="share"></view>
<image wx:for="{{info.sku}}" style="{{aniSkuIndex==index?('top:'+cartTop+'px;'):('top:'+top+'px;'+cartImgInfo)}}" class="headimg{{aniSkuIndex==index?' active':''}}" src="{{item.headimg}}" mode="aspectFill"></image>
<swiper class="swiper" indicator-dots="{{true}}" wx:if="{{info}}"
autoplay="{{true}}" interval="{{2000}}" duration="{{300}}">
<block wx:for="{{info.listimg}}" wx:key="*this">
@ -28,35 +29,14 @@
<view class="info-box" id="box1">
<view class="info-title">产品特色</view>
<rich-text class="details" nodes="{{tool.formateRichText(info.content)}}"></rich-text>
<!-- <rich-text class="details"></rich-text> -->
<!-- <view class="details" wx:for="{{6}}">
在这里,酣畅淋漓的做一场偶像梦,你就是星光闪耀的明日之星!下一站天王天后,等你来!
演出形式、内容:半露天卡通剧场,儿童剧,亲子互动
表演时长:30分钟
表演故事线:“最Q童星奖”PK赛现场直播啦!刚从电影学院新鲜出炉的小明星们,赶快大展身手吧!
</view> -->
</view>
<view class="info-box" id="box2">
<view class="info-title">费用说明</view>
<rich-text class="details" nodes="{{tool.formateRichText(info.expense_info)}}"></rich-text>
<!-- <rich-text class="details" nodes="{{filter.formateRichText(skuInfo[0].feeDescription)}}"></rich-text> -->
<!-- <view class="details" wx:for="{{6}}">
在这里,酣畅淋漓的做一场偶像梦,你就是星光闪耀的明日之星!下一站天王天后,等你来!
演出形式、内容:半露天卡通剧场,儿童剧,亲子互动
表演时长:30分钟
表演故事线:“最Q童星奖”PK赛现场直播啦!刚从电影学院新鲜出炉的小明星们,赶快大展身手吧!
</view> -->
</view>
<view class="info-box" id="box3">
<view class="info-title">预订须知</view>
<rich-text class="details" nodes="{{tool.formateRichText(info.book_info)}}"></rich-text>
<!-- <rich-text class="details" nodes="{{filter.formateRichText(skuInfo[0].bookingInfo)}}"></rich-text> -->
<!-- <view class="details" wx:for="{{6}}">
在这里,酣畅淋漓的做一场偶像梦,你就是星光闪耀的明日之星!下一站天王天后,等你来!
演出形式、内容:半露天卡通剧场,儿童剧,亲子互动
表演时长:30分钟
表演故事线:“最Q童星奖”PK赛现场直播啦!刚从电影学院新鲜出炉的小明星们,赶快大展身手吧!
</view> -->
</view>
</view>
<view class="box">
@ -87,22 +67,27 @@
<view class="iconfont icon-kefu"></view>
<view>客服</view>
</navigator>
<navigator url="/pages/user/cartlist/list" class="kefu-box" style="margin-left:70rpx">
<view class="iconfont icon-gouwuche"></view>
<view>购物车</view>
</navigator>
<view bindtap="like" class="kefu-box" style="margin-left:70rpx">
<view class="iconfont {{isLike==1?'icon-shoucang':'icon-xin'}}"></view>
<view>收藏</view>
</view>
<view style="flex:1"></view>
<view class="btns">
<view class="btn" bindtap="showCart">加入购物车</view>
<view class="btn" bindtap="showOrder">立即预订</view>
</view>
</view>
<!-- 购物车悬浮框 -->
<navigator url="/pages/user/cartlist/list" class="cart-box" id="cart">
<image src="https://sz-qd.oss-cn-hangzhou.aliyuncs.com/xcxImages/info/cart.png" mode="widthFix"></image>
<view class="cart-num">{{cartCount}}</view>
</navigator>
<view class="mask" wx:if="{{skuFlag}}">
<view class="mask-bg" bindtap="hideSku"></view>
<view class="mask-content">
<view class="iconfont icon-close" bindtap="hideSku"></view>
<view class="sku-info-box">
<image src="{{info.sku[skuIndex].headimg}}" mode="aspectFill"></image>
<image id="skuImg" src="{{info.sku[skuIndex].headimg}}" mode="aspectFill"></image>
<view class="sku-info">
<view class="sku-price">{{info.sku[skuIndex].price/100}}</view>
<view class="sku-name">已选择:{{info.sku[skuIndex].sku_name}}</view>
@ -123,3 +108,28 @@
</view>
</view>
</view>
<view style="position:absolute;right:0;left:-10000rpx;top:-200rpx;">
<canvas canvas-id='imageCanvas' class='imageCanvas' style="width:551rpx;height:643rpx;" disable-scroll='true'>
</canvas>
<canvas class="canvasCode" style="opacity:0;width:500px;height:500px" canvas-id="myQrcode"></canvas>
</view>
<view class="mask" wx:if="{{showShareFlag}}" style="align-items: center;">
<view class="mask-bg" bindtap="share"></view>
<view class="mask-content share-img-box">
<image class="share-img" src="{{shareImg}}" mode="widthFix"></image>
<view class="share-tips">
<view style="position:relative">
<image class="img" src="https://sz-qd.oss-cn-hangzhou.aliyuncs.com/xcxImages/info/img.png" mode="widthFix"></image>
<view>保存图片到相册</view>
<view class="tipimg"><image src="https://sz-qd.oss-cn-hangzhou.aliyuncs.com/xcxImages/info/ok.png" mode="widthFix"></image></view>
</view>
<image style="width:36rpx" src="https://sz-qd.oss-cn-hangzhou.aliyuncs.com/xcxImages/info/arrow2.png" mode="widthFix"></image>
<view style="position:relative">
<image class="img" src="https://sz-qd.oss-cn-hangzhou.aliyuncs.com/xcxImages/info/code.png" mode="widthFix"></image>
<view>微信识别二维码</view>
<view class="tipimg"><image src="https://sz-qd.oss-cn-hangzhou.aliyuncs.com/xcxImages/info/ok1.png" mode="widthFix"></image></view>
</view>
</view>
<view class="save-btn" bindtap="save">保存到相册</view>
</view>
</view>

126
pages/info/postProductInfo/index.wxss

@ -355,6 +355,7 @@ page {
}
.fixed-bottom .iconfont {
font-size: 34rpx;
line-height: 40rpx;
}
.btns {
color: #fff;
@ -499,7 +500,20 @@ page {
font-size: 33rpx;
font-weight: 500;
}
.icon-xin,.icon-shoucang {
/* .icon-xin,.icon-shoucang {
position: absolute;
right: 20rpx;
margin-top: 20rpx;
width: 60rpx;
line-height: 60rpx;
background: rgba(0, 0, 0, 0.4);
border-radius: 50%;
text-align: center;
color: #fff;
font-size: 36rpx;
z-index: 1;
} */
.icon-fenxiang {
position: absolute;
right: 20rpx;
margin-top: 20rpx;
@ -514,4 +528,114 @@ page {
}
.icon-shoucang {
color: #D62828;
font-size: 40rpx !important;
}
/* 购物车 */
.cart-box {
position: fixed;
display: flex;
align-items: center;
justify-content: center;
width: 80rpx;
height: 80rpx;
background: #FFFFFF;
box-shadow: 0px 0px 20rpx 0px rgba(0, 0, 0, 0.2);
border-radius: 50%;
right: 20rpx;
bottom: 166rpx;
}
.cart-box image {
display: block;
width: 49rpx;
}
.cart-num {
width: 26rpx;
border: 1rpx solid;
border-radius: 50%;
line-height: 26rpx;
text-align: center;
font-size: 23rpx;
color: #D20000;
position: absolute;
right: -2rpx;
top: -5rpx;
}
.headimg {
position: fixed;
z-index: 3;
left: -218rpx;
width: 218rpx;
height: 180rpx;
top: 0;
}
.headimg.active {
transition: left .6s linear, top .6s cubic-bezier(0.5, -0.5, 1, 1),width .6s ease,height .6s ease;
width: 80rpx;
height: 80rpx;
left: 650rpx;
border-radius: 50%;
}
.share-img-box {
/* width: 551rpx; */
position: static;
background: none;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
}
.share-img {
display: block;
width: 551rpx;
}
.share-tips {
width: 426rpx;
height: 150rpx;
background: #FFFFFF;
border-radius: 25rpx;
margin-top: 25rpx;
display: flex;
align-items: center;
justify-content: space-between;
padding: 0 65rpx;
color: #999;
font-size: 24rpx;
text-align: center;
line-height: 40rpx;
}
.share-tips .img {
display: block;
width: 55rpx;
margin: 0 auto;
margin-bottom: 4rpx;
}
.tipimg {
position: absolute;
left: 50%;
margin-left: 16rpx;
width: 24rpx;
height: 24rpx;
background: #D62828;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
top: 34rpx;
}
.tipimg image {
width: 21rpx;
display: block;
}
.save-btn {
width: 403rpx;
line-height: 77rpx;
background: #D62828;
border-radius: 39rpx;
text-align: center;
color: #fff;
font-size: 31rpx;
font-weight: 500;
margin-top: 50rpx;
}

2
pages/list/sale/index.wxml

@ -1,7 +1,7 @@
<title title="限时特惠"></title>
<view class="sale-types">
<view class="sale-type{{type==0?' active':''}}" bindtap="changeType" data-type="0">正在疯抢</view>
<view class="sale-type{{type==1?' active':''}}" bindtap="changeType" data-type="1">活动预告</view>
<view class="sale-type{{type==1?' active':''}}" bindtap="changeType" data-type="1">新品专栏</view>
</view>
<view style="height:87rpx"></view>
<view class="list" wx:for="{{list}}" wx:for-item="activity">

6
pages/map/index.wxml

@ -28,7 +28,7 @@
</view>
<view class="right-menu-item{{type==5?' active':''}}" bindtap="changeType" data-title="文物" data-type="5">
<text style="color:#00B3C8" class="iconfont icon-location"></text>
<text>文</text>
<text>文保单位</text>
</view>
<view class="right-menu-item{{type==7?' active':''}}" bindtap="changeType" data-title="影院" data-type="7">
<text style="color:#9342CB" class="iconfont icon-location"></text>
@ -42,10 +42,10 @@
<text style="color:#9d6b00" class="iconfont icon-location"></text>
<text>江南小书场</text>
</view>
<view class="right-menu-item{{type==9?' active':''}}" bindtap="changeType" data-title="文化单位" data-type="9">
<!-- <view class="right-menu-item{{type==9?' active':''}}" bindtap="changeType" data-title="文化单位" data-type="9">
<text style="color:rgb(160, 248, 248)" class="iconfont icon-location"></text>
<text>文化单位</text>
</view>
</view> -->
</view>
<view class="map-item" wx:if="{{showInfo && info && info.info.type!='tenscenic'}}">
<view class="iconfont icon-ic_searchclosed" bindtap="hideInfo"></view>

2
pages/order/postOrder/index.wxml

@ -34,7 +34,7 @@
<input type="text" bindinput="inputRemark" data-index="{{index}}" placeholder="选填"></input>
</view>
<view class="all-money-box" wx:if="{{from=='cart'}}">
小计:<text class="unit">¥</text><text class="s-price">{{item.sku.price/100 * item.productNum}}</text>
小计:<text class="unit">¥</text><text class="s-price">{{item.sku.price * item.productNum /100}}</text>
</view>
</view>
<coupon id="coupon" wx:if="{{!kjId && !gp_id}}" money="{{showPrice + postFee}}" sku="{{sku_id}}"></coupon>

2
project.config.json

@ -4,7 +4,7 @@
"ignore": []
},
"setting": {
"urlCheck": false,
"urlCheck": true,
"es6": true,
"enhance": false,
"postcss": true,

6
project.private.config.json

@ -13,9 +13,9 @@
"miniprogram": {
"list": [
{
"name": "pages/list/culturalUnit/index",
"pathName": "pages/list/culturalUnit/index",
"query": "url=https%3A%2F%2Fm.cloud.sz-trip.com%2FphotoWorksDetail%3Fid%3D1157%26type_id%3D1",
"name": "pages/info/postProductInfo/index",
"pathName": "pages/info/postProductInfo/index",
"query": "id=12677",
"scene": null
},
{

Loading…
Cancel
Save