Compare commits
No commits in common. "724138f6720380afda8985ee9dac289e9a12bb9b" and "dab4d15c241b28dd00aa5c2299302bffc8ff3815" have entirely different histories.
724138f672
...
dab4d15c24
|
|
@ -177,7 +177,7 @@
|
||||||
type="textarea" show-edit />
|
type="textarea" show-edit />
|
||||||
</view>
|
</view>
|
||||||
<view class="price-box flex-column align-end">
|
<view class="price-box flex-column align-end">
|
||||||
<text class="price">¥<auto-width-input v-model="product.price" type="digit"
|
<text class="price">¥<auto-width-input v-model="product.price" type="number"
|
||||||
show-edit /></text>
|
show-edit /></text>
|
||||||
<text class="count">x<auto-width-input v-model="product.count" type="number"
|
<text class="count">x<auto-width-input v-model="product.count" type="number"
|
||||||
show-edit /></text>
|
show-edit /></text>
|
||||||
|
|
@ -209,7 +209,7 @@
|
||||||
<view style="flex: 1;"></view>
|
<view style="flex: 1;"></view>
|
||||||
<text class="label">{{ order.orderType === 'wait_pay' ? '应付: ' : '实付: ' }} </text>
|
<text class="label">{{ order.orderType === 'wait_pay' ? '应付: ' : '实付: ' }} </text>
|
||||||
<text class="symbol">¥</text>
|
<text class="symbol">¥</text>
|
||||||
<auto-width-input class="amount" v-model="order.payment.totalAmount" type="digit" color="#DF2E26"
|
<auto-width-input class="amount" v-model="order.payment.totalAmount" type="number" color="#DF2E26"
|
||||||
show-edit />
|
show-edit />
|
||||||
|
|
||||||
<auto-width-input class="freight" v-model="order.payment.freightDesc" show-edit />
|
<auto-width-input class="freight" v-model="order.payment.freightDesc" show-edit />
|
||||||
|
|
@ -281,7 +281,7 @@
|
||||||
<view class="flex-align-end">
|
<view class="flex-align-end">
|
||||||
<text class="label">应付: </text>
|
<text class="label">应付: </text>
|
||||||
<text class="symbol">¥</text>
|
<text class="symbol">¥</text>
|
||||||
<auto-width-input class="amount" v-model="order.payment.totalAmount" type="digit" show-edit />
|
<auto-width-input class="amount" v-model="order.payment.totalAmount" type="number" show-edit />
|
||||||
|
|
||||||
<text class="discount"><auto-width-input class="discount" color="#E02E24" fontSize="26rpx" show-edit
|
<text class="discount"><auto-width-input class="discount" color="#E02E24" fontSize="26rpx" show-edit
|
||||||
v-model="order.payment.discountText" type="text" /></text>
|
v-model="order.payment.discountText" type="text" /></text>
|
||||||
|
|
|
||||||
|
|
@ -227,18 +227,18 @@ onShow(() => {
|
||||||
}, 500);
|
}, 500);
|
||||||
// #endif
|
// #endif
|
||||||
|
|
||||||
const isInitialized = uni.getStorageSync('isTaobaoShoppingInitialized');
|
// 加载缓存数据
|
||||||
if (!isInitialized) {
|
let storageData = uni.getStorageSync('taobaoShopping');
|
||||||
console.log('首次进入页面,注入初始默认数据');
|
|
||||||
const storageData = JSON.parse(JSON.stringify(defualtData));
|
// 如果缓存为空,则初始化默认数据
|
||||||
|
if (!storageData || (Array.isArray(storageData) && storageData.length === 0)) {
|
||||||
|
console.log('检测到淘宝订单缓存为空,注入初始默认数据');
|
||||||
|
storageData = JSON.parse(JSON.stringify(defualtData));
|
||||||
uni.setStorageSync('taobaoShopping', storageData);
|
uni.setStorageSync('taobaoShopping', storageData);
|
||||||
uni.setStorageSync('isTaobaoShoppingInitialized', true);
|
|
||||||
mockList.value = storageData;
|
|
||||||
} else {
|
|
||||||
let storageData = uni.getStorageSync('taobaoShopping');
|
|
||||||
mockList.value = storageData || [];
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
mockList.value = storageData || [];
|
||||||
|
|
||||||
// 加载拼图截图缓存 (若不存在则初始化默认底图)
|
// 加载拼图截图缓存 (若不存在则初始化默认底图)
|
||||||
let savedScreenshot = uni.getStorageSync('taobao_screenshot');
|
let savedScreenshot = uni.getStorageSync('taobao_screenshot');
|
||||||
if (!savedScreenshot) {
|
if (!savedScreenshot) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue