|
@@ -25,31 +25,6 @@ Component({
|
|
|
methods: {
|
|
|
init() {
|
|
|
this.getList()
|
|
|
- getApp().globalData.customizedProduct = (item, custom) => {
|
|
|
- return new Promise((resolve) => {
|
|
|
- wx.showLoading({
|
|
|
- title: '修改中...',
|
|
|
- })
|
|
|
- _Http.basic({
|
|
|
- "id": 20220924104302,
|
|
|
- "content": {
|
|
|
- "sa_shoppingcartid": item.sa_shoppingcartid,
|
|
|
- "qty": item.qty,
|
|
|
- ...custom
|
|
|
- },
|
|
|
- }).then(res => {
|
|
|
- console.log("修改定制", res)
|
|
|
- wx.showToast({
|
|
|
- title: res.msg != '成功' ? res.msg : '修改成功',
|
|
|
- icon: "none"
|
|
|
- });
|
|
|
- this.getList()
|
|
|
- resolve(true)
|
|
|
- })
|
|
|
- })
|
|
|
- }
|
|
|
-
|
|
|
-
|
|
|
let domainrelatedaccounts = wx.getStorageSync('domainrelatedaccounts');
|
|
|
if (domainrelatedaccounts.length) {
|
|
|
this.setData({
|