处理多规格。

This commit is contained in:
2022-07-08 16:25:47 +08:00
8 changed files with 101 additions and 74 deletions

View File

@@ -14,7 +14,7 @@
title : "更新提示", title : "更新提示",
content : res.note || '版本更新信息', content : res.note || '版本更新信息',
confirmText : "更新", confirmText : "更新",
showCancel : true, showCancel : !res.info.must,
success : modalRes => { success : modalRes => {
if (modalRes.confirm) { if (modalRes.confirm) {
if (plus.os.name == "Android") { if (plus.os.name == "Android") {

View File

@@ -9,7 +9,7 @@
<view class="item--content"> <view class="item--content">
<view class="title">{{goodsInfo.goods_name}}</view> <view class="title">{{goodsInfo.goods_name}}</view>
<view class="sub_title" v-if="goodsInfo.shop">{{goodsInfo.shop.name}}</view> <view class="sub_title" v-if="goodsInfo.shop">{{goodsInfo.shop.name}}</view>
<view class="unit"> {{goodsInfo.unit}} </view> <view class="unit" v-if="goodsInfo.unit"> {{goodsInfo.unit}} </view>
<view class="price">{{goodsInfo.price || '0'}} <view class="price">{{goodsInfo.price || '0'}}
<view class="price-type"> <view class="price-type">
<text> DT积分</text> <text> DT积分</text>

View File

@@ -17,7 +17,7 @@
<view class="item--content"> <view class="item--content">
<view class="title">{{goodsInfo.goods_name}}</view> <view class="title">{{goodsInfo.goods_name}}</view>
<view class="sub_title" v-if="goodsInfo.shop">{{goodsInfo.shop.name}}</view> <view class="sub_title" v-if="goodsInfo.shop">{{goodsInfo.shop.name}}</view>
<view class="unit"> <view class="unit" v-if="goodsInfo.unit">
{{goodsInfo.unit}} {{goodsInfo.unit}}
</view> </view>
<view class=" number"> <view class=" number">

View File

@@ -25,7 +25,7 @@
<image class="order--cover" :src="item.items[0].cover" mode="aspectFill"></image> <image class="order--cover" :src="item.items[0].cover" mode="aspectFill"></image>
<view class="order--title"> <view class="order--title">
{{item.items[0].goods_name}} {{item.items[0].goods_name}}
<view class="unit"> <view class="unit" v-if="item.items[0].sku.unit">
{{item.items[0].sku.unit}} {{item.items[0].sku.unit}}
</view> </view>
</view> </view>

View File

@@ -5,7 +5,7 @@
<view class="item--content"> <view class="item--content">
<view class="title">{{goodsInfo.goods_name}}</view> <view class="title">{{goodsInfo.goods_name}}</view>
<view class="sub_title" v-if="goodsInfo.shop">{{goodsInfo.shop.name}}</view> <view class="sub_title" v-if="goodsInfo.shop">{{goodsInfo.shop.name}}</view>
<view class="unit"> <view class="unit" v-if="goodsInfo.unit">
{{goodsInfo.unit}} {{goodsInfo.unit}}
</view> </view>
<view class=" number"> <view class=" number">

View File

@@ -9,7 +9,7 @@
<view class="item--content"> <view class="item--content">
<view class="title">{{goodsInfo.goods_name}}</view> <view class="title">{{goodsInfo.goods_name}}</view>
<view class="sub_title" v-if="goodsInfo.shop">{{goodsInfo.shop.name}}</view> <view class="sub_title" v-if="goodsInfo.shop">{{goodsInfo.shop.name}}</view>
<view class="unit"> <view class="unit" v-if="goodsInfo.unit">
{{goodsInfo.unit}} {{goodsInfo.unit}}
</view> </view>
<view class="price">{{goodsInfo.price || '0'}} <view class="price">{{goodsInfo.price || '0'}}

File diff suppressed because one or more lines are too long

View File

@@ -15676,14 +15676,16 @@ var render = function() {
}, },
[ [
_vm._v(_vm._$g("13-" + $30, "t0-0")), _vm._v(_vm._$g("13-" + $30, "t0-0")),
_c( _vm._$g("14-" + $30, "i")
"v-uni-view", ? _c(
{ "v-uni-view",
staticClass: _vm._$g("14-" + $30, "sc"), {
attrs: { _i: "14-" + $30 } staticClass: _vm._$g("14-" + $30, "sc"),
}, attrs: { _i: "14-" + $30 }
[_vm._v(_vm._$g("14-" + $30, "t0-0"))] },
) [_vm._v(_vm._$g("14-" + $30, "t0-0"))]
)
: _vm._e()
], ],
1 1
), ),
@@ -16306,11 +16308,13 @@ var render = function() {
[_vm._v(_vm._$g(12, "t0-0"))] [_vm._v(_vm._$g(12, "t0-0"))]
) )
: _vm._e(), : _vm._e(),
_c( _vm._$g(13, "i")
"v-uni-view", ? _c(
{ staticClass: _vm._$g(13, "sc"), attrs: { _i: 13 } }, "v-uni-view",
[_vm._v(_vm._$g(13, "t0-0"))] { staticClass: _vm._$g(13, "sc"), attrs: { _i: 13 } },
), [_vm._v(_vm._$g(13, "t0-0"))]
)
: _vm._e(),
_c( _c(
"v-uni-view", "v-uni-view",
{ staticClass: _vm._$g(14, "sc"), attrs: { _i: 14 } }, { staticClass: _vm._$g(14, "sc"), attrs: { _i: 14 } },
@@ -17132,11 +17136,13 @@ var render = function() {
[_vm._v(_vm._$g(8, "t0-0"))] [_vm._v(_vm._$g(8, "t0-0"))]
) )
: _vm._e(), : _vm._e(),
_c( _vm._$g(9, "i")
"v-uni-view", ? _c(
{ staticClass: _vm._$g(9, "sc"), attrs: { _i: 9 } }, "v-uni-view",
[_vm._v(_vm._$g(9, "t0-0"))] { staticClass: _vm._$g(9, "sc"), attrs: { _i: 9 } },
), [_vm._v(_vm._$g(9, "t0-0"))]
)
: _vm._e(),
_c( _c(
"v-uni-view", "v-uni-view",
{ staticClass: _vm._$g(10, "sc"), attrs: { _i: 10 } }, { staticClass: _vm._$g(10, "sc"), attrs: { _i: 10 } },
@@ -17513,11 +17519,13 @@ var render = function() {
[_vm._v(_vm._$g(5, "t0-0"))] [_vm._v(_vm._$g(5, "t0-0"))]
) )
: _vm._e(), : _vm._e(),
_c( _vm._$g(6, "i")
"v-uni-view", ? _c(
{ staticClass: _vm._$g(6, "sc"), attrs: { _i: 6 } }, "v-uni-view",
[_vm._v(_vm._$g(6, "t0-0"))] { staticClass: _vm._$g(6, "sc"), attrs: { _i: 6 } },
), [_vm._v(_vm._$g(6, "t0-0"))]
)
: _vm._e(),
_c( _c(
"v-uni-view", "v-uni-view",
{ staticClass: _vm._$g(7, "sc"), attrs: { _i: 7 } }, { staticClass: _vm._$g(7, "sc"), attrs: { _i: 7 } },
@@ -18167,11 +18175,13 @@ var render = function() {
[_vm._v(_vm._$g(8, "t0-0"))] [_vm._v(_vm._$g(8, "t0-0"))]
) )
: _vm._e(), : _vm._e(),
_c( _vm._$g(9, "i")
"v-uni-view", ? _c(
{ staticClass: _vm._$g(9, "sc"), attrs: { _i: 9 } }, "v-uni-view",
[_vm._v(_vm._$g(9, "t0-0"))] { staticClass: _vm._$g(9, "sc"), attrs: { _i: 9 } },
), [_vm._v(_vm._$g(9, "t0-0"))]
)
: _vm._e(),
_c( _c(
"v-uni-view", "v-uni-view",
{ staticClass: _vm._$g(10, "sc"), attrs: { _i: 10 } }, { staticClass: _vm._$g(10, "sc"), attrs: { _i: 10 } },