ソースを参照

二维码调试、选择广场调试

soldDate
HolyKnightIX 2年前
コミット
e55f5806a2
8個のファイルの変更258行の追加207行の削除
  1. +6
    -5
      pages/coupon/confirmation/confirmation.ttml
  2. +16
    -12
      pages/edit/edit.ttml
  3. +23
    -24
      pages/index/index.js
  4. +4
    -2
      pages/main/index.js
  5. +169
    -158
      pages/order/detail/index.ttml
  6. +6
    -3
      pages/order/index/index.ttml
  7. +14
    -1
      pages/order/index/index.ttss
  8. +20
    -2
      project.config.json

+ 6
- 5
pages/coupon/confirmation/confirmation.ttml ファイルの表示

@@ -1,18 +1,19 @@
<view class="commodityBox"> <view class="commodityBox">
<view class="commodityImgBox"> <view class="commodityImgBox">
<image class="commodityImg" src="{{data.coverImg}}"></image>
<image class="commodityImg" src="{{data.coverImg}}"></image>
</view> </view>
<view class="contentBox"> <view class="contentBox">
<view class="topBox"> <view class="topBox">
<view class="title">{{data.title}}</view> <view class="title">{{data.title}}</view>
<view class="unit">{{data.type==50?priceAndStockObj.creditPrice+'积分':'¥'+priceAndStockObj.salePrice/100}}</view>
<view class="unit">{{data.type==50?priceAndStockObj.creditPrice+'积分':'¥'+priceAndStockObj.salePrice/100}}
</view>
</view> </view>
<view class="subhead"> {{data.subTitle}}</view>
<view class="subhead">{{data.subTitle}}</view>
</view> </view>


<view class="app-border-topX"> <view class="app-border-topX">
<view class="actually"> 实付 </view> <view class="actually"> 实付 </view>
<view class="payZ">{{data.type!=50?'¥':''}}</view>
<view class="payZ">{{data.type!=50?'¥':''}}</view>
<view class="price">{{data.type==50?priceAndStockObj.creditPrice+'积分':priceAndStockObj.salePrice/100}}</view> <view class="price">{{data.type==50?priceAndStockObj.creditPrice+'积分':priceAndStockObj.salePrice/100}}</view>
<view class="buyX" bindtap="orderFunc">{{data.type==50?'立即换购':'提交订单'}}</view> <view class="buyX" bindtap="orderFunc">{{data.type==50?'立即换购':'提交订单'}}</view>
</view> </view>
@@ -20,5 +21,5 @@
</view> </view>
<view class="go" bindtap="goInstructions"> <view class="go" bindtap="goInstructions">
<view class="goTitle">使用须知</view> <view class="goTitle">使用须知</view>
<image class="goImg" src="../../../assets/itemImg/chevron.png" ></image>
<image class="goImg" src="../../../assets/itemImg/chevron.png"></image>
</view> </view>

+ 16
- 12
pages/edit/edit.ttml ファイルの表示

@@ -9,20 +9,20 @@
<view class="section sec"> <view class="section sec">
<text>生日</text> <text>生日</text>
<picker mode="date" value="{{date}}" start="1930-09-01" end="{{dateEnd}}" bindchange="bindDateChange"> <picker mode="date" value="{{date}}" start="1930-09-01" end="{{dateEnd}}" bindchange="bindDateChange">
<input tt:if="{{flag==1}}" class='input' placeholder='请输入生日' disabled/>
<input tt:if="{{flag==1}}" class='input' placeholder='请输入生日' disabled />
<view tt:if="{{flag==2}}" class="picker"> {{date}}</view> <view tt:if="{{flag==2}}" class="picker"> {{date}}</view>
</picker> </picker>
<image class="rArrow" src="{{chevronUrl}}" mode='widthFix'></image> <image class="rArrow" src="{{chevronUrl}}" mode='widthFix'></image>
</view> </view>
<view class='section'> <view class='section'>
<text>身高</text> <text>身高</text>
<input tt:if="{{height}}" name="height" type="text" placeholder="请填写身高单位cm" placeholder='{{height}}'/>
<input tt:if="{{height}}" name="height" type="text" placeholder='{{height||' 请填写身高单位cm'}}' />
<input tt:if="{{!height}}" name="height" type="text" placeholder="请填写身高单位cm" /> <input tt:if="{{!height}}" name="height" type="text" placeholder="请填写身高单位cm" />
</view> </view>
<view class='section'> <view class='section'>
<text>体重</text> <text>体重</text>
<input tt:if="{{weight}}" name="weight" type="text" placeholder="请填写体重单位kg" placeholder='{{weight}}'/>
<input tt:if="{{!weight}}" name="weight" type="text" placeholder="请填写体重单位kg" />
<input tt:if="{{weight}}" name="weight" type="text" placeholder='{{weight||' 请填写体重单位kg'}}' />
<input tt:if="{{!weight}}" name="weight" type="text" placeholder="请填写体重单位kg" />
</view> </view>
<view class="section section_gap"> <view class="section section_gap">
<text>性别</text> <text>性别</text>
@@ -33,7 +33,7 @@
</radio-group> </radio-group>
</view> </view>


