consumer模块完成度95%,实现数据库多端注册登录,优化安卓端小程序bug
This commit is contained in:
@@ -36,7 +36,7 @@
|
||||
<text class="sales-text">销量: {{ merchant.total_sales }}</text>
|
||||
</view>
|
||||
</view>
|
||||
<text class="enter-shop" @click.stop="goToShop">进店 ></text>
|
||||
<text class="enter-shop" @click.stop="goToShop">进店 ❯</text>
|
||||
</view>
|
||||
|
||||
<!-- 功能主治(药品功能) -->
|
||||
@@ -53,7 +53,7 @@
|
||||
{{ coupon.name }}
|
||||
</text>
|
||||
</view>
|
||||
<text class="cell-arrow">领券 ></text>
|
||||
<text class="cell-arrow">领券 ❯</text>
|
||||
</view>
|
||||
|
||||
<!-- 商品参数 -->
|
||||
@@ -62,7 +62,7 @@
|
||||
<view class="cell-content">
|
||||
<text class="params-summary-text">{{ getParamsSummary() }}</text>
|
||||
</view>
|
||||
<text class="cell-arrow">></text>
|
||||
<text class="cell-arrow">❯</text>
|
||||
</view>
|
||||
|
||||
<!-- 规格选择 -->
|
||||
@@ -71,7 +71,7 @@
|
||||
<view class="cell-content">
|
||||
<text class="spec-selected">{{ selectedSpec ?? '请选择规格' }}</text>
|
||||
</view>
|
||||
<text class="cell-arrow">></text>
|
||||
<text class="cell-arrow">❯</text>
|
||||
</view>
|
||||
|
||||
<!-- 数量选择 -->
|
||||
@@ -283,13 +283,13 @@ export default {
|
||||
},
|
||||
onLoad(options: any) {
|
||||
const opts = options as UTSJSONObject
|
||||
const productId = (opts.getString('productId') ?? opts.getString('id')) as string
|
||||
const priceStr = opts.getString('price')
|
||||
const productId = (opts['productId'] ?? opts['id']) as string | null
|
||||
const priceStr = opts['price'] as string | null
|
||||
const productPrice = priceStr != null ? parseFloat(priceStr) : null
|
||||
const originalPriceStr = opts.getString('originalPrice')
|
||||
const originalPriceStr = opts['originalPrice'] as string | null
|
||||
const productOriginalPrice = originalPriceStr != null ? parseFloat(originalPriceStr) : null
|
||||
|
||||
let productName = opts.getString('name') as string | null
|
||||
let productName = opts['name'] as string | null
|
||||
if (productName != null) {
|
||||
try {
|
||||
const decodedName = decodeURIComponent(productName)
|
||||
@@ -299,7 +299,7 @@ export default {
|
||||
}
|
||||
}
|
||||
|
||||
let productImage = opts.getString('image') as string | null
|
||||
let productImage = opts['image'] as string | null
|
||||
if (productImage != null) {
|
||||
try {
|
||||
const decodedImage = decodeURIComponent(productImage)
|
||||
|
||||
Reference in New Issue
Block a user