Browse Source

no message

feature/v1.1.0
xpz2018 7 years ago
parent
commit
f286d1fbec
6 changed files with 10 additions and 13 deletions
  1. 6
      pages/activity_detail/activity_detail.js
  2. 4
      pages/create_order/create_order.js
  3. 2
      pages/create_order/create_order.wxml
  4. 4
      pages/detail/detail.js
  5. 6
      pages/detail/detail.wxml
  6. 1
      pages/mall/mall.js

6
pages/activity_detail/activity_detail.js

@ -43,12 +43,6 @@ Page({
}, { }, {
name: '朋友圈', name: '朋友圈',
icon: '../../images/moments_ico.png' icon: '../../images/moments_ico.png'
}, {
name: '朋友圈',
icon: '../../images/moments_ico.png'
}, {
name: '朋友圈',
icon: '../../images/moments_ico.png'
}], }],
qrImageUrl: "", qrImageUrl: "",
}, },

4
pages/create_order/create_order.js

@ -70,6 +70,7 @@ Page({
goodsNo:str.goodsNo, goodsNo:str.goodsNo,
sourceType: 0, sourceType: 0,
goodsNum: 1, goodsNum: 1,
goodsVersion: str.goodsVersion,
couponNo: '', couponNo: '',
remark:that.data.remark remark:that.data.remark
}, },
@ -78,7 +79,8 @@ Page({
'sessionId': wx.getStorageSync('sessionId') 'sessionId': wx.getStorageSync('sessionId')
}, },
success: function (res) { success: function (res) {
//--init data
//--init data
console.log(res)
let data = res.data; let data = res.data;
let status = data.code; let status = data.code;
if (status != 0) { if (status != 0) {

2
pages/create_order/create_order.wxml

@ -17,7 +17,7 @@
</view> --> </view> -->
<!-- <view class='icon icon-msg'>></view> --> <!-- <view class='icon icon-msg'>></view> -->
<view class='msg'> <view class='msg'>
<view style='font-size:30rpx'>{{product.serviceAreaStr}}</view>
<view style='font-size:30rpx'>{{product.shortDesc}}</view>
</view> </view>
</view> </view>
<!-- <view class='box'> <!-- <view class='box'>

4
pages/detail/detail.js

@ -46,6 +46,7 @@ Page({
method: 'post', method: 'post',
data: { data: {
goodsNo: that.data.product.goodsNo, goodsNo: that.data.product.goodsNo,
goodsVersion: that.data.product.goodsVersion,
goodsNum: 1, goodsNum: 1,
couponNo: '' couponNo: ''
}, },
@ -54,10 +55,11 @@ Page({
'sessionId': wx.getStorageSync('sessionId') 'sessionId': wx.getStorageSync('sessionId')
}, },
success: function (res) { success: function (res) {
//--init data
//--init data
let data = res.data; let data = res.data;
let status = data.code; let status = data.code;
let str = JSON.stringify(data.response); let str = JSON.stringify(data.response);
console.log(str)
if (status != 0) { if (status != 0) {
wx.showToast({ wx.showToast({
title: data.msg, title: data.msg,

6
pages/detail/detail.wxml

@ -49,9 +49,9 @@
<view class="blank-50"></view> <view class="blank-50"></view>
<view data-spm="action" class="item-action"> <view data-spm="action" class="item-action">
<view class="buy-now {{nowDate > product.endedAt||product.soldNum >= product.totalNum?'gray':''}}" style="position: relative"> <view class="buy-now {{nowDate > product.endedAt||product.soldNum >= product.totalNum?'gray':''}}" style="position: relative">
<view class='create-order' data-item='{{product}}' bindtap="{{nowDate > product.endedAt||product.soldNum >= product.totalNum?'':'createOrder'}}">立即下单</view>
<view class="buy-bg" style="{{nowDate > product.endedAt||product.soldNum >= product.totalNum?'display: block;':'display: none;'}}">
</view>
<view class='create-order' data-item='{{product}}' bindtap="createOrder">立即下单</view>
<view class="buy-bg" style="{{nowDate > product.endedAt||product.soldNum >= product.totalNum?'display: block;':'display: none;'}}">
</view>
</view> </view>
</view> </view>
</view> </view>

1
pages/mall/mall.js

@ -57,7 +57,6 @@ Page({
}, },
loading: function (e) { loading: function (e) {
console.log("detail>>" + e.currentTarget.dataset.item.goodsNo);
wx.navigateTo({ wx.navigateTo({
url: '../detail/detail?goodsNo=' + e.currentTarget.dataset.item.goodsNo url: '../detail/detail?goodsNo=' + e.currentTarget.dataset.item.goodsNo
}) })

Loading…
Cancel
Save