<view class='address sec' bindtap='address'> <view class='address sec' bindtap='address'>
<text>住址</text> <text>住址</text>
<view class='names' tt:if="{{address}}">{{address}}</view> <view class='names' tt:if="{{address}}">{{address}}</view>
@@ -46,14 +46,16 @@
<view class="contBox"> <view class="contBox">
<view class='contBox_section'> <view class='contBox_section'>
<text>姓名</text> <text>姓名</text>
<input tt:if="{{item.name}}" type="text" placeholder='{{item.name}}' bindinput="chidName" data-index="{{index}}" />
<input tt:if="{{item.name}}" type="text" placeholder='{{item.name}}' bindinput="chidName"
data-index="{{index}}" />
<input tt:if="{{!item.name}}" type="text" placeholder='请填写名字' bindinput="chidName" data-index="{{index}}" /> <input tt:if="{{!item.name}}" type="text" placeholder='请填写名字' bindinput="chidName" data-index="{{index}}" />
</view> </view>


<view class="contBox_section sec"> <view class="contBox_section sec">
<text>生日</text> <text>生日</text>
<picker class="contBox_picker" mode="date" value="{{date}}" start="1930-09-01" end="{{dateEnd}}" bindchange="chidBirthday" data-index="{{index}}">
<input tt:if="{{!item.birthdate}}" class='contBox_picker' placeholder='请输入生日' disabled/>
<picker class="contBox_picker" mode="date" value="{{date}}" start="1930-09-01" end="{{dateEnd}}"
bindchange="chidBirthday" data-index="{{index}}">
<input tt:if="{{!item.birthdate}}" class='contBox_picker' placeholder='请输入生日' disabled />
<view tt:if="{{item.birthdate}}" class="contBox_picker"> {{item.birthdate}}</view> <view tt:if="{{item.birthdate}}" class="contBox_picker"> {{item.birthdate}}</view>
</picker> </picker>
<image class="rArrow" src="{{chevronUrl}}" mode='widthFix'></image> <image class="rArrow" src="{{chevronUrl}}" mode='widthFix'></image>
@@ -62,10 +64,10 @@
<view class="contBox_section section_gap"> <view class="contBox_section section_gap">
<text>性别</text> <text>性别</text>
<radio-group class="radio-group" bindchange="childSex" data-index="{{index}}"> <radio-group class="radio-group" bindchange="childSex" data-index="{{index}}">
<radio class="radio" value="1" checked="{{item.sex==1?true:false}}">
<radio class="radio" value="1" checked="{{item.sex==1?true:false}}">
<text>男</text> <text>男</text>
</radio> </radio>
<radio class="radio" value="2" checked="{{item.sex==2?true:false}}">
<radio class="radio" value="2" checked="{{item.sex==2?true:false}}">
<text>女</text> <text>女</text>
</radio> </radio>
</radio-group> </radio-group>
@@ -75,6 +77,8 @@
<view class="det_child_box" bindtap="childDel" data-index="{{index}}"> 删除</view> <view class="det_child_box" bindtap="childDel" data-index="{{index}}"> 删除</view>


</view> </view>
<button class='btn' tt:if="{{!username}}" formType="submit" hover-class='active' style='background: linear-gradient(270deg, #DDAB5A, #B8832D)'>完成</button>
<button class='btn' tt:if="{{username}}" formType="submit" hover-class='active' style='background: linear-gradient(270deg, #DDAB5A, #B8832D);'>完成</button>
<button class='btn' tt:if="{{!username}}" formType="submit" hover-class='active'
style='background: linear-gradient(270deg, #DDAB5A, #B8832D)'>完成</button>
<button class='btn' tt:if="{{username}}" formType="submit" hover-class='active'
style='background: linear-gradient(270deg, #DDAB5A, #B8832D);'>完成</button>
</form> </form>

+ 23
- 24
pages/index/index.js ファイルの表示

@@ -1,4 +1,3 @@

