Browse Source

groupSummary

master
xpz2018 6 years ago
parent
commit
1ac635b7f3
4 changed files with 15 additions and 9 deletions
  1. 5
      app.js
  2. 9
      pages/mall/order-info/index.wxml
  3. 6
      pages/mall/order-offer/index.js
  4. 4
      pages/mall/order-offer/index.wxml

5
app.js

@ -1,7 +1,7 @@
//app.js //app.js
App({ App({
//----------------------------------------------globalData-------------------------------------- //----------------------------------------------globalData--------------------------------------
release: 1,
release: 0,
httpUrl: 'https://api-test.qniao.cn', httpUrl: 'https://api-test.qniao.cn',
tmplIds: ['kg0T1ve0FpYrEtZ4ExbypHm8mtS7OJaehvqN_T9ypoI'], tmplIds: ['kg0T1ve0FpYrEtZ4ExbypHm8mtS7OJaehvqN_T9ypoI'],
globalData: { globalData: {
@ -15,7 +15,8 @@
if (this.release) { if (this.release) {
this.httpUrl = 'https://api.qniao.cn' this.httpUrl = 'https://api.qniao.cn'
} else { } else {
this.httpUrl = 'http://api-test.qniao.cn'
// this.httpUrl = 'http://192.168.0.24:9000'
this.httpUrl = 'https://api-test.qniao.cn'
} }
wx.getSystemInfo({ wx.getSystemInfo({
success: e => { success: e => {

9
pages/mall/order-info/index.wxml

@ -39,7 +39,7 @@
<view class="text-gray" style="font-size:28rpx">购买数量</view> <view class="text-gray" style="font-size:28rpx">购买数量</view>
<wux-input-number value="{{form.number}}" controlled="{{true}}" disabled="{{false}}" color="stable" min="{{1}}" max="{{form.stockNumber||orderInfo.stockNumber}}" bind:change="onNumChange" /> <wux-input-number value="{{form.number}}" controlled="{{true}}" disabled="{{false}}" color="stable" min="{{1}}" max="{{form.stockNumber||orderInfo.stockNumber}}" bind:change="onNumChange" />
</view> </view>
<view class="bg-white" style="padding:32rpx;margin-top:32rpx"> <view class="bg-white" style="padding:32rpx;margin-top:32rpx">
<view class="text-black" style="font-size:32rpx">商品描述</view> <view class="text-black" style="font-size:32rpx">商品描述</view>
<view class="text-gray" style="font-size:28rpx;margin-top:32rpx">{{orderInfo.detail}}</view> <view class="text-gray" style="font-size:28rpx;margin-top:32rpx">{{orderInfo.detail}}</view>
@ -47,6 +47,13 @@
<view class="bg-white"> <view class="bg-white">
<view style="height:1px;width:100%;background-color:#F3F3F3;margin-left:32rpx"></view> <view style="height:1px;width:100%;background-color:#F3F3F3;margin-left:32rpx"></view>
</view> </view>
<view class="bg-white" style="padding:32rpx;margin-top:32rpx" wx:if="{{orderInfo.groupSummary}}">
<view class="text-black" style="font-size:32rpx">拼团说明</view>
<view class="text-gray" style="font-size:28rpx;margin-top:32rpx">{{orderInfo.groupSummary}}</view>
</view>
<view class="bg-white" wx:if="{{orderInfo.groupSummary}}">
<view style="height:1px;width:100%;background-color:#F3F3F3;margin-left:32rpx"></view>
</view>
<view class="bg-white" style="padding:32rpx;"> <view class="bg-white" style="padding:32rpx;">
<view class="text-black" style="font-size:32rpx">送货说明</view> <view class="text-black" style="font-size:32rpx">送货说明</view>
<view class="text-gray" style="font-size:28rpx;margin-top:32rpx">{{orderInfo.deliverTips}}</view> <view class="text-gray" style="font-size:28rpx;margin-top:32rpx">{{orderInfo.deliverTips}}</view>

6
pages/mall/order-offer/index.js

@ -9,9 +9,7 @@ Page({
* 页面的初始数据 * 页面的初始数据
*/ */
data: { data: {
form: {
payType: 2,
},
form: {},
addressInfo: null, addressInfo: null,
isIPhoneX: false isIPhoneX: false
}, },
@ -21,7 +19,7 @@ Page({
onLoad: function (options) { onLoad: function (options) {
if (options.json) { if (options.json) {
var form = JSON.parse(options.json) var form = JSON.parse(options.json)
form.payType = 2
form.payType = 1
// form.totalPrice = float.accAdd(float.accMul(form.unitPrice, form.number), form.dividePrice) // form.totalPrice = float.accAdd(float.accMul(form.unitPrice, form.number), form.dividePrice)
form.totalPrice = float.accMul(form.unitPrice, form.number).toFixed(2) form.totalPrice = float.accMul(form.unitPrice, form.number).toFixed(2)
form.preAmount = float.accMul(float.accMul(form.unitPrice, form.number), 0.1).toFixed(2) form.preAmount = float.accMul(float.accMul(form.unitPrice, form.number), 0.1).toFixed(2)

4
pages/mall/order-offer/index.wxml

@ -66,13 +66,13 @@
<text class="cuIcon-titles text-blue"></text> <text class="cuIcon-titles text-blue"></text>
<view style="color:black;font-size:32rpx">付款方式</view> <view style="color:black;font-size:32rpx">付款方式</view>
</view> </view>
<!-- <view class="flex flex-justify" style="height:80rpx" data-index="1" bindtap="checkMode">
<view class="flex flex-justify" style="height:80rpx" data-index="1" bindtap="checkMode">
<view class="flex align-end"> <view class="flex align-end">
<text style="font-size:28rpx">预付定金</text> <text style="font-size:28rpx">预付定金</text>
<text class="offer-hint" style="margin-left:10rpx">预付款10%,余款货到付款</text> <text class="offer-hint" style="margin-left:10rpx">预付款10%,余款货到付款</text>
</view> </view>
<text class="cuIcon-{{form.payType==1?'roundcheckfill':'roundcheck'}} text-{{form.payType==1?'blue':'grey'}}" style="font-size:36rpx"></text> <text class="cuIcon-{{form.payType==1?'roundcheckfill':'roundcheck'}} text-{{form.payType==1?'blue':'grey'}}" style="font-size:36rpx"></text>
</view> -->
</view>
<view class="flex flex-justify" style="height:80rpx" data-index="2" bindtap="checkMode"> <view class="flex flex-justify" style="height:80rpx" data-index="2" bindtap="checkMode">
<view style="font-size:28rpx">货到付款</view> <view style="font-size:28rpx">货到付款</view>
<text class="cuIcon-{{form.payType==2?'roundcheckfill':'roundcheck'}} text-{{form.payType==2?'blue':'grey'}}" style="font-size:36rpx"></text> <text class="cuIcon-{{form.payType==2?'roundcheckfill':'roundcheck'}} text-{{form.payType==2?'blue':'grey'}}" style="font-size:36rpx"></text>

Loading…
Cancel
Save