const Http = require("../../utils/HttpBasics"); const Http = require("../../utils/HttpBasics");
const imgurl = require("../../utils/imgurl"); const imgurl = require("../../utils/imgurl");
const config = require("../../config/config"); const config = require("../../config/config");
@@ -7,8 +6,7 @@ Page({
/** /**
* 页面的初始数据 * 页面的初始数据
*/ */
data: {
},
data: {},
/** /**
* 生命周期函数--监听页面加载 * 生命周期函数--监听页面加载
*/ */
@@ -55,6 +53,7 @@ Page({
app.globalData.type = options.type; app.globalData.type = options.type;
if (options.type == 'cd') { if (options.type == 'cd') {
options.couponChannelId = this.data.newArr[2]; options.couponChannelId = this.data.newArr[2];
options.tenantId = this.data.newArr[3];
} else if (options.type == 'bd') { } else if (options.type == 'bd') {
options.bt = this.data.newArr[2]; options.bt = this.data.newArr[2];
options.id = this.data.newArr[3]; options.id = this.data.newArr[3];
@@ -109,7 +108,7 @@ Page({
} }
} }
}, },
getCongig() {//获取小程序是否开通授权手机号
getCongig() { //获取小程序是否开通授权手机号
Http.get({ Http.get({
url: config.api.getConfig, url: config.api.getConfig,
data: { data: {
@@ -135,8 +134,8 @@ Page({
} }
}, },
/** /**
* 获取手机信息
*/
* 获取手机信息
*/
updateUserInfo() { updateUserInfo() {
tt.getSystemInfo({ tt.getSystemInfo({
success: function (res) { success: function (res) {
@@ -154,25 +153,25 @@ Page({
checkuserstatus(options) { checkuserstatus(options) {
let that = this; let that = this;
console.log("判断是否是商品详情"); console.log("判断是否是商品详情");
if ((options && options.couponChannelId && !options.spellGroup && app.globalData.type != 'sd')) { if ((options && options.couponChannelId && !options.spellGroup && app.globalData.type != 'sd')) {
if (options.cuserId) { if (options.cuserId) {
tt.redirectTo({ tt.redirectTo({
url: `/pages/coupon/detail/index?couponChannelId=${options.couponChannelId}&cuserId=${options.cuserId}&coverImg=${options.coverImg}&userName=${options.userName}&avatarUrl=${options.avatarUrl}&couponOrderId=${options.couponOrderId}&updateDate=${options.updateDate}`,
url: `/pages/coupon/detail/index?couponChannelId=${options.couponChannelId}&cuserId=${options.cuserId}&coverImg=${options.coverImg}&userName=${options.userName}&avatarUrl=${options.avatarUrl}&couponOrderId=${options.couponOrderId}&updateDate=${options.updateDate}&mallTenantId=${options.tenantId}`,
}) })
} else { } else {
// 跳转普通券/消费卡/限时秒杀/砍价详情 // 跳转普通券/消费卡/限时秒杀/砍价详情
tt.redirectTo({ tt.redirectTo({
url: `/pages/coupon/detail/index?couponChannelId=${options.couponChannelId}`,
url: `/pages/coupon/detail/index?couponChannelId=${options.couponChannelId}&mallTenantId=${options.tenantId}`,
}) })
} }
} else { } else {
Http.get({ Http.get({
url: config.api.checkUserStatus,
data: {
token: app.globalData.token
}
})
url: config.api.checkUserStatus,
data: {
token: app.globalData.token
}
})
.then(res => { .then(res => {
// res = JSON.parse('{"code":11004,"message":"用户昵称未授权,请跳转到用户昵称授权页!","data":{}}') // res = JSON.parse('{"code":11004,"message":"用户昵称未授权,请跳转到用户昵称授权页!","data":{}}')
//参与拼团 //参与拼团
@@ -463,7 +462,7 @@ Page({
tt.redirectTo({ tt.redirectTo({
url: `/pages/getuserinfo/getuserinfo?id=${options.id}&frommd=md` url: `/pages/getuserinfo/getuserinfo?id=${options.id}&frommd=md`
}); });
}// 门店详情
} // 门店详情
else if (options && options.id && app.globalData.type == 'md') { else if (options && options.id && app.globalData.type == 'md') {
tt.redirectTo({ tt.redirectTo({
url: `/pages/index/searchbar/detail/index?id=${options.id}` url: `/pages/index/searchbar/detail/index?id=${options.id}`
@@ -587,16 +586,16 @@ Page({
getGameOne: function (token, id) { getGameOne: function (token, id) {
let _this = this; let _this = this;
Http.get({ Http.get({
url: config.api.getOneGame,
data: {
token: token,
id: id
}
}).then(res => {
tt.redirectTo({
url: '/pages/game/index?url=' + res.data.url + "&id=" + res.data.id + "&gameId=" + res.data.gameId,
url: config.api.getOneGame,
data: {
token: token,
id: id
}
}).then(res => {
tt.redirectTo({
url: '/pages/game/index?url=' + res.data.url + "&id=" + res.data.id + "&gameId=" + res.data.gameId,
})
}) })
})
.catch(err => { .catch(err => {
tt.showModal({ tt.showModal({
title: '提示', title: '提示',


+ 4
- 2
pages/main/index.js ファイルの表示

@@ -50,7 +50,7 @@ Page({
that.setData({ that.setData({
newArr: this.data.scene.split(':') newArr: this.data.scene.split(':')
}) })
console.log(this.data.newArr);
//// 大屏-二维码-start //// 大屏-二维码-start
if (this.data.newArr[0] == 'JC') { if (this.data.newArr[0] == 'JC') {
// 跳转券详情 // 跳转券详情
@@ -65,6 +65,7 @@ Page({
app.globalData.type = options.type; app.globalData.type = options.type;
if (options.type == 'cd') { if (options.type == 'cd') {
options.couponChannelId = this.data.newArr[2]; options.couponChannelId = this.data.newArr[2];
options.tenantId = this.data.newArr[3];
} else if (options.type == 'bd') { } else if (options.type == 'bd') {
options.bt = this.data.newArr[2]; options.bt = this.data.newArr[2];
options.id = this.data.newArr[3]; options.id = this.data.newArr[3];
@@ -169,7 +170,8 @@ Page({
Http.get({ Http.get({
url: config.api.checkUserStatus, url: config.api.checkUserStatus,
data: { data: {
token: app.globalData.token
token: app.globalData.token,
mallTenantId: options.tenantId
} }
}) })
.then(res => { .then(res => {


+ 169
- 158
pages/order/detail/index.ttml ファイルの表示

@@ -18,7 +18,7 @@
<text>{{order.title}}</text> <text>{{order.title}}</text>
</view> </view>
<!-- --> <!-- -->
<view class='detail_msg' bindtap="goDetail">
<view class='detail_msg' bindtap="goDetail">
<view class='logo'> <view class='logo'>
<image mode='aspectFill' src='{{order.coverImg}}'></image> <image mode='aspectFill' src='{{order.coverImg}}'></image>
</view> </view>
@@ -35,10 +35,12 @@
<text>下单时间:</text>{{createDate}} <text>下单时间:</text>{{createDate}}
</view> </view>




<image class="infoArrow" src="{{chevronUrl}}" mode='widthFix'></image> <image class="infoArrow" src="{{chevronUrl}}" mode='widthFix'></image>
<view class="goRefund" catchtap="goRefund" data-id="{{order.id}}" tt:if="{{order.payment!=0&&(order.couponOrderStatus==0||order.couponOrderStatus==3)}}">{{order.couponOrderStatus==0?'申请退款':'退款进度'}}</view>
<view class="goRefund" catchtap="goRefund" data-id="{{order.id}}"
tt:if="{{order.payment!=0&&(order.couponOrderStatus==0||order.couponOrderStatus==3)}}">
{{order.couponOrderStatus==0?'申请退款':'退款进度'}}</view>
<!-- <pay-button <!-- <pay-button
class="goRefund" class="goRefund"
order-status="{{1}}" order-status="{{1}}"
@@ -47,209 +49,218 @@
bind:applyrefund="applyRefund" bind:applyrefund="applyRefund"
/> />
</view> --> </view> -->
</view>
</view> </view>
</view>


<view class="zhuangtai">
<image tt:if="{{order.couponOrderStatus==1}}" src="{{wm01Url}}" mode='widthFix'></image>
<image tt:if="{{order.couponOrderStatus==2}}" src="{{wm02Url}}" mode='widthFix'></image>
<image tt:if="{{order.couponOrderStatus==3}}" src="{{wm03Url}}" mode='widthFix'></image>
<image tt:if="{{order.couponOrderStatus==0&&order.validStatus==0}}" src="{{wm04Url}}" mode='widthFix'></image>
<view class="zhuangtai">
<image tt:if="{{order.couponOrderStatus==1}}" src="{{wm01Url}}" mode='widthFix'></image>
<image tt:if="{{order.couponOrderStatus==2}}" src="{{wm02Url}}" mode='widthFix'></image>
<image tt:if="{{order.couponOrderStatus==3}}" src="{{wm03Url}}" mode='widthFix'></image>
<image tt:if="{{order.couponOrderStatus==0&&order.validStatus==0}}" src="{{wm04Url}}" mode='widthFix'></image>


<view class="panel" tt:if="{{order.couponOrderStatus==0&&order.validStatus!=0}}">
<view class="canWrap">
<canvas canvas-id="qrcode" style="width: 1200rpx; height: 800rpx;" />
</view>
<image src="{{tempFilePath}}" mode="aspectFit" />
<view class="closeRq" tt:if="{{showhieRq}}" bindtap="setRq">
<image class="updataRqCode" mode='widthFix' src="{{upDataRqUrlF}}"></image>
<view class="upDataRq">点一点刷新二维码</view>
</view>
<view class="coedTiem" tt:if="{{!showhieRq&&expiredSeconds>1}}">二维码在
<text style="color:red">{{expiredSeconds}}s</text>
后失效
<view class="panel" tt:if="{{order.couponOrderStatus==0&&order.validStatus!=0}}">
<view class="canWrap">
<canvas canvas-id="qrcode" style="width: 1200rpx; height: 800rpx;" />
</view>
<image src="{{tempFilePath}}" mode="aspectFit" />
<view class="closeRq" tt:if="{{showhieRq}}" bindtap="setRq">
<image class="updataRqCode" mode='widthFix' src="{{upDataRqUrlF}}"></image>
<view class="upDataRq">点一点刷新二维码</view>
</view>
<view class="coedTiem" tt:if="{{!showhieRq&&expiredSeconds>1}}">二维码在
<text style="color:red">{{expiredSeconds}}s</text>
后失效
</view>
<!-- <view class="barnum buy"><text>兑换码:</text>{{code}}</view> -->
</view> </view>
<!-- <view class="barnum buy"><text>兑换码:</text>{{code}}</view> -->
</view>


</view>
</view>








<view class='classif'>
<!--
<view class='classif'>
<!--
couponOrderStatus couponOrderStatus
0 未使用 0 未使用
1 已使用 1 已使用
2 已过期 2 已过期
3 已经退款 3 已经退款
--> -->
<!--
<!--
orderStatus orderStatus
1 1
只有支付完成的时 只有支付完成的时
才显示兑换码 才显示兑换码
--> -->
<!-- bindtap="powerDrawer" -->
<view tt:if="{{order.orderStatus==1&&order.type!=100&&order.type!=5&&order.type!=51}}"
data-couponOrderStatus="{{order.couponOrderStatus}}" data-title="{{order.title}}"
data-subtitle="{{order.subTitle}}" data-remark="{{order.remark}}" data-quancode="{{order.couponOrderId}}"
data-validstatus="{{order.validStatus}}" class='dhCode'>
<view style="width:86%;clear: both;">
<text class="fl">兑换码:</text>
<text class="fr" tt:if="{{order.validStatus!=0}}">{{showIdFalg?order.couponOrderId:order.couponOrderIdS}}</text>
<image class="barnumImg" src="../../../assets/images/password.png" bindtap="showId"></image>
</view>
<view>
<!-- <image class="spcode" src="{{spcodeUrl}}" mode='widthFix'></image>
<!-- bindtap="powerDrawer" -->
<view tt:if="{{order.orderStatus==1&&order.type!=100&&order.type!=5&&order.type!=51}}"
data-couponOrderStatus="{{order.couponOrderStatus}}" data-title="{{order.title}}"
data-subtitle="{{order.subTitle}}" data-remark="{{order.remark}}" data-quancode="{{order.couponOrderId}}"
data-validstatus="{{order.validStatus}}" class='dhCode'>
<view style="width:86%;clear: both;">
<text class="fl">兑换码:</text>
<text class="fr"
tt:if="{{order.validStatus!=0}}">{{showIdFalg?order.couponOrderId:order.couponOrderIdS}}</text>
<image class="barnumImg" src="../../../assets/images/password.png" bindtap="showId"></image>
</view>
<view>
<!-- <image class="spcode" src="{{spcodeUrl}}" mode='widthFix'></image>
<image class="rArrow" src="{{chevronUrl}}" mode='widthFix'></image> --> <image class="rArrow" src="{{chevronUrl}}" mode='widthFix'></image> -->
</view>
</view> </view>
</view>


<view class='dhCode' bindtap="goPaySnapshoot" data-id="{{order.id}}" tt:if="{{(order.orderStatus!=0&&order.orderStatus!=2)}}">
<view style="width:86%;clear: both;">
<text class="fl">交易快照:可作为交易争执的判断依据</text>
<view class='dhCode' bindtap="goPaySnapshoot" data-id="{{order.id}}"
tt:if="{{(order.orderStatus!=0&&order.orderStatus!=2)}}">
<view style="width:86%;clear: both;">
<text class="fl">交易快照:可作为交易争执的判断依据</text>


</view>
<view>
<image class="rArrow" src="{{chevronUrl}}" mode='widthFix'></image>
</view>
</view> </view>
<view>
<image class="rArrow" src="{{chevronUrl}}" mode='widthFix'></image>
</view>
</view>
<!-- <view>
<!-- <view>
<text>下单时间</text> <text>下单时间</text>
<text class='fr'>{{createDate}}</text> <text class='fr'>{{createDate}}</text>
</view> --> </view> -->
<view class='dhCode'>
<text class='bianhao'>订单编号:</text>
<text>{{order.id}}</text>
</view>
<view class='wuliu' tt:if="{{order.type==11}}">
<text class='left'>物流状态:</text>
<text
class="right">{{(order.shippingStatus==10||order.shippingStatus==14)?"待自提":order.shippingStatus==15?"已自提":order.shippingStatus==20?"待发货":order.shippingStatus==24?"待收货":order.shippingStatus==25?"已收货":""}}</text>
</view>
<view class='wuliu' tt:if="{{order.shippingType==2&&order.deliveryInfo}}">
<text class='left'>物流公司:</text>
<text class="right">{{order.deliveryInfo.courierInput}}</text>
</view>
<view class='wuliu' tt:if="{{order.shippingType==2&&order.deliveryInfo}}">
<text class='left'>快递单号:</text>
<view class='dhCode'>
<text class='bianhao'>订单编号:</text>
<text>{{order.id}}</text>
</view>
<view class='wuliu' tt:if="{{order.type==11}}">
<text class='left'>物流状态:</text>
<text
class="right">{{(order.shippingStatus==10||order.shippingStatus==14)?"待自提":order.shippingStatus==15?"已自提":order.shippingStatus==20?"待发货":order.shippingStatus==24?"待收货":order.shippingStatus==25?"已收货":""}}</text>
</view>
<view class='wuliu' tt:if="{{order.shippingType==2&&order.deliveryInfo}}">
<text class='left'>物流公司:</text>
<text class="right">{{order.deliveryInfo.courierInput}}</text>
</view>
<view class='wuliu' tt:if="{{order.shippingType==2&&order.deliveryInfo}}">
<text class='left'>快递单号:</text>


<view class="left">{{order.deliveryInfo.expressageIdInput}}</view>
<view class="left">{{order.deliveryInfo.expressageIdInput}}</view>


<view class="copeCode" bindtap="copeCode" data-text="{{order.deliveryInfo.expressageIdInput}}">复制</view>
<text class="goInquire" bindtap="gokuaidi" data-nu="{{order.deliveryInfo.expressageIdInput}}">查询物流</text>
</view>
<view class="copeCode" bindtap="copeCode" data-text="{{order.deliveryInfo.expressageIdInput}}">复制</view>
<text class="goInquire" bindtap="gokuaidi" data-nu="{{order.deliveryInfo.expressageIdInput}}">查询物流</text>
</view>


<!-- <view>
<!-- <view>
<text tt:if="{{order.type == 8}}">原价</text> <text tt:if="{{order.type == 8}}">原价</text>
<text tt:if="{{order.type != 8}}">面额</text> <text tt:if="{{order.type != 8}}">面额</text>
<text class="jine1" tt:if="{{order.unit==0}}">{{order.price/100}}元</text> <text class="jine1" tt:if="{{order.unit==0}}">{{order.price/100}}元</text>
<text class="jine1" tt:if="{{order.unit==1}}">{{order.price/100}}小时</text> <text class="jine1" tt:if="{{order.unit==1}}">{{order.price/100}}小时</text>
</view> --> </view> -->
<view style="overflow: hidden; padding-left: 5%;padding-right: 5%;height: 96rpx;line-height: 96rpx;">
<text class='left'>实付金额:</text>
<view class='right'>
<text class='RMB'>¥</text>
<text class='jine'>{{order.payment/100}}</text>
<view style="overflow: hidden; padding-left: 5%;padding-right: 5%;height: 96rpx;line-height: 96rpx;">
<text class='left'>实付金额:</text>
<view class='right'>
<text class='RMB'>¥</text>
<text class='jine'>{{order.payment/100}}</text>
</view>
</view> </view>
</view> </view>
</view>
<!-- 适用门店 -->
<store merchantVoList="{{order.merchantVoList}}" tt:if="{{order.type!=12}}"></store>
<vieW class="groupTitleBox">
<view class="groupTitle" tt:if="{{order.itemGroup.length>0}}">团购详情</view>
</vieW>
<view class="groupTextBox" tt:if="{{order.itemGroup.length>0}}" tt:for="{{order.itemGroup}}">
<view class="groupTitleS" tt:if="{{item.group_name}}">{{item.group_name}}</view>
<view class="groupDetailsBox" tt:for="{{item.item_list}}" tt:for-item="itemChi">
<view class="groupTiemBox">
<view class="yuandian"></view>
<view class="groupTiemName">{{itemChi.name}}({{itemChi.count}}份)</view>
<view class="groupTiemPay">¥{{itemChi.price/100}}</view>
<!-- 适用门店 -->
<store merchantVoList="{{order.merchantVoList}}" tt:if="{{order.type!=12}}"></store>
<vieW class="groupTitleBox">
<view class="groupTitle" tt:if="{{order.itemGroup.length>0}}">团购详情</view>
</vieW>
<view class="groupTextBox" tt:if="{{order.itemGroup.length>0}}" tt:for="{{order.itemGroup}}">
<view class="groupTitleS" tt:if="{{item.group_name}}">{{item.group_name}}</view>
<view class="groupDetailsBox" tt:for="{{item.item_list}}" tt:for-item="itemChi">
<view class="groupTiemBox">
<view class="yuandian"></view>
<view class="groupTiemName">{{itemChi.name}}({{itemChi.count}}份)</view>
<view class="groupTiemPay">¥{{itemChi.price/100}}</view>
</view>
</view> </view>
</view> </view>
</view>




<view class='notes'>
<view class="notesH">购买须知</view>
<view class="timeText">有效期</view>
<view class="Hchild">• {{order.validStartDate}}至{{order.validEndDate}}</view>
<view class="timeText">可用时间</view>
<view class="Hchild">• 商家营业时间内到店使用</view>
<view class="Hchild" tt:if="{{order.can_no_use_date.weekend}}">• 周末不支持使用</view>
<view class="Hchild" tt:if="{{order.can_no_use_date.HolidaysFlag}}">• 节假日(元旦、春节、清明、劳动节、端午节、中秋节、国庆节、情人节、圣诞节)不支持使用</view>
<view class="timeText">购买限制</view>
<view class="Hchild">• 每个用户限购{{order.useLimitQuantity}}单</view>

<view class="timeText">预约消费</view>
<view class="Hchild" tt:if="{{!order.subscribeSing}}">• 无需预约,高峰时段可能等位</view>
<view class="Hchild" tt:if="{{order.subscribeSing}}">• {{order.subscribeSing}}</view>

<view class="timeText" tt:if="{{order.rec_person_num_max}}">适用人数</view>
<view class="Hchild" tt:if="{{order.rec_person_num_max}}">• 该团购劵最多{{order.rec_person_num_max}}人使用</view>

<view class="timeText">温馨提示</view>
<view class="Hchild">• 团购券不支持配送或外卖</view>
<view class="Hchild" tt:if="{{order.pack}}">• 该团购商品{{order.pack=='false'?'不支持':'支持'}}打包</view>
<view class="Hchild" tt:if="{{order.besides}}">• {{order.besides=="false"?'不可以':'可以'}}外带餐食</view>
<view class="Hchild" tt:if="{{order.superimposed_discounts}}">• {{order.superimposed_discounts=="false"?'不可以':'可以'}}享受店内其他优惠</view>
<view class="Hchild" tt:if="{{order.private_room}}">• {{order.private_room=="false"?'不可以使用':'可以使用'}}包间</view>

<view class="notesH" tt:if="{{order.curLsit}}">使用规则</view>

<view tt:if="{{order.curLsit}}" tt:for="{{order.curLsit}}" tt:key="{{index}}">
<view class="timeText" tt:if="{{item.title!=''}}">{{item.title}}</view>
<text class="Hchild">{{item.content}}</text>
<view class='notes'>
<view class="notesH">购买须知</view>
<view class="timeText">有效期</view>
<view class="Hchild">• {{order.validStartDate}}至{{order.validEndDate}}</view>
<view class="timeText">可用时间</view>
<view class="Hchild">• 商家营业时间内到店使用</view>
<view class="Hchild" tt:if="{{order.can_no_use_date.weekend}}">• 周末不支持使用</view>
<view class="Hchild" tt:if="{{order.can_no_use_date.HolidaysFlag}}">• 节假日(元旦、春节、清明、劳动节、端午节、中秋节、国庆节、情人节、圣诞节)不支持使用
</view>

<view class="timeText">购买限制</view>
<view class="Hchild">• 每个用户限购{{order.useLimitQuantity}}单</view>

<view class="timeText">预约消费</view>
<view class="Hchild" tt:if="{{!order.subscribeSing}}">• 无需预约,高峰时段可能等位</view>
<view class="Hchild" tt:if="{{order.subscribeSing}}">• {{order.subscribeSing}}</view>

<view class="timeText" tt:if="{{order.rec_person_num_max}}">适用人数</view>
<view class="Hchild" tt:if="{{order.rec_person_num_max}}">• 该团购劵最多{{order.rec_person_num_max}}人使用</view>

<view class="timeText">温馨提示</view>
<view class="Hchild">• 团购券不支持配送或外卖</view>
<view class="Hchild" tt:if="{{order.pack}}">• 该团购商品{{order.pack=='false'?'不支持':'支持'}}打包</view>
<view class="Hchild" tt:if="{{order.besides}}">• {{order.besides=="false"?'不可以':'可以'}}外带餐食</view>

<view class="Hchild" tt:if="{{order.superimposed_discounts}}">•
{{order.superimposed_discounts=="false"?'不可以':'可以'}}享受店内其他优惠</view>
<view class="Hchild" tt:if="{{order.private_room}}">• {{order.private_room=="false"?'不可以使用':'可以使用'}}包间</view>

<view class="notesH" tt:if="{{order.curLsit}}">使用规则</view>


<view tt:if="{{order.curLsit}}" tt:for="{{order.curLsit}}" tt:key="{{index}}">
<view class="timeText" tt:if="{{item.title!=''}}">{{item.title}}</view>
<text class="Hchild">{{item.content}}</text>
</view>
</view> </view>
</view>
<!-- 子券列表 -->
<view class="childList" tt:if="{{order.type==12}}">
<view class="childTitle">礼券:</view>
<view class="childItme" tt:for="{{order.giftCouponList}}" tt:key="{{item}}">
<view class="chaildDetBox">
<image mode='aspectFill' class="chaildImg" src="{{item.coverImg}}"></image>
<view class="childDataBox">
<view class="orderName">{{item.title}}</view>
<view class="childPriceStr">面额:{{item.priceStr}}元</view>
<!-- 子券列表 -->
<view class="childList" tt:if="{{order.type==12}}">
<view class="childTitle">礼券:</view>
<view class="childItme" tt:for="{{order.giftCouponList}}" tt:key="{{item}}">
<view class="chaildDetBox">
<image mode='aspectFill' class="chaildImg" src="{{item.coverImg}}"></image>
<view class="childDataBox">
<view class="orderName">{{item.title}}</view>
<view class="childPriceStr">面额:{{item.priceStr}}元</view>
</view>
</view> </view>
</view> </view>
</view> </view>
</view>
<!-- 待付款 显示立即购买的按钮 -->
<view tt:if="{{(order.orderStatus==0&&order.salePrice!=0)||(order.orderStatus==7&&order.salePrice!=0)}}"
class="buy-view app-border-top">
<button bindtap='orderFunc' hover-class='active' data-couponChannelId="{{orderFlag?order.composeOrderId:order.id}}"
disabled='{{showButton}}' class="{{mouldType!=1?'buy':'buyX'}}">立即支付</button>
</view>
<view class='game' bindtap="gotogame" tt-if="{{showIf&&order.orderStatus!=0}}">
<view class='game-entry'>
<image src="{{newUrl}}" class='gameimg' mode='widthFix'></image>
<!-- 待付款 显示立即购买的按钮 -->
<view tt:if="{{(order.orderStatus==0&&order.salePrice!=0)||(order.orderStatus==7&&order.salePrice!=0)}}"
class="buy-view app-border-top">
<button bindtap='orderFunc' hover-class='active'
data-couponChannelId="{{orderFlag?order.composeOrderId:order.id}}" disabled='{{showButton}}'
class="{{mouldType!=1?'buy':'buyX'}}">立即支付</button>
</view> </view>
</view>
<!-- <button type="primary" open-type="share" tt:if="{{order.type == 100 && supportTransfer==1&&cardIf}}" class='support-tansfer'>
<view class='game' bindtap="gotogame" tt-if="{{showIf&&order.orderStatus!=0}}">
<view class='game-entry'>
<image src="{{newUrl}}" class='gameimg' mode='widthFix'></image>
</view>
</view>
<!-- <button type="primary" open-type="share" tt:if="{{order.type == 100 && supportTransfer==1&&cardIf}}" class='support-tansfer'>
<image src="{{weixinTitle}}" class='share' mode="widthFix"></image>转赠给微信好友</button> --> <image src="{{weixinTitle}}" class='share' mode="widthFix"></image>转赠给微信好友</button> -->
<view class="sign"
tt:if="{{order.couponOrderStatus == 0 &&order.type == 11 && order.shippingType == 2 && order.shippingStatus== 24}}"
bindtap="setShow">签收
</view>
<view class="evaluate" bindtap="goEvaluate" tt:if="{{evaluateFlag}}">去评价</view>
<view class="explainText" tt:if="{{serviceUrl!=''&&(order.orderStatus==1||order.orderStatus==3||order.orderStatus==4||order.orderStatus==5)}}">对本订单有疑问或纠纷,请点击下方联系抖音官方客服</view>
<view class="serviceBox" tt:if="{{serviceUrl!=''&&(order.orderStatus==1||order.orderStatus==3||order.orderStatus==4||order.orderStatus==5)}}" bindtap="goWebView">
<image src="../../../assets/images/service1.png" class="serviceImg" ></image>
<view class="serviceText"> 抖音官方客服</view>
</view>
<view class="sign"
tt:if="{{order.couponOrderStatus == 0 &&order.type == 11 && order.shippingType == 2 && order.shippingStatus== 24}}"
bindtap="setShow">签收
</view>
<view class="evaluate" bindtap="goEvaluate" tt:if="{{evaluateFlag}}">去评价</view>
<view class="explainText"
tt:if="{{serviceUrl!=''&&(order.orderStatus==1||order.orderStatus==3||order.orderStatus==4||order.orderStatus==5)}}">
对本订单有疑问或纠纷,请点击下方联系抖音官方客服</view>
<view class="serviceBox"
tt:if="{{serviceUrl!=''&&(order.orderStatus==1||order.orderStatus==3||order.orderStatus==4||order.orderStatus==5)}}"
bindtap="goWebView">
<image src="../../../assets/images/service1.png" class="serviceImg"></image>
<view class="serviceText"> 抖音官方客服</view>
</view>


</view>
</view> </view>




@@ -264,4 +275,4 @@
</view> </view>
</view> </view>
</view> </view>
<!-- -->
<!-- -->

+ 6
- 3
pages/order/index/index.ttml ファイルの表示

@@ -13,12 +13,15 @@
</view> </view>


<view class="picker" tt:if="{{shopList.length>1}}"> <view class="picker" tt:if="{{shopList.length>1}}">
<view class="title">选择广场</view>
<picker mode="selector" bindchange="bindPickerChange" value="{{index}}" range="{{shopList}}" range-key="name" <picker mode="selector" bindchange="bindPickerChange" value="{{index}}" range="{{shopList}}" range-key="name"
disabled="{{false}}"> disabled="{{false}}">
<view class="picker-item">
当前广场:{{shopList[index].name}}
<view class="inside">
<view class="picker_item">
{{shopList[index].name}}
</view>
<image class="img" src="/assets/itemImg/chevron.png"></image>
</view> </view>

</picker> </picker>
</view> </view>




+ 14
- 1
pages/order/index/index.ttss ファイルの表示

@@ -41,7 +41,20 @@
} }


.picker { .picker {
margin-top: 100rpx;
margin-top: 120rpx;
padding: 25rpx 45rpx;
margin-bottom: 28rpx;
background-color: #fff;
}

.picker .inside {
display: flex;
justify-content: space-between;
}

.picker .inside .img {
width: 20rpx;
height: 40rpx;
} }






+ 20
- 2
project.config.json ファイルの表示

@@ -23,7 +23,7 @@
"id": 1669558749378, "id": 1669558749378,
"name": "商品详情页", "name": "商品详情页",
"pathName": "pages/main/index", "pathName": "pages/main/index",
"query": "pages/main/index?type=cd&couponChannelId=756802201412231168&tenantId=1034",
"query": "type=cd&couponChannelId=756802201412231168&tenantId=1034",
"scene": "990001", "scene": "990001",
"launchFrom": "scan", "launchFrom": "scan",
"location": "qr_code" "location": "qr_code"
@@ -32,7 +32,25 @@
"id": 1669632886124, "id": 1669632886124,
"name": "商品支付页", "name": "商品支付页",
"pathName": "pages/main/index", "pathName": "pages/main/index",
"query": "pages/main/index?type=orderAffirm&couponChannelId=756802201412231168&tenantId=1034",
"query": "type=orderAffirm&couponChannelId=756802201412231168&tenantId=1034",
"scene": "990001",
"launchFrom": "scan",
"location": "qr_code"
},
{
"id": 1669798102509,
"name": "二维码进入(index)",
"pathName": "pages/index/index",
"query": "scene=t:cd:756802201412231168:1034",
"scene": "990001",
"launchFrom": "scan",
"location": "qr_code"
},
{
"id": 1669799932530,
"name": "二维码进入(main)",
"pathName": "pages/main/index",
"query": "scene=t:cd:756802201412231168:1034",
"scene": "990001", "scene": "990001",
"launchFrom": "scan", "launchFrom": "scan",
"location": "qr_code" "location": "qr_code"


読み込み中…
キャンセル
保存